From: Cindy Lu Date: Wed, 10 May 2023 05:46:29 +0000 (+0800) Subject: vhost_vdpa: fix the input in trace_vhost_vdpa_listener_region_del() X-Git-Tag: v8.1.0-rc0~110^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d1e4d34a81a212e234f674e57e73c824d4b131a;p=thirdparty%2Fqemu.git vhost_vdpa: fix the input in trace_vhost_vdpa_listener_region_del() In trace_vhost_vdpa_listener_region_del, the value for llend should change to int128_get64(int128_sub(llend, int128_one())) Signed-off-by: Cindy Lu Message-Id: <20230510054631.2951812-3-lulu@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c index bc6bad23d53..92c2413c76f 100644 --- a/hw/virtio/vhost-vdpa.c +++ b/hw/virtio/vhost-vdpa.c @@ -288,7 +288,8 @@ static void vhost_vdpa_listener_region_del(MemoryListener *listener, iova = TARGET_PAGE_ALIGN(section->offset_within_address_space); llend = vhost_vdpa_section_end(section); - trace_vhost_vdpa_listener_region_del(v, iova, int128_get64(llend)); + trace_vhost_vdpa_listener_region_del(v, iova, + int128_get64(int128_sub(llend, int128_one()))); if (int128_ge(int128_make64(iova), llend)) { return;