nestedhvm: fix write access fault on ro mapping
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 2 Aug 2012 13:38:09 +0000 (14:38 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 2 Aug 2012 13:38:09 +0000 (14:38 +0100)
commitd2a57e8153361633ce9ac95bb94f0f11ed399f33
treeeeae58568a23e21f5e2d39d4cb5f10e4b5da048d
parent5c8bff1b86a053432943c565cf69d1cf1d87c2a4
nestedhvm: fix write access fault on ro mapping

Fix write access fault when host npt is mapped read-only.
In this case let the host handle the #NPF.
Apply host p2mt to hap-on-hap pagetable entry.
This fixes the l2 guest graphic display refresh problem.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/hap/nested_hap.c
xen/include/asm-x86/hvm/nestedhvm.h