diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-10-07 10:39:43 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-12-09 05:05:24 -0500 |
commit | d025477368792b272802146a86e41f81a54d8a19 (patch) | |
tree | 7e296d48d57796d6b797f4da6dac74d1644092fe /drivers/virtio/virtio_pci.c | |
parent | 0ffaeadfc451a11b5da35578b2f9b977f9f46489 (diff) |
virtio: add support for 64 bit features.
Change u32 to u64, and use BIT_ULL and 1ULL everywhere.
Note: transports are unchanged, and only set low 32 bit.
This guarantees that no transport sets e.g. VERSION_1
by mistake without proper support.
Based on patch by Rusty.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 4e112c158488..7e0efa7fc384 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -102,7 +102,7 @@ static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | /* virtio config->get_features() implementation */ | 104 | /* virtio config->get_features() implementation */ |
105 | static u32 vp_get_features(struct virtio_device *vdev) | 105 | static u64 vp_get_features(struct virtio_device *vdev) |
106 | { | 106 | { |
107 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); | 107 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); |
108 | 108 | ||