• Paolo Bonzini's avatar
    kvm: selftests: create a GDT and TSS · 2305339e
    Paolo Bonzini authored
    The GDT and the TSS base were left to zero, and this has interesting effects
    when the TSS descriptor is later read to set up a VMCS's TR_BASE.  Basically
    it worked by chance, and this patch fixes it by setting up all the protected
    mode data structures properly.
    
    Because the GDT and TSS addresses are virtual, the page tables now always
    exist at the time of vcpu setup.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    2305339e
x86.c 19.1 KB