]> git.proxmox.com Git - mirror_qemu.git/commit - target-i386/kvm.c
kvm: x86: Fix DPL write back of segment registers
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Dec 2010 14:56:44 +0000 (15:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 21 Jan 2011 16:05:22 +0000 (14:05 -0200)
commitacaa75507b34f7b588924a09c76c6848d209e08c
tree84471d3b336a0b42f58b39aa05a0ca2e6ecdbb60
parent7cc2cc3e2608b182f1e0fc7ecae6e3b1fa4f46e0
kvm: x86: Fix DPL write back of segment registers

The DPL is stored in the flags and not in the selector. In fact, the RPL
may differ from the DPL at some point in time, and so we were corrupting
the guest state so far.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
target-i386/kvm.c