On Wed, Jun 21, 2017 at 6:55 PM, Radim Krčmář <rkrcmar@xxxxxxxxxx> wrote: > 2017-06-21 15:37+0200, Ladi Prosek: >> 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. > > kvm_skip_emulated_instruction() also has a return value, which says > whether the debug exception was requested by the userspace or by the > guest (userspace has priority). > > This patch fixes the guest debugging, but userspace still won't receive > its events. I think it would be better to fix both at once, Will do, thanks!