Re: [RFC 45/48] RISC-V: ioremap: Implement for arch specific ioremap hooks
From: Dave Hansen
Date: Thu Apr 20 2023 - 18:16:05 EST
On 4/19/23 15:17, Atish Patra wrote:
> The guests running in CoVE must notify the host about its mmio regions
> so that host can enable mmio emulation.
This one doesn't make a lot of sense to me.
The guest and host must agree about the guest's physical layout up
front. In general, the host gets to dictate that layout. It tells the
guest, up front, what is present in the guest physical address space.
This callback appears to say to the host:
Hey, I (the guest) am treating this guest physical area as MMIO.
But the host and guest have to agree _somewhere_ what the MMIO is used
for, not just that it is being used as MMIO.