From: Avi Kivity Date: Mon, 12 May 2008 16:25:43 +0000 (+0300) Subject: KVM: VMX: Trivial vmcs_write64() code simplification X-Git-Tag: v2.6.27-rc1~968^2~58 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c;p=linux-2.6-omap-h63xx.git KVM: VMX: Trivial vmcs_write64() code simplification Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 8c951d3eab3..fff8e23433d 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