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

2022-10-27 Thread Cindy Lu
On Thu, 27 Oct 2022 at 04:40, Michael S. Tsirkin wrote: > > On Tue, Oct 25, 2022 at 10:55:18AM -0600, Alex Williamson wrote: > > On Wed, 26 Oct 2022 00:37:33 +0800 > > Cindy Lu wrote: > > > diff --git a/softmmu/memory.c b/softmmu/memory.c > > > index 7ba2048836..03940c551d 100644 > > > ---

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

2022-10-26 Thread Michael S. Tsirkin
On Tue, Oct 25, 2022 at 10:55:18AM -0600, Alex Williamson wrote: > On Wed, 26 Oct 2022 00:37:33 +0800 > Cindy Lu wrote: > > diff --git a/softmmu/memory.c b/softmmu/memory.c > > index 7ba2048836..03940c551d 100644 > > --- a/softmmu/memory.c > > +++ b/softmmu/memory.c > ... > > +/* > > +

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

2022-10-25 Thread Alex Williamson
On Wed, 26 Oct 2022 00:37:33 +0800 Cindy Lu wrote: > diff --git a/softmmu/memory.c b/softmmu/memory.c > index 7ba2048836..03940c551d 100644 > --- a/softmmu/memory.c > +++ b/softmmu/memory.c ... > +/* > + * Malicious VMs might trigger discarding of IOMMU-mapped memory. The > +

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

2022-10-25 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 |