Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7717533rwi; Mon, 24 Oct 2022 19:31:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4eZsR9bY0a2grQjnxLf3NrEdCe1hxjH3kyefA4AvoNGKMupe9VGHxFclYDOHRzt+Ws96UM X-Received: by 2002:a17:906:d550:b0:78d:a6d4:c18f with SMTP id cr16-20020a170906d55000b0078da6d4c18fmr30897367ejc.113.1666665118203; Mon, 24 Oct 2022 19:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666665118; cv=none; d=google.com; s=arc-20160816; b=lkd2f3msf1VqAy0p+PnkCFE+3P1bP7q026UqKSnhbg7GNZYF6M+5yVFBNsDkO+KF1/ CV2KycsqfVXFRxAaj4TiSTpRG63HaLJjhyyqpKmLr3Y/ge5L2qSbQeqU8wox4norKvyQ /jAY/ykCt3SelhJvA3pUVpO4aFOdN1G72nUBoQFhmRxoToZSty66qQ93buRnGHxaSvx0 AscmC+Yrs48V1ywbcuJven6ZyY+hR7uAte1Ol5uPbX/xYzGkmIKAOwKNUwyhYvUYDYiA tG8c5kYcwgbPcoyNNrM4O/TI0tr/Ee1YME3c+stRQuY6gToa+04zdEu467AsywplK1C9 yYqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=KA2TT6zoINJsCMFaJmty+ighfar8synBju6f5G2Iy7w=; b=VyjtcZ09Lt3bPbuIs9PcuorgU97fmX7QzeozVtD8G5U5PMEJxIP9Xl9soLSgnDRU+Q 1j89ozVVZU3uDa4oTaeV55teDA7qhIE0/LZPhnsfA+Lbg4vsg1a1kEtI1SezHxYGmeJB 0j/gdwu7ZOPeV9oPsBEt/GuqlOAW4S1gP5SYIliI2S49futNBOJbToiGd6CmUisDv8o5 YngAIh4Jv8OubJfhkLZjQ0Jfza1+kcOobThXp+xCWFy6EpRd7n0jJuGzGK3PbA2JRfGz 6fED6mBEJ1f5Je+Sm7qmn/UIaHBKzAkKGHjTdQhU4wR+T65yWN54XGMlDHpNDRZG+z9v SeVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JchifkzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz30-20020a1709077d9e00b0077fd5b45e18si1527018ejc.929.2022.10.24.19.31.33; Mon, 24 Oct 2022 19:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JchifkzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbiJYBDR (ORCPT + 99 others); Mon, 24 Oct 2022 21:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbiJYBCs (ORCPT ); Mon, 24 Oct 2022 21:02:48 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ECDE459AE; Mon, 24 Oct 2022 16:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666655991; x=1698191991; h=message-id:date:mime-version:from:subject:to:cc: references:in-reply-to:content-transfer-encoding; bh=hdZaNs5iMO5JH6LtUCsAkiAuMuGiiXGD8WqtALn07oE=; b=JchifkzTYgeQcrxlxtKgNUQrif/YHJ1AEQksVNF9WMMfjQ/XvbtulXmF oumyvuPUx7/nQPjdnIAMyB+fUo2pDOc8UQlskX6wp3lhrBUkHOFDbezhl VwrepPVwH5953R5XVc/aJbeTNUiU0fbix22nZtjSaEhrcDm2C96h9nlp9 KmN6byn3xkFRck3qOomN0S1ce7bSLtXDdcOgetEJMgzri4Sx9FLVRl0Sg bQ2WloY3usRvcMFhGq/ubWHZol6/Xw2CvEDx9dYYr+vg75q5Yi5yZ40pr flcP+uxXBphUlSUh7XC0wncl1h96ocqAKWsmiremRC7r1IFwNRGZykn1O g==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="305160854" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="305160854" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 16:59:50 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="694746317" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="694746317" Received: from bmahadev-mobl.amr.corp.intel.com (HELO [10.212.216.245]) ([10.212.216.245]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 16:59:49 -0700 Message-ID: <91db431a-36ab-c833-1068-536695981d45@linux.intel.com> Date: Mon, 24 Oct 2022 16:59:48 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.2.2 From: Sathyanarayanan Kuppuswamy Subject: Re: [PATCH v15 2/3] virt: Add TDX guest driver To: Greg Kroah-Hartman , Wander Lairson Costa Cc: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, Shuah Khan , Jonathan Corbet , "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Kai Huang , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org References: <20221020045828.2354731-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20221020045828.2354731-3-sathyanarayanan.kuppuswamy@linux.intel.com> <34ef18d6-69f8-853a-d1ba-7023822e17ff@linux.intel.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/24/22 6:54 AM, Greg Kroah-Hartman wrote: >>>>>> You are allowing userspace to spam the kernel logs, please do not do >>>>>> that. >>>>> Added it to help userspace understand the reason for the failure (only for >>>>> the cases like request param issues and TDCALL failure). Boris recommended >>>>> adding it in the previous review. >>>> Again, you just created a vector for userspace to spam the kernel log. >>>> No kernel driver should ever do that. >>>> >>> Brois, any comments? Do you also agree? >>> >> Maybe dev_err_once() does the job? > That does not make any sense when the userspace input can be different > each time. > > This is just yet-another-ioctl, there's nothing special about it. > Return an error for invalid input and don't log anything. Worst case, > make it a dev_dbg() call if you really really really want to see it. It is a nice to have debug info, but not very important. So I will remove it. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer