]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Allow single-stepping when uninterruptible
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 15 Dec 2008 12:52:10 +0000 (13:52 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:49 +0000 (11:02 +0200)
commite898cb851b4a2fb5495ce5e136e58d2961834c8c
tree172644d0cc14e359a8e45a24d247b5180914b968
parent688003036d02a27ece6ea4a185f3f8d72c4c8640
KVM: VMX: Allow single-stepping when uninterruptible

When single-stepping over STI and MOV SS, we must clear the
corresponding interruptibility bits in the guest state. Otherwise
vmentry fails as it then expects bit 14 (BS) in pending debug exceptions
being set, but that's not correct for the guest debugging case.

Note that clearing those bits is safe as we check for interruptibility
based on the original state and do not inject interrupts or NMIs if
guest interruptibility was blocked.

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