mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-09-12 10:04:51 +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> |
||
---|---|---|
.. | ||
cmos.rs | ||
fwdebug.rs | ||
gpio_pl061.rs | ||
i8042.rs | ||
mod.rs | ||
rtc_pl031.rs | ||
serial.rs | ||
uart_pl011.rs |