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

2022-10-27 Thread Alex Williamson
On Fri, 28 Oct 2022 10:23:16 +0800 Jason Wang wrote: > On Fri, Oct 28, 2022 at 10:08 AM Alex Williamson > wrote: > > > > On Fri, 28 Oct 2022 09:50:10 +0800 > > Jason Wang wrote: > > > > > On Fri, Oct 28, 2022 at 5:11 AM Alex Williamson > > > wrote: > > > > > > > > On Thu, 27 Oct 2022 15:40

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

2022-10-27 Thread Jason Wang
On Fri, Oct 28, 2022 at 10:35 AM Alex Williamson wrote: > > On Fri, 28 Oct 2022 10:23:16 +0800 > Jason Wang wrote: > > > On Fri, Oct 28, 2022 at 10:08 AM Alex Williamson > > wrote: > > > > > > On Fri, 28 Oct 2022 09:50:10 +0800 > > > Jason Wang wrote: > > > > > > > On Fri, Oct 28, 2022 at 5:11

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

2022-10-27 Thread Jason Wang
On Fri, Oct 28, 2022 at 10:08 AM Alex Williamson wrote: > > On Fri, 28 Oct 2022 09:50:10 +0800 > Jason Wang wrote: > > > On Fri, Oct 28, 2022 at 5:11 AM Alex Williamson > > wrote: > > > > > > On Thu, 27 Oct 2022 15:40:31 +0800 > > > Cindy Lu wrote: > > > > > > > Move the function vfio_get_xlat_

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

2022-10-27 Thread Alex Williamson
On Fri, 28 Oct 2022 09:50:10 +0800 Jason Wang wrote: > On Fri, Oct 28, 2022 at 5:11 AM Alex Williamson > wrote: > > > > On Thu, 27 Oct 2022 15:40:31 +0800 > > Cindy Lu wrote: > > > > > Move the function vfio_get_xlat_addr to softmmu/memory.c, and > > > change the name to memory_get_xlat_addr(

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

2022-10-27 Thread Jason Wang
On Fri, Oct 28, 2022 at 5:11 AM Alex Williamson wrote: > > On Thu, 27 Oct 2022 15:40:31 +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 in other devices,such as vDPA device. >

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

2022-10-27 Thread Alex Williamson
On Thu, 27 Oct 2022 15:40:31 +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 in other devices,such as vDPA device. > > Signed-off-by: Cindy Lu > --- > hw/vfio/common.c | 92 ++--

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

2022-10-27 Thread Peter Xu
On Thu, Oct 27, 2022 at 03:40:31PM +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 in other devices,such as vDPA device. > > Signed-off-by: Cindy Lu Acked-by: Peter Xu Trivial nit b

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

2022-10-27 Thread Jason Wang
On Thu, Oct 27, 2022 at 3:41 PM 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 in other devices,such as vDPA device. > > Signed-off-by: Cindy Lu Acked-by: Jason Wang > --- > hw/vfio/co

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

2022-10-27 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 in other devices,such as vDPA device. Signed-off-by: Cindy Lu --- hw/vfio/common.c | 92 ++- include/exec/memory.h | 4