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/s390 | |
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/s390')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 2 | ||||
-rw-r--r-- | drivers/s390/kvm/virtio_ccw.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index fcd312d0c018..2336c7e3b0cf 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -80,7 +80,7 @@ static unsigned desc_size(const struct kvm_device_desc *desc) | |||
80 | } | 80 | } |
81 | 81 | ||
82 | /* This gets the device's feature bits. */ | 82 | /* This gets the device's feature bits. */ |
83 | static u32 kvm_get_features(struct virtio_device *vdev) | 83 | static u64 kvm_get_features(struct virtio_device *vdev) |
84 | { | 84 | { |
85 | unsigned int i; | 85 | unsigned int i; |
86 | u32 features = 0; | 86 | u32 features = 0; |
diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c index 1dbee95838fe..56d78956a8cb 100644 --- a/drivers/s390/kvm/virtio_ccw.c +++ b/drivers/s390/kvm/virtio_ccw.c | |||
@@ -660,7 +660,7 @@ static void virtio_ccw_reset(struct virtio_device *vdev) | |||
660 | kfree(ccw); | 660 | kfree(ccw); |
661 | } | 661 | } |
662 | 662 | ||
663 | static u32 virtio_ccw_get_features(struct virtio_device *vdev) | 663 | static u64 virtio_ccw_get_features(struct virtio_device *vdev) |
664 | { | 664 | { |
665 | struct virtio_ccw_device *vcdev = to_vc_device(vdev); | 665 | struct virtio_ccw_device *vcdev = to_vc_device(vdev); |
666 | struct virtio_feature_desc *features; | 666 | struct virtio_feature_desc *features; |