Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp326189pxj; Wed, 16 Jun 2021 03:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1zqqCSQ21gwGJdeLN//A9/mnjQ91KA3SxSMiVs7Q88UxSEdY1waSJbM8IvJd2/2dhkURg X-Received: by 2002:a05:6402:4255:: with SMTP id g21mr3231816edb.103.1623838990629; Wed, 16 Jun 2021 03:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623838990; cv=none; d=google.com; s=arc-20160816; b=qDYMkPYGmhisnU6GouAMpgCJEWypSaRA3aZ9Tz/L0mTtv1CnEQVRvFswPrZ+vclfZG 0jfLl3ipW8t/KSAA0pdUDrQJuFT72za33RmtAFB/S5Kkfu6JK5us+mqddSSqQ9Ha028D GJLzsZweSPrpKOnqFWamtlvh8jPWIrU8x1eB/qlSY0+5a1J/i2ovBShc8g35oGQN1T57 3SIk+d9wS5v+JtNFTuWmVulMllWdC0vuveOsI2R15p5++Tl7SA2KhpbT3F0gyr5qblcz oj5oow2QfP77iLNV56IWFAV55cAKSuLNTnaPJO4DQWx8P0dmfXd/DgjQdE5J5V4HAz6p NJuw== 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=wbasH9F+/8usQ05k7ehXA0ZPHCtfUxj/1yk5NUHjI/Y=; b=NvBLU0HWT6xawQrXDTyoVUX4winLdXob0uu0YHY63VKYf8qxDVF8TjDD3e+q6gQi7A mZs2hVKwmhdHJ13wBMTl0XqEbwseiWMW/hkgSwH1Y3+CAzX7f41Sf+kr4R14KlSA5f2H 9V13wamjTWvWYyGBIU0phKHaM48H+8X3NKgBIYTWgwPH6zw8q7EEMZH/uXh8ZwUwYHh6 fBio8lBHZkH938xqayzzk+oBHpM2JbraGSqWnbVfVlxYkyfGNULzS3CFgDnpppc3f/1l iHih9JH6FrN1kR6COpSAqlYykxnTuBJScX+I8c1aG2tOZiAdIReH8fCUYfRHQtvtic76 6tmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=XGd52VP2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 g25si1743361eds.466.2021.06.16.03.22.32; Wed, 16 Jun 2021 03:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=XGd52VP2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S231892AbhFPKXs (ORCPT + 99 others); Wed, 16 Jun 2021 06:23:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbhFPKXs (ORCPT ); Wed, 16 Jun 2021 06:23:48 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 434F7C061574; Wed, 16 Jun 2021 03:21:42 -0700 (PDT) Received: from zn.tnic (p200300ec2f0c2b0089cf8396f15d74fc.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:2b00:89cf:8396:f15d:74fc]) (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 541F71EC011B; Wed, 16 Jun 2021 12:21:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1623838899; 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=wbasH9F+/8usQ05k7ehXA0ZPHCtfUxj/1yk5NUHjI/Y=; b=XGd52VP22lozejsS94pwDyjBrCcuuDxnBEZ4zJHZ8Lgd4GKdlqlhWY7pIhVdmFvqwrlHaO J+GU5sqe5iFyy+xMGTwn4BqP23Wi4XEValrRrCo3dAjd4UGCGNPtOsO8qGiM1w81mNG++0 Z8fkTJ6wQ3bM9iurbY9vbHFPzAYwvTg= Date: Wed, 16 Jun 2021 12:21:29 +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, linux-crypto@vger.kernel.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 , tony.luck@intel.com, npmccallum@redhat.com Subject: Re: [PATCH Part1 RFC v3 08/22] x86/compressed: Add helper for validating pages in the decompression stage Message-ID: References: <20210602140416.23573-1-brijesh.singh@amd.com> <20210602140416.23573-9-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210602140416.23573-9-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jun 02, 2021 at 09:04:02AM -0500, Brijesh Singh wrote: > diff --git a/arch/x86/include/asm/sev-common.h b/arch/x86/include/asm/sev-common.h > index 3ebf00772f26..1424b8ffde0b 100644 > --- a/arch/x86/include/asm/sev-common.h > +++ b/arch/x86/include/asm/sev-common.h > @@ -56,6 +56,25 @@ > #define GHCB_MSR_HV_FT_RESP_VAL(v) \ > (((unsigned long)((v) & GHCB_MSR_HV_FT_MASK) >> GHCB_MSR_HV_FT_POS)) > > +#define GHCB_HV_FT_SNP BIT_ULL(0) That define is already added by x86/sev: Check SEV-SNP features support earlier. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette