KVM: arm64: Document the behaviour of S1PTW faults on RO memslots
authorMarc Zyngier <maz@kernel.org>
Thu, 22 Dec 2022 09:26:31 +0000 (09:26 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 3 Jan 2023 10:01:52 +0000 (10:01 +0000)
commitb8f8d190fa8fa1909dda12d771df67125d6fbf0c
treef8ccf2401296fbef20c69fbb169eaaf9786afb61
parent406504c7b0405d74d74c15a667cd4c4620c3e7a9
KVM: arm64: Document the behaviour of S1PTW faults on RO memslots

Although the KVM API says that a write to a RO memslot must result
in a KVM_EXIT_MMIO describing the write, the arm64 architecture
doesn't provide the *data* written by a Stage-1 page table walk
(we only get the address).

Since there isn't much userspace can do with so little information
anyway, document the fact that such an access results in a guest
exception, not an exit. This is consistent with the guest being
terminally broken anyway.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Documentation/virt/kvm/api.rst