[Qemu-devel] [PATCH 0/2] vfio: type1 iommu hugepage support

2013-05-24 Thread Alex Williamson
, but is compatible with known users and works with existing QEMU userspace supporting vfio. Thanks, Alex --- Alex Williamson (2): vfio: Convert type1 iommu to use rbtree vfio: hugepage support for vfio_iommu_type1 drivers/vfio/vfio_iommu_type1.c | 607

[Qemu-devel] [PATCH 2/2] vfio: hugepage support for vfio_iommu_type1

2013-05-24 Thread Alex Williamson
to reflect this. Previously this was unmodified on mapping, always returning the the requested unmap size. This is now updated to return the actual unmap size on success, allowing userspace to appropriately track mappings. Signed-off-by: Alex Williamson alex.william...@redhat.com --- drivers/vfio

[Qemu-devel] [PATCH 1/2] vfio: Convert type1 iommu to use rbtree

2013-05-24 Thread Alex Williamson
more efficient and allows us to use common code instead of inventing our own. Signed-off-by: Alex Williamson alex.william...@redhat.com --- drivers/vfio/vfio_iommu_type1.c | 190 --- 1 file changed, 96 insertions(+), 94 deletions(-) diff --git a/drivers/vfio

Re: [Qemu-devel] [PATCH 2/2] vfio: hugepage support for vfio_iommu_type1

2013-05-25 Thread Alex Williamson
On Sat, 2013-05-25 at 07:20 -0400, Konrad Rzeszutek Wilk wrote: + * Turns out AMD IOMMU has a page table bug where it won't map large pages + * to a region that previously mapped smaller pages. This should be fixed + * soon, so this is just a temporary workaround to break mappings down into

Re: [Qemu-devel] [PATCH 0/2] vfio: type1 iommu hugepage support

2013-05-25 Thread Alex Williamson
On Sat, 2013-05-25 at 07:21 -0400, Konrad Rzeszutek Wilk wrote: On Fri, May 24, 2013 at 11:24:26AM -0600, Alex Williamson wrote: This series let's the vfio type1 iommu backend take advantage of iommu large page support. See patch 2/2 for the details. This has been tested on both amd_iommu

Re: [Qemu-devel] [PATCH 2/2] vfio: hugepage support for vfio_iommu_type1

2013-05-27 Thread Alex Williamson
On Mon, 2013-05-27 at 08:41 +, Sethi Varun-B16395 wrote: -Original Message- From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- boun...@lists.linux-foundation.org] On Behalf Of Alex Williamson Sent: Friday, May 24, 2013 10:55 PM To: alex.william...@redhat.com Cc

Re: [Qemu-devel] VFIO VGA test branches

2013-05-27 Thread Alex Williamson
On Tue, 2013-05-28 at 03:40 +0200, Maik Broemme wrote: Hi Alex, Maik Broemme mbroe...@parallels.com wrote: Hi Alex, Alex Williamson alex.william...@redhat.com wrote: Good to hear. It looks like you have the same motherboard as my AMD test system. An HD7850 in that system

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Alex Williamson
On Tue, 2013-05-28 at 07:33 +0200, Knut Omang wrote: I noticed this warning in the host log - I suppose it is unrelated but thought I'd mention it just in case there is some side effect I do not understand here: [0.538124] IOMMU: Setting identity map for device :00:1f.0 [0x0 -

[Qemu-devel] [PATCH 3/2] vfio: Provide module option to disable vfio_iommu_type1 hugepage support

2013-05-28 Thread Alex Williamson
through sysfs. If enabled dynamically, only new mappings are restricted. Signed-off-by: Alex Williamson alex.william...@redhat.com --- As suggested by Konrad. This is cleaner to add as a follow-on drivers/vfio/vfio_iommu_type1.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Alex Williamson
On Tue, 2013-05-28 at 20:45 +0200, Maik Broemme wrote: Hi, Maik Broemme mbroe...@parallels.com wrote: Hi Alex, Maik Broemme mbroe...@parallels.com wrote: Hi Alex, Alex Williamson alex.william...@redhat.com wrote: Good to hear. It looks like you have the same

Re: [Qemu-devel] VFIO VGA test branches

2013-05-29 Thread Alex Williamson
On Wed, 2013-05-29 at 18:16 +0200, Maik Broemme wrote: Hi, Maik Broemme mbroe...@parallels.com wrote: Here is the DEBUG_VFIO output: vfio: vfio_initfn(:04:00.0) group 14 vfio: region_add 0 - afff [0x7f869800] vfio: SKIPPING region_add fec0 - fec00fff

Re: [Qemu-devel] SR-IOV PF reset and QEMU VFs VFIO passthrough

2013-06-02 Thread Alex Williamson
On Sat, 2013-06-01 at 14:13 +0200, Benoît Canet wrote: Hello, I may have soon the PF driver of an SR-IOV card to code and make work with QEMU/KVM so I have the following questions. In an AMD64 setup where QEMU use VFIO to passthrough the VFs of an SR-IOV card to a guest will the

Re: [Qemu-devel] VFIO and scheduled SR-IOV cards

2013-06-03 Thread Alex Williamson
On Mon, 2013-06-03 at 18:33 +0200, Benoît Canet wrote: Hello, I plan to write a PF driver for an SR-IOV card and make the VFs work with QEMU's VFIO passthrough so I am asking the following design question before trying to write and push code. After SR-IOV being enabled on this hardware

Re: [Qemu-devel] VFIO and scheduled SR-IOV cards

2013-06-03 Thread Alex Williamson
On Mon, 2013-06-03 at 14:34 -0400, Don Dutile wrote: On 06/03/2013 02:02 PM, Alex Williamson wrote: On Mon, 2013-06-03 at 18:33 +0200, Benoît Canet wrote: Hello, I plan to write a PF driver for an SR-IOV card and make the VFs work with QEMU's VFIO passthrough so I am asking

Re: [Qemu-devel] [PATCH v2 06/17] sysbus: add sysbus_pass_mmio

2013-06-04 Thread Alex Williamson
that the abstraction is even less leaky than it sounds. I asked Alex Williamson to read the thread and share his opinion. Interestingly, he had a different mental model of building the memory regions (passing them to PCI core early rather than late, and that's why VFIO needed 8 calls in this series). So I

Re: [Qemu-devel] VFIO and scheduled SR-IOV cards

2013-06-04 Thread Alex Williamson
:45 (-0600), Alex Williamson a écrit : On Mon, 2013-06-03 at 14:34 -0400, Don Dutile wrote: On 06/03/2013 02:02 PM, Alex Williamson wrote: On Mon, 2013-06-03 at 18:33 +0200, Benoît Canet wrote: Hello, I plan to write a PF driver for an SR-IOV card and make the VFs work

Re: [Qemu-devel] [PATCH RFC v2 5/9] hw/vfio: set interrupts using pci irq wrappers

2013-10-02 Thread Alex Williamson
On Wed, 2013-10-02 at 15:41 +0300, Marcel Apfelbaum wrote: pci_set_irq and the other pci irq wrappers use PCI_INTERRUPT_PIN config register to compute device INTx pin to assert/deassert. Save INTx pin into the config register before calling pci_set_irq Signed-off-by: Marcel Apfelbaum

Re: [Qemu-devel] [PATCH RFC v2 0/9] hw/pci: set irq without selecting INTx pin

2013-10-02 Thread Alex Williamson
On Wed, 2013-10-02 at 16:05 +0300, Marcel Apfelbaum wrote: On Wed, 2013-10-02 at 15:58 +0300, Michael S. Tsirkin wrote: On Wed, Oct 02, 2013 at 03:41:25PM +0300, Marcel Apfelbaum wrote: Note: Added RFC because not all affected devices were checked yet. What do you have in mind

Re: [Qemu-devel] ioh3420: Add a map_irq function

2013-10-02 Thread Alex Williamson
On Fri, 2013-09-27 at 15:10 -0700, Alexander Duyck wrote: On 02/28/2013 10:49 AM, Alex Williamson wrote: Every bridge needs to know how to map IRQs from it's secondary bus to the primary bus. We seem to be direct mapped on ioh3420. This avoids segfaults when trying to put assigned devices

[Qemu-devel] [PULL 1/6] vfio-pci: Add support for MSI affinity

2013-10-03 Thread Alex Williamson
works in non-KVM mode because the address and data fields are read from their backing store on each interrupt. This patch stores the MSIMessage programmed into KVM so that we can determine when changes are made and update the routes. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw

[Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-03 Thread Alex Williamson
to a file using the romfile= option, we still probed VFIO for the parameters of the ROM, which can result in dmesg errors about an invalid ROM. We now only probe VFIO to get the ROM contents if the guest actually tries to read the ROM. Signed-off-by: Alex Williamson alex.william...@redhat.com

[Qemu-devel] [PULL 6/6] vfio: Fix debug output for int128 values

2013-10-03 Thread Alex Williamson
-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 0c9bb95..68e25bd 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -2084,7 +2084,8 @@ static void

[Qemu-devel] [PULL 2/6] vfio-pci: Test device reset capabilities

2013-10-03 Thread Alex Williamson
is probed, but the device still supports reset). Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 75a53e2..ede026d 100644 --- a/hw/misc

[Qemu-devel] [PULL 4/6] vfio-pci: Cleanup error_reports

2013-10-03 Thread Alex Williamson
Remove carriage returns and tweak formatting for error_reports. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 730dec5..a73e7f5

[Qemu-devel] [PULL 5/6] vfio-pci: Implement PCI hot reset

2013-10-03 Thread Alex Williamson
resets available to us, and create separate _one vs _multi reset interfaces to handle the distinct cases above. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 338 ++-- 1 file changed, 300 insertions(+), 38

[Qemu-devel] [PULL 0/6] VFIO updates for QEMU

2013-10-03 Thread Alex Williamson
. Alex Williamson (5): vfio-pci: Add support for MSI affinity vfio-pci: Test device reset capabilities vfio-pci: Lazy PCI option ROM loading vfio-pci: Cleanup error_reports vfio-pci: Implement PCI hot reset Alexey Kardashevskiy (1): vfio

Re: [Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-03 Thread Alex Williamson
On Thu, 2013-10-03 at 20:46 +0200, Paolo Bonzini wrote: Il 03/10/2013 17:39, Alex Williamson ha scritto: +static const MemoryRegionOps vfio_rom_ops = { +.read = vfio_rom_read, +.endianness = DEVICE_LITTLE_ENDIAN, +}; + I think you need to define a write callback too (unless

Re: [Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-04 Thread Alex Williamson
On Fri, 2013-10-04 at 22:13 +1000, Alexey Kardashevskiy wrote: On 10/04/2013 01:39 AM, Alex Williamson wrote: During vfio-pci initfn, the device is not always in a state where the option ROM can be read. In the case of graphics cards, there's often no per function reset, which means we

[Qemu-devel] [PATCH 2/2] vfio-pci: Fix endian issues in vfio_pci_size_rom()

2013-10-04 Thread Alex Williamson
VFIO is always little endian so do byte swapping of our mask on the way in and byte swapping of the size on the way out. Signed-off-by: Alex Williamson alex.william...@redhat.com Reported-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/misc/vfio.c |4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [PATCH 1/2] vfio-pci: Add dummy PCI ROM write accessor

2013-10-04 Thread Alex Williamson
Just to be sure we don't jump off any NULL pointer cliffs. Signed-off-by: Alex Williamson alex.william...@redhat.com Reported-by: Paolo Bonzini pbonz...@redhat.com --- hw/misc/vfio.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 68e25bd

[Qemu-devel] [PATCH 0/2] VFIO pull request fixes

2013-10-04 Thread Alex Williamson
Bugs found by Paolo and Alexey. I'll include these in my next pull request. Thanks, Alex --- Alex Williamson (2): vfio-pci: Add dummy PCI ROM write accessor vfio-pci: Fix endian issues in vfio_pci_size_rom() hw/misc/vfio.c | 10 -- 1 file changed, 8 insertions(+), 2

[Qemu-devel] [RFC PATCH] vfio-pci: Disallow device from using NoSnoop transactions

2013-10-04 Thread Alex Williamson
host systems when trying to assign Nvidia VGA devices. Signed-off-by: Alex Williamson alex.william...@redhat.com --- VGA folks - Use a v3.12-rc1 or newer kernel and the 6 qemu patches from my pull request yesterday and you should see a big improvement with this patch

Re: [Qemu-devel] [PULL 0/6] VFIO updates for QEMU

2013-10-09 Thread Alex Williamson
On Wed, 2013-10-09 at 07:54 -0700, Anthony Liguori wrote: Alex Williamson alex.william...@redhat.com writes: The following changes since commit a684f3cf9b9b9c3cb82be87aafc463de8974610c: Merge remote-tracking branch 'kraxel/seabios-1.7.3.2' into staging (2013-09-30 17:15:27 -0500

Re: [Qemu-devel] [PATCH] pci-assign: Fix error_report of pci-stub message

2013-10-10 Thread Alex Williamson
...@redhat.com --- hw/i386/kvm/pci-assign.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) Acked-by: Alex Williamson alex.william...@redhat.com diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c index 5618173..787b86e 100644 --- a/hw

[Qemu-devel] [PULL v2 0/8] VFIO updates for QEMU

2013-10-10 Thread Alex Williamson
when there are multiple devices on the bus, ex. multi-function graphics and audio cards. v2: Include patches 7 8 fixing review comments Alex Williamson (7): vfio-pci: Add support for MSI affinity vfio-pci: Test device reset

[Qemu-devel] [PULL v2 2/8] vfio-pci: Test device reset capabilities

2013-10-10 Thread Alex Williamson
is probed, but the device still supports reset). Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 75a53e2..ede026d 100644 --- a/hw/misc

[Qemu-devel] [PULL v2 1/8] vfio-pci: Add support for MSI affinity

2013-10-10 Thread Alex Williamson
works in non-KVM mode because the address and data fields are read from their backing store on each interrupt. This patch stores the MSIMessage programmed into KVM so that we can determine when changes are made and update the routes. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw

[Qemu-devel] [PULL v2 4/8] vfio-pci: Cleanup error_reports

2013-10-10 Thread Alex Williamson
Remove carriage returns and tweak formatting for error_reports. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 730dec5..a73e7f5

[Qemu-devel] [PULL v2 8/8] vfio-pci: Fix endian issues in vfio_pci_size_rom()

2013-10-10 Thread Alex Williamson
VFIO is always little endian so do byte swapping of our mask on the way in and byte swapping of the size on the way out. Signed-off-by: Alex Williamson alex.william...@redhat.com Reported-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/misc/vfio.c |4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [PULL v2 7/8] vfio-pci: Add dummy PCI ROM write accessor

2013-10-10 Thread Alex Williamson
Just to be sure we don't jump off any NULL pointer cliffs. Signed-off-by: Alex Williamson alex.william...@redhat.com Reported-by: Paolo Bonzini pbonz...@redhat.com --- hw/misc/vfio.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 68e25bd

[Qemu-devel] [PULL v2 3/8] vfio-pci: Lazy PCI option ROM loading

2013-10-10 Thread Alex Williamson
to a file using the romfile= option, we still probed VFIO for the parameters of the ROM, which can result in dmesg errors about an invalid ROM. We now only probe VFIO to get the ROM contents if the guest actually tries to read the ROM. Signed-off-by: Alex Williamson alex.william...@redhat.com

[Qemu-devel] [PULL v2 6/8] vfio: Fix debug output for int128 values

2013-10-10 Thread Alex Williamson
-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 0c9bb95..68e25bd 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -2084,7 +2084,8 @@ static void

[Qemu-devel] [PULL v2 5/8] vfio-pci: Implement PCI hot reset

2013-10-10 Thread Alex Williamson
resets available to us, and create separate _one vs _multi reset interfaces to handle the distinct cases above. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 338 ++-- 1 file changed, 300 insertions(+), 38

[Qemu-devel] [PATCH v2] vfio-pci: Disallow device from using NoSnoop transactions

2013-10-10 Thread Alex Williamson
host systems when trying to assign Nvidia VGA devices. Signed-off-by: Alex Williamson alex.william...@redhat.com --- v2: I'm counting the RFC as v1 - Move clearing NoSnoop Enable to post reset in case the device re-enables during reset. This bit is part of what the kernel will save/restore

Re: [Qemu-devel] [PULL 08/43] hw/vfio: set interrupts using pci irq wrappers

2013-10-14 Thread Alex Williamson
pci_set_irq Signed-off-by: Marcel Apfelbaum marce...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com I realize this is a pull request, but for the record Acked-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 11 ++- 1 file changed, 6 insertions(+), 5

[Qemu-devel] [PATCH 1/2] linux-headers: Update from kvm.git 81e87e26796782e014fd1f2bb9cd8fb6ce4021a8

2013-11-01 Thread Alex Williamson
Current next branch. Signed-off-by: Alex Williamson alex.william...@redhat.com --- linux-headers/asm-arm/kvm.h |3 ++- linux-headers/asm-powerpc/epapr_hcalls.h |4 ++-- linux-headers/asm-x86/kvm.h |6 +++--- linux-headers/linux/kvm.h|7

[Qemu-devel] [PATCH 0/2] vfio-pci: Enable KVM-VFIO device

2013-11-01 Thread Alex Williamson
the KVM and QEMU patches for stable. Getting it in for QEMU 1.7 would make a lot of people playing with VGA passthrough very happy. Thoughts? Thanks, Alex --- Alex Williamson (2): linux-headers: Update from kvm.git 81e87e26796782e014fd1f2bb9cd8fb6ce4021a8 vfio-pci: Make use of new

[Qemu-devel] [PATCH 2/2] vfio-pci: Make use of new KVM-VFIO device

2013-11-01 Thread Alex Williamson
Add and remove groups from the KVM virtual VFIO device as we make use of them. This allows KVM to optimize for performance and correctness based on properties of the group. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 67

Re: [Qemu-devel] [PATCH v4 02/12] vfio: Create VFIOAddressSpace objects as needed

2013-09-05 Thread Alex Williamson
On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au So far, VFIO has a notion of different logical DMA address spaces, but only ever uses one (system memory). This patch extends this, creating new VFIOAddressSpace objects as

Re: [Qemu-devel] [PATCH v4 04/12] spapr vfio: add vfio_container_spapr_get_info()

2013-09-05 Thread Alex Williamson
On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: As sPAPR platform supports DMA windows on a PCI bus, the information about their location and size should be passed into the guest via the device tree. The patch adds a helper to read this info from the container fd.

Re: [Qemu-devel] [PATCH v4 03/12] vfio: Add guest side IOMMU support

2013-09-05 Thread Alex Williamson
On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au This patch uses the new IOMMU notifiers to allow VFIO pass through devices to work with guest side IOMMUs, as long as the host-side VFIO iommu has sufficient capability and

Re: [Qemu-devel] [PATCH v4 11/12] spapr vfio: enable for spapr

2013-09-05 Thread Alex Williamson
On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: This turns the sPAPR support on and enables VFIO container use in the kernel. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: v4: * fixed format string to use %m which is a glibc extension: Print output of

[Qemu-devel] [PATCH] vfio-pci: Test device reset capabilities

2013-09-05 Thread Alex Williamson
is probed, but the device still supports reset). Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 75a53e2..ede026d 100644 --- a/hw/misc

[Qemu-devel] [PATCH] vfio-pci: Lazy PCI option ROM loading

2013-09-05 Thread Alex Williamson
to a file using the romfile= option, we still probed VFIO for the parameters of the ROM, which can result in dmesg errors about an invalid ROM. We now only probe VFIO to get the ROM contents if the guest actually tries to read the ROM. Signed-off-by: Alex Williamson alex.william...@redhat.com

[Qemu-devel] [PATCH] vfio-pci: Cleanup error_reports

2013-09-05 Thread Alex Williamson
Remove carriage returns and tweak formatting for error_reports. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 730dec5..a73e7f5

Re: [Qemu-devel] [PATCH] vfio-pci: Cleanup error_reports

2013-09-05 Thread Alex Williamson
On Thu, 2013-09-05 at 16:37 -0600, Eric Blake wrote: On 09/05/2013 04:29 PM, Alex Williamson wrote: Remove carriage returns and tweak formatting for error_reports. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 24 1 file

[Qemu-devel] [PATCH] vfio-pci: Implement PCI hot reset

2013-09-05 Thread Alex Williamson
resets available to us, and create separate _one vs _multi reset interfaces to handle the distinct cases above. Signed-off-by: Alex Williamson alex.william...@redhat.com --- This depends on the VFIO PCI hot reset code currently in my kernel next branch. I plan to try to get that in for v3.12

Re: [Qemu-devel] [PATCH v4 11/12] spapr vfio: enable for spapr

2013-09-10 Thread Alex Williamson
On Tue, 2013-09-10 at 19:00 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 05:05 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: This turns the sPAPR support on and enables VFIO container use in the kernel. Signed-off-by: Alexey Kardashevskiy

Re: [Qemu-devel] [PATCH v4 03/12] vfio: Add guest side IOMMU support

2013-09-10 Thread Alex Williamson
On Tue, 2013-09-10 at 18:22 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 04:49 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au This patch uses the new IOMMU notifiers to allow VFIO pass through

Re: [Qemu-devel] [PATCH v4 04/12] spapr vfio: add vfio_container_spapr_get_info()

2013-09-10 Thread Alex Williamson
On Tue, 2013-09-10 at 18:36 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 05:01 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: As sPAPR platform supports DMA windows on a PCI bus, the information about their location and size should be passed

Re: [Qemu-devel] [PATCH v4 02/12] vfio: Create VFIOAddressSpace objects as needed

2013-09-10 Thread Alex Williamson
On Tue, 2013-09-10 at 18:09 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 04:24 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au So far, VFIO has a notion of different logical DMA address spaces

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-11 Thread Alex Williamson
On Wed, 2013-09-11 at 16:42 +, Yoder Stuart-B08248 wrote: -Original Message- From: Yoder Stuart-B08248 Sent: Thursday, September 05, 2013 12:51 PM To: Wood Scott-B07421; Sethi Varun-B16395; Bhushan Bharat-R65777; 'Peter Maydell'; 'Santosh Shukla'; 'Alex Williamson

[Qemu-devel] [RFC PATCH] vfio-pci: Make use of new KVM-VFIO device

2013-09-12 Thread Alex Williamson
Add and remove groups from the KVM virtual VFIO device as we make use of them. This allows KVM to optimize for performance and correctness based on properties of the group. Signed-off-by: Alex Williamson alex.william...@redhat.com --- This patch is enabled by: [RFC PATCH 0/3] kvm/vfio: Manage

Re: [Qemu-devel] [PATCH v4 04/12] spapr vfio: add vfio_container_spapr_get_info()

2013-09-25 Thread Alex Williamson
On Fri, 2013-09-13 at 20:11 +1000, Alexey Kardashevskiy wrote: On 09/11/2013 08:11 AM, Alex Williamson wrote: On Tue, 2013-09-10 at 18:36 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 05:01 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote

Re: [Qemu-devel] [PATCH v4 11/12] spapr vfio: enable for spapr

2013-09-25 Thread Alex Williamson
On Fri, 2013-09-13 at 21:34 +1000, Alexey Kardashevskiy wrote: On 09/11/2013 08:13 AM, Alex Williamson wrote: On Tue, 2013-09-10 at 19:00 +1000, Alexey Kardashevskiy wrote: On 09/06/2013 05:05 AM, Alex Williamson wrote: On Fri, 2013-08-30 at 20:15 +1000, Alexey Kardashevskiy wrote

Re: [Qemu-devel] Call for Proposals: 2013 Linux Plumbers Virtualization Microconference

2013-07-24 Thread Alex Williamson
On Sun, 2013-07-14 at 15:59 -0600, Alex Williamson wrote: On Fri, 2013-07-12 at 14:38 -0600, Alex Williamson wrote: The Call for Proposals for the 2013 Linux Plumbers Virtualization Microconference is now open. This uconf is being held as part of Linux Plumbers Conference in New Orleans

Re: [Qemu-devel] [PATCH] seabios: update to 1.7.3

2013-08-07 Thread Alex Williamson
: Changes summary (git shortlog rel-1.7.2.2..rel-1.7.3): Alex Williamson (4): seabios q35: Enable all PIRQn IRQs at startup seabios q35: Add new PCI slot to irq routing function seabios: Add a dummy PCI slot to irq mapping function pciinit: Enable default VGA device Asias

Re: [Qemu-devel] [PATCH v2] Fix pc migration from qemu = 1.5

2013-11-04 Thread Alex Williamson
On Tue, 2013-10-08 at 15:35 -0400, Cole Robinson wrote: The following commit introduced a migration incompatibility: commit 568f0690fd9aa4d39d84b04c1a5dbb53a915c3fe Author: David Gibson da...@gibson.dropbear.id.au Date: Thu Jun 6 18:48:49 2013 +1000 pci: Replace pci_find_domain()

Re: [Qemu-devel] [PATCH uq/master] pci-assign: Remove dead code for direct I/O region access from userspace

2013-11-06 Thread Alex Williamson
On Wed, 2013-11-06 at 09:34 +0200, Gleb Natapov wrote: Alex can you review please? Yep, looks fine. Acked-by: Alex Williamson alex.william...@redhat.com On Mon, Nov 04, 2013 at 02:42:55PM +0100, Jan Kiszka wrote: This feature was already deprecated back then in qemu-kvm, ie. before pci

Re: [Qemu-devel] [PATCH] e1000/rtl8139: update HMP NIC when every bit is written

2013-11-06 Thread Alex Williamson
--- hw/net/e1000.c | 2 +- hw/net/rtl8139.c | 5 + 2 files changed, 2 insertions(+), 5 deletions(-) Reviewed-by: Alex Williamson alex.william...@redhat.com diff --git a/hw/net/e1000.c b/hw/net/e1000.c index ec8ecd7..2d60639 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c

Re: [Qemu-devel] [PATCH] e1000/rtl8139: update HMP NIC when every bit is written

2013-11-07 Thread Alex Williamson
On Thu, 2013-11-07 at 12:26 +0200, Michael S. Tsirkin wrote: On Thu, Nov 07, 2013 at 03:32:29PM +0800, Amos Kong wrote: On Thu, Nov 07, 2013 at 08:59:22AM +0200, Michael S. Tsirkin wrote: On Tue, Nov 05, 2013 at 07:17:18PM +0800, Amos Kong wrote: We currently just update the HMP NIC info

[Qemu-devel] [PATCH] vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk

2013-11-11 Thread Alex Williamson
capability ID/next registers as virtual w/o write support, so any write through config space is currently dropped. Add a check for this and allow the write through the BAR window. The registers are read-only anyway. Signed-off-by: Alex Williamson alex.william...@redhat.com --- We might be able to do

[Qemu-devel] [PATCH] vfio-pci: Add debug config options to disable MSI/X KVM support

2013-11-11 Thread Alex Williamson
It's sometimes useful to be able to verify interrupts are passing through correctly. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index

Re: [Qemu-devel] [PATCH] vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk

2013-11-11 Thread Alex Williamson
On Tue, 2013-11-12 at 07:55 +1000, Dave Airlie wrote: On Tue, Nov 12, 2013 at 7:43 AM, Alex Williamson alex.william...@redhat.com wrote: When MSI is enabled on Nvidia GeForce cards the driver seems to acknowledge the interrupt by writing a 0xff byte to the MSI capability ID register using

[Qemu-devel] [PATCH for-1.7] vfio-pci: Fix multifunction=on

2013-11-12 Thread Alex Williamson
When an assigned device is initialized it copies the device config space into the emulated config space. Unfortunately multifunction is setup prior to the device initfn and gets clobbered. We need to restore it just like pci-assign does. Signed-off-by: Alex Williamson alex.william...@redhat.com

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
or revert all of them. A partial revert is just noise. Thanks, Alex Reported-by: Vlad Yasevich vyase...@redhat.com Cc: Amos Kong ak...@redhat.com Cc: Alex Williamson alex.william...@redhat.com --- hw/net/e1000.c | 2 +- hw/net/rtl8139.c | 5 - 2 files changed, 5 insertions(+), 2

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
On Mon, 2013-11-18 at 15:09 -0500, Vlad Yasevich wrote: On 11/18/2013 02:58 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 21:47 +0200, Michael S. Tsirkin wrote: This reverts commit cd5be5829c1ce87aa6b3a7806524fac07ac9a757. Digging into hardware specs shows this does not actually make

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
On Mon, 2013-11-18 at 15:57 -0500, Vlad Yasevich wrote: On 11/18/2013 03:33 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 15:09 -0500, Vlad Yasevich wrote: On 11/18/2013 02:58 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 21:47 +0200, Michael S. Tsirkin wrote: This reverts commit

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
On Mon, 2013-11-18 at 23:47 +0200, Michael S. Tsirkin wrote: On Mon, Nov 18, 2013 at 02:33:16PM -0700, Alex Williamson wrote: On Mon, 2013-11-18 at 15:57 -0500, Vlad Yasevich wrote: On 11/18/2013 03:33 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 15:09 -0500, Vlad Yasevich wrote

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
On Mon, 2013-11-18 at 17:07 -0500, Vlad Yasevich wrote: On 11/18/2013 04:33 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 15:57 -0500, Vlad Yasevich wrote: On 11/18/2013 03:33 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 15:09 -0500, Vlad Yasevich wrote: On 11/18/2013 02:58 PM

Re: [Qemu-devel] [PATCH for-1.7] Revert e1000/rtl8139: update HMP NIC when every bit is written

2013-11-18 Thread Alex Williamson
On Mon, 2013-11-18 at 17:55 -0500, Vlad Yasevich wrote: On 11/18/2013 05:40 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 17:07 -0500, Vlad Yasevich wrote: On 11/18/2013 04:33 PM, Alex Williamson wrote: On Mon, 2013-11-18 at 15:57 -0500, Vlad Yasevich wrote: On 11/18/2013 03:33 PM

[Qemu-devel] [PATCH] vfio-pci: Release all MSI-X vectors when disabled

2013-11-21 Thread Alex Williamson
on hotplug depending on how the guest OS prepared the device for removal. Signed-off-by: Alex Williamson alex.william...@redhat.com Cc: qemu-sta...@nongnu.org --- hw/misc/vfio.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index f7f8a19..355b018

[Qemu-devel] [PATCH] kvm: Query KVM for available memory slots

2013-11-22 Thread Alex Williamson
KVM_CAP_NR_MEMSLOTS is not implemented. The motivation for this change is to support more assigned devices, where memory mapped PCI MMIO BARs typically take one slot each. Signed-off-by: Alex Williamson alex.william...@redhat.com --- kvm-all.c | 30 +- 1 file changed, 21

Re: [Qemu-devel] [PATCH v2 3/4] ide: Set BSY bit during FLUSH

2013-07-03 Thread Alex Williamson
On Wed, 2013-06-05 at 15:17 +0200, Kevin Wolf wrote: From: Andreas Färber afaer...@suse.de The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous fdatasync(). This may in some cases take so long that the SLES 11

Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH

2013-07-03 Thread Alex Williamson
On Wed, 2013-06-12 at 16:41 -0500, Michael Roth wrote: From: Andreas Färber afaer...@suse.de The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous fdatasync(). This may in some cases take so long that the SLES 11

Re: [Qemu-devel] [PATCH 12/23] ide: Convert FLUSH CACHE to ide_cmd_table handler

2013-07-03 Thread Alex Williamson
On Mon, 2013-06-24 at 11:10 +0200, Stefan Hajnoczi wrote: From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 12/23] ide: Convert FLUSH CACHE to ide_cmd_table handler

2013-07-03 Thread Alex Williamson
On Wed, 2013-07-03 at 15:41 -0600, Alex Williamson wrote: On Mon, 2013-06-24 at 11:10 +0200, Stefan Hajnoczi wrote: From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 14

Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH

2013-07-03 Thread Alex Williamson
On Wed, 2013-07-03 at 15:16 -0500, Michael Roth wrote: On Wed, Jul 3, 2013 at 3:10 PM, Alex Williamson alex.william...@redhat.com wrote: On Wed, 2013-06-12 at 16:41 -0500, Michael Roth wrote: From: Andreas Färber afaer...@suse.de The implementation of the ATA FLUSH command invokes

[Qemu-devel] Call for Proposals: 2013 Linux Plumbers Virtualization Microconference

2013-07-12 Thread Alex Williamson
The Call for Proposals for the 2013 Linux Plumbers Virtualization Microconference is now open. This uconf is being held as part of Linux Plumbers Conference in New Orleans, Louisiana, USA September 18-20th and is co-located with LinuxCon North America. For more information see:

Re: [Qemu-devel] Call for Proposals: 2013 Linux Plumbers Virtualization Microconference

2013-07-14 Thread Alex Williamson
On Fri, 2013-07-12 at 14:38 -0600, Alex Williamson wrote: The Call for Proposals for the 2013 Linux Plumbers Virtualization Microconference is now open. This uconf is being held as part of Linux Plumbers Conference in New Orleans, Louisiana, USA September 18-20th and is co-located

Re: [Qemu-devel] [PATCH] ahci: Fix FLUSH command

2013-07-15 Thread Alex Williamson
completion callback. Cc: qemu-sta...@nongnu.org Signed-off-by: Kevin Wolf kw...@redhat.com Works! Tested-by: Alex Williamson alex.william...@redhat.com --- hw/ide/ahci.c | 8 +++- hw/ide/core.c | 9 + hw/ide/internal.h | 1 + 3 files changed, 17 insertions(+), 1

[Qemu-devel] [PATCH] vfio-pci: VGA quirk update

2013-07-15 Thread Alex Williamson
in complete config space for AMD. Signed-off-by: Alex Williamson alex.william...@redhat.com --- This patch has been included in my vfio-vga-reset branch for some time, but I guess I forgot to post it. I'm doing that now with hopes of at least including this much in a qemu-1.6 pull request

Re: [Qemu-devel] [PATCH] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-07-15 Thread Alex Williamson
On Sun, 2013-07-14 at 01:48 -0600, Vijay Mohan Pandarathil wrote: Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either

[Qemu-devel] [PULL 2/2] vfio: QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-07-17 Thread Alex Williamson
-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 125 1 file changed, 125 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 95baad8..ad8ce77 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -175,6

[Qemu-devel] [PULL 0/2] VFIO for qemu-1.6

2013-07-17 Thread Alex Williamson
Alex Williamson (1): vfio-pci: VGA quirk update Vijay Mohan Pandarathil (1): vfio: QEMU-AER: Qemu changes to support AER for VFIO-PCI devices hw/misc/vfio.c | 782 - 1 file changed, 446 insertions

[Qemu-devel] [PULL 1/2] vfio-pci: VGA quirk update

2013-07-17 Thread Alex Williamson
in complete config space for AMD. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/misc/vfio.c | 657 +++- 1 file changed, 321 insertions(+), 336 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 540c377..95baad8 100644

[Qemu-devel] [PATCH] memory: Fix zero-sized memory region print

2013-07-19 Thread Alex Williamson
if mr-size == 0, then int128_get64(int128_sub(mr-size, int128_make64(1))) = assert(!a.hi) Also, use int128_one(). Signed-off-by: Alex Williamson alex.william...@redhat.com --- memory.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index

Re: [Qemu-devel] [PATCH] kvm: add KVM_IRQFD_FLAG_RESAMPLE support

2013-07-22 Thread Alex Williamson
On Mon, 2013-07-22 at 12:43 +0200, Vincenzo Maffione wrote: From e59e35380380c2986cd0164f11dcd8a07a8e4e59 Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione v.maffi...@gmail.com Date: Mon, 22 Jul 2013 11:51:33 +0200 Subject: [PATCH] kvm: add KVM_IRQFD_FLAG_RESAMPLE support Added an

Re: [Qemu-devel] [PATCH] RFC kvm irqfd: add directly mapped MSI IRQ support

2013-06-20 Thread Alex Williamson
On Fri, 2013-06-21 at 00:08 +1000, Alexey Kardashevskiy wrote: At the moment QEMU creates a route for every MSI IRQ. Now we are about to add IRQFD support on PPC64-pseries platform. pSeries already has in-kernel emulated interrupt controller with 8192 IRQs. Also, pSeries PHB already supports

Re: [Qemu-devel] [PATCH] RFC kvm irqfd: add directly mapped MSI IRQ support

2013-06-20 Thread Alex Williamson
On Fri, 2013-06-21 at 11:56 +1000, Alexey Kardashevskiy wrote: On 06/21/2013 02:51 AM, Alex Williamson wrote: On Fri, 2013-06-21 at 00:08 +1000, Alexey Kardashevskiy wrote: At the moment QEMU creates a route for every MSI IRQ. Now we are about to add IRQFD support on PPC64-pseries

  1   2   3   4   5   6   7   8   9   10   >