virtio/balloon: verify device has config space
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Jan 2015 14:23:37 +0000 (16:23 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:48 +0000 (16:28 +1030)
commit2d9becc1e0c6f86e222e1955e39302d304ad274b
tree00e5dbaa1ce34f85d271dc088262d584178c98b0
parent8cab3cd6ad622f070b18cd1c2e3b97e1d3806629
virtio/balloon: verify device has config space

Some devices might not implement config space access
(e.g. remoteproc used not to - before 3.9).
virtio/balloon needs config space access so make it
fail gracefully if not there.

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