Patchworkβ KVM: VMX: Build move_msr_up also for x86-32

login
register
about
Submitter Jan Kiszka
Date 2009-10-29 17:02:36
Message ID <4AE9CAAC.3070905@siemens.com>
Download mbox | patch
Permalink /patch/56496/
State New
Headers show

Comments

Jan Kiszka - 2009-10-29 17:02:36
It's used now on 32-bit as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 arch/x86/kvm/vmx.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Avi Kivity - 2009-10-29 17:15:01
On 10/29/2009 07:02 PM, Jan Kiszka wrote:
> It's used now on 32-bit as well.
>
>    

Already have that queued, thanks.

Patch

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 6b818c0..3ebb022 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -885,7 +885,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;
@@ -894,7 +893,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