]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-backend: remove vhost_kernel_reset_device()
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Oct 2023 01:45:31 +0000 (21:45 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 22 Oct 2023 09:18:16 +0000 (05:18 -0400)
commite6383293eb01928692047e617665a742cca87e23
tree60a286fd17179e18458c45468479a1c56e783ae3
parent22d2464f7ee6242114733e62541eed14cde15977
vhost-backend: remove vhost_kernel_reset_device()

vhost_kernel_reset_device() invokes RESET_OWNER, which disassociates the
owner process from the device. The device is left non-operational since
SET_OWNER is only called once during startup in vhost_dev_init().

vhost_kernel_reset_device() is never called so this latent bug never
appears. Get rid of vhost_kernel_reset_device() for now. If someone
needs it in the future they'll need to implement it correctly.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20231004014532.1228637-3-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
hw/virtio/vhost-backend.c