Will Deacon
2020-Apr-30 10:39 UTC
[RFC/PATCH 0/1] virtio_mmio: hypervisor specific interfaces for MMIO
Hi Vatsa, On Thu, Apr 30, 2020 at 03:59:39PM +0530, Srivatsa Vaddagiri wrote:> * Will Deacon <will at kernel.org> [2020-04-30 11:08:22]: > > > > This patch is meant to seek comments. If its considered to be in right > > > direction, will work on making it more complete and send the next version! > > > > What's stopping you from implementing the trapping support in the > > hypervisor? Unlike the other patches you sent out, where the guest memory > > is not accessible to the host, there doesn't seem to be any advantage to > > not having trapping support, or am I missing something here? > > I have had this discussion with hypervisor folks. They seem to be > concerned about complexity of having a VM's fault be handled in another > untrusted VM. They are not keen to add MMIO support.Right, but I'm concerned about forking the implementation from the spec and I'm not keen to add these hooks ;) What does your hook actually do? I'm assuming an HVC? If so, then where the fault is handled seems to be unrelated and whether the guest exit is due to an HVC or a stage-2 fault should be immaterial. In other words, I don't follow why the trapping mechanism necessitates the way in which the fault is handled. Will
Seemingly Similar Threads
- [RFC/PATCH 0/1] virtio_mmio: hypervisor specific interfaces for MMIO
- [RFC/PATCH 0/1] virtio_mmio: hypervisor specific interfaces for MMIO
- [RFC/PATCH 1/1] virtio: Introduce MMIO ops
- [PATCH 5/5] virtio: Add bounce DMA ops
- [PATCH 5/5] virtio: Add bounce DMA ops