[PATCH RFC] qemu: fix hot remove assigned device

2009-06-08 Thread Weidong Han
s when to free a non-initialized qdev. Paul, you introduced the code to free qdev in pci_unregiser_device. Did you miss something? Following patch changes the code back to free pci_dev, and fixes the hot remove issue. Signed-off-by: Weidong Han --- hw/pci.c |2 +- 1 files changed, 1 insert

[PATCH] qemu: fix free assigned device

2009-06-12 Thread Weidong Han
times can trigger this failure. This patch fixes the above issues. Signed-off-by: Weidong Han --- hw/device-assignment.c | 29 ++--- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index 65920d0..357a946 1

[PATCH 2/2] Intel-IOMMU, intr-remap: source-id checking

2009-05-06 Thread Weidong Han
guest/VM or the VMM itself. This patch adds source-id checking for interrupt remapping, and then really isolates interrupts for guests/VMs with assigned devices. Signed-off-by: Weidong Han --- arch/x86/kernel/apic/io_apic.c |6 +++ drivers/pci/intr_remapping.c | 98

[PATCH 1/2] Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it

2009-05-06 Thread Weidong Han
patch depends on this. Signed-off-by: Weidong Han --- drivers/pci/intr_remapping.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index f5e0ea7..946e170 100644 --- a/drivers/pci/intr_remapping.c +++ b

[PATCH v2 0/2] Intel-IOMMU: source-id checking for interrupt remapping

2009-05-19 Thread Weidong Han
ime. Weidong Han (2): Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it Intel-IOMMU, intr-remap: source-id checking arch/x86/kernel/apic/io_apic.c |6 ++ drivers/pci/intr_remapping.c | 100 +-- drivers/pci/intr_remappin

[PATCH v2 1/2] Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it

2009-05-19 Thread Weidong Han
patch depends on this. Signed-off-by: Weidong Han --- drivers/pci/intr_remapping.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index f5e0ea7..946e170 100644 --- a/drivers/pci/intr_remapping.c +++ b

[PATCH v2 2/2] Intel-IOMMU, intr-remap: source-id checking

2009-05-19 Thread Weidong Han
. Signed-off-by: Weidong Han --- arch/x86/kernel/apic/io_apic.c |6 +++ drivers/pci/intr_remapping.c | 90 ++- drivers/pci/intr_remapping.h |2 + include/linux/dmar.h | 11 + 4 files changed, 106 insertions(+), 3 deletions(-) diff --git

[PATCH v3 0/2] Intel-IOMMU: source-id checking for interrupt remapping

2009-05-22 Thread Weidong Han
config_byte) to parse IOAPIC, instead of PCI related discovery, because PCI subsystem is not initialized at that time. Weidong Han (2): Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it Intel-IOMMU, intr-remap: source-id checking arch/x86/kernel/apic/io_apic.c |

[PATCH v3 1/2] Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it

2009-05-22 Thread Weidong Han
patch depends on this. Signed-off-by: Weidong Han --- drivers/pci/intr_remapping.c | 40 ++-- 1 files changed, 26 insertions(+), 14 deletions(-) diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index 3a0cb0b..a2ccb62 100644 --- a

[PATCH v3 2/2] Intel-IOMMU, intr-remap: source-id checking

2009-05-22 Thread Weidong Han
. Signed-off-by: Weidong Han --- arch/x86/kernel/apic/io_apic.c |6 ++ drivers/pci/intr_remapping.c | 120 +++- drivers/pci/intr_remapping.h |2 + include/linux/dmar.h | 11 4 files changed, 136 insertions(+), 3 deletions(-) diff --git a

Re: Direct access to GPGPU do-able?

2009-12-01 Thread Weidong Han
Carsten Aulbert wrote: Hi, I'll start with a one-off question here, so please cc me on the reply. We are running a largish cluster and are currently buying GPGPU systems (Tesla and soon Fermi based). We will have at least 2 possibly 4 of these cards per box and have the problem that some cod

Re: [PATCH] VT-d: fix PCI device detach from virtual machine

2010-06-16 Thread Weidong Han
David Woodhouse wrote: On Thu, 2009-02-26 at 17:31 +0800, Han, Weidong wrote: When assign a device behind conventional PCI bridge or PCIe to PCI/PCI-x bridge to a domain, it must assign its bridge and may also need to assign secondary interface to the same domain. Dependent assignment is a

Re: [PATCH] VT-d: fix PCI device detach from virtual machine

2010-06-17 Thread Weidong Han
David Woodhouse wrote: On Thu, 2010-06-17 at 11:35 +0800, Weidong Han wrote: David Woodhouse wrote: So why do we bother setting up a context in the IOMMU for the device itself, when no DMA will ever appear to come from this device? And if the device is behind PCI Express-to