]> git.ipfire.org Git - thirdparty/qemu.git/commit
vdpa: reorder vhost_vdpa_net_cvq_cmd_page_len function
authorEugenio Pérez <eperezma@redhat.com>
Fri, 2 Jun 2023 14:38:53 +0000 (16:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jun 2023 13:50:00 +0000 (09:50 -0400)
commit915bf6ccd7a5c9b6cbea7a72f153597d1b98834f
tree2354c0306d6475f52a513aa2308bcee27acdf5c1
parent8bc0049eadafb984d305c847cedff550b58e5fc0
vdpa: reorder vhost_vdpa_net_cvq_cmd_page_len function

We need to call it from resource cleanup context, as munmap needs the
size of the mappings.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230602143854.1879091-3-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c