KVM: SVM: handle singlestep exception when skipping emulated instructions
authorLadi Prosek <lprosek@redhat.com>
Thu, 22 Jun 2017 07:05:26 +0000 (09:05 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 20:38:27 +0000 (22:38 +0200)
commitb742c1e6e79ddf4192d76336da2407c65ca7242f
tree1137bf9432e837fa13f9fe964e05a95d05340b04
parentfb5307298e49ec1668c3a9ec888c1b9da4347395
KVM: SVM: handle singlestep exception when skipping emulated instructions

kvm_skip_emulated_instruction handles the singlestep debug exception
which is something we almost always want. This commit (specifically
the change in rdmsr_interception) makes the debug.flat KVM unit test
pass on AMD.

Two call sites still call skip_emulated_instruction directly:

* In svm_queue_exception where it's used only for moving the rip forward

* In task_switch_interception which is analogous to handle_task_switch
  in VMX

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/svm.c