Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1543748pxb; Fri, 27 Aug 2021 11:14:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFTJL55rSiWQfaQYff0lPgDw0l8CskmPTCI3R+vNAJ3G8d7f7rMOWwmVfCLBffy4rDQQzP X-Received: by 2002:a17:906:d541:: with SMTP id cr1mr11145231ejc.81.1630088077130; Fri, 27 Aug 2021 11:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630088077; cv=none; d=google.com; s=arc-20160816; b=vhES2IBcT+48Ivkv4l8M7RVP/18iV54YibrdMULdbMK9X8ge9Vp1zuWVMjbR+f42HB Ic8AKsNAR1tXhFboWzHv9heiHvt/8JeshcYRKw9lyHcR9oHisU9Fggk+eic95KJp5uKS VKExNxsdx835nVVaYHw/t7NBPVOtOLCVomwzDme3VPjU7GhyjHNvq/UTx4sF0xBvU6sd w/JvcZgPQzBetYQY6g7mjcK/z4aFAVGSOa7JA2Up4z12ReFEAETI8qbm1C3DEwditcbk 977Z4RMLnCfRhaywhGD2kF+4ieVrkd+qCAcV4zvvOCoIhn/hrBZp7/gWK9dBOQVp/AeE XKuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hlz/5VHRXOfPhVFm7WimoCOj8La+rdAhYJDH4ZFMWbQ=; b=N5BTvNv2yX63FPmGsscKtxi/JEE7uYbSPvhJeFeuCA03vJWxcoHije+dT1ZqjGad4l F2GFmDWes6tlXnc2O8BFdcNdty6dIUo+q7GTcdoDnidT8bAku+1kwiQthUR0dxeggJnp pHujwGmCWsdX48joeEUti0QKVgpK7EnX3eT48y4wGmOJiZXw9H8pRNlgnQYvK3DN2vR5 HvLR5tVutJPBDRPDVGjDALf+6KJ0XrL5+q2hhcsIGcBawVOLjz47iTot3d9IY5JpbOqQ ApPW+X7XAW/PBlHcmIYpSU5voEuNSDSV60/nSNqcvaHMEivdPUacEJDe0E5fWZADjPq4 heRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NZddcriK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si8630168ejy.596.2021.08.27.11.14.13; Fri, 27 Aug 2021 11:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NZddcriK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbhH0SNg (ORCPT + 99 others); Fri, 27 Aug 2021 14:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbhH0SNf (ORCPT ); Fri, 27 Aug 2021 14:13:35 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86BB6C061757; Fri, 27 Aug 2021 11:12:46 -0700 (PDT) Received: from zn.tnic (p200300ec2f111700cf40790d4c46ba75.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:1700:cf40:790d:4c46:ba75]) (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 027621EC0464; Fri, 27 Aug 2021 20:12:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1630087961; 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=Hlz/5VHRXOfPhVFm7WimoCOj8La+rdAhYJDH4ZFMWbQ=; b=NZddcriKO1PUvMjPs2tFF605PavVOcGKBCU1BA3MnkZVTgbB73hIPgsXYXdschIR7S1+Lp kdQm5Rj6pCwGGqj0B7lkK3xZ8+th3EqnXfpKqYdxuO+fi1SoVcKXs4VB9adfV8G52RawXN N51VO5jyxZpg3mFRIWfHvwPWB/6fKwY= Date: Fri, 27 Aug 2021 20:13:17 +0200 From: Borislav Petkov To: Brijesh Singh Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part1 v5 33/38] x86/sev: Provide support for SNP guest request NAEs Message-ID: References: <20210820151933.22401-1-brijesh.singh@amd.com> <20210820151933.22401-34-brijesh.singh@amd.com> <4acd17bc-bdb0-c4cc-97af-8842f8836c8e@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4acd17bc-bdb0-c4cc-97af-8842f8836c8e@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 27, 2021 at 01:07:59PM -0500, Brijesh Singh wrote: > Okay, works for me. The main reason why I choose the enum was to not > expose the GHCB exit code to the driver Why does that matter? > but I guess that attestation driver need to know which VMGEXIT need to > be called, so, its okay to have it pass the VMGEXIT number instead of > enum. Well, they're in an uapi header - can't be more public than that. :-) > So far most of the changes were in x86 specific files. However, the > attestation service is available through a driver to the userspace. The > driver needs to use the VMGEXIT routines provides by the x86 core. I > created the said header file so that driver does not need to include > etc and will compile for !x86. Lemme ask my question again: Is SNP available on something which is !x86, all of a sudden? Why would you want to compile that driver on anything but x86? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette