Re: [PATCH] KVM: Device Assignment with VT-d

2008-09-16 Thread Muli Ben-Yehuda
On Tue, Sep 16, 2008 at 11:18:30AM -0700, Avi Kivity wrote: > Laurent Vivier wrote: >>> @@ -1147,6 +1157,9 @@ int kvm_dev_ioctl_check_extension(long ext) >>> case KVM_CAP_PV_MMU: >>> r = !tdp_enabled; >>> break; >>> + case KVM_CAP_IOMMU: >>> + r = intel_iommu

Re: [PATCH] KVM: Device Assignment with VT-d

2008-09-16 Thread Avi Kivity
Laurent Vivier wrote: @@ -1147,6 +1157,9 @@ int kvm_dev_ioctl_check_extension(long ext) case KVM_CAP_PV_MMU: r = !tdp_enabled; break; + case KVM_CAP_IOMMU: + r = intel_iommu_found(); + break; Must depend on CONFIG_DM

Re: [PATCH] KVM: Device Assignment with VT-d

2008-09-16 Thread Laurent Vivier
Le mardi 16 septembre 2008 à 00:58 +, Avi Kivity a écrit : > From: Ben-Ami Yassour <[EMAIL PROTECTED]> > > Based on a patch by: Kay, Allen M <[EMAIL PROTECTED]> > > This patch enables PCI device assignment based on VT-d support. > When a device is assigned to the guest, the guest memory is pi

[PATCH] KVM: Device Assignment with VT-d

2008-08-22 Thread Amit Shah
Based on a patch by: Kay, Allen M <[EMAIL PROTECTED]> This patch enables PCI device assignment based on VT-d support. When a device is assigned to the guest, the guest memory is pinned and the mapping is updated in the VT-d IOMMU. Signed-off-by: Kay, Allen M <[EMAIL PROTECTED]> Signed-off-by: Wei