how to disable build of pv-shim?
What is the recommended way to disable CONFIG_PV_SHIM, which is set in tools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.
There isn't a way to disable it yet.
I would suggest you add a --disable-pv-shim or something to tools' configure script.
Wei.
Quoted 9 lines
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2 -0
@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@
tools/configure.ac +11 -0
@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";; + *) pvshim="n";; + esac + ]) +AC_SUBST(pvshim) + AC_OUTPUT()
tools/firmware/Makefile +0 -4
@@ -1,10 +1,6 @@ XEN_ROOT = $(CURDIR)/../.. include $(XEN_ROOT)/tools/Rules.mk -ifneq ($(XEN_TARGET_ARCH),x86_32) -CONFIG_PV_SHIM := y -endif - # hvmloader is a 32-bit protected mode binary. TARGET := hvmloader/hvmloader INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 27 lines · Roger Pau Monné
Quoted 3 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0
tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 9 lines
tools/configure.ac +6
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;
Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 31 lines · Wei Liu
Quoted 30 lines · Roger Pau Monné
Quoted 3 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs)
Quoted 9 lines
tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 6 lines
tools/configure.ac +6
-0+AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Oh, I didn't realize this. Is it true for all distros?
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 42 lines · Roger Pau Monné
Quoted 31 lines · Wei Liu
Quoted 30 lines · Roger Pau Monné
Quoted 3 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs)Quoted 9 lines
tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 6 lines
tools/configure.ac +6
-0+AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Quoted 1 line
Oh, I didn't realize this. Is it true for all distros?
FAOD I was thinking about 32bit xen support. But I just realise since you tested host_cpu here, maybe you intended to do a cross-build?
I have never tested cross-building 64bit xen on a 32bit platform...
Wei.
Quoted 2 lines
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 40 lines · Wei Liu
Quoted 39 lines · Roger Pau Monné
Quoted 38 lines · Wei Liu
Quoted 26 lines · Roger Pau Monné
Quoted 3 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way to influence its value from outside, which means the build always enters xen-dir/.I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 9 lines
tools/configure.ac +6
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Quoted 5 lines
Quoted 1 line
Oh, I didn't realize this. Is it true for all distros?
FAOD I was thinking about 32bit xen support. But I just realise since you tested
host_cpuhere, maybe you intended to do a cross-build?I have never tested cross-building 64bit xen on a 32bit platform...
XenServer used this for many years when we had a 64bit Xen and 32bit dom0. It works fine (or did last time I checked, and I have no reason to expect that we've broken it).
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 11:23, <[email protected]> wrote:
Quoted 5 lines · Roger Pau Monné
Quoted 4 lines · Wei Liu
Quoted 3 lines · Roger Pau Monné
Quoted 2 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way toinfluence
Quoted 37 lines
Quoted 36 lines
Quoted 24 lines
Quoted 1 line
its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 9 lines
tools/configure.ac +6
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Quoted 4 lines
Quoted 1 line
Oh, I didn't realize this. Is it true for all distros?
FAOD I was thinking about 32bit xen support. But I just realise since you tested
host_cpuhere, maybe you intended to do a cross-build?
If the intention is a cross build, then host CPU shouldn't matter at all, i.e. building e.g. on Arm should work as well.
When considering the target CPU, implying a 64-bit hypervisor from a 32-bit general (i.e. tool stack) target would of course be an option. Question just is how you would determine whether a suitable cross tool chain is available.
Quoted 1 line
I have never tested cross-building 64bit xen on a 32bit platform...
As Andrew says - this works perfectly fine.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 50 lines · Jan Beulich
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 11:23, <[email protected]> wrote:
Quoted 5 lines · Roger Pau Monné
Quoted 4 lines · Wei Liu
Quoted 3 lines · Roger Pau Monné
Quoted 2 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way toinfluence
Quoted 37 lines
Quoted 36 lines
Quoted 24 lines
Quoted 1 line
its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 9 lines
tools/configure.ac +6
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only, enabled by default)]), + [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Quoted 4 lines
Quoted 1 line
Oh, I didn't realize this. Is it true for all distros?
FAOD I was thinking about 32bit xen support. But I just realise since you tested
host_cpuhere, maybe you intended to do a cross-build?
Quoted 7 lines
If the intention is a cross build, then host CPU shouldn't matter at all, i.e. building e.g. on Arm should work as well.
When considering the target CPU, implying a 64-bit hypervisor from a 32-bit general (i.e. tool stack) target would of course be an option. Question just is how you would determine whether a suitable cross tool chain is available.
I think it would better to use target_cpu here, but limiting to x86_64 only seems wrong, since a user could build a 32bit toolstack and have a 64bit pvshim. I'm not sure however if there are other issues that would prevent this from working out of the box.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 42 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 10:55, <[email protected]> wrote:
Quoted 4 lines · Wei Liu
Quoted 3 lines · Roger Pau Monné
Quoted 2 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way toinfluence
Quoted 25 lines
Quoted 25 lines
Quoted 1 line
its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs],Quoted 4 lines
tools/configure.ac AC_ARG_ENABLE([9pfs],
Quoted 4 lines
tools/configure.ac +2
-0AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only,enabled by default)]),
Quoted 5 lines
Quoted 4 lines
tools/configure.ac +4
-0+ [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;
Quoted 4 lines
Quoted 2 lines
Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Oh, I didn't realize this. Is it true for all distros?
It's a property of the hypervisor (note: not the tool stack), as of 4.3.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 42 lines · Jan Beulich
Quoted 42 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 10:55, <[email protected]> wrote:
Quoted 4 lines · Wei Liu
Quoted 3 lines · Roger Pau Monné
Quoted 2 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way toinfluence
Quoted 25 lines
Quoted 25 lines
Quoted 1 line
its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs],Quoted 4 lines
tools/configure.ac AC_ARG_ENABLE([9pfs],
Quoted 4 lines
tools/configure.ac +2
-0AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only,enabled by default)]),
Quoted 5 lines
Quoted 4 lines
tools/configure.ac +4
-0+ [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Oh, I didn't realize this. Is it true for all distros?
It's a property of the hypervisor (note: not the tool stack), as of 4.3.
But the property is that the hypervisor requires an amd64 compatible CPU to run, but it should build fine on 32bit.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 47 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 13:11, <[email protected]> wrote:
Quoted 45 lines · Jan Beulich
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 14.05.19 at 10:55, <[email protected]> wrote:
Quoted 4 lines · Wei Liu
Quoted 3 lines · Roger Pau Monné
Quoted 2 lines · Olaf Hering
What is the recommended way to disable
CONFIG_PV_SHIM, which is set intools/firmware/Makefile? From my understanding there is no way toinfluence
Quoted 25 lines
Quoted 25 lines
Quoted 1 line
its value from outside, which means the build always enters xen-dir/.
I think the following should do the trick.
Let me know if that works for you and I will submit it formally.
Thanks!
---8<---
config/Tools.mk.in +2
-0@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ + +CONFIG_PV_SHIM := @pvshim@tools/configure.ac +0
-0@@ -492,4 +492,15 @@ AC_ARG_ENABLE([9pfs],Quoted 4 lines
tools/configure.ac AC_ARG_ENABLE([9pfs],
Quoted 4 lines
tools/configure.ac +2
-0AC_SUBST(ninepfs) +AC_ARG_ENABLE([pvshim], + AS_HELP_STRING([--disable-pvshim], [Disable pvshim build (x86 only,enabled by default)]),
Quoted 7 lines
tools/configure.ac AC_ARG_ENABLE([9pfs], · line 500
Quoted 4 lines
tools/configure.ac +4
-0+ [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ + case "$host_cpu" in + i[[3456]]86|x86_64) + pvshim="y";;Since xen doesn't build on 32bit anymore you may want to exclude i[3456]86 here?
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Oh, I didn't realize this. Is it true for all distros?
It's a property of the hypervisor (note: not the tool stack), as of 4.3.
But the property is that the hypervisor requires an amd64 compatible CPU to run, but it should build fine on 32bit.
Except that a typical gcc on 32-bit won't be able to build (64-bit) Xen, nor would there be any place to enforce the necessary XEN_TARGET_ARCH:=x86_64.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Am Mon, 13 May 2019 17:20:05 +0200
schrieb Roger Pau Monné <[email protected]>:
Quoted 1 line
enabled by default
Does anyone actually require it at all?
Those who do pass --enable-pvshim to configure. No need for (incorrect) host_cpu checks.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Olaf Hering
Am Mon, 13 May 2019 17:20:05 +0200
schrieb Roger Pau Monné <[email protected]>:Quoted 1 line
enabled by default
Does anyone actually require it at all?
Hm, that's the default behavior so far (enabled on x86), so I would like to keep it as-is.
Quoted 1 line
Those who do pass --enable-pvshim to configure. No need for (incorrect)
host_cpuchecks.
Using target_cpu should be fine I think.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Am Mon, 13 May 2019 17:20:05 +0200
schrieb Roger Pau Monné <[email protected]>:
Quoted 1 line
Let me know if that works for you and I will submit it formally.
Yes, it works for me. Thanks.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Olaf Hering
Am Mon, 13 May 2019 17:20:05 +0200
schrieb Roger Pau Monné <[email protected]>:Quoted 1 line
Let me know if that works for you and I will submit it formally.
Yes, it works for me. Thanks.
Did you have a chance to submit a fix to support '--disable-pv-shim'?
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Olaf Hering
Quoted 5 lines · Olaf Hering
Am Mon, 13 May 2019 17:20:05 +0200
schrieb Roger Pau Monné <[email protected]>:Quoted 1 line
Let me know if that works for you and I will submit it formally.
Yes, it works for me. Thanks.
Did you have a chance to submit a fix to support '--disable-pv-shim'?
Yes, it was committed quite some time ago, check 8845155c831c59:
http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=8845155c831c59e867ee3dd31ee63e0cc6c7dcf2
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel