VMX: allocate APIC access page from domain heap
authorJan Beulich <jbeulich@suse.com>
Mon, 21 Dec 2015 12:35:13 +0000 (13:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 21 Dec 2015 12:35:13 +0000 (13:35 +0100)
commita2b4b8c20413302c0983b730925d59dc2fee3bb3
tree51bca957b02eaa2c862110dd82cf7c01734b43c2
parent4996f8b1f5d4a818aee3285eeb0db56b7f4d1134
VMX: allocate APIC access page from domain heap

... since we don't need its virtual address anywhere (it's a
placeholder page only after all). For this to work (and possibly be
done elsewhere too) share_xen_page_with_guest() needs to mark pages
handed to it as Xen heap ones.

To be on the safe side, also explicitly clear the page (not having done
so was okay due to the XSA-100 fix, but is still a latent bug since we
don't formally guarantee allocations to come out zeroed, and in fact
this property may disappear again as soon as the asynchronous runtime
scrubbing patches arrive).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm.c
xen/include/asm-x86/mm.h