virtio: Don't expose legacy config features when VIRTIO_CONFIG_NO_LEGACY defined.
authorRusty Russell <[email protected]>
Wed, 11 Feb 2015 04:31:14 +0000 (15:01 +1030)
committerRusty Russell <[email protected]>
Wed, 11 Feb 2015 04:33:16 +0000 (15:03 +1030)
The VIRTIO_F_ANY_LAYOUT and VIRTIO_F_NOTIFY_ON_EMPTY features are pre-1.0
only.

Signed-off-by: Rusty Russell <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
include/uapi/linux/virtio_config.h

index a6d0cdeaacd4dc86ed1feea096f540a8d4e0e4d1..c18264df9504c17ce11c84ef1a14f12a132cb35e 100644 (file)
 #define VIRTIO_TRANSPORT_F_START       28
 #define VIRTIO_TRANSPORT_F_END         33
 
+#ifndef VIRTIO_CONFIG_NO_LEGACY
 /* Do we get callbacks when the ring is completely used, even if we've
  * suppressed them? */
 #define VIRTIO_F_NOTIFY_ON_EMPTY       24
 
 /* Can the device handle any descriptor layout? */
 #define VIRTIO_F_ANY_LAYOUT            27
+#endif /* VIRTIO_CONFIG_NO_LEGACY */
 
 /* v1.0 compliant. */
 #define VIRTIO_F_VERSION_1             32