We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdaec5e commit 78e158eCopy full SHA for 78e158e
src/block.rs
@@ -158,8 +158,12 @@ impl<'a> VirtioBlockDevice<'a> {
158
return Err(VirtioError::VirtioLegacyOnly);
159
}
160
161
+ // Don't support any advanced features for now
162
+ let supported_features = VIRTIO_F_VERSION_1;
163
+
164
// Report driver features
- self.transport.set_features(device_features);
165
+ self.transport
166
+ .set_features(device_features & supported_features);
167
168
self.transport.add_status(VIRTIO_STATUS_FEATURES_OK);
169
if self.transport.get_status() & VIRTIO_STATUS_FEATURES_OK != VIRTIO_STATUS_FEATURES_OK {
0 commit comments