Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1440280pxb; Tue, 17 Aug 2021 11:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl/6s9m9vJtBgCJdgW0aRwKQk0zDxE286i6iL44ERPi3sgYDup6n4lZ2ZO9CyiQc4wZmby X-Received: by 2002:a17:906:17c4:: with SMTP id u4mr5566583eje.481.1629225926571; Tue, 17 Aug 2021 11:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629225926; cv=none; d=google.com; s=arc-20160816; b=w3b2oKzcDHj27OMfBa1V+pCVeCw7LyuPeG8kAAmBT/NkSDyG+4c+VYF6S4aezuMMFm Uehj1gDxFtoItHFvdXKtRA4O7By6gZRtRr+M4tm/uZES32UB5GoIDkx3f3MA476eSrq0 fRW/3xT02HOQ3H73wnMqkcVsnnj4FKiug11U4z3X/hOPa/as7rOU6BOd13DV3S1P/+pQ OlVlLDS1AI9aAnlzrl2yIUKGascI4REBkwg6RBcUenTIiax9cfkuwsbK6nQigDof+1ua f+6BVDLPRmGx0IIZjMvrGUvpeW41TDo0qL6A7oASOHVjptH64Pv5hyDluspaFTa5efVB rUTw== 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=jwHmTRBxms0tT4WTh/1AEjKmHnFY2JEsZVwdmytONsI=; b=oPDRzZXNJYIjUh5K9jkZL8uhFxaqOTJaJUrOHE27ijdCpc1THgrTH9zMreV/GB5GfO HG/CbNEvGSTorhdqyImrJ1UIdHgqPxRMvExx1QoaxImTA761HPR+1kYruGTb/qNJXNsE EJFa2dyXgXO6NtopA81iVBbONMxnsZrJZKVViqZGKRlF+h+xxYLCpG05PACzZh2bBai4 oJ5QNqhJx204VM4q0OFgKZmg8le6tp6LtchbfZzn8F9FER7+/hJWI0TwfVsyviKBAC23 C3nHE1sEfMmpxcpQFczCR5qZ8IV0SRnahcMV3VDeK8thhtyC/9zQBdFfVbI0ISnLNmgg 96tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="KUP43T/b"; 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 x13si3302961eds.480.2021.08.17.11.45.03; Tue, 17 Aug 2021 11:45:26 -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="KUP43T/b"; 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 S233298AbhHQSm7 (ORCPT + 99 others); Tue, 17 Aug 2021 14:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbhHQSm6 (ORCPT ); Tue, 17 Aug 2021 14:42:58 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3351C061764; Tue, 17 Aug 2021 11:42:24 -0700 (PDT) Received: from zn.tnic (p200300ec2f1175006a73053df3c19379.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:7500:6a73:53d:f3c1:9379]) (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 67D751EC0559; Tue, 17 Aug 2021 20:42:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629225739; 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=jwHmTRBxms0tT4WTh/1AEjKmHnFY2JEsZVwdmytONsI=; b=KUP43T/bbaLdWz5U9wKbKVFP3nxo6dCpoeUMqYVESUmDVYPqF7FOKus0G3XWX3cM5OK90C Z1nlDzK6oSVm6BUH703vTAa0VXAopMrWpN5FYaeDCJW+3HCE3QNA5Iw/IIGv3elLZjmMRp 2mfXuzpSvQPweo6qtlAFOCuqNaxW0kk= Date: Tue, 17 Aug 2021 20:43:03 +0200 From: Borislav Petkov 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, Brijesh Singh , Joerg Roedel , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ard Biesheuvel , Joerg Roedel Subject: Re: [PATCH v2 06/12] x86/sev: Replace occurrences of sev_active() with prot_guest_has() Message-ID: References: <2b3a8fc4659f2e7617399cecdcca549e0fa1dcb7.1628873970.git.thomas.lendacky@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 17, 2021 at 10:26:18AM -0500, Tom Lendacky wrote: > >> /* > >> - * If SME is active we need to be sure that kexec pages are > >> - * not encrypted because when we boot to the new kernel the > >> + * If host memory encryption is active we need to be sure that kexec > >> + * pages are not encrypted because when we boot to the new kernel the > >> * pages won't be accessed encrypted (initially). > >> */ > > > > That hunk belongs logically into the previous patch which removes > > sme_active(). > > I was trying to keep the sev_active() changes separate... so even though > it's an SME thing, I kept it here. But I can move it to the previous > patch, it just might look strange. Oh I meant only the comment because it is a SME-related change. But not too important so whatever. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette