Added msi_set_address_data and msix_set_address_data in order to support
sPAPR-specific implementation of MSI/MSIX configuration mechanism.
POWER guest does not initialize these fields, it expects a supervisor to
get them initialized.
Required for VFIO on POWER.
Signed-off-by: Alexey
The original code calculated the real size of the ROM and passed it to
QEMU which tried to do pci_register_bar and failed with error message
ERROR: PCI region size must be pow2.
The example card is PCIe Intel E1000E with the ROM size 0x9c00.
pci_resource_len seems to be a proper solution.
There is a need for a mechanism to obtain an IRQ line number to
initialize End-Of-Interrupt handler.
There is another proposed solution (commit
b7790763828b732059ad24ba0e64ce327563fe1a pci: Add callbacks
to support retrieving and updating interrupts) which adds pci_get_irq
callback to every PCI
The idea of the patch is to demonstrate what POWER needs to support VFIO.
Added support on POWER. Than includes:
1) IOMMU API driver for POWER.
It also includes subsys_initcall_sync(power_pci_iommu_init) which walks through
all
PCI devices and creates IOMMU groups and adds devices to these
The idea of the patch is to demonstrate what POWER needs to support VFIO.
It will not compile as many other patches are needed and they are not
posted anywhere yet.
The patch includes:
1) sPAPR PCI bus got an additional flag is_vfio which defines IOMMU
behavior
2) Added POWER-specific IOMMU
https://bugzilla.kernel.org/show_bug.cgi?id=40752
Alan a...@lxorguk.ukuu.org.uk changed:
What|Removed |Added
Status|NEW |RESOLVED
https://bugzilla.kernel.org/show_bug.cgi?id=40752
Alan a...@lxorguk.ukuu.org.uk changed:
What|Removed |Added
Status|RESOLVED|CLOSED
--
Configure
https://bugzilla.kernel.org/show_bug.cgi?id=29382
Alan a...@lxorguk.ukuu.org.uk changed:
What|Removed |Added
Status|NEW |RESOLVED
https://bugzilla.kernel.org/show_bug.cgi?id=29382
Alan a...@lxorguk.ukuu.org.uk changed:
What|Removed |Added
Status|RESOLVED|CLOSED
--
Configure
On Sat, 2012-05-12 at 17:31 +1000, Alexey Kardashevskiy wrote:
And drivers/vfio/vfio_iommu_x86.c works perfect for POWER except a DMA
window setup
which I dropped for now and simply use quite popular configuration on
power (1Gb DMA window starting
from 0x0).
As for me, it is too
10 matches
Mail list logo