Re: [PATCH v5 1/2] vfio: move function vfio_get_xlat_addr() to memory.c

2022-10-29 Thread Cindy Lu
On Sun, 30 Oct 2022 at 13:14, Alex Williamson wrote: > > On Sun, 30 Oct 2022 12:35:54 +0800 > Cindy Lu wrote: > > > - Move the function 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

Re: [PATCH v5 1/2] vfio: move function vfio_get_xlat_addr() to memory.c

2022-10-29 Thread Alex Williamson
On Sun, 30 Oct 2022 12:35:54 +0800 Cindy Lu wrote: > - Move the function 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 bool arg in this function, which shows whether

[PATCH v5 1/2] vfio: move function vfio_get_xlat_addr() to memory.c

2022-10-29 Thread Cindy Lu
- Move the function 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 bool arg in this function, which shows whether the memory is   backed by a discard manager. So the device