Skip to content
  • Paolo Bonzini's avatar
    x86: load 64-bit segments into the segment registers · 402d4596
    Paolo Bonzini authored
    
    
    kvm-unit-tests was keeping DS/ES/FS/GS loaded with the segment descriptors
    provided by the multiboot boot loader (which are 32-bit), and instead loading
    SS with 0.  The vmx.flat test failed because KVM did not like doing writes
    into such an SS.
    
    Load again the segment registers after entering 64-bit mode, for both
    the BSP and the APs.
    
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    402d4596