|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list |
| Date: | Fri, 2 Mar 2018 16:08:47 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 01/03/2018 11:33, Liu, Yi L wrote:
>
> +struct IntelIOMMUAssignedDeviceNode {
> + VTDAddressSpace *vtd_as;
> + QLIST_ENTRY(IntelIOMMUAssignedDeviceNode) next;
> +};
> +
This QLIST_ENTRY can also be placed directly in VTDAddressSpace (e.g.
next_assigned_dev), so that the notify function can simply do a
QLIST_REMOVE when an assigned device is hot-unplugged.
Does the notify_func need an "unbind from PASID address space" step,
that does the opposite of vtd_bind_device_to_pasid_as?
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |