]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: VMX: Fix build on i386 due to move_msr_up()
authorAvi Kivity <avi@redhat.com>
Thu, 29 Oct 2009 11:48:39 +0000 (13:48 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 29 Oct 2009 11:48:39 +0000 (13:48 +0200)
Needed for EFER.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c

index 99c34f167f5dc26505e9942dafc258958692534f..baa46c7deaa767afe22d4fd813c8898912fdc1aa 100644 (file)
@@ -880,7 +880,6 @@ static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr,
 /*
  * Swap MSR entry in host/guest MSR entry array.
  */
-#ifdef CONFIG_X86_64
 static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
 {
        struct shared_msr_entry tmp;
@@ -889,7 +888,6 @@ static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
        vmx->guest_msrs[to] = vmx->guest_msrs[from];
        vmx->guest_msrs[from] = tmp;
 }
-#endif
 
 /*
  * Set up the vmcs to automatically save and restore system