Re: [PATCH v2 0/5] KVM: VMX: Fix single stepping with emulated instructions

2016-11-30 Thread Kyle Huey
On Wed, Nov 30, 2016 at 10:41 AM, Radim Krčmář wrote: > 2016-11-29 12:40-0800, Kyle Huey: >> KVM does not currently honor the trap flag when emulating instructions that >> cause VM exits. This is observable from guest userspace, try stepping on a >> CPUID instruction in gdb in a KVM guest. The pro

Re: [PATCH v2 0/5] KVM: VMX: Fix single stepping with emulated instructions

2016-11-30 Thread Radim Krčmář
2016-11-29 12:40-0800, Kyle Huey: > KVM does not currently honor the trap flag when emulating instructions that > cause VM exits. This is observable from guest userspace, try stepping on a > CPUID instruction in gdb in a KVM guest. The program will stop two > instructions after CPUID. > > To fix t

[PATCH v2 0/5] KVM: VMX: Fix single stepping with emulated instructions

2016-11-29 Thread Kyle Huey
KVM does not currently honor the trap flag when emulating instructions that cause VM exits. This is observable from guest userspace, try stepping on a CPUID instruction in gdb in a KVM guest. The program will stop two instructions after CPUID. To fix this, add kvm_skip_emulated_instruction that ca