linux_dsm_epyc7002/arch/x86/xen
Jeremy Fitzhardinge 41f2e4771a xen: add support for PAT
Convert Linux PAT entries into Xen ones when constructing ptes.  Linux
doesn't use _PAGE_PAT for ptes, so the only difference in the first 4
entries is that Linux uses _PAGE_PWT for WC, whereas Xen (and default)
use it for WT.

xen_pte_val does the inverse conversion.

We hard-code assumptions about Linux's current PAT layout, but a
warning on the wrmsr to MSR_IA32_CR_PAT should point out any problems.
If necessary we could go to a more general table-based conversion between
Linux and Xen PAT entries.

hugetlbfs poses a problem at the moment, the x86 architecture uses the
same flag for _PAGE_PAT and _PAGE_PSE, which changes meaning depending
on which pagetable level we're using.  At the moment this should be OK
so long as nobody tries to do a pte_val on a hugetlbfs pte.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-10-22 12:57:31 -07:00
..
debugfs.c
debugfs.h
enlighten.c xen: add support for PAT 2010-10-22 12:57:31 -07:00
grant-table.c
irq.c
Kconfig xen: convert p2m to a 3 level tree 2010-10-22 12:57:24 -07:00
Makefile
mmu.c xen: add support for PAT 2010-10-22 12:57:31 -07:00
mmu.h xen: make install_p2mtop_page() static 2010-10-22 12:57:23 -07:00
multicalls.c
multicalls.h
pci-swiotlb-xen.c
platform-pci-unplug.c xen: pvhvm: rename xen_emul_unplug=ignore to =unnnecessary 2010-08-23 11:59:29 +01:00
setup.c xen: make sure xen_max_p2m_pfn is up to date 2010-10-22 12:57:30 -07:00
smp.c
spinlock.c
suspend.c
time.c xen: do not initialize PV timers on HVM if !xen_have_vector_callback 2010-10-05 13:39:23 +01:00
vdso.h
xen-asm_32.S
xen-asm_64.S
xen-asm.h
xen-asm.S
xen-head.S
xen-ops.h xen: add support for PAT 2010-10-22 12:57:31 -07:00