path: root/drivers/lguest
diff options
authorMichael S. Tsirkin <>2014-10-07 16:39:43 +0200
committerMichael S. Tsirkin <>2014-12-09 12:05:24 +0200
commitd025477368792b272802146a86e41f81a54d8a19 (patch)
tree7e296d48d57796d6b797f4da6dac74d1644092fe /drivers/lguest
parent0ffaeadfc451a11b5da35578b2f9b977f9f46489 (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 <> Signed-off-by: Cornelia Huck <> Signed-off-by: Michael S. Tsirkin <> Reviewed-by: David Hildenbrand <> Reviewed-by: Cornelia Huck <>
Diffstat (limited to 'drivers/lguest')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c
index 97aeb7dce5fc..d81170a78a8d 100644
--- a/drivers/lguest/lguest_device.c
+++ b/drivers/lguest/lguest_device.c
@@ -94,7 +94,7 @@ static unsigned desc_size(const struct lguest_device_desc *desc)
/* This gets the device's feature bits. */
-static u32 lg_get_features(struct virtio_device *vdev)
+static u64 lg_get_features(struct virtio_device *vdev)
unsigned int i;
u32 features = 0;