OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14ae51b
)
KVM: VMX: Trivial vmcs_write64() code simplification
author
Avi Kivity
<avi@qumranet.com>
Mon, 12 May 2008 16:25:43 +0000
(19:25 +0300)
committer
Avi 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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index
8c951d3
..
fff8e23
100644
(file)
--- 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