Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1514731pxy; Mon, 2 Aug 2021 03:43:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHtYeTaOg2cT8s6ax8IptHicBaKmmS8doI6uHbNJd+Aj6AjJa2JqtEpEj5y+As17l3AuWV X-Received: by 2002:a02:ccec:: with SMTP id l12mr14267019jaq.61.1627901012448; Mon, 02 Aug 2021 03:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627901012; cv=none; d=google.com; s=arc-20160816; b=EQ3YVR5OwVYfXN2g6GoNtj297n0kA3129UhxVuxIvulTDgr5HagwTI69eMkQKYAnjZ BavLTvJ3QpDrZ0ukjqI1vOOYTGJZIOA5/lR6gWlJUg7xMoXItt7+5vmPNHx5e3aaWIW8 HdZu03movD+XXFH3Q0QeK9ALc4cwFVym9p8RRaI4nQHLgyOU7hOS/zJq/4KOd0NYm23U 4Wp5Do5xVKmT28dEScvGz9CSz3yExa9R6xZb/pIrNLOhHK7M3wzRSCUxKF5Y62YR6nqk ml1uO0xhZQKCDfMuaPw3sxGWqVSJfThP9vHV4n7KgZZ7if8cyhDiovgOTT2aAXk8CF/k rTEw== 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; bh=RKnOJVlGX2m+axtc7TehNtKK7DDlPJNv1fgNbBd0S2I=; b=WdJLJUKezFQh2XE5d+dmaZpvQg20uFjaQzZiS5uJv6OSx3PvW+BadWGtoOn2M+0Piw HFMMMzrwfICqmFvz5UvdvDrNpHOJ0lD4xhhDq5HZYvLexo+ndIBLi+e1K9G71eFr0cuH wmrkA+ECXy4cWbk3LKRsake01HjwJPXtJADM06Hdk/BgDSEbK+lmjUHduVvao8Fm5Fj5 4XC70mrCP788Abu1UOWo8CcrsOWMtvNFKr3v9x7sKrc1XwOPJVRXRTXmRbCRHfzkB/pC U+WuPuPzS+KfhQpLlQkw6Gpz4rRa3VfR0VO2RvB08tbYP+HgjcIPXeoeg16mzED1/o3q uJwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si11616739ili.154.2021.08.02.03.43.21; Mon, 02 Aug 2021 03:43:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbhHBKmb (ORCPT + 99 others); Mon, 2 Aug 2021 06:42:31 -0400 Received: from 8bytes.org ([81.169.241.247]:52490 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbhHBKma (ORCPT ); Mon, 2 Aug 2021 06:42:30 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 06300379; Mon, 2 Aug 2021 12:42:18 +0200 (CEST) Date: Mon, 2 Aug 2021 12:42:17 +0200 From: Joerg Roedel To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-graphics-maintainer@vmware.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, Borislav Petkov , Brijesh Singh , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ard Biesheuvel Subject: Re: [PATCH 05/11] x86/sev: Replace occurrences of sev_active() with prot_guest_has() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 05:26:08PM -0500, Tom Lendacky wrote: > Replace occurrences of sev_active() with the more generic prot_guest_has() > using PATTR_GUEST_MEM_ENCRYPT, except for in arch/x86/mm/mem_encrypt*.c > where PATTR_SEV will be used. If future support is added for other memory > encryption technologies, the use of PATTR_GUEST_MEM_ENCRYPT can be > updated, as required, to use PATTR_SEV. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: Andy Lutomirski > Cc: Peter Zijlstra > Cc: Ard Biesheuvel > Signed-off-by: Tom Lendacky Reviewed-by: Joerg Roedel