• Avi Kivity's avatar
    KVM: Workaround vmx inability to virtualize the reset state · 8cb5b033
    Avi Kivity authored
    The reset state has cs.selector == 0xf000 and cs.base == 0xffff0000,
    which aren't compatible with vm86 mode, which is used for real mode
    virtualization.
    
    When we create a vcpu, we set cs.base to 0xf0000, but if we get there by
    way of a reset, the values are inconsistent and vmx refuses to enter
    guest mode.
    
    Workaround by detecting the state and munging it appropriately.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    8cb5b033
vmx.c 52.6 KB