x86: introduce CONFIG_GUEST and move code

Xen is able to run as a guest on Xen. We plan to make it able to run
on Hyper-V as well.

Introduce CONFIG_GUEST which is set to true if either running on Xen
or Hyper-V is desired. Restructure code hierarchy for new code to
come.

No functional change intended.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Wei Liu authored and Wei Liu committed 2019-12-04 10:31:25 +00:00
1 parent d7c3e6c9e9
commit ca363f186d
7 files changed
+11 -7

No files matched your search

+5 -2
View File
@@ -161,9 +161,12 @@ config XEN_ALIGN_2M
endchoice
config GUEST
bool
config XEN_GUEST
def_bool n
prompt "Xen Guest"
bool "Xen Guest"
select GUEST
---help---
Support for Xen detecting when it is running under Xen.
+1 -1
View File
@@ -1,7 +1,7 @@
subdir-y += acpi
subdir-y += cpu
subdir-y += genapic
subdir-$(CONFIG_XEN_GUEST) += guest
subdir-$(CONFIG_GUEST) += guest
subdir-$(CONFIG_HVM) += hvm
subdir-y += mm
subdir-$(CONFIG_XENOPROF) += oprofile
+1 -4
View File
@@ -1,4 +1 @@
obj-y += hypercall_page.o
obj-y += xen.o
obj-bin-$(CONFIG_PVH_GUEST) += pvh-boot.init.o
subdir-$(CONFIG_XEN_GUEST) += xen
+4
View File
@@ -0,0 +1,4 @@
obj-y += hypercall_page.o
obj-y += xen.o
obj-bin-$(CONFIG_PVH_GUEST) += pvh-boot.init.o
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.