dm: virtio: fix compile issue on ubuntu
As VIRTIO_CONFIG_S_NEEDS_RESET is not defined in standard virtio header
file on ubuntu, there will be compile issue. so add
VIRTIO_CONFIG_S_NEEDS_RESET to fix it.
Acked-by: Yin Fengwei
@@ -229,6 +229,14 @@ enum {
#define VIRTIO_DEV_HDCP 0x8607
#define VIRTIO_DEV_COREU 0x8608
+/*
+ * VIRTIO_CONFIG_S_NEEDS_RESET is not defined
+ * in some environments's virtio_config.h
+ */
+#ifndef VIRTIO_CONFIG_S_NEEDS_RESET
+#define VIRTIO_CONFIG_S_NEEDS_RESET 0x40
+#endif
+
/*
* Bits in VIRTIO_PCI_ISR. These apply only if not using MSI-X.
*
