From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) (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 E5B9BA56 for ; Wed, 23 Feb 2022 12:13:05 +0000 (UTC) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id BBD201EC0513; Wed, 23 Feb 2022 13:12:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645618379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=gteGd11Jt7h+QAGrW830hXTEMn1cy4DB46HZyBPZsmo=; b=Fj2YcrRUqhEaoJoKCeqK5tOBDRAl7PkHCVFguJVuhK8mci0/33tkpaPLwI+5KMjh5sF9u8 JKSrOHJ9l5Y4peNMwgCDH/SP6++XxmA+5PVZCs8Fc2Espb1OUwO10WDQnaYBM9+VH7Ofb6 BC6hBDm3wNNHvWviWHGbEUUhWsD/nC8= Date: Wed, 23 Feb 2022 13:13:03 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Paolo Bonzini , Sean Christopherson , Andy Lutomirski , Dave Hansen , Peter Gonda , Peter Zijlstra , David Rientjes , Michael Roth , Andi Kleen Subject: Re: [PATCH] x86/mm/cpa: Generalize __set_memory_enc_pgtable() Message-ID: References: <20220222185740.26228-1-kirill.shutemov@linux.intel.com> <20220223043528.2093214-1-brijesh.singh@amd.com> <20220223115539.pqk7624xku2qwhlu@black.fi.intel.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220223115539.pqk7624xku2qwhlu@black.fi.intel.com> On Wed, Feb 23, 2022 at 02:55:39PM +0300, Kirill A. Shutemov wrote: > This operation can fail for TDX. We need to be able to return error code > here: > /* Notify hypervisor that we have successfully set/clr encryption attribute. */ > if (!ret) > ret = x86_platform.guest.enc_status_change_finish(addr, numpages, enc); bool to state failure/success or you need to return a specific value? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette