Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-02-05 Thread Jim Mattson
On Fri, Jan 25, 2019 at 9:52 AM Paolo Bonzini wrote: > > On 21/01/19 13:48, Alexander Popov wrote: > > The single-step debugging of KVM guests on x86 is broken: if we run > > gdb 'stepi' command at the breakpoint when the guest interrupts are > > enabled, RIP always jumps to native_apic_mem_write(

Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-01-25 Thread Paolo Bonzini
On 21/01/19 13:48, Alexander Popov wrote: > The single-step debugging of KVM guests on x86 is broken: if we run > gdb 'stepi' command at the breakpoint when the guest interrupts are > enabled, RIP always jumps to native_apic_mem_write(). Then other > nasty effects follow. > > Long investigation sh

Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-01-25 Thread Paolo Bonzini
On 21/01/19 15:24, Greg KH wrote: > On Mon, Jan 21, 2019 at 03:48:40PM +0300, Alexander Popov wrote: >> The single-step debugging of KVM guests on x86 is broken: if we run >> gdb 'stepi' command at the breakpoint when the guest interrupts are >> enabled, RIP always jumps to native_apic_mem_write().

Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-01-24 Thread Alexander Popov
On 21.01.2019 15:48, Alexander Popov wrote: > The single-step debugging of KVM guests on x86 is broken: if we run > gdb 'stepi' command at the breakpoint when the guest interrupts are > enabled, RIP always jumps to native_apic_mem_write(). Then other > nasty effects follow. > > Long investigation

Re: [PATCH v2] KVM: x86: Fix single-step debugging

2019-01-21 Thread Greg KH
On Mon, Jan 21, 2019 at 03:48:40PM +0300, Alexander Popov wrote: > The single-step debugging of KVM guests on x86 is broken: if we run > gdb 'stepi' command at the breakpoint when the guest interrupts are > enabled, RIP always jumps to native_apic_mem_write(). Then other > nasty effects follow. >

[PATCH v2] KVM: x86: Fix single-step debugging

2019-01-21 Thread Alexander Popov
The single-step debugging of KVM guests on x86 is broken: if we run gdb 'stepi' command at the breakpoint when the guest interrupts are enabled, RIP always jumps to native_apic_mem_write(). Then other nasty effects follow. Long investigation showed that on Jun 7, 2017 the commit c8401dda2f0a00cd25