public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* VT-d pci passthrough patches
@ 2008-07-10  9:14 Ben-Ami Yassour
  2008-07-10  9:14 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
  0 siblings, 1 reply; 20+ messages in thread
From: Ben-Ami Yassour @ 2008-07-10  9:14 UTC (permalink / raw)
  To: amit.shah; +Cc: kvm, muli, benami, weidong.han, anthony

The following two patches contains the VT-d support for pci passthrough
devices. 
The first patch contains the changes that are required to the generic
VT-d code.
The second patch contains the changes to KVM.

These patches contains fixes based on comments by Anthony,
on the pervious version.

The VT-d code is used by the pci-passthrough code to map the entire
guest memory in the IOMMU.
Once mmu-notifiers go in, we will be able to support finer grained forms
of protection.

The main differences from the previous version, sent by Weidong, are
fixes for the page pinning.
In the destruction path we need to call put_page for each page that was
mapped in the iommu and pinned during initialization..
The KVM process page tables are already released by the time the KVM vm
destroy path is executed.
Therefore we can not use gfn_to_pfn (which uses get_user_pages) to get
the pages.
The approach in the current patch is to find the pages to unpin by
looking at the IOMMU page table.

This patch applies to the Amit's PCI passthrough tree.

Any comments are welcome.

Regards,
Ben



^ permalink raw reply	[flat|nested] 20+ messages in thread
* VT-d pci passthrough patches
@ 2008-07-06 10:52 Ben-Ami Yassour
  2008-07-06 10:52 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
  0 siblings, 1 reply; 20+ messages in thread
From: Ben-Ami Yassour @ 2008-07-06 10:52 UTC (permalink / raw)
  To: amit.shah; +Cc: kvm, muli, benami, weidong.han

The following two patches contains the VT-d support for pci passthrough
devices. 
The first patch contains the changes that are required to the generic
VT-d code.
The second patch contains the changes to KVM.

These patches contains fixes of the previous version, based on comments 
from Avi and Weidong.

The VT-d code is used by the pci-passthrough code to map the entire
guest memory in the IOMMU.
Once mmu-notifiers go in, we will be able to support finer grained forms
of protection.

The main differences from the previous version, sent by Weidong, are
fixes for the page pinning.
In the destruction path we need to call put_page for each page that was
mapped in the iommu and pinned during initialization..
The KVM process page tables are already released by the time the KVM vm
destroy path is executed.
Therefore we can not use gfn_to_pfn (which uses get_user_pages) to get
the pages.
The approach in the current patch is to find the pages to unpin by
looking at the IOMMU page table.

This patch applies to the main KVM tree.
The code is not useable without the pci-passthrough code, however we
separate it from the rest of the pci-passthrough code, so it can be
reviewed and merged independently.

Any comments are welcome.

Regards,
Ben



^ permalink raw reply	[flat|nested] 20+ messages in thread
* VT-d pci passthrough patches
@ 2008-07-02 15:33 Ben-Ami Yassour
  2008-07-02 15:33 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
  0 siblings, 1 reply; 20+ messages in thread
From: Ben-Ami Yassour @ 2008-07-02 15:33 UTC (permalink / raw)
  To: amit.shah; +Cc: kvm, muli, benami, weidong.han

The following two patches contains the VT-d support for pci passthrough
devices.
The first patch contains the changes that are required to the generic
VT-d code.
The second patch contains the changes to KVM.

The VT-d code is used by the pci-passthrough code to map the entire
guest memory in the IOMMU.
Once mmu-notifiers go in, we will be able to support finer grained forms
of protection.

The main differences from the previous version, sent by Weidong, are
fixes for the page pinning.
In the destruction path we need to call put_page for each page that was
mapped in the iommu and pinned during initialization..
The KVM process page tables are already released by the time the KVM vm
destroy path is executed.
Therefore we can not use gfn_to_pfn (which uses get_user_pages) to get
the pages.
The approach in the current patch is to find the pages to unpin by
looking at the IOMMU page table.

This patch applies to the main KVM tree.
The code is not useable without the pci-passthrough code, however we
separate it from the rest of the pci-passthrough code, so it can be
reviewed and merged independently.

Any comments are welcome.

Regards,
Ben



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-07-14  8:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10  9:14 VT-d pci passthrough patches Ben-Ami Yassour
2008-07-10  9:14 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
2008-07-10  9:14   ` [PATCH] KVM: PCIPT: VT-d support Ben-Ami Yassour
2008-07-10  9:30     ` Yang, Sheng
2008-07-10  9:51       ` Ben-Ami Yassour
2008-07-10 10:07         ` Yang, Sheng
2008-07-10 14:41           ` Muli Ben-Yehuda
2008-07-10 14:57             ` Avi Kivity
2008-07-10 16:00               ` Muli Ben-Yehuda
2008-07-13  7:34                 ` Avi Kivity
2008-07-14  7:49                   ` Ben-Ami Yassour
2008-07-14  8:48                     ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2008-07-06 10:52 VT-d pci passthrough patches Ben-Ami Yassour
2008-07-06 10:52 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
2008-07-06 10:52   ` [PATCH] KVM: PCIPT: VT-d support Ben-Ami Yassour
2008-07-09 15:49     ` Anthony Liguori
2008-07-10  9:19       ` Ben-Ami Yassour
2008-07-02 15:33 VT-d pci passthrough patches Ben-Ami Yassour
2008-07-02 15:33 ` [PATCH] VT-d : changes to support KVM Ben-Ami Yassour
2008-07-02 15:33   ` [PATCH] KVM: PCIPT: VT-d support Ben-Ami Yassour
2008-07-03  4:55     ` Han, Weidong
2008-07-06 11:15       ` Ben-Ami Yassour
     [not found]     ` <08DF4D958216244799FC84F3514D70F00181AB10@pdsmsx415.ccr.corp.intel.com>
2008-07-03  6:16       ` Han, Weidong
2008-07-03 11:33         ` Ben-Ami Yassour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox