Bug 2086262
Summary: | [Win11][tpm]vfio_listener_region_del received unaligned region | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Yanghang Liu <yanghliu> |
Component: | qemu-kvm | Assignee: | Eric Auger <eric.auger> |
qemu-kvm sub component: | Devices | QA Contact: | Yanghang Liu <yanghliu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | alex.williamson, chayang, coli, eric.auger, jinzhao, juzhang, virt-maint, yanghliu |
Version: | 9.1 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Windows | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-7.0.0-6.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-15 09:54:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yanghang Liu
2022-05-15 07:46:32 UTC
Eric, looks like we missed that vfio_listener_region_del() also needs to check vfio_known_safe_misalignment() now. "[PATCH] vfio/common: remove spurious warning on vfio_listener_region_del" sent upstream QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.
> Steps to Reproduce:
> 1. start a win11 domain with a QL41112 PF and tpm device
>
> # virt-install --machine=q35 --noreboot --name=win11 --memory=4096 --vcpus=4
> --graphics type=vnc,port=5911,listen=0.0.0.0 --import --noautoconsole
> --network bridge=switch,model=virtio,mac=52:54:00:01:11:11 --disk
> path=/home/images/win11.qcow2,bus=virtio,cache=none,format=qcow2,io=threads,
> size=20 --boot=uefi --boot nvram.template=/usr/share/edk2/ovmf/OVMF_VARS.fd
> --tpm model=tpm-crb,backend.type=emulator --hostdev 0000:3b:00.0
>
> 2. check the QL41112 PF info in the Win11 vm
> The PF works properly
>
> 3. hot-unplug the PF from the win11 domain
> virsh detach-device win11 /tmp/device/0000:3b:00.0.xml
> Device detached successfully
>
> 4. check the qemu-kvm info
>
> 2022-05-15T07:44:06.263771Z qemu-kvm: vfio_listener_region_del received unaligned region
This bug can still be reproduced in qemu-kvm-7.0.0-5.el9.x86_64
Verification: Test env: kernel-5.14.0-108.el9 qemu-kvm-7.0.0-6.el9 Test result: PASS Test step: > 1. start a win11 domain with a QL41112 PF and tpm device > > # virt-install --machine=q35 --noreboot --name=win11 --memory=4096 --vcpus=4 > --graphics type=vnc,port=5911,listen=0.0.0.0 --import --noautoconsole > --network bridge=switch,model=virtio,mac=52:54:00:01:11:11 --disk > path=/home/images/win11.qcow2,bus=virtio,cache=none,format=qcow2,io=threads, > size=20 --boot=uefi --boot nvram.template=/usr/share/edk2/ovmf/OVMF_VARS.fd > --tpm model=tpm-crb,backend.type=emulator --hostdev 0000:3b:00.0 The win11 domain with a QL41112 PF and tpm device can be started successfully > 2. check the QL41112 PF info in the Win11 vm The PF works properly > 3. hot-unplug the PF from the win11 domain > virsh detach-device win11 /tmp/device/0000:3b:00.0.xml > Device detached successfully {"execute":"device_del","arguments":{"id":"hostdev0"},"id":"libvirt-407"} {"timestamp": {"seconds": 1655190578, "microseconds": 237219}, "event": "DEVICE_DELETED", "data": {"device": "hostdev0", "path": "/machine/peripheral/hostdev0"}} > 4. check the qemu-kvm info The qemu-kvm does not throw any suspicious information like "qemu-kvm: vfio_listener_region_del received unaligned region" Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: qemu-kvm security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:7967 |