On 23/05/2023 18.36, Philippe Mathieu-Daudé wrote:
Replace TARGET_PAGE_MASK -> qemu_target_page_mask() and
TARGET_PAGE_ALIGN() -> qemu_target_page_align() so we don't
need the target-specific "cpu.h" header.

These macros are used in the MemoryListener add/del handlers
(vhost_vdpa_listener_skipped_section is only called by
vhost_vdpa_listener_region_add) which are not hot-path.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  hw/virtio/vhost-vdpa.c | 16 ++++++++--------
  hw/virtio/meson.build  |  3 ++-
  2 files changed, 10 insertions(+), 9 deletions(-)

Reviewed-by: Thomas Huth <th...@redhat.com>



Reply via email to