diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2023-03-03 18:24:40 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-03-07 12:38:59 -0500 |
commit | a230c4712b9d4af202883b789e80780265b00de7 (patch) | |
tree | 1df98a94d13cfdde9fef55f729ab8c58388b0f7c /meson.build | |
parent | 6949843046b6f9c4c6cd28922d5427a17414dfc9 (diff) |
vdpa: disable RAM block discard only for the first device
Although it does not make a big difference, its more correct and
simplifies the cleanup path in subsequent patches.
Move ram_block_discard_disable(false) call to the top of
vhost_vdpa_cleanup because:
* We cannot use vhost_vdpa_first_dev after dev->opaque = NULL
assignment.
* Improve the stack order in cleanup: since it is the last action taken
in init, it should be the first at cleanup.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20230303172445.1089785-10-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions