Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp936707lqa; Sun, 28 Apr 2024 10:26:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR/Cise/wmsVWO8dS28/5KsFGHIaglTp5HYrkfJd4lLti4Uujg+mJg90rdkjF/MzhyFX35O9qM47vOdBCbN+4Ap35yIqkkJtEZg/e+bA== X-Google-Smtp-Source: AGHT+IGfMPgAuRJNbKVZYqSegyx3UPIZc5xm/ARSsZ4wDs5ImTfP2QMbGHWj/MR0tVZ/JMvRDEkh X-Received: by 2002:a17:907:868f:b0:a52:1bba:7458 with SMTP id qa15-20020a170907868f00b00a521bba7458mr5356125ejc.0.1714325209894; Sun, 28 Apr 2024 10:26:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714325209; cv=pass; d=google.com; s=arc-20160816; b=J5lXcp3kZQY4BuOH8TVA0Tm25OJyRkmm9BX3GiRCZPBol0O07JXwY5a8DVJ3zFzVE/ d2HSejA1QWNuDZKFHbOfOq9EKmTBHtwR+HGUNnEwfwDfxpJrodkAy0Fbqzbd8ExGquqk r+HjOasfeha0tl5v21lKQNx8KN+O9hoe4mQlhYGis03BxCbr93pYJqp+zfhfOJAbSnHG 2mlG0yYkZHGXDPmXLfHcqgrB2uyUsGU8DJWxvfnG0LYubdrd5v7IEpSwPzlI/6g0RAWE 4DQFWdD+IKmiq+IHFRx2Aqgf851fBeRrLCyY+cCLL/ToQcwTMTCOI0bQZg4W4izwrHGB HLbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AF8W5OpNeob6gkJBdYGpZUOpvF721UDovoNC7CvPOHk=; fh=urVLqDxifyC2tYELsb6fY0nWPfPb41/5S5Tkot3jXaI=; b=cti0BqibjOXAizV7P9uiawDoxkMl65hchHCjW2hV85T8qcunKBZ1c8JZW4OKshxv/M OU+6f9j1diZAR4pEfByTnSSlE+gD4cxPtG3DuPRvVbbrVAcMPBtTVGOyqp8Q+Vx9anby Ic9A9t2REae5sqjOtwpKvtIopctUYSj4BEGoObIqf/YwiEtwggBkTq7lTsNoZnt9lJDo WqITX6i/OtjPfOwGYh+vVIaxoUkSnsG9/NZs7kDq+7i9JCvKoLA4OAI0hxvnPQTBG8uN gwkReOMinvG5Cc8htFZUfPqhQnER4TOmJcxQB4VoQRweldzM6d007LrI5oKULofm8+9Z OpTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RUQiBFDe; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-161525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ds12-20020a170907724c00b00a58f9983f37si865640ejc.22.2024.04.28.10.26.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 10:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RUQiBFDe; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-161525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 86AFA1F21019 for ; Sun, 28 Apr 2024 17:26:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAE131EB45; Sun, 28 Apr 2024 17:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="RUQiBFDe" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37F7031A81; Sun, 28 Apr 2024 17:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714325201; cv=none; b=ArGAAhK+u/W4fvThMqGiVdAxdRccKhCQl529PiTK7Qj0RghyvEt9pKcs27xUnxVZL65hlZqmmUz/gu5546ZNiXf45M2IwwTTmJ9ym/IsQDQvkdOjuC6W4ixTLa5oIGTjvJXxNNHMYie6gtFky2UJir7iKBguGUO3MOsVuIIVINc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714325201; c=relaxed/simple; bh=JEvW1NTvAodacPcdsV+8rSNHzXnu7DiMn8JDRUV0KUs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CYHanlpgp/sVhseRfxbQ5LP0frRuw4BfVqh6q6KnFuONmYR3eAafItZTwWqOKcixxvPDGCKM+FcskmtbRkpC7LqKGwe+LRKqWvSL1aWSyns+kQbPdOT9YgbcyF2N+jdr46XqsedANajZqG46xCXOVk1Xsd9xxdvWhe4PPBDuQi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=RUQiBFDe; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 7CF0B40E0187; Sun, 28 Apr 2024 17:26:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DS8HxuSXsenB; Sun, 28 Apr 2024 17:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714325191; bh=AF8W5OpNeob6gkJBdYGpZUOpvF721UDovoNC7CvPOHk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RUQiBFDe6dDNPHrCSly4pEgY8TtrM8DbCwhUr+mxNl3Lm8ocQxCYt9/mYcR5YHQx2 uvweoaTlWfeD3iIEAGsvWR2pBXOfQczb237pnxPwBSHT/PkDiQUxSvbHgdKEoIa/wN q3k3VxIhmUboThxtYAcJCh9gBqStlMXe/EdEX5THho6000MBHxZhGBt5nJu8KNFAC1 UY+VEWkQeMVJBvujL8td3illvcSw81wjz+5DUM/YgtnzVLUT6Usrbd+ljDGCY3Kvi1 QBx/KCEFBHMsBGVUM36n9UbNV9/ToBMGVMvw977DDG/Ld+ZMP4uqATXfVv3Oo0VzwT IYmsFSkyMgqFVcg2xgPYM7lx6+2FD+Ia7RARnO/uqb+jlr75G904vEHbY23Y68AG+o KdCtX3Pb74t+ofbOFnPuLLdNss/oYGrDuDZyNGqd5EaXz4zMWRLThSnhxMHVdkZzvE ZYuPSB6VnJteiNT4QE2RtrMmsgDVFtaatl2Bxv9+Ir9wTbg5C2i+uwLkOzZdEH5oFJ 5fvE/YWQ1BMsRycDcbKcBFhhd9j7VobrUTkvEX551lrDD+q4k4aa820sX2I6AvuT1K Dab7a/zyCk+Oh5NJIPuAdehS3vflkdDSg7Q0OWkuklZ1LFSxOrPEMeuCPuD2mdTo0W azDtrM/cYn0ny3rwBRhZb0k8= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 28CB040E0205; Sun, 28 Apr 2024 17:26:04 +0000 (UTC) Date: Sun, 28 Apr 2024 19:25:57 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Dave Hansen , Tao Liu , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org Subject: Re: [PATCHv10 06/18] x86/mm: Make x86_platform.guest.enc_status_change_*() return errno Message-ID: <20240428172557.GLZi6GpTaSBj-DphCL@fat_crate.local> References: <20240409113010.465412-1-kirill.shutemov@linux.intel.com> <20240409113010.465412-7-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240409113010.465412-7-kirill.shutemov@linux.intel.com> On Tue, Apr 09, 2024 at 02:29:58PM +0300, Kirill A. Shutemov wrote: > TDX is going to have more than one reason to fail > enc_status_change_prepare(). > > Change the callback to return errno instead of assuming -EIO; > enc_status_change_finish() changed too to keep the interface symmetric. "Change enc_status_change_finish() too... " "Describe your changes in imperative mood, e.g. "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour." You should know this by now... > Signed-off-by: Kirill A. Shutemov > Reviewed-by: Dave Hansen > Reviewed-by: Kai Huang > Tested-by: Tao Liu > --- > arch/x86/coco/tdx/tdx.c | 20 +++++++++++--------- > arch/x86/hyperv/ivm.c | 22 ++++++++++------------ > arch/x86/include/asm/x86_init.h | 4 ++-- > arch/x86/kernel/x86_init.c | 4 ++-- > arch/x86/mm/mem_encrypt_amd.c | 8 ++++---- > arch/x86/mm/pat/set_memory.c | 8 +++++--- > 6 files changed, 34 insertions(+), 32 deletions(-) Another thing you should long know by now: get_maintainer.pl. You do know that when you send a patch which touches multiple different "places", you run it through get_maintainer.pl to get some hints as to who to CC, right? Because you're touching HyperV code and yet none of the HyperV folks are CCed. Do I need to give you the spiel I give to kernel newbies? :) Lemme Cc them for you now. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette