summaryrefslogtreecommitdiffstats
path: root/include/xen/xen.h
diff options
context:
space:
mode:
authorMaran Wilson <maran.wilson@oracle.com>2018-12-10 20:08:45 +0100
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2018-12-13 19:41:49 +0100
commit8cee3974b35bfb235d4637e10de5c5b364a9057e (patch)
tree13a789aad069c68c3deb6ae8b838bf379476ff23 /include/xen/xen.h
parentxen/pvh: Create a new file for Xen specific PVH code (diff)
downloadlinux-8cee3974b35bfb235d4637e10de5c5b364a9057e.tar.xz
linux-8cee3974b35bfb235d4637e10de5c5b364a9057e.zip
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>
Diffstat (limited to 'include/xen/xen.h')
-rw-r--r--include/xen/xen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/xen.h b/include/xen/xen.h
index d7a2678da77f..0e2156786ad2 100644
--- a/include/xen/xen.h
+++ b/include/xen/xen.h
@@ -29,6 +29,9 @@ extern bool xen_pvh;
extern uint32_t xen_start_flags;
+#include <xen/interface/hvm/start_info.h>
+extern struct hvm_start_info pvh_start_info;
+
#ifdef CONFIG_XEN_DOM0
#include <xen/interface/xen.h>
#include <asm/xen/hypervisor.h>