Re: Questions about the VFIO BAR region

2019-11-05 Thread Li Qiang
Auger Eric 于2019年11月5日周二 下午9:17写道: > Hi Li, > > On 11/5/19 2:16 AM, Li Qiang wrote: > > > > > > Alex Williamson > > 于2019年11月5日周二 上午2:49写道: > > > > On Tue, 5 Nov 2019 00:40:39 +0800 > > Li Qiang mailto:liq...@163.com>> wrote: > > > > > Hello Alex, A

Re: Questions about the VFIO BAR region

2019-11-05 Thread Auger Eric
Hi Li, On 11/5/19 2:16 AM, Li Qiang wrote: > > > Alex Williamson > 于2019年11月5日周二 上午2:49写道: > > On Tue, 5 Nov 2019 00:40:39 +0800 > Li Qiang mailto:liq...@163.com>> wrote: > > > Hello Alex, Auger and all, > > > > I have a question about th

Re: Questions about the VFIO BAR region

2019-11-04 Thread Li Qiang
Alex Williamson 于2019年11月5日周二 上午2:49写道: > On Tue, 5 Nov 2019 00:40:39 +0800 > Li Qiang wrote: > > > Hello Alex, Auger and all, > > > > I have a question about the VFIO virtual device BAR. > > > > In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops > to ‘vfio_regions_ops’. > >

Re: Questions about the VFIO BAR region

2019-11-04 Thread Alex Williamson
On Tue, 5 Nov 2019 00:40:39 +0800 Li Qiang wrote: > Hello Alex, Auger and all, > > I have a question about the VFIO virtual device BAR. > > In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops to > ‘vfio_regions_ops’. > In ‘vfio_region_mmap’, it maps the physical device’s MM

Questions about the VFIO BAR region

2019-11-04 Thread Li Qiang
Hello Alex, Auger and all, I have a question about the VFIO virtual device BAR. In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops to ‘vfio_regions_ops’. In ‘vfio_region_mmap’, it maps the physical device’s MMIO to QEMU’s virtual address space as a raw MR ‘region->mmaps[i]