MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / write_config

Method write_config

virtio-devices/src/vdpa.rs:434–439  ·  view source on GitHub ↗
(&mut self, offset: u64, data: &[u8])

Source from the content-addressed store, hash-verified

432 }
433
434 fn write_config(&mut self, offset: u64, data: &[u8]) {
435 assert!(self.vhost.is_some());
436 if let Err(e) = self.vhost.as_ref().unwrap().set_config(offset as u32, data) {
437 error!("Failed writing virtio config: {e}");
438 }
439 }
440
441 fn activate(&mut self, context: crate::device::ActivationContext) -> ActivateResult {
442 let crate::device::ActivationContext {

Callers

nothing calls this directly

Calls 1

set_configMethod · 0.80

Tested by

no test coverage detected