Bug 2012026
Summary: | [failover vf migration] The failover vf will be unregistered if cancelling the migration when status is "active" | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Yanhui Ma <yama> | |
Component: | qemu-kvm | Assignee: | Laurent Vivier <lvivier> | |
qemu-kvm sub component: | Networking | QA Contact: | Yanhui Ma <yama> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | unspecified | |||
Priority: | unspecified | CC: | chayang, coli, jinzhao, juzhang, lvivier, mrezanin, pvlasin, virt-maint, yfu | |
Version: | 9.0 | Keywords: | Regression, Triaged | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-6.2.0-1.el9 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2060796 (view as bug list) | Environment: | ||
Last Closed: | 2022-05-17 12:24:29 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: | ||||
Bug Blocks: | 2060796 |
Description
Yanhui Ma
2021-10-08 02:51:11 UTC
The issue still exists on following packages version: [root@dell-per440-22 vfio]# rpm -q qemu-kvm qemu-kvm-6.1.0-8.el9.x86_64 [root@dell-per440-22 vfio]# uname -r 5.14.0-30.el9.x86_64 win2022(q35+edk2) guest with packages version of comment3 also hits the issue. Move the BZ to POST as the fix is in the rebase to 6.2.0 () commit 9323f892b39d133eb69b301484bf7b2f3f49737d Author: Laurent Vivier <lvivier> Date: Thu Nov 18 14:32:23 2021 +0100 failover: fix unplug pending detection Failover needs to detect the end of the PCI unplug to start migration after the VFIO card has been unplugged. To do that, a flag is set in pcie_cap_slot_unplug_request_cb() and reset in pcie_unplug_device(). But since 17858a169508 ("hw/acpi/ich9: Set ACPI PCI hot-plug as default on Q35") we have switched to ACPI unplug and these functions are not called anymore and the flag not set. So failover migration is not able to detect if card is really unplugged and acts as it's done as soon as it's started. So it doesn't wait the end of the unplug to start the migration. We don't see any problem when we test that because ACPI unplug is faster than PCIe native hotplug and when the migration really starts the unplug operation is already done. See c000a9bd06ea ("pci: mark device having guest unplug request pending") a99c4da9fc2a ("pci: mark devices partially unplugged") Signed-off-by: Laurent Vivier <lvivier> Reviewed-by: Ani Sinha <ani> Message-Id: <20211118133225.324937-4-lvivier> Reviewed-by: Michael S. Tsirkin <mst> Signed-off-by: Michael S. Tsirkin <mst> Add 'Verified:Tested,SanityOnly' as gating test with qemu-kvm-6.2.0-1.el9 PASS Finally verify the bug with qemu-kvm-6.2.0-8.el9.x86_64, it works well. enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.200.132 netmask 255.255.255.0 broadcast 192.168.200.255 inet6 fe80::7629:599b:a503:e9df prefixlen 64 scopeid 0x20<link> inet6 2001::ca9a:3558:8328:e3e0 prefixlen 64 scopeid 0x0<global> ether 52:54:00:aa:1c:ef txqueuelen 1000 (Ethernet) RX packets 133 bytes 17194 (16.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 69 bytes 6732 (6.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp4s0nsby: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.200.132 netmask 255.255.255.0 broadcast 192.168.200.255 inet6 fe80::17be:e17c:345e:a239 prefixlen 64 scopeid 0x20<link> ether 52:54:00:aa:1c:ef txqueuelen 1000 (Ethernet) RX packets 215 bytes 26934 (26.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 53 bytes 5948 (5.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.200.132 netmask 255.255.255.0 broadcast 192.168.200.255 inet6 fe80::6564:75b3:1b28:8516 prefixlen 64 scopeid 0x20<link> ether 52:54:00:aa:1c:ef txqueuelen 1000 (Ethernet) RX packets 5 bytes 462 (462.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 24 bytes 2424 (2.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 (In reply to Yanhui Ma from comment #18) > Finally verify the bug with qemu-kvm-6.2.0-8.el9.x86_64, it works well. Could you move the BZ to VERIFIED? Thanks Based on comment 18, set the bug 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 (new packages: qemu-kvm), 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-2022:2307 |