kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: nv: Fix issue with Stage 2 MMU init for Nested case.
@ 2021-11-22  9:58 Ganapatrao Kulkarni
  2021-11-22  9:58 ` [PATCH 1/2] KVM: arm64: Use appropriate mmu pointer in stage2 page table init Ganapatrao Kulkarni
  2021-11-22  9:58 ` [PATCH 2/2] KVM: arm64: nv: fixup! Support multiple nested Stage-2 mmu structures Ganapatrao Kulkarni
  0 siblings, 2 replies; 13+ messages in thread
From: Ganapatrao Kulkarni @ 2021-11-22  9:58 UTC (permalink / raw)
  To: maz
  Cc: catalin.marinas, will, andre.przywara, linux-arm-kernel, kvmarm,
	kvm, darren, d.scott.phillips, gankulkarni

The Guest Hypervisor stage 2 mmu table was used while creating map
and subsequent tlb flush for Nested VM. This resulted in unresolvable
stage 2 fault for Nested VM since tlb was invalidated with
Guest-Hypervisor VMID.

Patch 1/2 should be applied before the NV patchset[1].
Patch 2/2 can be squashed in to Commit 1776c91346b6 ("KVM: arm64: nv:
Support multiple nested Stage-2 mmu structures")[2].

[1] https://lore.kernel.org/kvmarm/20210510165920.1913477-1-maz@kernel.org/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/
branch kvm-arm64/nv-5.13

Ganapatrao Kulkarni (2):
  KVM: arm64: Use appropriate mmu pointer in stage2 page table init.
  KVM: arm64: nv: fixup! Support multiple nested Stage-2 mmu structures

 arch/arm64/include/asm/kvm_pgtable.h  | 6 ++++--
 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 2 +-
 arch/arm64/kvm/hyp/pgtable.c          | 3 ++-
 arch/arm64/kvm/mmu.c                  | 2 +-
 arch/arm64/kvm/nested.c               | 9 +++++++++
 5 files changed, 17 insertions(+), 5 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-11-29  6:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22  9:58 [PATCH 0/2] KVM: arm64: nv: Fix issue with Stage 2 MMU init for Nested case Ganapatrao Kulkarni
2021-11-22  9:58 ` [PATCH 1/2] KVM: arm64: Use appropriate mmu pointer in stage2 page table init Ganapatrao Kulkarni
2021-11-25 13:49   ` Marc Zyngier
2021-11-26  5:45     ` Ganapatrao Kulkarni
2021-11-26 10:50       ` Marc Zyngier
2021-11-26 16:51         ` Ganapatrao Kulkarni
2021-11-22  9:58 ` [PATCH 2/2] KVM: arm64: nv: fixup! Support multiple nested Stage-2 mmu structures Ganapatrao Kulkarni
2021-11-25 14:23   ` Marc Zyngier
2021-11-26  5:59     ` Ganapatrao Kulkarni
2021-11-26 15:28       ` Marc Zyngier
2021-11-26 16:33       ` Marc Zyngier
2021-11-26 19:20       ` Marc Zyngier
2021-11-29  6:00         ` Ganapatrao Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).