build: disable Xen on ARM
PATCH 1/1 build: disable Xen on ARM
While ARM could present the xenpv machine, it does not and trying to enable it breaks compilation.
--- configure | 1 - 1 file changed, 1 deletion(-)
configure +0 -1
@@ -203,7 +203,6 @@ supported_xen_target() { test "$xen" = "yes" || return 1 glob "$1" "*-softmmu" || return 1 case "${1%-softmmu}:$cpu" in - arm:arm | aarch64:aarch64 | \ i386:i386 | i386:x86_64 | x86_64:i386 | x86_64:x86_64) return 0 ;;
Signature · 1 line
2.13.0
Quoted 15 lines · Paolo Bonzini
While ARM could present the xenpv machine, it does not and trying to enable it breaks compilation.
Fixes 3b6b75506de44c5070639943c30a0ad5850f5d02Reported-by Alex Bennée <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- configure | 1 - 1 file changed, 1 deletion(-)configure +0
-0
configure supported_xen_target() { · line 208
Quoted 7 lines
configure +0
-1@@ -203,7 +203,6 @@ supported_xen_target() { test "$xen" = "yes" || return 1 glob "$1" "*-softmmu" || return 1 case "${1%-softmmu}:$cpu" in - arm:arm | aarch64:aarch64 | \ i386:i386 | i386:x86_64 | x86_64:i386 | x86_64:x86_64) return 0 ;;
Does this actually do the right thing? It's still testing target-cpu:guest-cpu, if I'm reading it correctly, whereas previously we only looked at target-cpu to decide whether to set CONFIG_XEN.
In particular, I thought that for aarch64/arm Xen setups we would end up building an i386-softmmu target on an arm/aarch64 host and wanted CONFIG_XEN to be set in that setup ? (I could be wrong there -- cc'ing Stefan and Anthony to check.)
thanks
-- PMM
Quoted 29 lines · Peter Maydell
Quoted 15 lines · Paolo Bonzini
While ARM could present the xenpv machine, it does not and trying to enable it breaks compilation.
Fixes 3b6b75506de44c5070639943c30a0ad5850f5d02Reported-by Alex Bennée <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- configure | 1 - 1 file changed, 1 deletion(-)configure +0
-0configure supported_xen_target() { · line 208
Quoted 7 lines
configure +0
-1@@ -203,7 +203,6 @@ supported_xen_target() { test "$xen" = "yes" || return 1 glob "$1" "*-softmmu" || return 1 case "${1%-softmmu}:$cpu" in - arm:arm | aarch64:aarch64 | \ i386:i386 | i386:x86_64 | x86_64:i386 | x86_64:x86_64) return 0 ;;Does this actually do the right thing? It's still testing target-cpu:guest-cpu, if I'm reading it correctly, whereas previously we only looked at target-cpu to decide whether to set
CONFIG_XEN.
Quoted 4 lines
In particular, I thought that for aarch64/arm Xen setups we would end up building an i386-softmmu target on an arm/aarch64 host and wanted
CONFIG_XENto be set in that setup ?
Yes, that's correct.
Paolo
Quoted 30 lines · Paolo Bonzini
Quoted 29 lines · Peter Maydell
Quoted 15 lines · Paolo Bonzini
While ARM could present the xenpv machine, it does not and trying to enable it breaks compilation.
Fixes 3b6b75506de44c5070639943c30a0ad5850f5d02Reported-by Alex Bennée <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- configure | 1 - 1 file changed, 1 deletion(-)configure +0
-0configure supported_xen_target() { · line 208
Quoted 7 lines
configure +0
-1@@ -203,7 +203,6 @@ supported_xen_target() { test "$xen" = "yes" || return 1 glob "$1" "*-softmmu" || return 1 case "${1%-softmmu}:$cpu" in - arm:arm | aarch64:aarch64 | \ i386:i386 | i386:x86_64 | x86_64:i386 | x86_64:x86_64) return 0 ;;Does this actually do the right thing? It's still testing target-cpu:guest-cpu, if I'm reading it correctly, whereas previously we only looked at target-cpu to decide whether to set
CONFIG_XEN.
Quoted 6 lines
Quoted 4 lines
In particular, I thought that for aarch64/arm Xen setups we would end up building an i386-softmmu target on an arm/aarch64 host and wanted
CONFIG_XENto be set in that setup ?Yes, that's correct.
Yes, you are right. The patch is good, thanks!