From: Marc Zyngier Date: Thu, 5 Jan 2023 15:25:54 +0000 (+0000) Subject: Merge branch kvm-arm64/s1ptw-write-fault into kvmarm-master/fixes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=afbb1b1caef7fb8b23f31f32162dd5756d877dd5;p=linux.git Merge branch kvm-arm64/s1ptw-write-fault into kvmarm-master/fixes * kvm-arm64/s1ptw-write-fault: : . : Fix S1PTW fault handling that was until then always taken : as a write. From the cover letter: : : `Recent developments on the EFI front have resulted in guests that : simply won't boot if the page tables are in a read-only memslot and : that you're a bit unlucky in the way S2 gets paged in... The core : issue is related to the fact that we treat a S1PTW as a write, which : is close enough to what needs to be done. Until to get to RO memslots. : : The first patch fixes this and is definitely a stable candidate. It : splits the faulting of page tables in two steps (RO translation fault, : followed by a writable permission fault -- should it even happen). : The second one documents the slightly odd behaviour of PTW writes to : RO memslot, which do not result in a KVM_MMIO exit. The last patch is : totally optional, only tangentially related, and randomly repainting : stuff (maybe that's contagious, who knows)." : : . KVM: arm64: Convert FSC_* over to ESR_ELx_FSC_* KVM: arm64: Document the behaviour of S1PTW faults on RO memslots KVM: arm64: Fix S1PTW handling on RO memslots Signed-off-by: Marc Zyngier --- afbb1b1caef7fb8b23f31f32162dd5756d877dd5