xen/npt_part2.patch

14 lines
722 B
Diff

Index: xen-3.0.4-testing/xen/arch/x86/mm/shadow/common.c
===================================================================
--- xen-3.0.4-testing.orig/xen/arch/x86/mm/shadow/common.c
+++ xen-3.0.4-testing/xen/arch/x86/mm/shadow/common.c
@@ -1163,6 +1163,8 @@ p2m_next_level(struct domain *d, mfn_t *
if (type == PGT_l2_page_table)
{
struct vcpu *v;
+ /* for PAE mode, PDPE only have PCD/PWT/P bits available */
+ *p2m_entry = l1e_from_pfn(mfn_x(mfn), _PAGE_PRESENT);
/* We have written to the p2m l3: need to sync the per-vcpu
* copies of it in the monitor tables */
p2m_install_entry_in_monitors(d, (l3_pgentry_t *)p2m_entry);