aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 8c951d3eab30..fff8e23433d6 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -431,10 +431,8 @@ static void vmcs_write32(unsigned long field, u32 value)
431 431
432static void vmcs_write64(unsigned long field, u64 value) 432static void vmcs_write64(unsigned long field, u64 value)
433{ 433{
434#ifdef CONFIG_X86_64
435 vmcs_writel(field, value);
436#else
437 vmcs_writel(field, value); 434 vmcs_writel(field, value);
435#ifndef CONFIG_X86_64
438 asm volatile (""); 436 asm volatile ("");
439 vmcs_writel(field+1, value >> 32); 437 vmcs_writel(field+1, value >> 32);
440#endif 438#endif