Bug 1661976
Summary: | qemu-kvm: failed to set irq for PMU | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Li Shuang <shuali> |
Component: | qemu-kvm | Assignee: | Virtualization Maintenance <virt-maint> |
qemu-kvm sub component: | General | QA Contact: | Virtualization Bugs <virt-bugs> |
Status: | CLOSED NOTABUG | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | awilliam, chayang, drjones, juzhang, michen, rbalakri, virt-maint, yinxu |
Version: | 8.0 | ||
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | aarch64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-27 13:32:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Li Shuang
2018-12-25 05:48:39 UTC
On machines with GICv3 that don't support GICv2 guests you must have '-machine gic-version=3' on the QEMU command line. Also, the whole command line in comment 0 looks weird. Why isn't libvirt being used, which will ensure it's correct? For the record, just ran into this on Fedora 31. There *are* use cases for running qemu without libvirt. I run the Fedora openQA instance; openQA is a test system which runs tests in qemu virtual machines, which it runs directly, not via libvirt. Thanks to finding this bug I was able to configure it to use `-machine virt,gic-version=max` which makes qemu boot on both our older and newer aarch64 worker hosts, just figured I'd add a note here in case it helps anyone else. (In reply to Adam Williamson from comment #2) > For the record, just ran into this on Fedora 31. There *are* use cases for > running qemu without libvirt. This is a RHEL8 bug so there are *no* supported use cases for running qemu without libvirt. > I run the Fedora openQA instance; openQA is a > test system which runs tests in qemu virtual machines, which it runs > directly, not via libvirt. I'm glad to hear that openQA is getting run on AArch64 Fedora, but it sounds like openQA needs to be patched to better determine how to generate AArch64 QEMU command lines. > > Thanks to finding this bug I was able to configure it to use `-machine > virt,gic-version=max` which makes qemu boot on both our older and newer > aarch64 worker hosts, just figured I'd add a note here in case it helps > anyone else. We do use gic-version=max for QEMU testing quite a bit, but users still need to be a bit cautious, as guests that were working with gicv2 compatibility on gicv3 hosts that support gicv2 compatibility will be magically changed to gicv3 guests. That's possibly not something the user expects. Also, on TCG or with KVM and kernel_irqchip=off, max=3, but the emulation for 3 isn't currently complete, so it won't completely work. That said, upstream recently got patches to generate better error messages, as the PMU stuff is pretty confusing. And, there are patches on the list to autodetect gic-version=3 in certain cases, which should help avoid the problem if those patches get merged. Still, I think openQA should learn how to probe host gic support and then generate explicit, correct command lines like libvirt does. |