]> xenbits.xensource.com Git - people/dariof/xen.git/commit
xen/pvh: place the trampoline at page 0x1 4.10.0-shim-comet-3
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Jan 2018 12:00:41 +0000 (12:00 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 17 Jan 2018 16:34:22 +0000 (16:34 +0000)
commitfa23f2aaa24c603f748b49b32378b738d18cc68f
tree0c6dd828e85f6efb175fb8cec5793c28d1879310
parent79f797c3f41c15a74d627a8eabc373ec7b202933
xen/pvh: place the trampoline at page 0x1

Since PVH guest jump straight into trampoline_setup trampoline_phys is
not initialized, thus the trampoline is relocated to address 0.

This works, but has the undesirable effect of having VA 0 mapped to
MFN 0, which means NULL pointed dereferences no longer trigger a page
fault.

In order to solve this, place the trampoline at page 0x1 and reserve
the memory used by it.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/boot/head.S
xen/arch/x86/mm.c