summary refs log tree commit diff stats
path: root/include/standard-headers/linux/virtio_pci.h
diff options
context:
space:
mode:
authorHao Chen <chenh@yusur.tech>2024-02-21 15:38:02 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-03-12 17:56:55 -0400
commitcd341fd1ffded978b2aa0b5309b00be7c42e347c (patch)
treef887d38d976a0f534cb967083551a65447fade98 /include/standard-headers/linux/virtio_pci.h
parent043e127a126bb3ceb5fc753deee27d261fd0c5ce (diff)
downloadfocaccia-qemu-cd341fd1ffded978b2aa0b5309b00be7c42e347c.tar.gz
focaccia-qemu-cd341fd1ffded978b2aa0b5309b00be7c42e347c.zip
hw/virtio: Add support for VDPA network simulation devices
This patch adds support for VDPA network simulation devices.
The device is developed based on virtio-net and tap backend,
and supports hardware live migration function.

For more details, please refer to "docs/system/devices/vdpa-net.rst"

Signed-off-by: Hao Chen <chenh@yusur.tech>
Message-Id: <20240221073802.2888022-1-chenh@yusur.tech>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/standard-headers/linux/virtio_pci.h')
-rw-r--r--include/standard-headers/linux/virtio_pci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/standard-headers/linux/virtio_pci.h b/include/standard-headers/linux/virtio_pci.h
index 3e2bc2c97e..86733278ba 100644
--- a/include/standard-headers/linux/virtio_pci.h
+++ b/include/standard-headers/linux/virtio_pci.h
@@ -221,6 +221,13 @@ struct virtio_pci_cfg_cap {
 #define VIRTIO_PCI_COMMON_ADM_Q_IDX	60
 #define VIRTIO_PCI_COMMON_ADM_Q_NUM	62
 
+#define LM_LOGGING_CTRL                 0
+#define LM_BASE_ADDR_LOW                4
+#define LM_BASE_ADDR_HIGH               8
+#define LM_END_ADDR_LOW                 12
+#define LM_END_ADDR_HIGH                16
+#define LM_VRING_STATE_OFFSET           0x20
+
 #endif /* VIRTIO_PCI_NO_MODERN */
 
 /* Admin command status. */