diff options
author | Avi Kivity <avi@qumranet.com> | 2008-05-12 12:25:43 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-20 05:40:50 -0400 |
commit | 7682f2d0dd3ff5bd2756eac018a5b4e7e30ef16c (patch) | |
tree | dda2bc2ec7def811e71c1d7f92ad28131a7a4c2a | |
parent | 14ae51b6c068ef7ab52dc2d53fe226e6189f2ab2 (diff) |
KVM: VMX: Trivial vmcs_write64() code simplification
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
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 | ||
432 | static void vmcs_write64(unsigned long field, u64 value) | 432 | static 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 |