]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Emulate nRIP feature when reinjecting INT3
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 23 Feb 2010 16:47:56 +0000 (17:47 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 10:00:43 +0000 (13:00 +0300)
commit397076fd8c2e1c50d02412d7d528e3afcad0f8b6
tree1dd5faf941e04ae911e0bc9e9f00869f6a0aebd2
parentaee799b546a92f5e62e7a24e2735fa26a253c7be
KVM: SVM: Emulate nRIP feature when reinjecting INT3

When in guest debugging mode, we have to reinject those #BP software
exceptions that are caused by guest-injected INT3. As older AMD
processors do not support the required nRIP VMCB field, try to emulate
it by moving RIP past the instruction on exception injection. Fix it up
again in case the injection failed and we were able to catch this. This
does not work for unintercepted faults, but it is better than doing
nothing.

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