diff --git a/devicemodel/include/virtio.h b/devicemodel/include/virtio.h index f13cbc22d..16b1a8a00 100644 --- a/devicemodel/include/virtio.h +++ b/devicemodel/include/virtio.h @@ -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. *