Re: [vfio-users] Assigning network devices to nested VMs results in driver errors in nested VMs

2018-02-14 Thread Jintack Lim
On Wed, Feb 14, 2018 at 12:36 AM, Peter Xu wrote: > On Tue, Feb 13, 2018 at 11:44:09PM -0500, Jintack Lim wrote: >> Hi, >> >> I'm trying to assign network devices to nested VMs on x86 using KVM, >> but I got network device driver errors in the nested VMs. (I've tried >> this

Re: [vfio-users] Assigning network devices to nested VMs results in driver errors in nested VMs

2018-02-14 Thread Peter Xu
On Tue, Feb 13, 2018 at 11:44:09PM -0500, Jintack Lim wrote: > Hi, > > I'm trying to assign network devices to nested VMs on x86 using KVM, > but I got network device driver errors in the nested VMs. (I've tried > this about an year ago when vIOMMU patches were not upstreamed, and I > got similar

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-14 Thread Alex Williamson
On Wed, 14 Feb 2018 22:06:35 +0100 Oliver Heid wrote: > Regarding the vfio_device_info struct: I get 9 device regions, of which > region 0, 2 and 4 seem to be the three BAR regions. Is that so? Always? > What do the other regions do? This is all answered in the API:

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-14 Thread Oliver Heid
Regarding the vfio_device_info struct: I get 9 device regions, of which region 0, 2 and 4 seem to be the three BAR regions. Is that so? Always? What do the other regions do? And by mmap of PCIe config space you mean mapping the files /sys/bus/pci/devices/:xx:yy.z/resource0 ?! Thanks a

Re: [vfio-users] Assigning network devices to nested VMs results in driver errors in nested VMs

2018-02-14 Thread Jintack Lim
On Tue, Feb 13, 2018 at 11:44 PM, Jintack Lim wrote: > Hi, > > I'm trying to assign network devices to nested VMs on x86 using KVM, > but I got network device driver errors in the nested VMs. (I've tried > this about an year ago when vIOMMU patches were not upstreamed,