Re: [PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Paolo Bonzini
> We already have b742c1e6e79d ("KVM: SVM: handle singlestep exception > when skipping emulated instructions"), so the only applicable part of > this patch is Doh. :) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 0e846f0cb83b..931ba449456e 100644 > > ---

Re: [PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Paolo Bonzini
> We already have b742c1e6e79d ("KVM: SVM: handle singlestep exception > when skipping emulated instructions"), so the only applicable part of > this patch is Doh. :) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 0e846f0cb83b..931ba449456e 100644 > > ---

Re: [PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Radim Krčmář
2017-08-02 18:03+0200, Paolo Bonzini: > Use kvm_skip_emulated_instruction so that debug exceptions are > properly injected. This fixes debug.flat on AMD machines. > > Signed-off-by: Paolo Bonzini > --- We already have b742c1e6e79d ("KVM: SVM: handle singlestep exception

Re: [PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Radim Krčmář
2017-08-02 18:03+0200, Paolo Bonzini: > Use kvm_skip_emulated_instruction so that debug exceptions are > properly injected. This fixes debug.flat on AMD machines. > > Signed-off-by: Paolo Bonzini > --- We already have b742c1e6e79d ("KVM: SVM: handle singlestep exception when skipping emulated

[PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Paolo Bonzini
Use kvm_skip_emulated_instruction so that debug exceptions are properly injected. This fixes debug.flat on AMD machines. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm.c | 50 +- arch/x86/kvm/x86.c | 1 + 2 files changed,

[PATCH] KVM: svm: support single stepping over emulated instructions

2017-08-02 Thread Paolo Bonzini
Use kvm_skip_emulated_instruction so that debug exceptions are properly injected. This fixes debug.flat on AMD machines. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm.c | 50 +- arch/x86/kvm/x86.c | 1 + 2 files changed, 22 insertions(+), 29