aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-04-08 18:19:35 +0300
committerAvi Kivity <avi@redhat.com>2010-04-20 12:59:31 +0300
commit78ac8b47c566dd6177a3b9b291b756ccb70670b7 (patch)
tree46feb3a7845c7e4a3d0c621d17b3f2593e7d756f /virt
parentKVM: allow bit 10 to be cleared in MSR_IA32_MC4_CTL (diff)
downloadlinux-dev-78ac8b47c566dd6177a3b9b291b756ccb70670b7.tar.xz
linux-dev-78ac8b47c566dd6177a3b9b291b756ccb70670b7.zip
KVM: VMX: Save/restore rflags.vm correctly in real mode
Currently we set eflags.vm unconditionally when entering real mode emulation through virtual-8086 mode, and clear it unconditionally when we enter protected mode. The means that the following sequence KVM_SET_REGS (rflags.vm=1) KVM_SET_SREGS (cr0.pe=1) Ends up with rflags.vm clear due to KVM_SET_SREGS triggering enter_pmode(). Fix by shadowing rflags.vm (and rflags.iopl) correctly while in real mode: reads and writes to those bits access a shadow register instead of the actual register. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions