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

Method pio_read

vmm/src/vm.rs:491–496  ·  view source on GitHub ↗
(&self, port: u64, data: &mut [u8])

Source from the content-addressed store, hash-verified

489
490 #[cfg(target_arch = "x86_64")]
491 fn pio_read(&self, port: u64, data: &mut [u8]) -> result::Result<(), HypervisorVmError> {
492 if let Err(vm_device::BusError::MissingAddressRange) = self.io_bus.read(port, data) {
493 info!("Guest PIO read to unregistered address 0x{port:x}");
494 }
495 Ok(())
496 }
497
498 #[cfg(target_arch = "x86_64")]
499 fn pio_write(&self, port: u64, data: &[u8]) -> result::Result<(), HypervisorVmError> {

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 1

readMethod · 0.45

Tested by

no test coverage detected