pub fn apply_status(
current: u32,
written: u32,
features: &mut DeviceFeatures,
) -> u32Expand description
Applies one guest write to the device-status register.
Returns the new status value. Any invalid write (unknown bit, unsupported
feature request, missing VIRTIO_F_VERSION_1, DRIVER_OK without
FEATURES_OK) leaves the device in the FAILED state, as required by the
specification. written is the full value the driver wrote, since the
status register is cumulative.