]> err.no Git - linux-2.6/commitdiff
KVM: VMX: Trivial vmcs_write64() code simplification
authorAvi Kivity <avi@qumranet.com>
Mon, 12 May 2008 16:25:43 +0000 (19:25 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:40:50 +0000 (12:40 +0300)
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c

index 8c951d3eab3090a7526b4f1c756f6d51ddabb538..fff8e23433d6b710a3ec16c4287d2f2faa9ab22f 100644 (file)
@@ -431,10 +431,8 @@ static void vmcs_write32(unsigned long field, u32 value)
 
 static void vmcs_write64(unsigned long field, u64 value)
 {
-#ifdef CONFIG_X86_64
-       vmcs_writel(field, value);
-#else
        vmcs_writel(field, value);
+#ifndef CONFIG_X86_64
        asm volatile ("");
        vmcs_writel(field+1, value >> 32);
 #endif