|
@@ -103,6 +103,9 @@ static void kvm_finalize_features(struct virtio_device *vdev)
|
|
/* Give virtio_ring a chance to accept features. */
|
|
/* Give virtio_ring a chance to accept features. */
|
|
vring_transport_features(vdev);
|
|
vring_transport_features(vdev);
|
|
|
|
|
|
|
|
+ /* Make sure we don't have any features > 32 bits! */
|
|
|
|
+ BUG_ON((u32)vdev->features != vdev->features);
|
|
|
|
+
|
|
memset(out_features, 0, desc->feature_len);
|
|
memset(out_features, 0, desc->feature_len);
|
|
bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8;
|
|
bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8;
|
|
for (i = 0; i < bits; i++) {
|
|
for (i = 0; i < bits; i++) {
|