Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp223468pxf; Thu, 8 Apr 2021 01:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9t7SM2YtcitBDMpza85dIChjH5IAiEgqwCWxFYGDQ3Baw+H/nJ4oscccrrsV+ss2RTGqc X-Received: by 2002:a17:906:4fcd:: with SMTP id i13mr8804047ejw.341.1617869950524; Thu, 08 Apr 2021 01:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617869950; cv=none; d=google.com; s=arc-20160816; b=Q6JFddMIyw40eOxYcyFdElkXUqsBV8RcrU2fFHZ1vLXQUDIrxfafKOP+pDzqx9k1zI l4cSG3ugyA586Cwi/YJ56bjFbVgE+EjrbsZqQEg1W4SEayrOd0iKK8+giqXBiXj09Ybf q2wilVanSmfdduRf/Ks+yLVazCTD7l6MEYDd05jhUXDFzRHaZ7d5ivxpwIGgJoF31wWa SoLGM0N6lZ/x+sWw2SzbJ8ZYWuXPoD+o1ng2rao2cObnLJ0YBf9O2eWHhTyc7CP88Swz wkQZRR6/2ZpvBEk6Kj7NPTHbpq9fpNaZTTmD+141z9Hahir0GKSdpd78geSEwEjY/hSc wYtA== 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=hFlLhXCwCKYT4yY3v85LDEYvANk/g2ETWMLwyVoq7x8=; b=GT6r/Iup6s3uTcwed7syYuYphnCDlzkI0aTSUoYnkI8WKJnpVlPf6nJCDO7E/TZBCs BlPZAT6NThm3FAYdCjpsA1/GinaxYFWwCtQwzthZvQvaPW8q0D8L4gPeVOPPjtW9tcOA rUwW8e3IUoHpbhUMSYrkdU2MxT8U/xVBf03Ird5rZTVFcEQtkl3CpT1PvfI/7QQv18+D ce3WVQRcuTpoCxGPfH6cJ+UMxCoh8WnLbmckrbNiDlDJYJX1jUTo8tZkNLJ8eB1ku2eu AfjKm3DXkxhqzc0pksF5VDiGBh2PiMglDJNA6ptAbv8lA+ubv1UViT+8bCUxXBCU2Nj2 cdRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=L7EMzURM; 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 g16si21444747ejm.310.2021.04.08.01.18.46; Thu, 08 Apr 2021 01:19:10 -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=L7EMzURM; 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 S229623AbhDHIRw (ORCPT + 99 others); Thu, 8 Apr 2021 04:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhDHIRw (ORCPT ); Thu, 8 Apr 2021 04:17:52 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDBFC061760; Thu, 8 Apr 2021 01:17:41 -0700 (PDT) Received: from zn.tnic (p200300ec2f095000d1c5cef8b4104033.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:5000:d1c5:cef8:b410:4033]) (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 F17F71EC027D; Thu, 8 Apr 2021 10:17:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1617869860; 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=hFlLhXCwCKYT4yY3v85LDEYvANk/g2ETWMLwyVoq7x8=; b=L7EMzURMHopNG1JZ4WjphuwjMHQdEiMYD1AflIaSEWIieJC564aYKAzgqqPMy3r67ZzPe5 Uz/GHbkNazFEitPiP0BZEBb/tNiTvKsZK4O+STaH7NkDscBi/KlDXVZlsg5ah5YJhNg2f7 Q094Ghb+7vEdoW0zKDGeTToe1PFdeYc= Date: Thu, 8 Apr 2021 10:17:40 +0200 From: Borislav Petkov To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, ak@linux.intel.com, Thomas Gleixner , Ingo Molnar , Joerg Roedel , "H. Peter Anvin" , Tony Luck , Dave Hansen , "Peter Zijlstra (Intel)" , Paolo Bonzini , Tom Lendacky , David Rientjes , Sean Christopherson Subject: Re: [RFC Part1 PATCH 07/13] x86/compressed: register GHCB memory when SNP is active Message-ID: <20210408081740.GA10192@zn.tnic> References: <20210324164424.28124-1-brijesh.singh@amd.com> <20210324164424.28124-8-brijesh.singh@amd.com> <20210407115959.GC25319@zn.tnic> <2453bacb-dce3-a9c2-f506-7dae7796ab7e@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2453bacb-dce3-a9c2-f506-7dae7796ab7e@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 12:34:59PM -0500, Brijesh Singh wrote: > The feature is part of the GHCB version 2 and is enforced by the > hypervisor. I guess it can be extended for the ES. Since this feature > was not available in GHCB version 1 (base ES) so it should be presented > as an optional for the ES ? Yeah, it probably is not worth the effort. If an attacker controls the guest kernel, then it can re-register a new GHCB so it doesn't really matter. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette