Bug 1736263

Summary: Allow virtio-iommu migration
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Eric Auger <eric.auger>
Component: qemu-kvmAssignee: Eric Auger <eric.auger>
qemu-kvm sub component: Devices QA Contact: Virtualization Bugs <virt-bugs>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: dgilbert, drjones, juzhang, lcapitulino, mst, qzhang, virt-maint
Version: 8.0Keywords: OtherQA
Target Milestone: rc   
Target Release: 8.4   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-12 07:42:32 UTC Type: Feature Request
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: 1727536, 1802982, 1885765    

Description Eric Auger 2019-08-01 16:20:53 UTC
At the moment the virtio-iommu is not migratable. Besides the virtio generic stuff, its state is composed of

- domains organized in a GTree (red black tree): each domain owns a list of end points using it and a gtree of iommu mappings.
- a gtree of endpoints and each enpoint owns a gtree of reserved regions. 

There is currently no VMSTATE_* object that allows migrating Gtree elements.

The closest thing seems to be VMSTATE_QTAILQ_V that allows to migrate a QTAILQ.

Comment 1 Eric Auger 2019-10-03 15:49:40 UTC
"[PATCH v2] migration: Support gtree migration" was sent to the ML.
This is a pre-requisite for virtio-iommu migration as this latter has many gtrees

Comment 2 Ademar Reis 2020-02-05 23:01:52 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

Comment 3 Eric Auger 2020-02-28 09:38:16 UTC
The code has landed upstream (will be in qemu 5.0) . Migration was tested on ARM.

Comment 4 Eric Auger 2020-06-03 07:54:51 UTC
Until non DT support is not supported we can claim the feature is available (despite the code is upstream). So let's move this to 8.4

Comment 6 Eric Auger 2020-11-12 07:42:32 UTC
Code is upstream and we now just wait for the ACPI VIOT integration. Let's close the BZ as a dup of the main virtio-iommu BZ.

*** This bug has been marked as a duplicate of bug 1477099 ***