xen/pvh: Setup up shared_info.
authorMukesh Rathor <mukesh.rathor@oracle.com>
Tue, 31 Dec 2013 19:02:44 +0000 (14:02 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:44:09 +0000 (10:44 -0500)
commit4dd322bc3b25be40dfa91e8ac483b846f3e8dffc
treea2a43cced3f4eb0224ba534da70d9cf7b8e1423a
parent76bcceff0bfbded075c9703ec5413a9bf50ef8c4
xen/pvh: Setup up shared_info.

For PVHVM the shared_info structure is provided via the same way
as for normal PV guests (see include/xen/interface/xen.h).

That is during bootup we get 'xen_start_info' via the %esi register
in startup_xen. Then later we extract the 'shared_info' from said
structure (in xen_setup_shared_info) and start using it.

The 'xen_setup_shared_info' is all setup to work with auto-xlat
guests, but there are two functions which it calls that are not:
xen_setup_mfn_list_list and xen_setup_vcpu_info_placement.
This patch modifies the P2M code (xen_setup_mfn_list_list)
while the "Piggyback on PVHVM for event channels" modifies
the xen_setup_vcpu_info_placement.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/p2m.c