[PATCH] qemu msi/msix: added functions to API to set up message address and data

2012-05-12 Thread Alexey Kardashevskiy
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

[PATCH] kernel vfio: PCI ROM size calculation

2012-05-12 Thread Alexey Kardashevskiy
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.

[RFC PATCH] qemu spapr-pci: added IRQ list to PCIBus

2012-05-12 Thread Alexey Kardashevskiy
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

[RFC PATCH] kernel vfio: enabled and supported on power

2012-05-12 Thread Alexey Kardashevskiy
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

[RFC PATCH] qemu vfio-powerpc: added initial support

2012-05-12 Thread Alexey Kardashevskiy
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

[Bug 40752] BUG: unable to handle kernel paging request at bffffc20

2012-05-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40752 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 40752] BUG: unable to handle kernel paging request at bffffc20

2012-05-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=40752 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure

[Bug 29382] Panic: Unable to handle kernel paging request

2012-05-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=29382 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 29382] Panic: Unable to handle kernel paging request

2012-05-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=29382 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure

Re: [RFC PATCH] kernel vfio: enabled and supported on power

2012-05-12 Thread Benjamin Herrenschmidt
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