Discussion:
[Xen-changelog] [xen staging] x86: don't build guest-walk code without HVM and SHADOW_PAGING
p***@xen.org
2018-10-26 13:33:05 UTC
Permalink
commit 9c462cea68c97029ccb13ab520721b1a2cb99ab1
Author: Jan Beulich <***@suse.com>
AuthorDate: Fri Oct 26 15:16:23 2018 +0200
Commit: Jan Beulich <***@suse.com>
CommitDate: Fri Oct 26 15:16:23 2018 +0200

x86: don't build guest-walk code without HVM and SHADOW_PAGING

It's dead code in that case.

We could go further, as we don't really need the 2- and 3-level walk
code in PV mode, but to drop their compilation requires quite a bit of
disentangling of shadow mode code.

Signed-off-by: Jan Beulich <***@suse.com>
Acked-by: Andrew Cooper <***@citrix.com>
Reviewed-by: Wei Liu <***@citrix.com>
---
xen/arch/x86/mm/Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/xen/arch/x86/mm/Makefile b/xen/arch/x86/mm/Makefile
index 171cc74444..5a17646f98 100644
--- a/xen/arch/x86/mm/Makefile
+++ b/xen/arch/x86/mm/Makefile
@@ -2,9 +2,8 @@ subdir-y += shadow
subdir-$(CONFIG_HVM) += hap

obj-$(CONFIG_HVM) += altp2m.o
-obj-y += guest_walk_2.o
-obj-y += guest_walk_3.o
-obj-y += guest_walk_4.o
+obj-$(CONFIG_HVM) += guest_walk_2.o guest_walk_3.o guest_walk_4.o
+obj-$(CONFIG_SHADOW_PAGING) += guest_walk_2.o guest_walk_3.o guest_walk_4.o
obj-$(CONFIG_MEM_ACCESS) += mem_access.o
obj-y += mem_paging.o
obj-y += mem_sharing.o
--
generated by git-patchbot for /home/xen/git/xen.git#staging

Loading...