diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-07-10 11:49:26 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-10-04 04:53:55 -0400 |
commit | 961d60e934e793a6065fb17d2312d5bced25031e (patch) | |
tree | d956a61931efe28cc28de6394c8132a2834f5f86 /qemu-bridge-helper.c | |
parent | 4565917bb034479a29c04f0b44124e7f61585ccf (diff) | |
download | qemu-961d60e934e793a6065fb17d2312d5bced25031e.zip qemu-961d60e934e793a6065fb17d2312d5bced25031e.tar.gz qemu-961d60e934e793a6065fb17d2312d5bced25031e.tar.bz2 |
hw/virtio: Propagate page_mask to vhost_vdpa_listener_skipped_section()
In order to make vhost-vdpa.c a target-agnostic source unit,
we need to remove the TARGET_PAGE_SIZE / TARGET_PAGE_MASK /
TARGET_PAGE_ALIGN uses. TARGET_PAGE_SIZE will be replaced by
the runtime qemu_target_page_size(). The other ones will be
deduced from TARGET_PAGE_SIZE.
Since the 3 macros are used in 3 related functions (sharing
the same call tree), we'll refactor them to only depend on
TARGET_PAGE_MASK.
Having the following call tree:
vhost_vdpa_listener_region_del()
-> vhost_vdpa_listener_skipped_section()
-> vhost_vdpa_section_end()
The first step is to propagate TARGET_PAGE_MASK to
vhost_vdpa_listener_skipped_section().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230710094931.84402-2-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qemu-bridge-helper.c')
0 files changed, 0 insertions, 0 deletions