linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Query on VFIO in Virtual machine
@ 2017-06-22 16:48 Nitin Saxena
  2017-06-22 16:59 ` Alex Williamson
  0 siblings, 1 reply; 5+ messages in thread
From: Nitin Saxena @ 2017-06-22 16:48 UTC (permalink / raw)
  To: linux-kernel, Alex Williamson

Hi,

I have a PCI device connected as an endpoint to Intel host machine.
The requirement is to run dpdk like user space data path application
in VM using PCI PF passthrough (SRIOV disabled). This application
works fine on host kernel and uses VFIO to get MSIX interrupts from
PCI device. We are trying to run this existing application in VM using
PCI passthrough. This application has capability to use
VFIO_IOMMU_TYPE1 as wells as VFIO_NOIOMMU.

On Intel host machine VT-d has been enabled and using virt-manager PCI
device PF is assigned to the VM. This makes virt-manager to implicitly
binds PCI device PF to vfio with vfio_iommu_type1. The VM LINUX kernel
was booted with intel_iommu=on as boot parameter.

My question: Is it possible that vfio can coexist in host (by
virt-manager) as well as VM (by application)? If yes, does application
running inside VM needs to configure VFIO with iommu_type=IOMMU or
iommu_type=no-iommu.

In VM I tried inserting vfio_iommu_type1.ko kernel module which failed
with "No such device error". Thats why I am confused whether my
requirement is legitimate or not. What could be the best solution?

Thanks in advance
Nitin

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

end of thread, other threads:[~2017-06-23  4:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-22 16:48 Query on VFIO in Virtual machine Nitin Saxena
2017-06-22 16:59 ` Alex Williamson
2017-06-22 17:12   ` Nitin Saxena
2017-06-22 17:27     ` Alex Williamson
2017-06-23  4:17       ` Peter Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).