]> Pileus Git - ~andy/linux/commit
virtio_pci: better macro exported in uapi
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 20 May 2013 00:57:00 +0000 (10:27 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 20 May 2013 02:38:09 +0000 (12:08 +0930)
commit8b21ab140ec581caf3340a51cdbe91a76c36d9d8
treeb0439dd85d548bddfc710857791812346e37d634
parentd5fe85af85367d5892e4308f596de4e2a5fb9017
virtio_pci: better macro exported in uapi

Macro VIRTIO_PCI_CONFIG assumes that userspace actually has a structure
with a field named msix_enabled.  Add VIRTIO_PCI_CONFIG_OFF that gets
the msix_enabled by value instead, to make it useful for userspace.  We
still keep VIRTIO_PCI_CONFIG around for now, in case some userspace uses
it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/uapi/linux/virtio_pci.h