summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-05-12 16:25:43 (GMT)
committerAvi Kivity <avi@qumranet.com>2008-07-20 09:40:50 (GMT)
commit7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c (patch)
treedda2bc2ec7def811e71c1d7f92ad28131a7a4c2a /arch/x86/kvm/vmx.c
parent14ae51b6c068ef7ab52dc2d53fe226e6189f2ab2 (diff)
downloadlinux-7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c.tar.xz
KVM: VMX: Trivial vmcs_write64() code simplification
Signed-off-by: Avi Kivity <avi@qumranet.com>
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 8c951d3..fff8e23 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)
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