[PATCH v2] vhost: don't set vring call if guest notifiers is not enabled

2024-04-08 Thread lyx634449800
When conducting performance testing using testpmd in the guest os, it was observed that the performance was lower compared to the scenario of direct vfio-pci usage. In the commit 96a3d98d2cdbd897ff5ab33427aa4cfb94077665, the author provided a good solution. However, because the guest OS's driver(e

[PATCH] vhost: don't set vring call if no enabled msix

2024-04-07 Thread lyx634449800
When conducting performance testing using testpmd in the guest os, it was observed that the performance was lower compared to the scenario of direct vfio-pci usage. In the virtual machine operating system, even if the virtio device does not use msix interrupts, vhost still sets vring call fd. This

[PATCH v2] vdpa-dev: Fix the issue of device status not updating when configuration interruption is triggered

2024-04-07 Thread lyx634449800
The set_config callback function vhost_vdpa_device_get_config in vdpa-dev does not fetch the current device status from the hardware device, causing the guest os to not receive the latest device status information. The hardware updates the config status of the vdpa device and then notifies the os.

[PATCH] vdpa-dev: Fix the issue of device status not updating when configuration interruption is triggered

2024-04-07 Thread lyx634449800
The set_config callback function vhost_vdpa_device_get_config in vdpa-dev does not fetch the current device status from the hardware device, causing the GUEST OS to not receive the latest device status information. The hardware updates the config status of the vdpa device and then notifies the OS.