lkml.org 
[lkml]   [2008]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/39] KVM: VMX: Change segment dpl at reset to 3
    Date
    From: Avi Kivity <avi@qumranet.com>

    This is more emulation friendly, if not 100% correct.

    Signed-off-by: Avi Kivity <avi@qumranet.com>
    ---
    arch/x86/kvm/vmx.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
    index 6aa305a..71e57ae 100644
    --- a/arch/x86/kvm/vmx.c
    +++ b/arch/x86/kvm/vmx.c
    @@ -1991,7 +1991,7 @@ static void seg_setup(int seg)
    vmcs_write16(sf->selector, 0);
    vmcs_writel(sf->base, 0);
    vmcs_write32(sf->limit, 0xffff);
    - vmcs_write32(sf->ar_bytes, 0x93);
    + vmcs_write32(sf->ar_bytes, 0xf3);
    }

    static int alloc_apic_access_page(struct kvm *kvm)
    --
    1.6.0.1


    \
     
     \ /
      Last update: 2008-09-25 14:05    [W:0.021 / U:30.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site