From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] KVM: VMX: expose the host's ARCH_CAPABILITIES MSR to userspace Date: Wed, 7 Mar 2018 16:10:11 +0100 Message-ID: <37a89c09-e933-9256-1b7a-3a9df846a672@redhat.com> References: <1519433546-33879-1-git-send-email-pbonzini@redhat.com> <20180226221300.GK22024@char.us.oracle.com> <20180301213205.GB29001@flask> <20180302214212.GB13606@flask> <9cad32c8-fdb6-95db-2cd3-a0e3297b1811@redhat.com> <20180307145628.GA12299@flask> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, David Woodhouse , KarimAllah Ahmed To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: In-Reply-To: <20180307145628.GA12299@flask> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/03/2018 15:56, Radim Krčmář wrote: > The MSR_F10H_DECFG default is questionable -- MSR_F10H_DECFG is an > architectural MSR, so we'd be changing the guest under the sight of > existing userspaces. > A potential security risk if they migrate the guest to a CPU that > doesn't serialize LFENCE. ARCH_CAPABILITIES are at least hidden by a > new CPUID bit. Good point. Perhaps we should add a KVM-specific CPUID bit for serializing LFENCE. > The feature MSR defaults are going to be a mess anyway: we have > MSR_IA32_UCODE_REV that is tightly coupled with CPUID. Not a good > candidate for passing by default and currently also has a default value. Yeah, ucode revision is out of question. Paolo