public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb switches to __sysvec_apic_timer_interrupt or __default_send_IPI_dest_field with KVM enabled
@ 2022-01-29 21:06 Vasyl Vavrychuk
  2022-01-31 10:42 ` Maxim Levitsky
  0 siblings, 1 reply; 3+ messages in thread
From: Vasyl Vavrychuk @ 2022-01-29 21:06 UTC (permalink / raw)
  To: qemu-discuss, linux-kernel, gdb

Hello,

I run Linux kernel under qemu-system-x86_64 via the "-kernel" option.

Also, I added the "-s" option to accept the gdb connection.

After Linux boot up I connect with gdb and set a breakpoint in some
function, for example "device_del", does not matter really.

The problem is if I also use "--enable-kvm", then after breakpoint
triggered and sending "n" from gdb, it switches to

    __sysvec_apic_timer_interrupt (regs=0xffffc90000297de8) at
arch/x86/kernel/apic/apic.c:1102
    1102            trace_local_timer_entry(LOCAL_TIMER_VECTOR);

or to

    __default_send_IPI_dest_field (mask=<optimized out>,
vector=<optimized out>, dest=dest@entry=2048) at
arch/x86/kernel/apic/ipi.c:161
    161             cfg = __prepare_ICR2(mask);

I am stepping over kernel code that does not perform any waiting or blocking.

Everything works fine with "--enable-kvm" removed.

Thanks,
Vasyl

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-07 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-29 21:06 gdb switches to __sysvec_apic_timer_interrupt or __default_send_IPI_dest_field with KVM enabled Vasyl Vavrychuk
2022-01-31 10:42 ` Maxim Levitsky
2022-02-07 14:18   ` Vasyl Vavrychuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).