linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: KVM: High memory guest fixes
@ 2015-03-10 19:06 Marc Zyngier
  2015-03-10 19:06 ` [PATCH v2 1/3] arm64: KVM: Fix stage-2 PGD allocation to have per-page refcounting Marc Zyngier
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Marc Zyngier @ 2015-03-10 19:06 UTC (permalink / raw)
  To: linux-arm-kernel

I've been playing with a hacked-up kvmtool that places the memory much
higher than usual, in an effort to emulate what some arm64 platforms
do (typically AMD Seattle).

Unexpectedly (hey, what could possibly go wrong...), I've discovered a
couple of mm related issues, ranging from the host exploding to the
guest being stuck on a page fault. Additionally, I noticed a minor
documentation issue.

With these fixes in, I'm able to run a guest that has its memory
located just under the 40bit limit.

* From v1 [1]:
- Reworked patch #1 to use split_page() instead. This leads to much
  refactoring, but is slightly nicer (more common code).
- Dropped Mark's Tested-by (too many changes)

[1]: https://lists.cs.columbia.edu/pipermail/kvmarm/2015-February/013672.html

Marc Zyngier (3):
  arm64: KVM: Fix stage-2 PGD allocation to have per-page refcounting
  arm64: KVM: Do not use pgd_index to index stage-2 pgd
  arm64: KVM: Fix outdated comment about VTCR_EL2.PS

 arch/arm/include/asm/kvm_mmu.h   | 12 ++----
 arch/arm/kvm/mmu.c               | 85 ++++++++++++++++++++++++++++++----------
 arch/arm64/include/asm/kvm_arm.h |  5 ++-
 arch/arm64/include/asm/kvm_mmu.h | 48 +++--------------------
 4 files changed, 77 insertions(+), 73 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2015-03-11 14:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 19:06 [PATCH v2 0/3] arm64: KVM: High memory guest fixes Marc Zyngier
2015-03-10 19:06 ` [PATCH v2 1/3] arm64: KVM: Fix stage-2 PGD allocation to have per-page refcounting Marc Zyngier
2015-03-11 12:16   ` Christoffer Dall
2015-03-11 13:13     ` Marc Zyngier
2015-03-11 13:20       ` Christoffer Dall
2015-03-11 13:56         ` Marc Zyngier
2015-03-11 14:03         ` Andrew Jones
2015-03-11 14:25           ` Christoffer Dall
2015-03-10 19:07 ` [PATCH v2 2/3] arm64: KVM: Do not use pgd_index to index stage-2 pgd Marc Zyngier
2015-03-10 19:07 ` [PATCH v2 3/3] arm64: KVM: Fix outdated comment about VTCR_EL2.PS Marc Zyngier

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).