OSDN Git Service

xen/pvh: Move Xen specific PVH VM initialization out of common file
authorMaran Wilson <maran.wilson@oracle.com>
Mon, 10 Dec 2018 19:08:45 +0000 (11:08 -0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 13 Dec 2018 18:41:49 +0000 (13:41 -0500)
commit8cee3974b35bfb235d4637e10de5c5b364a9057e
tree13a789aad069c68c3deb6ae8b838bf379476ff23
parent4df7363e52105bf7a8589efb2959c907872644fb
xen/pvh: Move Xen specific PVH VM initialization out of common file

We need to refactor PVH entry code so that support for other hypervisors
like Qemu/KVM can be added more easily.

This patch moves the small block of code used for initializing Xen PVH
virtual machines into the Xen specific file. This initialization is not
going to be needed for Qemu/KVM guests. Moving it out of the common file
is going to allow us to compile kernels in the future without CONFIG_XEN
that are still capable of being booted as a Qemu/KVM guest via the PVH
entry point.

Signed-off-by: Maran Wilson <maran.wilson@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/platform/pvh/enlighten.c
arch/x86/xen/enlighten_pvh.c
include/xen/xen.h