// Indicates that the guest OS has found the device and recognized it as a valid virtio device.
Acknowleged=1,
// Indicates that the guest OS knows how to drive the device. Note: There could be a significant (or infinite) delay before setting this bit. For example, under Linux, drivers can be loadable modules.
Driver=2,
// Indicates that the driver has acknowledged all the features it understands, and feature negotiation is complete.
FeaturesOk=8,
// Indicates that the device is set up and ready to drive the device.
DriverOk=4,
// Indicates that the device needs to be reset.
DeviceNeedsReset=64,
// Indicates that the device has failed.
Failed=128,
}
pubstructFeaturesBits(u64);
implFeaturesBits{
// bit mask the first 23 bits and return a u64
// 0 to 23
// Feature bits for the specific device type
pubfndevice_type_features(&self)-> u64{
0
}
// bit mask the 24th bit to the 37th bit and return a u64
// 24 to 37
// Feature bits reserved for extensions to the queue and feature negotiation mechanisms
pubfnextension_features(&self)-> u64{
0
}
// bit mask the 38th bit to the 63th bit and return a u64