KVM: Modify guest segments after potentially switching modes
authorAvi Kivity <avi@qumranet.com>
Wed, 21 Mar 2007 11:44:58 +0000 (13:44 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:26 +0000 (10:52 +0300)
The SET_SREGS ioctl modifies both cr0.pe (real mode/protected mode) and
guest segment registers.  Since segment handling is modified by the mode on
Intel procesors, update the segment registers after the mode switch has taken
place.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c

Simple merge