From: Vasyl Vavrychuk <vvavrychuk@gmail.com>
To: qemu-discuss@nongnu.org, linux-kernel@vger.kernel.org,
gdb@sourceware.org
Subject: gdb switches to __sysvec_apic_timer_interrupt or __default_send_IPI_dest_field with KVM enabled
Date: Sat, 29 Jan 2022 23:06:48 +0200 [thread overview]
Message-ID: <CAGj4m+4QPE7uHzbsQbG6Fp3Ke2eQRQQ2z2-1rsKDPtXqs-vpGg@mail.gmail.com> (raw)
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
next reply other threads:[~2022-01-29 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-29 21:06 Vasyl Vavrychuk [this message]
2022-01-31 10:42 ` Maxim Levitsky
2022-02-07 14:18 ` Vasyl Vavrychuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGj4m+4QPE7uHzbsQbG6Fp3Ke2eQRQQ2z2-1rsKDPtXqs-vpGg@mail.gmail.com \
--to=vvavrychuk@gmail.com \
--cc=gdb@sourceware.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qemu-discuss@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).