]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pci: Add xen_[find|register|unregister]_device_domain_owner functions.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 8 Nov 2010 19:13:35 +0000 (14:13 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Apr 2011 15:16:54 +0000 (11:16 -0400)
commitf6536ba64a06303daa3ae992fb492d6f953adb97
tree8595a0697b1177763ba42b28908e276a03a8725a
parenta49ec2f89ef7d5107cf62938f259cf1ba29f99d3
xen/pci: Add xen_[find|register|unregister]_device_domain_owner functions.

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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/pci.h
arch/x86/pci/xen.c