Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-30 Thread Simon Guo
On Tue, Oct 30, 2018 at 11:00:51AM +0800, Peter Xu wrote: > On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > > On Mon, 29 Oct 2018 17:14:46 +0800 > > Jason Wang wrote: > > > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > > Hi, > > > > > > > > I am using network device pass

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-30 Thread Simon Guo
On Tue, Oct 30, 2018 at 11:00:51AM +0800, Peter Xu wrote: > On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > > On Mon, 29 Oct 2018 17:14:46 +0800 > > Jason Wang wrote: > > > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > > Hi, > > > > > > > > I am using network device pass

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Peter Xu
On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > On Mon, 29 Oct 2018 17:14:46 +0800 > Jason Wang wrote: > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > Hi, > > > > > > I am using network device pass through mode with qemu x86(-device > > > vfio-pci,host=:xx:yy.z) > > >

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Peter Xu
On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > On Mon, 29 Oct 2018 17:14:46 +0800 > Jason Wang wrote: > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > Hi, > > > > > > I am using network device pass through mode with qemu x86(-device > > > vfio-pci,host=:xx:yy.z) > > >

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Alex Williamson
On Mon, 29 Oct 2018 17:14:46 +0800 Jason Wang wrote: > On 2018/10/29 上午10:42, Simon Guo wrote: > > Hi, > > > > I am using network device pass through mode with qemu x86(-device > > vfio-pci,host=:xx:yy.z) > > and “intel_iommu=on” in host kernel command line, and it shows the whole > >

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Alex Williamson
On Mon, 29 Oct 2018 17:14:46 +0800 Jason Wang wrote: > On 2018/10/29 上午10:42, Simon Guo wrote: > > Hi, > > > > I am using network device pass through mode with qemu x86(-device > > vfio-pci,host=:xx:yy.z) > > and “intel_iommu=on” in host kernel command line, and it shows the whole > >

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Jason Wang
On 2018/10/29 上午10:42, Simon Guo wrote: Hi, I am using network device pass through mode with qemu x86(-device vfio-pci,host=:xx:yy.z) and “intel_iommu=on” in host kernel command line, and it shows the whole guest memory were pinned(vfio_pin_pages()), viewed by the “top” RES memory

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-29 Thread Jason Wang
On 2018/10/29 上午10:42, Simon Guo wrote: Hi, I am using network device pass through mode with qemu x86(-device vfio-pci,host=:xx:yy.z) and “intel_iommu=on” in host kernel command line, and it shows the whole guest memory were pinned(vfio_pin_pages()), viewed by the “top” RES memory

Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-28 Thread Simon Guo
Hi, I am using network device pass through mode with qemu x86(-device vfio-pci,host=:xx:yy.z) and “intel_iommu=on” in host kernel command line, and it shows the whole guest memory were pinned(vfio_pin_pages()), viewed by the “top” RES memory output. I understand it is due to device can DMA

Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-28 Thread Simon Guo
Hi, I am using network device pass through mode with qemu x86(-device vfio-pci,host=:xx:yy.z) and “intel_iommu=on” in host kernel command line, and it shows the whole guest memory were pinned(vfio_pin_pages()), viewed by the “top” RES memory output. I understand it is due to device can DMA