mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
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 <lulu@redhat.com> Message-Id: <20230510054631.2951812-3-lulu@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
74b5d2b56c
commit
3d1e4d34a8
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ static void vhost_vdpa_listener_region_del(MemoryListener *listener,
|
||||||
iova = TARGET_PAGE_ALIGN(section->offset_within_address_space);
|
iova = TARGET_PAGE_ALIGN(section->offset_within_address_space);
|
||||||
llend = vhost_vdpa_section_end(section);
|
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)) {
|
if (int128_ge(int128_make64(iova), llend)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue