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

Method send_response

virtio-devices/src/mem.rs:309–323  ·  view source on GitHub ↗
(
        &self,
        mem: &GuestMemoryMmap,
        resp_type: u16,
        state: u16,
    )

Source from the content-addressed store, hash-verified

307 }
308
309 fn send_response(
310 &self,
311 mem: &GuestMemoryMmap,
312 resp_type: u16,
313 state: u16,
314 ) -> Result<u32, Error> {
315 let resp = VirtioMemResp {
316 resp_type,
317 state,
318 ..Default::default()
319 };
320 mem.write_obj(resp, self.status_addr)
321 .map_err(Error::GuestMemory)?;
322 Ok(size_of::<VirtioMemResp>() as u32)
323 }
324}
325
326#[derive(Clone, Serialize, Deserialize)]

Callers 1

process_queueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected