cloud-hypervisor/virtio-devices/src/vhost_user
Sebastien Boeuf 00800b8499 virtio-devices: Remove deprecated call to VHOST_USER_RESET_OWNER
The latest vhost-user specification describes VHOST_USER_RESET_OWNER
command as deprecated with the following explanation:

  This is no longer used. Used to be sent to request disabling all
  rings, but some back-ends interpreted it to also discard connection
  state (this interpretation would lead to bugs). It is recommended that
  back-ends either ignore this message, or use it to disable all rings.

Also, it's been observed that when using either Rust Hypervisor Firmware
or EDK2 OVMF firmware with SPDK (using the block device as the boot
disk), the virtio reset that happens when the firmware no longer needs
to access the block device caused a failure by triggering the command
VHOST_USER_RESET_OWNER.

For all these reasons, this patch simplifies the virtio reset
implementation by simply disabling the virtqueues and no longer calling
into VHOST_USER_RESET_OWNER.

Partially fixes #4285

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2022-07-06 14:45:46 +01:00
..
blk.rs virtio-devices: vhost-user: Add support for TDX 2022-03-30 10:32:23 +02:00
fs.rs virtio-devices: vhost-user: Add support for TDX 2022-03-30 10:32:23 +02:00
mod.rs virtio-devices: Clone Queue with method from vm-virtio 2022-05-16 11:47:20 +02:00
net.rs virtio-devices: vhost-user: Add support for TDX 2022-03-30 10:32:23 +02:00
vu_common_ctrl.rs virtio-devices: Remove deprecated call to VHOST_USER_RESET_OWNER 2022-07-06 14:45:46 +01:00