kvm: x86: Prevent sign extension of DR7 in guest debugging mode
commit95c077c91900c1420cd4f0be996ffeea6fb6cec8
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Dec 2010 14:58:23 +0000 (27 15:58 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 21 Jan 2011 16:05:22 +0000 (21 14:05 -0200)
tree8e10e4964371a3b510cc0f10487327d47dcd8fce
parent3980e3024b2d1677a9910de5e35d22d5d8392522
kvm: x86: Prevent sign extension of DR7 in guest debugging mode

This unbreaks guest debugging when the 4th hardware breakpoint used for
guest debugging is a watchpoint of 4 or 8 byte lenght. The 31st bit of
DR7 is set in that case and used to cause a sign extension to the high
word which was breaking the guest state (vm entry failure).

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