1 From: Avi Kivity <avi@redhat.com>
2 Date: Mon, 23 Mar 2009 22:13:44 +0200
3 Subject: KVM: VMX: Don't allow uninhibited access to EFER on i386
4 Git-commit: 16175a796d061833aacfbd9672235f2d2725df65
5 Patch-mainline: 2.6.30-rc1
8 vmx_set_msr() does not allow i386 guests to touch EFER, but they can still
9 do so through the default: label in the switch. If they set EFER_LME, they
12 Fix by having EFER access through the normal channel (which will check for
13 EFER_LME) even on i386.
15 Reported-and-tested-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
17 Signed-off-by: Avi Kivity <avi@redhat.com>
18 Acked-by: Jeff Mahoney <jeffm@suse.com>
21 arch/x86/kvm/vmx.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 --- a/arch/x86/kvm/vmx.c
25 +++ b/arch/x86/kvm/vmx.c
26 @@ -898,11 +898,11 @@ static int vmx_set_msr(struct kvm_vcpu *
32 vmx_load_host_state(vmx);
33 ret = kvm_set_msr_common(vcpu, msr_index, data);
37 vmcs_writel(GUEST_FS_BASE, data);