Re: [Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-06-14 Thread Thanos Makatos
> > > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > > > index 4374cc6176..d9d3b1277a 100644 > > > --- a/hw/vfio/common.c > > > +++ b/hw/vfio/common.c > > > @@ -430,6 +430,9 @@ static void > > vfio_listener_region_add(MemoryListener *listener, > > > VFIOHostDMAWindow *hostwin; > > >

Re: [Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-06-04 Thread Thanos Makatos
> > Indeed. Could we decide whether or not to register an address space with > > VFIO in a more intelligent manner? E.g. the following simplistic patch > > solves > > our problem: > > > > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > > index 4374cc6176..d9d3b1277a 100644 > > ---

Re: [Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-05-31 Thread Alex Williamson
On Fri, 31 May 2019 15:28:07 + Thanos Makatos wrote: > > > When configuring device pass-through via VFIO to a VM, I noticed that > > > QEMU tries to register (DMA_MAP) all memory regions of a guest (not > > > only RAM). That includes firmware regions like "pc.rom". > Would a

Re: [Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-05-31 Thread Thanos Makatos
> > When configuring device pass-through via VFIO to a VM, I noticed that > > QEMU tries to register (DMA_MAP) all memory regions of a guest (not > > only RAM). That includes firmware regions like "pc.rom". Would a > > physical device ever need access to those? > > Probably not,

Re: [Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-05-31 Thread Alex Williamson
On Fri, 31 May 2019 13:32:29 + Thanos Makatos wrote: > When configuring device pass-through via VFIO to a VM, I noticed that > QEMU tries to register (DMA_MAP) all memory regions of a guest (not > only RAM). That includes firmware regions like "pc.rom". Would a > physical device ever need

[Qemu-devel] QEMU tries to register to VFIO memory that is not RAM

2019-05-31 Thread Thanos Makatos
When configuring device pass-through via VFIO to a VM, I noticed that QEMU tries to register (DMA_MAP) all memory regions of a guest (not only RAM). That includes firmware regions like "pc.rom". Would a physical device ever need access to those? Am I missing something?