Re: [libvirt] [PATCH v2 1/4] domain_conf: allow address type='none' to unassign PCI hostdevs

2019-11-22 Thread Daniel Henrique Barboza
On 11/22/19 12:13 PM, Daniel P. Berrangé wrote: On Thu, Nov 21, 2019 at 07:19:14PM -0300, Daniel Henrique Barboza wrote: [...] The use of a new 'unassigned' flag in virDomainHostdevDef makes it easier to distinguish between the case we're handling here versus the case in which a PCI hostdev

Re: [libvirt] [PATCH v2 1/4] domain_conf: allow address type='none' to unassign PCI hostdevs

2019-11-22 Thread Daniel P . Berrangé
On Thu, Nov 21, 2019 at 07:19:14PM -0300, Daniel Henrique Barboza wrote: > Today, to use a PCI hostdev "A" in a domain, all PCI devices > that belongs to the same IOMMU group must also be declared in > the domain XML, meaning that all IOMMU devices are detached > from the host and all of them are

[libvirt] [PATCH v2 1/4] domain_conf: allow address type='none' to unassign PCI hostdevs

2019-11-21 Thread Daniel Henrique Barboza
Today, to use a PCI hostdev "A" in a domain, all PCI devices that belongs to the same IOMMU group must also be declared in the domain XML, meaning that all IOMMU devices are detached from the host and all of them are visible to the guest. The result is that the guest will have access to all