diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-05-09 07:05:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-22 12:42:49 -0400 |
commit | 3843fc2575e3389f4f0ad0420a720240a5746a5d (patch) | |
tree | 9f1b86795f3128ea65c3b35d394750127dde9a6f /arch/x86/xen/mmu.c | |
parent | 78b58e549a3098a8c1408d0214bd25e5d5e7a3a3 (diff) |
xen: remove support for non-PAE 32-bit
Non-PAE operation has been deprecated in Xen for a while, and is
rarely tested or used. xen-unstable has now officially dropped
non-PAE support. Since Xen/pvops' non-PAE support has also been
broken for a while, we may as well completely drop it altogether.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 126766d43aea..07c2653ec335 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -222,7 +222,7 @@ pmdval_t xen_pmd_val(pmd_t pmd) | |||
222 | ret = machine_to_phys(XMADDR(ret)).paddr | _PAGE_PRESENT; | 222 | ret = machine_to_phys(XMADDR(ret)).paddr | _PAGE_PRESENT; |
223 | return ret; | 223 | return ret; |
224 | } | 224 | } |
225 | #ifdef CONFIG_X86_PAE | 225 | |
226 | void xen_set_pud(pud_t *ptr, pud_t val) | 226 | void xen_set_pud(pud_t *ptr, pud_t val) |
227 | { | 227 | { |
228 | struct multicall_space mcs; | 228 | struct multicall_space mcs; |
@@ -272,12 +272,6 @@ pmd_t xen_make_pmd(pmdval_t pmd) | |||
272 | 272 | ||
273 | return native_make_pmd(pmd); | 273 | return native_make_pmd(pmd); |
274 | } | 274 | } |
275 | #else /* !PAE */ | ||
276 | void xen_set_pte(pte_t *ptep, pte_t pte) | ||
277 | { | ||
278 | *ptep = pte; | ||
279 | } | ||
280 | #endif /* CONFIG_X86_PAE */ | ||
281 | 275 | ||
282 | /* | 276 | /* |
283 | (Yet another) pagetable walker. This one is intended for pinning a | 277 | (Yet another) pagetable walker. This one is intended for pinning a |
@@ -430,8 +424,6 @@ static int pin_page(struct page *page, enum pt_level level) | |||
430 | read-only, and can be pinned. */ | 424 | read-only, and can be pinned. */ |
431 | void xen_pgd_pin(pgd_t *pgd) | 425 | void xen_pgd_pin(pgd_t *pgd) |
432 | { | 426 | { |
433 | unsigned level; | ||
434 | |||
435 | xen_mc_batch(); | 427 | xen_mc_batch(); |
436 | 428 | ||
437 | if (pgd_walk(pgd, pin_page, TASK_SIZE)) { | 429 | if (pgd_walk(pgd, pin_page, TASK_SIZE)) { |
@@ -441,14 +433,7 @@ void xen_pgd_pin(pgd_t *pgd) | |||
441 | xen_mc_batch(); | 433 | xen_mc_batch(); |
442 | } | 434 | } |
443 | 435 | ||
444 | #ifdef CONFIG_X86_PAE | 436 | xen_do_pin(MMUEXT_PIN_L3_TABLE, PFN_DOWN(__pa(pgd))); |
445 | level = MMUEXT_PIN_L3_TABLE; | ||
446 | #else | ||
447 | level = MMUEXT_PIN_L2_TABLE; | ||
448 | #endif | ||
449 | |||
450 | xen_do_pin(level, PFN_DOWN(__pa(pgd))); | ||
451 | |||
452 | xen_mc_issue(0); | 437 | xen_mc_issue(0); |
453 | } | 438 | } |
454 | 439 | ||