]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_pci_modern: support devices with no config
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Jan 2015 14:34:58 +0000 (16:34 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:55 +0000 (16:28 +1030)
commit26e7a87eb1abc367c7c8ac4aabe2acb6f53026e0
tree8bf7e4230355ec31f9d96d727a4a0b4a42e8acf9
parent4b962923c7d33e7cff48bb0496e0b2e4918bcf3e
virtio_pci_modern: support devices with no config

Virtio 1.0 spec lists device config as optional.
Set get/set callbacks to NULL. Drivers can check that
and fail gracefully.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci_modern.c