From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C3CBC433F5 for ; Wed, 23 Feb 2022 12:13:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240126AbiBWMNd (ORCPT ); Wed, 23 Feb 2022 07:13:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234296AbiBWMNd (ORCPT ); Wed, 23 Feb 2022 07:13:33 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DF29AD86; Wed, 23 Feb 2022 04:13:05 -0800 (PST) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220223115539.pqk7624xku2qwhlu@black.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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