From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fIGwi-000125-OP for speck@linutronix.de; Mon, 14 May 2018 19:07:39 +0200 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A1096AC3A for ; Mon, 14 May 2018 17:07:29 +0000 (UTC) Date: Mon, 14 May 2018 19:07:17 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [patch 07/15] Hidden 7 Message-ID: <20180514170717.GK18407@pd.tnic> References: <20180513140048.543641807@linutronix.de> <20180513140538.798644579@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180513140538.798644579@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Sun, May 13, 2018 at 04:00:55PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch 07/15] x86/bugs, KVM: Extend speculation control for VIRT_S= PEC_CTRL > From: Thomas Gleixner >=20 > AMD is proposing a VIRT_SPEC_CTRL MSR to handle the Speculative Store > Bypass Disable via MSR_AMD64_LS_CFG so that guests do not have to care > about the bit position of the SSBD bit and thus facilitate migration. > Also, the sibling coordination on Family 17H CPUs can only be done on > the host. >=20 > Extend x86_spec_ctrl_set_guest() and x86_spec_ctrl_restore_host() with an > extra argument for the VIRT_SPEC_CTRL MSR. >=20 > Hand in 0 from VMX and in SVM add a new virt_spec_ctrl member to the CPU > data structure which is going to be used in later patches for the actual > implementation. >=20 > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/spec-ctrl.h | 9 ++++++--- > arch/x86/kernel/cpu/bugs.c | 20 ++++++++++++++++++-- > arch/x86/kvm/svm.c | 11 +++++++++-- > arch/x86/kvm/vmx.c | 4 ++-- > 4 files changed, 35 insertions(+), 9 deletions(-) Reviewed-by: Borislav Petkov --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20