lkml.org 
[lkml]   [2008]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/50] KVM: VMX: Trivial vmcs_write64() code simplification
    Date
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    ---
    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


    \
     
     \ /
      Last update: 2008-06-26 14:35    [W:0.020 / U:32.660 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site