• Konrad Rzeszutek Wilk's avatar
    xen/pci: Add xen_[find|register|unregister]_device_domain_owner functions. · c55fa78b
    Konrad Rzeszutek Wilk authored
    When the Xen PCI backend is told to enable or disable MSI/MSI-X functions,
    the initial domain performs these operations. The initial domain needs
    to know which domain (guest) is going to use the PCI device so when it
    makes the appropiate hypercall to retrieve the MSI/MSI-X vector it will
    also assign the PCI device to the appropiate domain (guest).
    
    This boils down to us needing a mechanism to find, set and unset the domain
    id that will be using the device.
    
    [v2: EXPORT_SYMBOL -> EXPORT_SYMBOL_GPL.]
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    c55fa78b
xen.c 12.1 KB