mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
To emulate debug I/O port on arm64, we need trap from guest to VMM. Generally, there are 3 ways to go: 1) execute a privilege intruction like "wfi"; 2) access a system register; 3) access device MMIO region; However, 1) and 2) often handled in kvm, thus 3) it's the choice. There maybe lots of repeated work and enlarge the size of clh to develop a new device, so it's better to reuse the current device. Luckily, I find that pl011 is the eariest device initialized in kernel and, there is reserved region in it which we can reuse for emulating debug I/O. Signed-off-by: Jianyong Wu <jianyong.wu@arm.com> |
||
---|---|---|
.. | ||
legacy | ||
acpi.rs | ||
gic.rs | ||
interrupt_controller.rs | ||
ioapic.rs | ||
lib.rs |