From: bugzilla-daemon@kernel.org
To: kvm@vger.kernel.org
Subject: [Bug 218177] New: qemu got sigabrt when using vpp in guest and dpdk for qemu
Date: Wed, 22 Nov 2023 09:32:25 +0000 [thread overview]
Message-ID: <bug-218177-28872@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=218177
Bug ID: 218177
Summary: qemu got sigabrt when using vpp in guest and dpdk for
qemu
Product: Virtualization
Version: unspecified
Hardware: Intel
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: kvm
Assignee: virtualization_kvm@kernel-bugs.osdl.org
Reporter: zhang.lei.fly@gmail.com
Regression: No
I am testing vpp in qemu guest. and the guest is using dpdk interface provided
by dpdk.
when i set the interface up in vpp, the qemu is crashed
after doing some deep debug, this is happend in the `setup_routing_entry`
function
```
static int setup_routing_entry(struct kvm *kvm,
struct kvm_irq_routing_table *rt,
struct kvm_kernel_irq_routing_entry *e,
const struct kvm_irq_routing_entry *ue)
{
struct kvm_kernel_irq_routing_entry *ei;
int r;
u32 gsi = array_index_nospec(ue->gsi, KVM_MAX_IRQ_ROUTES);
/*
* Do not allow GSI to be mapped to the same irqchip more than once.
* Allow only one to one mapping between GSI and non-irqchip routing.
*/
hlist_for_each_entry(ei, &rt->map[gsi], link)
if (ei->type != KVM_IRQ_ROUTING_IRQCHIP ||
ue->type != KVM_IRQ_ROUTING_IRQCHIP ||
ue->u.irqchip.irqchip == ei->irqchip.irqchip)
return -EINVAL;
```
the code run into `return -EINVAL`
and the each field value is:
ei->type: 2,
KVM_IRQ_ROUTING_IRQCHIP: 1,
ue->type: 1,
ue->u.irqchip.irqchip: 2 ,
ei->irqchip.irqchip: -18870272
i am not familiar with kernel, but i guess there maybe some bug here?
Here is other informations
qemu-kvm version: qemu-kvm-7.2.0-14.el9
kernel: 4.18.0-477.27.1.el8.x86_64
ovs: 2.16.3
dpdk: 20.11.3
the qemu xml is attached
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2023-11-22 9:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 9:32 bugzilla-daemon [this message]
2023-11-22 9:32 ` [Bug 218177] qemu got sigabrt when using vpp in guest and dpdk for qemu bugzilla-daemon
2023-11-23 1:31 ` bugzilla-daemon
2023-11-23 1:31 ` bugzilla-daemon
2023-11-23 3:38 ` bugzilla-daemon
2023-11-23 6:09 ` bugzilla-daemon
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=bug-218177-28872@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.