[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 51/56] vhost-user: Skip unnecessary duplicated VHOST_USER_ADD/REM_
From: |
Michael S. Tsirkin |
Subject: |
[PULL 51/56] vhost-user: Skip unnecessary duplicated VHOST_USER_ADD/REM_MEM_REG requests |
Date: |
Mon, 30 Jan 2023 15:21:30 -0500 |
From: Minghao Yuan <yuanmh12@chinatelecom.cn>
The VHOST_USER_ADD/REM_MEM_REG requests should be categorized into
non-vring specific messages, and should be sent only once.
Signed-off-by: Minghao Yuan <yuanmh12@chinatelecom.cn>
Message-Id: <20230123122119.194347-1-yuanmh12@chinatelecom.cn>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/virtio/vhost-user.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
index 6c79da953b..eca9e104ba 100644
--- a/hw/virtio/vhost-user.c
+++ b/hw/virtio/vhost-user.c
@@ -459,6 +459,8 @@ static bool vhost_user_one_time_request(VhostUserRequest
request)
case VHOST_USER_SET_MEM_TABLE:
case VHOST_USER_GET_QUEUE_NUM:
case VHOST_USER_NET_SET_MTU:
+ case VHOST_USER_ADD_MEM_REG:
+ case VHOST_USER_REM_MEM_REG:
return true;
default:
return false;
--
MST
- [PULL 40/56] pci: make sure pci_bus_is_express() won't error out with "discards ‘const’ qualifier", (continued)
- [PULL 40/56] pci: make sure pci_bus_is_express() won't error out with "discards ‘const’ qualifier", Michael S. Tsirkin, 2023/01/30
- [PULL 32/56] pcihp: do not put empty PCNT in DSDT, Michael S. Tsirkin, 2023/01/30
- [PULL 34/56] whitelist DSDT before adding endpoint devices to bridge testcases, Michael S. Tsirkin, 2023/01/30
- [PULL 36/56] tests: acpi: update expected blobs, Michael S. Tsirkin, 2023/01/30
- [PULL 39/56] pcihp: make bridge describe itself using AcpiDevAmlIfClass:build_dev_aml, Michael S. Tsirkin, 2023/01/30
- [PULL 53/56] tests/qtest/bios-tables-test: Make the test less verbose by default, Michael S. Tsirkin, 2023/01/30
- [PULL 47/56] tests: acpi: update expected blobs, Michael S. Tsirkin, 2023/01/30
- [PULL 49/56] pcihp: generate populated non-hotpluggble slot descriptions on non-hotplug path, Michael S. Tsirkin, 2023/01/30
- [PULL 41/56] pcihp: isolate rule whether slot should be described in DSDT, Michael S. Tsirkin, 2023/01/30
- [PULL 42/56] tests: acpi: whitelist DSDT before decoupling PCI hotplug code from basic slots description, Michael S. Tsirkin, 2023/01/30
- [PULL 51/56] vhost-user: Skip unnecessary duplicated VHOST_USER_ADD/REM_MEM_REG requests,
Michael S. Tsirkin <=
- [PULL 48/56] tests: acpi: whitelist DSDT before moving non-hotpluggble slots description from hotplug path, Michael S. Tsirkin, 2023/01/30
- [PULL 50/56] tests: acpi: update expected blobs, Michael S. Tsirkin, 2023/01/30
- [PULL 56/56] docs/pcie.txt: Replace ioh3420 with pcie-root-port, Michael S. Tsirkin, 2023/01/30
- [PULL 54/56] Revert "vhost-user: Monitor slave channel in vhost_user_read()", Michael S. Tsirkin, 2023/01/30
- [PULL 52/56] hw: Use TYPE_PCI_BUS definition where appropriate, Michael S. Tsirkin, 2023/01/30
- [PULL 44/56] tests: acpi: update expected blobs, Michael S. Tsirkin, 2023/01/30