aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-05-12 19:25:43 +0300
committerAvi Kivity <avi@qumranet.com>2008-07-20 12:40:50 +0300
commit7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c (patch)
treedda2bc2ec7def811e71c1d7f92ad28131a7a4c2a /arch/x86
parent14ae51b6c068ef7ab52dc2d53fe226e6189f2ab2 (diff)
downloadkernel_samsung_espresso10-7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c.zip
kernel_samsung_espresso10-7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c.tar.gz
kernel_samsung_espresso10-7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c.tar.bz2
KVM: VMX: Trivial vmcs_write64() code simplification
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86')
-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