• Jan Kiszka's avatar
    KVM: SVM: Emulate nRIP feature when reinjecting INT3 · 66b7138f
    Jan Kiszka authored
    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: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    66b7138f
svm.c 79.9 KB