Bug 1710667
Summary: | After hot unplug virtio-net and vfio nic, hot plug vfio-pci device fails in Win2019 guest | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Lei Yang <leiyang> | |
Component: | qemu-kvm | Assignee: | Yvugenfi <yvugenfi> | |
qemu-kvm sub component: | PCI | QA Contact: | Yanghang Liu <yanghliu> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | high | |||
Priority: | high | CC: | ailan, chayang, ddepaula, jen, jinzhao, jusual, juzhang, pezhang, virt-maint, yanghliu, yvugenfi | |
Version: | 8.1 | Keywords: | Regression | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-4.2.0-11.module+el8.2.0+5837+4c1442ec | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1721403 (view as bug list) | Environment: | ||
Last Closed: | 2020-05-05 09:46:14 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: | ||||
Bug Depends On: | 1708480 | |||
Bug Blocks: | 1721403, 1744438 |
Description
Lei Yang
2019-05-16 02:18:08 UTC
QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks This BZ is solved by BZ#1708480 Updating blocked-by based on comment 13. Not going to CLOSEDUP yet because the symptoms in the two BZs are different and we might want to document both. Verification: Versions: qemu-kvm-4.2.0-15.module+el8.2.0+6029+618ef2ec.x86_64 4.18.0-190.el8.x86_64 virtio-win-1.9.11-1.el8.noarch Steps: (1)start the Win2019 guest with a virtio-net-pci device and a vfio-pci device. /usr/libexec/qemu-kvm -name Win2019 \ -M q35,kernel-irqchip=split \ -m 4G \ -nodefaults \ -cpu Haswell-noTSX \ -smp 4,sockets=1,cores=4,threads=1 \ -device pcie-root-port,id=root.1,chassis=1,addr=0x2.0,multifunction=on \ -device pcie-root-port,id=root.2,chassis=2,addr=0x2.1 \ -device pcie-root-port,id=root.3,chassis=3,addr=0x2.2 \ -device pcie-root-port,id=root.4,chassis=4,addr=0x2.3 \ -device pcie-root-port,id=root.5,chassis=5,addr=0x2.4 \ -device pcie-root-port,id=root.6,chassis=6,addr=0x2.5 \ -device pcie-root-port,id=root.7,chassis=7,addr=0x2.6 \ -device pcie-root-port,id=root.8,chassis=8,addr=0x2.7 \ -device intel-iommu,intremap=on,caching-mode=on \ -blockdev driver=file,cache.direct=off,cache.no-flush=on,filename=/home/images/win2019.qcow2,node-name=my_file \ -blockdev driver=qcow2,node-name=my,file=my_file \ -device virtio-blk-pci,drive=my,id=virtio-blk0,bus=root.1 \ -drive id=drive_cd1,if=none,snapshot=off,aio=native,cache=none,media=cdrom,file=/home/images/en_windows_server_2019_x64_dvd_4cb967d8.iso \ -device ide-cd,id=cd1,drive=drive_cd1,bus=ide.0,unit=0 \ -drive id=drive_winutils,if=none,snapshot=off,aio=native,cache=none,media=cdrom,file=/usr/share/virtio-win/virtio-win-1.9.11.iso \ -device ide-cd,id=winutils,drive=drive_winutils,bus=ide.1,unit=0 \ -vnc :0 \ -vga qxl \ -monitor stdio \ -usb -device usb-tablet \ -boot menu=on \ -qmp tcp:0:5555,server,nowait \ -device virtio-net-pci,netdev=nic1,id=vnet0,mac=54:43:00:1a:11:33,bus=root.2 \ -netdev tap,id=nic1,script=/etc/qemu-ifup,vhost=on \ -device vfio-pci,host=0000:04:00.0,id=pf,bus=root.3 \ (2)hot unplug virtio-net-pci device qmp: # telnet 10.73.73.73 5555 {"execute":"qmp_capabilities"} {"return": {}} {"execute": "device_del", "arguments": {"id": "vnet0"}} {"return": {}} {"timestamp": {"seconds": 1584937625, "microseconds": 182887}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/vnet0/virtio-backend"}} {"timestamp": {"seconds": 1584937625, "microseconds": 237655}, "event": "DEVICE_DELETED", "data": {"device": "vnet0", "path": "/machine/peripheral/vnet0"}} {"execute": "netdev_del", "arguments": {"id": "nic1"}} {"return": {}} (3)hot unplug vfio-pci device qmp: {"execute": "device_del", "arguments": {"id": "pf"}} {"return": {}} {"timestamp": {"seconds": 1584937668, "microseconds": 815057}, "event": "DEVICE_DELETED", "data": {"device": "pf", "path": "/machine/peripheral/pf"}} (4)hot plug vfio-pci device qmp: {"execute": "device_add", "arguments": {"driver":"vfio-pci","host":"04:00.0","id":"pf","bus":"root.3"}} {"return": {}} (5)check vfio-pci device status The vfio-pci device can be hotpluged to a Win2019 guest successfully. According to the test result,this bug has been fixed well. Set the bug status to VERIFIED. 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, 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/RHBA-2020:2017 |