aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/vmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index a94eb205cecd..3bf36508c84b 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -544,6 +544,7 @@ static void vmx_inject_gp(struct kvm_vcpu *vcpu, unsigned error_code)
544/* 544/*
545 * Swap MSR entry in host/guest MSR entry array. 545 * Swap MSR entry in host/guest MSR entry array.
546 */ 546 */
547#ifdef CONFIG_X86_64
547static void move_msr_up(struct vcpu_vmx *vmx, int from, int to) 548static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
548{ 549{
549 struct kvm_msr_entry tmp; 550 struct kvm_msr_entry tmp;
@@ -555,6 +556,7 @@ static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
555 vmx->host_msrs[to] = vmx->host_msrs[from]; 556 vmx->host_msrs[to] = vmx->host_msrs[from];
556 vmx->host_msrs[from] = tmp; 557 vmx->host_msrs[from] = tmp;
557} 558}
559#endif
558 560
559/* 561/*
560 * Set up the vmcs to automatically save and restore system 562 * Set up the vmcs to automatically save and restore system