Re: [PATCH v8 1/2] vfio: move implement of vfio_get_xlat_addr() to memory.c

2022-10-30 Thread Cindy Lu
On Mon, 31 Oct 2022 at 10:30, Alex Williamson wrote: > > On Mon, 31 Oct 2022 09:56:04 +0800 > Cindy Lu wrote: > > > - Move the implement vfio_get_xlat_addr to softmmu/memory.c, and > > change the name to memory_get_xlat_addr(). So we can use this > > function on other devices, such as vDPA de

Re: [PATCH v8 1/2] vfio: move implement of vfio_get_xlat_addr() to memory.c

2022-10-30 Thread Alex Williamson
On Mon, 31 Oct 2022 09:56:04 +0800 Cindy Lu wrote: > - Move the implement vfio_get_xlat_addr to softmmu/memory.c, and >   change the name to memory_get_xlat_addr(). So we can use this >   function on other devices, such as vDPA device. > - Add a new function vfio_get_xlat_addr in vfio/common.c, a

[PATCH v8 1/2] vfio: move implement of vfio_get_xlat_addr() to memory.c

2022-10-30 Thread Cindy Lu
- Move the implement vfio_get_xlat_addr to softmmu/memory.c, and   change the name to memory_get_xlat_addr(). So we can use this   function on other devices, such as vDPA device. - Add a new function vfio_get_xlat_addr in vfio/common.c, and it will check whether the memory is backed by a discard