diff options
-rw-r--r-- | arch/x86/xen/enlighten.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index b106e825d266..8ca2f88bde1e 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -826,7 +826,7 @@ static void xen_alloc_ptpage(struct mm_struct *mm, u32 pfn, unsigned level) | |||
826 | 826 | ||
827 | if (!PageHighMem(page)) { | 827 | if (!PageHighMem(page)) { |
828 | make_lowmem_page_readonly(__va(PFN_PHYS((unsigned long)pfn))); | 828 | make_lowmem_page_readonly(__va(PFN_PHYS((unsigned long)pfn))); |
829 | if (level == PT_PTE) | 829 | if (level == PT_PTE && USE_SPLIT_PTLOCKS) |
830 | pin_pagetable_pfn(MMUEXT_PIN_L1_TABLE, pfn); | 830 | pin_pagetable_pfn(MMUEXT_PIN_L1_TABLE, pfn); |
831 | } else | 831 | } else |
832 | /* make sure there are no stray mappings of | 832 | /* make sure there are no stray mappings of |
@@ -894,7 +894,7 @@ static void xen_release_ptpage(u32 pfn, unsigned level) | |||
894 | 894 | ||
895 | if (PagePinned(page)) { | 895 | if (PagePinned(page)) { |
896 | if (!PageHighMem(page)) { | 896 | if (!PageHighMem(page)) { |
897 | if (level == PT_PTE) | 897 | if (level == PT_PTE && USE_SPLIT_PTLOCKS) |
898 | pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, pfn); | 898 | pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, pfn); |
899 | make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); | 899 | make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); |
900 | } | 900 | } |