]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: Avoid corrupting tr in real mode
authorAvi Kivity <avi@qumranet.com>
Mon, 7 May 2007 07:55:37 +0000 (10:55 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:41 +0000 (12:05 +0300)
commit653e3108b7d6097d25089d25ab4e99bc58b28962
treeff92977a15ddf12807d3a9f32eb6f5446fb59a79
parenteff708bc2bacd4f22cf844871341bef341bd096a
KVM: Avoid corrupting tr in real mode

The real mode tr needs to be set to a specific tss so that I/O
instructions can function.  Divert the new tr values to the real
mode save area from where they will be restored on transition to
protected mode.

This fixes some crashes on reboot when the bios accesses an I/O
instruction.

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