Fix virtio no interrupt received bug

This commit is contained in:
Yuke Peng
2023-05-30 03:51:48 -07:00
committed by Tate, Hongliang Tian
parent 39380f09b9
commit 3471843793

View File

@ -154,8 +154,8 @@ impl VirtioDevice {
VirtioDeviceType::Socket => todo!(),
VirtioDeviceType::Unknown => todo!(),
};
let support_feature = Feature::from_bits_truncate(features);
// support_feature.remove(Feature::RING_EVENT_IDX);
let mut support_feature = Feature::from_bits_truncate(features);
support_feature.remove(Feature::RING_EVENT_IDX);
features & (support_feature.bits | device_support_features)
}
}