diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-25 13:06:13 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-24 22:06:14 -0400 |
commit | e34f87256794b87e7f4a8f1812538be7b7b5214c (patch) | |
tree | b91ffb6df4ac13ace269bef60ae16a1048b1fa73 /drivers/s390 | |
parent | c624896e488ba2bff5ae497782cfb265c8b00646 (diff) |
virtio: Add transport feature handling stub for virtio_ring.
To prepare for virtio_ring transport feature bits, hook in a call in
all the users to manipulate them. This currently just clears all the
bits, since it doesn't understand any features.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index 5953510e7d5f..79954bd6bfa5 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -95,6 +95,9 @@ static void kvm_finalize_features(struct virtio_device *vdev) | |||
95 | /* Second half of bitmap is features we accept. */ | 95 | /* Second half of bitmap is features we accept. */ |
96 | u8 *out_features = kvm_vq_features(desc) + desc->feature_len; | 96 | u8 *out_features = kvm_vq_features(desc) + desc->feature_len; |
97 | 97 | ||
98 | /* Give virtio_ring a chance to accept features. */ | ||
99 | vring_transport_features(vdev); | ||
100 | |||
98 | memset(out_features, 0, desc->feature_len); | 101 | memset(out_features, 0, desc->feature_len); |
99 | bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; | 102 | bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; |
100 | for (i = 0; i < bits; i++) { | 103 | for (i = 0; i < bits; i++) { |