mini-os: prepare mini-os stubdoms to use stable libs only
Subsystems (2)
cover mini-os: prepare mini-os stubdoms to use stable libs only
When built as stubdom Mini-OS can't be linked to use only stable Xen libraries, as there is only one config option for adding Xen library support, which includes libxenctrl.
This series is changing that by adding dedicated config options for each Xen library needing special support in Mini-OS.
Juergen Gross (2):
mini-os: fix testbuilds regarding CONFIG_XC
mini-os: add config options for xen libraries
Config.mk | 8 +++++++- arch/x86/testbuild/all-no | 4 +++- arch/x86/testbuild/all-yes | 8 +++++--- arch/x86/testbuild/newxen-yes | 8 +++++--- lib/sys.c | 8 ++++++-- 5 files changed, 26 insertions(+), 10 deletions(-)
Signature · 1 line
2.26.2
PATCH 1/2 mini-os: fix testbuilds regarding CONFIG_XC
CONFIG_GC is requiring external support, so disable it in testbuilds.
The only reason this is working right now is its usage being inside a HAVE_LIBC section.
Make that more obvious by making the default setting of CONFIG_XC depending on libc being available.
--- Config.mk | 3 ++- arch/x86/testbuild/all-yes | 3 ++- arch/x86/testbuild/newxen-yes | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)
Config.mk +2 -1
@@ -62,6 +62,7 @@ MINIOS_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \ MINIOS_TARGET_ARCH ?= $(MINIOS_COMPILE_ARCH) endif +stubdom ?= n libc = $(stubdom) XEN_INTERFACE_VERSION ?= 0x00030205
@@ -179,7 +180,6 @@ CONFIG-y += CONFIG_FBFRONT CONFIG-y += CONFIG_KBDFRONT CONFIG-y += CONFIG_CONSFRONT CONFIG-y += CONFIG_XENBUS -CONFIG-y += CONFIG_XC CONFIG-n += CONFIG_QEMU_XS_ARGS CONFIG-n += CONFIG_TEST CONFIG-n += CONFIG_PCIFRONT
@@ -195,6 +195,7 @@ CONFIG-y += CONFIG_PARAVIRT else CONFIG-n += CONFIG_PARAVIRT endif +CONFIG-$(libc) += CONFIG_XC CONFIG-$(lwip) += CONFIG_LWIP $(foreach i,$(CONFIG-y),$(eval $(i) ?= y))
arch/x86/testbuild/all-yes +2 -1
@@ -13,7 +13,8 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -CONFIG_XC = y +# XC is special: it needs support from outside +CONFIG_XC = n # LWIP is special: it needs support from outside CONFIG_LWIP = n CONFIG_BALLOON = y
arch/x86/testbuild/newxen-yes +2 -1
@@ -13,7 +13,8 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -CONFIG_XC = y +# XC is special: it needs support from outside +CONFIG_XC = n # LWIP is special: it needs support from outside CONFIG_LWIP = n CONFIG_BALLOON = y
Signature · 1 line
2.26.2
Re: [PATCH 1/2] mini-os: fix testbuilds regarding CONFIG_XC
Juergen Gross, le lun. 04 oct. 2021 16:19:23 +0200, a ecrit:
Quoted 9 lines
CONFIG_GCis requiring external support, so disable it in testbuilds.The only reason this is working right now is its usage being inside a
HAVE_LIBCsection.Make that more obvious by making the default setting of
CONFIG_XCdepending on libc being available.Signed-off-by Juergen Gross <[email protected]>
Thanks!
Quoted 65 lines
--- Config.mk | 3 ++- arch/x86/testbuild/all-yes | 3 ++- arch/x86/testbuild/newxen-yes | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)Config.mk +2
-1@@ -62,6 +62,7 @@ MINIOS_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \ MINIOS_TARGET_ARCH ?= $(MINIOS_COMPILE_ARCH) endif +stubdom ?= n libc = $(stubdom) XEN_INTERFACE_VERSION ?= 0x00030205@@ -179,7 +180,6 @@ CONFIG-y += CONFIG_FBFRONT CONFIG-y += CONFIG_KBDFRONT CONFIG-y += CONFIG_CONSFRONT CONFIG-y += CONFIG_XENBUS -CONFIG-y += CONFIG_XC CONFIG-n += CONFIG_QEMU_XS_ARGS CONFIG-n += CONFIG_TEST CONFIG-n += CONFIG_PCIFRONT@@ -195,6 +195,7 @@ CONFIG-y += CONFIG_PARAVIRT else CONFIG-n += CONFIG_PARAVIRT endif +CONFIG-$(libc) += CONFIG_XC CONFIG-$(lwip) += CONFIG_LWIP $(foreach i,$(CONFIG-y),$(eval $(i) ?= y))arch/x86/testbuild/all-yes +2
-1@@ -13,7 +13,8 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -CONFIG_XC = y +# XC is special: it needs support from outside +CONFIG_XC = n # LWIP is special: it needs support from outside CONFIG_LWIP = n CONFIG_BALLOON = yarch/x86/testbuild/newxen-yes +2
-1@@ -13,7 +13,8 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -CONFIG_XC = y +# XC is special: it needs support from outside +CONFIG_XC = n # LWIP is special: it needs support from outside CONFIG_LWIP = n CONFIG_BALLOON = ySignature · 1 line
2.26.2
Signature · 3 lines
Samuel <k> faut en profiter, aujourd'hui, les blagues bidon sont à 100 dollars -+- #sos-bourse -+-
PATCH 2/2 mini-os: add config options for xen libraries
In reply to Juergen GrossToday close hooks into libxenctrl, libxenevtchn and libxengnttab are under the CONFIG_XC umbrella. In order to support Mini-OS builds using stable Xen libraries only, add CONFIG_LIBXENCTRL, CONFIG_LIBXENEVTCHN and CONFIG_LIBXENGNTTAB config options.
In case CONFIG_XC was specified in the Mini-OS config explicitly, set the three new variables to the specified value.
--- Config.mk | 7 ++++++- arch/x86/testbuild/all-no | 4 +++- arch/x86/testbuild/all-yes | 9 +++++---- arch/x86/testbuild/newxen-yes | 9 +++++---- lib/sys.c | 8 ++++++-- 5 files changed, 25 insertions(+), 12 deletions(-)
Config.mk +6 -1
@@ -195,7 +195,12 @@ CONFIG-y += CONFIG_PARAVIRT else CONFIG-n += CONFIG_PARAVIRT endif -CONFIG-$(libc) += CONFIG_XC +# Support legacy CONFIG_XC value +CONFIG_XC ?= $(libc) +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENCTRL +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENEVTCHN +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENGNTTAB + CONFIG-$(lwip) += CONFIG_LWIP $(foreach i,$(CONFIG-y),$(eval $(i) ?= y))
arch/x86/testbuild/all-no +3 -1
@@ -13,7 +13,9 @@ CONFIG_FBFRONT = n CONFIG_KBDFRONT = n CONFIG_CONSFRONT = n CONFIG_XENBUS = n -CONFIG_XC = n +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n CONFIG_LWIP = n CONFIG_BALLOON = n CONFIG_USE_XEN_CONSOLE = n
arch/x86/testbuild/all-yes +5 -4
@@ -13,9 +13,10 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -# XC is special: it needs support from outside -CONFIG_XC = n -# LWIP is special: it needs support from outside -CONFIG_LWIP = n CONFIG_BALLOON = y CONFIG_USE_XEN_CONSOLE = y +# The following are special: they need support from outside +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n +CONFIG_LWIP = n
arch/x86/testbuild/newxen-yes +5 -4
@@ -13,10 +13,11 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -# XC is special: it needs support from outside -CONFIG_XC = n -# LWIP is special: it needs support from outside -CONFIG_LWIP = n CONFIG_BALLOON = y CONFIG_USE_XEN_CONSOLE = y XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__ +# The following are special: they need support from outside +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n +CONFIG_LWIP = n
lib/sys.c +6 -2
@@ -437,13 +437,17 @@ int close(int fd) return res; }#endif -#ifdef CONFIG_XC +#ifdef CONFIG_LIBXENCTRL case FTYPE_XC :minios_interface_close_fd (fd);return 0 ; +#endif +#ifdef CONFIG_LIBXENEVTCHN case FTYPE_EVTCHN :minios_evtchn_close_fd (fd);return 0 ; +#endif +#ifdef CONFIG_LIBXENGNTTAB case FTYPE_GNTMAP :minios_gnttab_close_fd (fd);return 0 ;
@@ -1373,7 +1377,7 @@ void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offsetif (fd ==-1 )return map_zero (n,1 ); -#ifdef CONFIG_XC +#ifdef CONFIG_LIBXENCTRL else if (files[fd].type == FTYPE_XC) {unsigned long zero =0 ;return map_frames_ex (&zero, n,0 ,0 ,1 ,DOMID_SELF ,NULL ,0 );
Signature · 1 line
2.26.2
Re: [PATCH 2/2] mini-os: add config options for xen libraries
Juergen Gross, le lun. 04 oct. 2021 16:19:24 +0200, a ecrit:
Quoted 9 lines
Today close hooks into libxenctrl, libxenevtchn and libxengnttab are under the
CONFIG_XCumbrella. In order to support Mini-OS builds using stable Xen libraries only, addCONFIG_LIBXENCTRL,CONFIG_LIBXENEVTCHNandCONFIG_LIBXENGNTTABconfig options.In case
CONFIG_XCwas specified in the Mini-OS config explicitly, set the three new variables to the specified value.Signed-off-by Juergen Gross <[email protected]>
Thanks!
Quoted 115 lines
--- Config.mk | 7 ++++++- arch/x86/testbuild/all-no | 4 +++- arch/x86/testbuild/all-yes | 9 +++++---- arch/x86/testbuild/newxen-yes | 9 +++++---- lib/sys.c | 8 ++++++-- 5 files changed, 25 insertions(+), 12 deletions(-)Config.mk +6
-1@@ -195,7 +195,12 @@ CONFIG-y += CONFIG_PARAVIRT else CONFIG-n += CONFIG_PARAVIRT endif -CONFIG-$(libc) += CONFIG_XC +# Support legacy CONFIG_XC value +CONFIG_XC ?= $(libc) +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENCTRL +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENEVTCHN +CONFIG-$(CONFIG_XC) += CONFIG_LIBXENGNTTAB + CONFIG-$(lwip) += CONFIG_LWIP $(foreach i,$(CONFIG-y),$(eval $(i) ?= y))arch/x86/testbuild/all-no +3
-1@@ -13,7 +13,9 @@ CONFIG_FBFRONT = n CONFIG_KBDFRONT = n CONFIG_CONSFRONT = n CONFIG_XENBUS = n -CONFIG_XC = n +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n CONFIG_LWIP = n CONFIG_BALLOON = n CONFIG_USE_XEN_CONSOLE = narch/x86/testbuild/all-yes +5
-4@@ -13,9 +13,10 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -# XC is special: it needs support from outside -CONFIG_XC = n -# LWIP is special: it needs support from outside -CONFIG_LWIP = n CONFIG_BALLOON = y CONFIG_USE_XEN_CONSOLE = y +# The following are special: they need support from outside +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n +CONFIG_LWIP = narch/x86/testbuild/newxen-yes +5
-4@@ -13,10 +13,11 @@ CONFIG_FBFRONT = y CONFIG_KBDFRONT = y CONFIG_CONSFRONT = y CONFIG_XENBUS = y -# XC is special: it needs support from outside -CONFIG_XC = n -# LWIP is special: it needs support from outside -CONFIG_LWIP = n CONFIG_BALLOON = y CONFIG_USE_XEN_CONSOLE = y XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__ +# The following are special: they need support from outside +CONFIG_LIBXENCTRL = n +CONFIG_LIBXENEVTCHN = n +CONFIG_LIBXENGNTTAB = n +CONFIG_LWIP = nlib/sys.c +6
-2@@ -437,13 +437,17 @@ int close(int fd) return res; }#endif -#ifdef CONFIG_XC +#ifdef CONFIG_LIBXENCTRL case FTYPE_XC :minios_interface_close_fd (fd);return 0 ; +#endif +#ifdef CONFIG_LIBXENEVTCHN case FTYPE_EVTCHN :minios_evtchn_close_fd (fd);return 0 ; +#endif +#ifdef CONFIG_LIBXENGNTTAB case FTYPE_GNTMAP :minios_gnttab_close_fd (fd);return 0 ;@@ -1373,7 +1377,7 @@ void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offsetif (fd ==-1 )return map_zero (n,1 ); -#ifdef CONFIG_XC +#ifdef CONFIG_LIBXENCTRL else if (files[fd].type == FTYPE_XC) {unsigned long zero =0 ;return map_frames_ex (&zero, n,0 ,0 ,1 ,DOMID_SELF ,NULL ,0 );Signature · 1 line
2.26.2
Signature · 6 lines
Samuel <y> update-menus: relocation error: update-menus: symbol _ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E, version GLIBCPP_3.2 not defined in file libstdc++.so.5 with link time reference <y> quoi que ça peut bien vouloir dire ? <D> N a eu la meme merde <y> c ça que ça veut dire ? wow, c'est bien crypté :) -+- #ens-mim s'entraide -+-