[PATCH 12/50] KVM: VMX: Trivial vmcs_write64() code simplification
- From: Avi Kivity <avi@xxxxxxxxxxxx>
- Date: Thu, 26 Jun 2008 15:27:54 +0300
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
---
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 158a7d8..1b286fa 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
--
1.5.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 00/50] KVM patches review for the 2.6.27 merge window
- From: Avi Kivity
- [PATCH 00/50] KVM patches review for the 2.6.27 merge window
- Prev by Date: [PATCH 07/50] KVM: SVM: add missing kvmtrace markers
- Next by Date: [PATCH 15/50] KVM: VMX: Add list of potentially locally cached vcpus
- Previous by thread: [PATCH 07/50] KVM: SVM: add missing kvmtrace markers
- Next by thread: [PATCH 15/50] KVM: VMX: Add list of potentially locally cached vcpus
- Index(es):
Relevant Pages
|