stubdom: remove building unused libraries
cover stubdom: remove building unused libraries
Pciutils and zlib are no longer used by any stubdom since removal of grub-pv, so they can be removed from the stubdom build system.
Juergen Gross (4):
Config: update Mini-OS commit id
stubdom: remove pciutils
stubdom: remove build of zlib
CHANGELOG: add removal of grub-pv
CHANGELOG.md | 2 + Config.mk | 2 +- config/Stubdom.mk.in | 6 - stubdom/.gitignore | 2 - stubdom/Makefile | 53 +------ stubdom/configure | 36 ----- stubdom/configure.ac | 2 - stubdom/libpci.config.h | 5 - stubdom/libpci.config.mak | 7 - stubdom/pciutils.patch | 298 -------------------------------------- 10 files changed, 4 insertions(+), 409 deletions(-) delete mode 100644 stubdom/libpci.config.h delete mode 100644 stubdom/libpci.config.mak delete mode 100644 stubdom/pciutils.patch
Signature · 1 line
2.55.0
PATCH 1/4 Config: update Mini-OS commit id
Use the newest Mini-OS.
--- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Config.mk +1 -1
@@ -217,7 +217,7 @@ QEMU_UPSTREAM_URL ?= https://xenbits.xen.org/git-http/qemu-xen.git QEMU_UPSTREAM_REVISION ?= master MINIOS_UPSTREAM_URL ?= https://xenbits.xen.org/git-http/mini-os.git -MINIOS_UPSTREAM_REVISION ?= b6f79f5f44cf69044079c042b88fe9d75367642e +MINIOS_UPSTREAM_REVISION ?= 26ceb2daf95dd9e7fed9c83d36be3aaf1a0fa8a1 SEABIOS_UPSTREAM_URL ?= https://xenbits.xen.org/git-http/seabios.git SEABIOS_UPSTREAM_REVISION ?= rel-1.17.0
Signature · 1 line
2.55.0
Re: [PATCH 1/4] Config: update Mini-OS commit id
Quoted 3 lines · Juergen Gross
Use the newest Mini-OS.
Signed-off-by Juergen Gross <[email protected]>
PATCH 2/4 stubdom: remove pciutils
In reply to Juergen GrossThere is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
--- config/Stubdom.mk.in | 3 - stubdom/.gitignore | 1 - stubdom/Makefile | 33 +---- stubdom/configure | 21 --- stubdom/configure.ac | 1 - stubdom/libpci.config.h | 5 - stubdom/libpci.config.mak | 7 - stubdom/pciutils.patch | 298 -------------------------------------- 8 files changed, 2 insertions(+), 367 deletions(-) delete mode 100644 stubdom/libpci.config.h delete mode 100644 stubdom/libpci.config.mak delete mode 100644 stubdom/pciutils.patch
config/Stubdom.mk.in +0 -3
@@ -14,9 +14,6 @@ STUBDOM_INSTALL := @STUBDOM_INSTALL@ ZLIB_VERSION := @ZLIB_VERSION@ ZLIB_URL := @ZLIB_URL@ -LIBPCI_VERSION := @LIBPCI_VERSION@ -LIBPCI_URL := @LIBPCI_URL@ - NEWLIB_VERSION := @NEWLIB_VERSION@ NEWLIB_URL := @NEWLIB_URL@
stubdom/.gitignore +0 -1
@@ -23,7 +23,6 @@ /mk-headers-* /newlib-1.* /newlib-x86* -/pciutils-* /pkg-config/* /polarssl-* /tpm_emulator-*
stubdom/Makefile +2 -31
@@ -122,34 +122,6 @@ $(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) $(MAKE) DESTDIR= libz.a && \ $(MAKE) DESTDIR= install ) -############## -# Cross-libpci -############## - -pciutils-$(LIBPCI_VERSION).tar.bz2: - $(FETCHER) $@ $(LIBPCI_URL)/$@ - -pciutils-$(XEN_TARGET_ARCH): pciutils-$(LIBPCI_VERSION).tar.bz2 - tar xjf $< - mv pciutils-$(LIBPCI_VERSION) $@ - patch -d $@ -p1 < pciutils.patch - touch $@ - -LIBPCI_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libpci.a -.PHONY: cross-libpci -cross-libpci: $(LIBPCI_STAMPFILE) -$(LIBPCI_STAMPFILE): pciutils-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) $(ZLIB_STAMPFILE) - ( cd $< && \ - cp ../libpci.config.h lib/config.h && \ - chmod u+w lib/config.h && \ - echo '#define PCILIB_VERSION "$(LIBPCI_VERSION)"' >> lib/config.h && \ - ln -sf ../../libpci.config.mak lib/config.mk && \ - $(MAKE) DESTDIR= CC="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(call realpath,$(MINI_OS)/include)" lib/libpci.a && \ - $(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib/ && \ - $(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci && \ - $(INSTALL_DATA) lib/config.h lib/header.h lib/pci.h lib/types.h $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci/ \ - ) - ###### # lwIP ######
@@ -250,7 +222,7 @@ cross-tpmemu: $(TPMEMU_STAMPFILE) ####### .PHONY: $(CROSS_ROOT) -$(CROSS_ROOT): cross-newlib cross-zlib cross-libpci +$(CROSS_ROOT): cross-newlib cross-zlib ####### # libraries under tools/libs
@@ -477,7 +449,7 @@ clean: crossclean: clean rm -fr $(CROSS_ROOT) rm -fr newlib-$(XEN_TARGET_ARCH) - rm -fr zlib-$(XEN_TARGET_ARCH) pciutils-$(XEN_TARGET_ARCH) + rm -fr zlib-$(XEN_TARGET_ARCH) rm -fr libs-$(XEN_TARGET_ARCH) rm -fr xenstore xenstorepvh rm -fr gmp-$(XEN_TARGET_ARCH)
@@ -502,7 +474,6 @@ downloadclean: patchclean rm -f zlib-$(ZLIB_VERSION).tar.gz rm -f gmp-$(GMP_VERSION).tar.bz2 rm -f tpm_emulator-$(TPMEMU_VERSION).tar.gz - rm -f pciutils-$(LIBPCI_VERSION).tar.bz2 rm -f lwip-$(LWIP_VERSION).tar.gz rm -f polarssl-$(POLARSSL_VERSION)-gpl.tgz
stubdom/configure +0 -21
@@ -634,8 +634,6 @@ LWIP_VERSION LWIP_URL NEWLIB_VERSION NEWLIB_URL -LIBPCI_VERSION -LIBPCI_URL ZLIB_VERSION ZLIB_URL INSTALL_DATA
@@ -725,7 +723,6 @@ LDFLAGS LIBS CPPFLAGS ZLIB_URL -LIBPCI_URL NEWLIB_URL LWIP_URL GMP_URL
@@ -1376,7 +1373,6 @@ Some influential environment variables: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> ZLIB_URL Download url for zlib - LIBPCI_URL Download url for libpci NEWLIB_URL Download url for newlib LWIP_URL Download url for lwip GMP_URL Download url for libgmp
@@ -4038,23 +4034,6 @@ ZLIB_VERSION="1.2.3" -if test "x$LIBPCI_URL" = "x" -then : - - if test "x$extfiles" = "xy" -then : - LIBPCI_URL=\$\(XEN_EXTFILES_URL\) -else $as_nop - LIBPCI_URL="https://mirrors.edge.kernel.org/pub/software/utils/pciutils" -fi - -fi -LIBPCI_VERSION="2.2.9" - - - - - if test "x$NEWLIB_URL" = "x" then :
stubdom/configure.ac +0 -1
@@ -39,7 +39,6 @@ AX_DEPENDS_PATH_PROG([vtpm], [CMAKE], [cmake]) # Stubdom libraries version and url setup AX_STUBDOM_LIB([ZLIB], [zlib], [1.2.3]) -AX_STUBDOM_LIB([LIBPCI], [libpci], [2.2.9], [https://mirrors.edge.kernel.org/pub/software/utils/pciutils]) AX_STUBDOM_LIB([NEWLIB], [newlib], [1.16.0], [https://sourceware.org/ftp/newlib]) AX_STUBDOM_LIB([LWIP], [lwip], [1.3.0], [https://download.savannah.gnu.org/releases/lwip]) AX_STUBDOM_LIB([GMP], [libgmp], [4.3.2], [https://gmplib.org/download/gmp/archive])
stubdom/libpci.config.h deleted +0 -5
@@ -1,5 +0,0 @@ -#define PCI_OS_MINIOS -#define PCI_HAVE_STDINT_H -#define PCI_PATH_IDS_DIR "." -#define PCI_COMPRESSED_IDS -#define PCI_IDS "pci.ids.gz"
stubdom/libpci.config.mak deleted +0 -7
@@ -1,7 +0,0 @@ -LIBZ=-lz -LDLIBS+=$(LIBZ) -PCI_OS_MINIOS=1 -PCI_HAVE_STDINT_H=1 -PCI_PATH_IDS_DIR=. -PCI_COMPRESSED_IDS=1 -PCI_IDS=pci.ids.gz
stubdom/pciutils.patch deleted +0 -298
298 lines not on this page · raw message
Signature · 1 line
2.55.0
Re: [PATCH 2/4] stubdom: remove pciutils
Hello,
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Samuel
Quoted 237 lines
----
pciutils-2.2.9.orig/lib/minios.c1970-01-01 01:00:00.000000000 +0100
-+++pciutils-2.2.9/lib/minios.c2008-07-01 12:31:40.554260000 +0100-@@ -0,0 +1,106 @@
-+/*
-+ * The PCI Library -- MiniOS PCI frontend access
-+ *
-+ * Samuel Thibault <[email protected]>, 2008
-+ *
-+ * Can be freely distributed and used under the terms of the GNU GPL.
-+ */
-+
-+#include <os.h>
-+#include <pcifront.h>
-+#include <xenbus.h>
-+#include "internal.h"
-+
-+static int
-+minios_detect(structpci_access*a)
-+{
-+ return 1;
-+}
-+
-+static void
-+minios_init(structpci_access*a)
-+{
-+}
-+
-+static void
-+minios_cleanup(structpci_access*a)
-+{
-+shutdown_pcifront(NULL);
-+}
-+
-+static void
-+minios_scan(structpci_access*a)
-+{
-+ voidfunc(unsigned int domain, unsigned int bus, unsigned int slot, unsigned int fun)-+ {
-+ structpci_dev*d =pci_alloc_dev(a);
-+-+ d->domain = domain; -+ d->bus = bus; -+ d->dev = slot; -+ d->func = fun;-+
-+pci_link_dev(a, d);
-+ }
-+
-+pcifront_scan(NULL, func);
-+}
-+
-+static int
-+minios_read(structpci_dev*d, int pos, byte *buf, int len)
-+{
-+ unsigned int val;
-+ switch (len) {
-+ case 1:
-+ if (pcifront_conf_read(NULL, d->domain, d->bus, d->dev, d->func, pos, len, &val))
-+ return 0;
-+ * buf = val;
-+ return 1;
-+ case 2:
-+ if (pcifront_conf_read(NULL, d->domain, d->bus, d->dev, d->func, pos, len, &val))
-+ return 0;
-+ *(u16 *) buf =cpu_to_le16((u16) val);
-+ return 1;
-+ case 4:
-+ if (pcifront_conf_read(NULL, d->domain, d->bus, d->dev, d->func, pos, len, &val))
-+ return 0;
-+ *(u32 *) buf =cpu_to_le32((u32) val);
-+ return 1;
-+ default:
-+ returnpci_generic_block_read(d, pos, buf, len);
-+ }
-+}
-+
-+static int
-+minios_write(structpci_dev*d, int pos, byte *buf, int len)
-+{
-+ unsigned int val;
-+ switch (len) {
-+ case 1:
-+ val = * buf;
-+ break;
-+ case 2:
-+ val =le16_to_cpu(*(u16 *) buf);
-+ break;
-+ case 4:
-+ val =le32_to_cpu(*(u32 *) buf);
-+ break;
-+ default:
-+ returnpci_generic_block_write(d, pos, buf, len);
-+ }
-+ return !pcifront_conf_write(NULL,d->domain,d->bus,d->dev,d->func, pos, len, val); -+}
-+
-+structpci_methodspm_minios= {-+ "MiniOS-device", -+ NULL, /* config */ -+ minios_detect, -+ minios_init, -+ minios_cleanup, -+ minios_scan, -+ pci_generic_fill_info, -+ minios_read, -+ minios_write, -+ NULL, /* dev_init */ -+ NULL /* dev_cleanup */-+};
----pciutils-2.2.9/lib/generic.c2007-02-06 12:00:05.000000000 +0000
-+++pciutils-2.2.9-mine/lib/generic.c2008-07-01 19:13:52.289949000 +0100
-@@ -74,6 +74,19 @@stubdom/pciutils.patch deleted +0
-122- pci_generic_scan_bus(a, busmap, 0); - } - -+static u32 pci_size(u32 base, u32 maxbase, u32 mask) -+{ -+ u32 size = mask & maxbase; -+ if (!size) -+ return 0; -+ size = (size & ~(size-1)) - 1; -+ -+ if (base == maxbase && ((base | size) & mask) != mask) -+ return 0; -+ -+ return size + 1; -+} -+ - int - pci_generic_fill_info(struct pci_dev *d, int flags) - { -@@ -114,23 +127,61 @@ - if (!x || x == (u32) ~0) - continue; - if ((x & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_IO) -- d->base_addr[i] = x; -- else -+ { -+ d->base_addr[i] = x & PCI_BASE_ADDRESS_IO_MASK; -+ if (flags & PCI_FILL_SIZES) -+ { -+ u32 size; -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, ~0); -+ d->size[i] = pci_size(x, pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4), PCI_BASE_ADDRESS_IO_MASK); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, x); -+ } -+ } -+ else - { - if ((x & PCI_BASE_ADDRESS_MEM_TYPE_MASK) != PCI_BASE_ADDRESS_MEM_TYPE_64) -- d->base_addr[i] = x; -+ { -+ d->base_addr[i] = x & PCI_BASE_ADDRESS_MEM_MASK; -+ if (flags & PCI_FILL_SIZES) -+ { -+ u32 size; -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, ~0); -+ d->size[i] = pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4); -+ d->size[i] = pci_size(x, pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4), PCI_BASE_ADDRESS_MEM_MASK); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, x); -+ } -+ } - else if (i >= cnt-1) - a->warning("%04x:%02x:%02x.%d: Invalid 64-bit address seen for BAR %d.", d->domain, d->bus, d->dev, d->func, i); - else - { - u32 y = pci_read_long(d, PCI_BASE_ADDRESS_0 + (++i)*4); - #ifdef PCI_HAVE_64BIT_ADDRESS -- d->base_addr[i-1] = x | (((pciaddr_t) y) << 32); -+ d->base_addr[i-1] = (x | (((pciaddr_t) y) << 32)) & PCI_BASE_ADDRESS_MEM_MASK; -+ if (flags & PCI_FILL_SIZES) -+ { -+ u32 size; -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4, ~0); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, ~0); -+ d->size[i-1] = pci_size(y, pci_read_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4) | -+ pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4), 0xffffffff ); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4, x); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, y); -+ } - #else - if (y) - a->warning("%04x:%02x:%02x.%d 64-bit device address ignored.", d->domain, d->bus, d->dev, d->func); - else -- d->base_addr[i-1] = x; -+ { -+ d->base_addr[i-1] = x & PCI_BASE_ADDRESS_MEM_MASK; -+ if (flags & PCI_FILL_SIZES) -+ { -+ u32 size; -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4, ~0); -+ d->size[i-1] = pci_size(x, pci_read_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4), PCI_BASE_ADDRESS_MEM_MASK); -+ pci_write_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4, x); -+ } -+ } - #endif - } - } -@@ -154,10 +205,19 @@ - { - u32 u = pci_read_long(d, reg); - if (u != 0xffffffff) -- d->rom_base_addr = u; -+ { -+ d->rom_base_addr = u; -+ if (flags & PCI_FILL_SIZES) -+ { -+ u32 size; -+ pci_write_long(d, reg, ~0); -+ d->rom_size = pci_read_long(d, reg); -+ pci_write_long(d, reg, u); -+ } -+ } - } - } -- return flags & ~PCI_FILL_SIZES; -+ return flags; - } - - static int -diff -uNpbE -uNpbEr pciutils-2.2.9.orig/lib/sysdep.h pciutils-2.2.9/lib/sysdep.h ---- pciutils-2.2.9.orig/lib/sysdep.h 2007-02-06 12:00:18.000000000 +0000 -+++ pciutils-2.2.9/lib/sysdep.h 2009-07-22 16:26:30.000000000 +0100 -@@ -32,6 +32,10 @@ typedef u16 word; - - #else - -+#ifdef PCI_OS_MINIOS -+#include <machine/endian.h> -+#endif -+ - #ifdef PCI_OS_LINUX - #include <endian.h> - #define BYTE_ORDER __BYTE_ORDERSignature · 1 line
2.55.0
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 10 lines · Samuel Thibault
Hello,
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
Quoted 6 lines
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
I'm not in favor keeping unused code in our master branch.
Juergen
Re: [PATCH 2/4] stubdom: remove pciutils
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 8 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
Quoted 8 lines
Quoted 6 lines
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
No, it is not really.
I keep reading this argument, but people will not know that something exists in the git history, and will just assume that it does not exist and has to be written.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 17 lines · Samuel Thibault
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 16 lines · Samuel Thibault
Quoted 14 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Quoted 7 lines
Quoted 1 line
This is all still available via git.
No, it is not really.
I keep reading this argument, but people will not know that something exists in the git history, and will just assume that it does not exist and has to be written.
What about adding a comment to the stubdom Makefile in a separate patch, like:
# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.
I think this would be preferable over unused and probably bit-rotten code in the repository.
Juergen
Re: [PATCH 2/4] stubdom: remove pciutils
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 26 lines · Samuel Thibault
Quoted 17 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 16 lines · Samuel Thibault
Quoted 14 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Quoted 7 lines
Quoted 1 line
This is all still available via git.
No, it is not really.
I keep reading this argument, but people will not know that something exists in the git history, and will just assume that it does not exist and has to be written.
Quoted 7 lines
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 29 lines · Samuel Thibault
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 28 lines · Samuel Thibault
Quoted 17 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 16 lines · Samuel Thibault
Quoted 14 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Quoted 7 lines
Quoted 1 line
This is all still available via git.
No, it is not really.
I keep reading this argument, but people will not know that something exists in the git history, and will just assume that it does not exist and has to be written.
What about adding a comment to the stubdom
Makefilein a separate patch, like:
Quoted 8 lines
Quoted 5 lines
# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
I don't see why it would be bit-rotten, since the pciutils version in used is fixed,
Which is one of the problems with it. Why are we forcing people to use a long outdated version?
Jan
Quoted 5 lines
it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
In reply to Samuel ThibaultQuoted 32 lines · Samuel Thibault
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 31 lines · Samuel Thibault
Quoted 17 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 16 lines · Samuel Thibault
Quoted 14 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Quoted 7 lines
Quoted 1 line
This is all still available via git.
No, it is not really.
I keep reading this argument, but people will not know that something exists in the git history, and will just assume that it does not exist and has to be written.
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.
Quoted 6 lines
Quoted 2 lines
I think this would be preferable over unused and probably bit-rotten code in the repository.
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Then I'd rather add it to Mini-OS (probably behind another CONFIG option) than having it in the Xen tree.
This way it could be test-built much easier with Mini-OS, thus avoiding any breakage in case e.g. a pcifront interface is changed.
Juergen
Re: [PATCH 2/4] stubdom: remove pciutils
Hello,
I have submitted the pciutils MiniOS port to upstream (which I should probably have done 18 years ago :)
https://github.com/pciutils/pciutils/pull/235
https://github.com/pciutils/pciutils/pull/236
Jan Beulich, le mer. 19 août 2026 08:40:37 +0200, a ecrit:
Quoted 11 lines · Samuel Thibault
Quoted 10 lines
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 1 line
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
We can point people to pciutils through such a comment.
Jürgen Groß, le mer. 19 août 2026 09:12:00 +0200, a ecrit:
Quoted 7 lines · Samuel Thibault
Quoted 3 lines
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Then I'd rather add it to Mini-OS (probably behind another CONFIG option) than having it in the Xen tree.
Mmm, but how? We don't really want to pull the whole pciutils build into mini-os :)
With regards,
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 29 lines · Samuel Thibault
Hello,
I have submitted the pciutils MiniOS port to upstream (which I should probably have done 18 years ago :)
https://github.com/pciutils/pciutils/pull/235
https://github.com/pciutils/pciutils/pull/236Jan Beulich, le mer. 19 août 2026 08:40:37 +0200, a ecrit:
Quoted 11 lines · Samuel Thibault
Quoted 10 lines
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 1 line
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
We can point people to pciutils through such a comment.
Jürgen Groß, le mer. 19 août 2026 09:12:00 +0200, a ecrit:
Quoted 5 lines · Samuel Thibault
Quoted 3 lines
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Quoted 5 lines
Quoted 2 lines
Then I'd rather add it to Mini-OS (probably behind another CONFIG option) than having it in the Xen tree.
Mmm, but how? We don't really want to pull the whole pciutils build into mini-os :)
TBH, I don't see why the whole Mini-OS specific stubdom maze should be in the Xen repository. Thinking about the hoops I had to jump through for doing some of the Mini-OS cleanups (especially regarding config options), having all of the stubdom stuff in Mini-OS or an extra repository would probably be cleaner.
This is true especially now, as none of the stubdom remains really depend on the Xen version any longer (apart from the requirement to use a fairly new Xen).
OTOH before moving stubdom to Mini-OS, UNIKRAFT seems to be a valid alternative.
Juergen
Re: [PATCH 2/4] stubdom: remove pciutils
Jürgen Groß, le lun. 21 sept. 2026 15:07:36 +0200, a ecrit:
Quoted 28 lines · Samuel Thibault
Quoted 27 lines
I have submitted the pciutils MiniOS port to upstream (which I should probably have done 18 years ago :)
https://github.com/pciutils/pciutils/pull/235
https://github.com/pciutils/pciutils/pull/236Jan Beulich, le mer. 19 août 2026 08:40:37 +0200, a ecrit:
Quoted 11 lines · Samuel Thibault
Quoted 10 lines
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 1 line
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
We can point people to pciutils through such a comment.
Jürgen Groß, le mer. 19 août 2026 09:12:00 +0200, a ecrit:
Quoted 5 lines · Samuel Thibault
Quoted 3 lines
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Then I'd rather add it to Mini-OS (probably behind another CONFIG option) than having it in the Xen tree.
Mmm, but how? We don't really want to pull the whole pciutils build into mini-os :)
TBH, I don't see why the whole Mini-OS specific stubdom maze should be in the Xen repository.
It used to be at least because Xen itself was using stubdom for ioemu.
Nowadays stubdom-ioemu is away, but stubdom/ still builds xenstore, so it makes sense that it's xen that builds it along building the non-stubdom version.
Quoted 3 lines
Thinking about the hoops I had to jump through for doing some
of the Mini-OS cleanups (especially regarding config options), having all of the stubdom stuff in Mini-OS or an extra repository would probably be cleaner.
I don't really see how that will help with the config options management? It will however make its buildability checks less apparent to xen developers.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 32 lines · Samuel Thibault
Jürgen Groß, le lun. 21 sept. 2026 15:07:36 +0200, a ecrit:
Quoted 31 lines · Samuel Thibault
Quoted 30 lines
I have submitted the pciutils MiniOS port to upstream (which I should probably have done 18 years ago :)
https://github.com/pciutils/pciutils/pull/235
https://github.com/pciutils/pciutils/pull/236Jan Beulich, le mer. 19 août 2026 08:40:37 +0200, a ecrit:
Quoted 11 lines · Samuel Thibault
Quoted 10 lines
Jürgen Groß, le mar. 18 août 2026 07:43:34 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 1 line
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
What about adding a comment to the stubdom
Makefilein a separate patch, like:# pciutils support has been removed with commit <commit-id>, revert that patch # in case it is needed again.I think this would be preferable over unused and probably bit-rotten code in the repository.
We can point people to pciutils through such a comment.
Jürgen Groß, le mer. 19 août 2026 09:12:00 +0200, a ecrit:
Quoted 7 lines · Samuel Thibault
Quoted 3 lines
I don't see why it would be bit-rotten, since the pciutils version in used is fixed, it's a library that has a quite stable API, and the pci xen interface is supposed to keep backward compatibility.
Then I'd rather add it to Mini-OS (probably behind another CONFIG option) than having it in the Xen tree.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Mmm, but how? We don't really want to pull the whole pciutils build into mini-os :)
TBH, I don't see why the whole Mini-OS specific stubdom maze should be in the Xen repository.
It used to be at least because Xen itself was using stubdom for ioemu.
It used to be that way because Mini-OS was initially a part of the Xen repository.
This is no longer the case.
Quoted 3 lines
Nowadays stubdom-ioemu is away, but stubdom/ still builds xenstore, so it makes sense that it's xen that builds it along building the non-stubdom version.
I agree it makes sense that xen is triggering the build, like it is doing it for e.g. qemu. Qemu is a good example how it should be: a configure call and then a make call, both using the qemu build mechanisms.
But having the non-Xen libraries related to Mini-OS and the related patches to be able to use them with Mini-OS in the Xen tree is making things much harder than they should be.
Building a Xenstore stubdom should just trigger the Mini-OS build with some configuration options, including the pointing to the Xenstore source directory and a make target for the Xenstore make invocation.
Juergen
Re: [PATCH 2/4] stubdom: remove pciutils
Jürgen Groß, le mar. 22 sept. 2026 08:21:09 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 3 lines
Nowadays stubdom-ioemu is away, but stubdom/ still builds xenstore, so it makes sense that it's xen that builds it along building the non-stubdom version.
I agree it makes sense that xen is triggering the build, like it is doing it for e.g. qemu. Qemu is a good example how it should be: a configure call and then a make call, both using the qemu build mechanisms.
Quoted 7 lines
But having the non-Xen libraries related to Mini-OS and the related patches to be able to use them with Mini-OS in the Xen tree is making things much harder than they should be.
Building a Xenstore stubdom should just trigger the Mini-OS build with some configuration options, including the pointing to the Xenstore source directory and a make target for the Xenstore make invocation.
Ok, if it ends up being simpler then that's all good.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
In reply to Samuel ThibaultQuoted 14 lines · Samuel Thibault
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 13 lines · Samuel Thibault
Quoted 12 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
No, it is not really.
Question is - does this matter in the first place? If someone wanted to drive e.g. a USB device, would we include USB code? I'm with Jürgen that we should have in the upstream tree only what is also used in-tree.
Jan
Re: [PATCH 2/4] stubdom: remove pciutils
Jan Beulich, le mar. 18 août 2026 08:03:51 +0200, a ecrit:
Quoted 18 lines · Samuel Thibault
Quoted 17 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 16 lines · Samuel Thibault
Quoted 14 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
This is all still available via git.
No, it is not really.
Question is - does this matter in the first place? If someone wanted to drive e.g. a USB device, would we include USB code?
Why not? I mean, better centralize the maintenance of such code instead of possibly several people having to maintain their own USB layer each.
Quoted 2 lines
I'm with Jürgen that we should have in the upstream tree only what is also used in-tree.
But then there's probably quite a few things that could be dropped from mini-os because the mini-os and xen trees don't use them, e.g. the fbfront. But is that really a service to make to people using this infrastructure, or planning to?
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
Quoted 21 lines · Samuel Thibault
Jan Beulich, le mar. 18 août 2026 08:03:51 +0200, a ecrit:
Quoted 20 lines · Samuel Thibault
Quoted 19 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 17 lines · Samuel Thibault
Quoted 8 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
Quoted 6 lines
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, it is not really.
Question is - does this matter in the first place? If someone wanted to drive e.g. a USB device, would we include USB code?
Why not? I mean, better centralize the maintenance of such code instead of possibly several people having to maintain their own USB layer each.
Well, but where would you stop then? We can't provide for everything. And apart from "everything", "nothing" is the only other clear boundary to possibly use.
Quoted 7 lines
Quoted 2 lines
I'm with Jürgen that we should have in the upstream tree only what is also used in-tree.
But then there's probably quite a few things that could be dropped from mini-os because the mini-os and xen trees don't use them, e.g. the fbfront. But is that really a service to make to people using this infrastructure, or planning to?
fbfront is local code of ours, not something we pull in. IOW I don't think that's valid to use for comparison here.
Jan
Re: [PATCH 2/4] stubdom: remove pciutils
Jan Beulich, le mer. 19 août 2026 08:36:14 +0200, a ecrit:
Quoted 24 lines · Samuel Thibault
Quoted 23 lines
Jan Beulich, le mar. 18 août 2026 08:03:51 +0200, a ecrit:
Quoted 22 lines · Samuel Thibault
Quoted 20 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 9 lines · Samuel Thibault
Quoted 8 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
Quoted 8 lines
Quoted 6 lines
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
No, it is not really.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Question is - does this matter in the first place? If someone wanted to drive e.g. a USB device, would we include USB code?
Why not? I mean, better centralize the maintenance of such code instead of possibly several people having to maintain their own USB layer each.
Well, but where would you stop then?
Wherever Xen stops defining a virtualization interface for it.
Samuel
Re: [PATCH 2/4] stubdom: remove pciutils
In reply to Samuel ThibaultQuoted 21 lines · Samuel Thibault
Jan Beulich, le mar. 18 août 2026 08:03:51 +0200, a ecrit:
Quoted 20 lines · Samuel Thibault
Quoted 19 lines
Juergen Gross, le lun. 17 août 2026 10:24:02 +0200, a ecrit:
Quoted 17 lines · Samuel Thibault
Quoted 8 lines
Juergen Gross, le lun. 17 août 2026 09:18:41 +0200, a ecrit:
Quoted 3 lines
There is no user of libpci left in stubdoms.
Remove libpci from the stubdom build system.
Wouldn't it be useful to keep this for anybody who would want to drive a PCI card from a stubdomain?
Quoted 6 lines
I mean, in the zlib case, it's really a mere question of build & link, so we don't need to ship it, people can do it themselves easily like for any other library.
But here there is actual porting work, that we'd better not lose but keep shipping.
This is all still available via git.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
No, it is not really.
Question is - does this matter in the first place? If someone wanted to drive e.g. a USB device, would we include USB code?
Why not? I mean, better centralize the maintenance of such code instead of possibly several people having to maintain their own USB layer each.
There is UNIKRAFT (based on a fork of Mini-OS), which is probably much better suited for such endeavors.
Juergen
PATCH 3/4 stubdom: remove build of zlib
In reply to Juergen GrossThe last users of zlib for stubdoms have been removed.
Remove zlib from the stubdom build system, too.
--- config/Stubdom.mk.in | 3 --- stubdom/.gitignore | 1 - stubdom/Makefile | 24 +----------------------- stubdom/configure | 15 --------------- stubdom/configure.ac | 1 - 5 files changed, 1 insertion(+), 43 deletions(-)
config/Stubdom.mk.in +0 -3
@@ -11,9 +11,6 @@ STUBDOM_TARGETS := @STUBDOM_TARGETS@ STUBDOM_BUILD := @STUBDOM_BUILD@ STUBDOM_INSTALL := @STUBDOM_INSTALL@ -ZLIB_VERSION := @ZLIB_VERSION@ -ZLIB_URL := @ZLIB_URL@ - NEWLIB_VERSION := @NEWLIB_VERSION@ NEWLIB_URL := @NEWLIB_URL@
stubdom/.gitignore +0 -1
@@ -29,4 +29,3 @@ /vtpm/vtpm_manager.h /xenstore /xenstorepvh -/zlib-*
stubdom/Makefile +1 -23
@@ -102,26 +102,6 @@ $(NEWLIB_STAMPFILE): mk-headers-$(XEN_TARGET_ARCH) newlib-$(NEWLIB_VERSION) $(MAKE) DESTDIR= && \ $(MAKE) DESTDIR= install ) -############ -# Cross-zlib -############ - -zlib-$(ZLIB_VERSION).tar.gz: - $(FETCHER) $@ $(ZLIB_URL)/$@ - -zlib-$(XEN_TARGET_ARCH): zlib-$(ZLIB_VERSION).tar.gz - tar xzf $< - mv zlib-$(ZLIB_VERSION) $@ - -ZLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libz.a -.PHONY: cross-zlib -cross-zlib: $(ZLIB_STAMPFILE) -$(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) - ( cd $< && \ - CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ - $(MAKE) DESTDIR= libz.a && \ - $(MAKE) DESTDIR= install ) - ###### # lwIP ######
@@ -222,7 +202,7 @@ cross-tpmemu: $(TPMEMU_STAMPFILE) ####### .PHONY: $(CROSS_ROOT) -$(CROSS_ROOT): cross-newlib cross-zlib +$(CROSS_ROOT): cross-newlib ####### # libraries under tools/libs
@@ -449,7 +429,6 @@ clean: crossclean: clean rm -fr $(CROSS_ROOT) rm -fr newlib-$(XEN_TARGET_ARCH) - rm -fr zlib-$(XEN_TARGET_ARCH) rm -fr libs-$(XEN_TARGET_ARCH) rm -fr xenstore xenstorepvh rm -fr gmp-$(XEN_TARGET_ARCH)
@@ -471,7 +450,6 @@ patchclean: crossclean .PHONY: downloadclean downloadclean: patchclean rm -f newlib-$(NEWLIB_VERSION).tar.gz - rm -f zlib-$(ZLIB_VERSION).tar.gz rm -f gmp-$(GMP_VERSION).tar.bz2 rm -f tpm_emulator-$(TPMEMU_VERSION).tar.gz rm -f lwip-$(LWIP_VERSION).tar.gz
stubdom/configure +0 -15
@@ -634,8 +634,6 @@ LWIP_VERSION LWIP_URL NEWLIB_VERSION NEWLIB_URL -ZLIB_VERSION -ZLIB_URL INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM
@@ -722,7 +720,6 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -ZLIB_URL NEWLIB_URL LWIP_URL GMP_URL
@@ -1372,7 +1369,6 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> - ZLIB_URL Download url for zlib NEWLIB_URL Download url for newlib LWIP_URL Download url for lwip GMP_URL Download url for libgmp
@@ -4023,17 +4019,6 @@ fi # Stubdom libraries version and url setup -if test "x$ZLIB_URL" = "x" -then : - - ZLIB_URL=\$\(XEN_EXTFILES_URL\) -fi -ZLIB_VERSION="1.2.3" - - - - - if test "x$NEWLIB_URL" = "x" then :
stubdom/configure.ac +0 -1
@@ -38,7 +38,6 @@ AC_PROG_INSTALL AX_DEPENDS_PATH_PROG([vtpm], [CMAKE], [cmake]) # Stubdom libraries version and url setup -AX_STUBDOM_LIB([ZLIB], [zlib], [1.2.3]) AX_STUBDOM_LIB([NEWLIB], [newlib], [1.16.0], [https://sourceware.org/ftp/newlib]) AX_STUBDOM_LIB([LWIP], [lwip], [1.3.0], [https://download.savannah.gnu.org/releases/lwip]) AX_STUBDOM_LIB([GMP], [libgmp], [4.3.2], [https://gmplib.org/download/gmp/archive])
Signature · 1 line
2.55.0
Re: [PATCH 3/4] stubdom: remove build of zlib
Juergen Gross, le lun. 17 août 2026 09:18:42 +0200, a ecrit:
Quoted 5 lines
The last users of zlib for stubdoms have been removed.
Remove zlib from the stubdom build system, too.
Signed-off-by Juergen Gross <[email protected]>
Quoted 149 lines
--- config/Stubdom.mk.in | 3 --- stubdom/.gitignore | 1 - stubdom/Makefile | 24 +----------------------- stubdom/configure | 15 --------------- stubdom/configure.ac | 1 - 5 files changed, 1 insertion(+), 43 deletions(-)config/Stubdom.mk.in +0
-3@@ -11,9 +11,6 @@ STUBDOM_TARGETS := @STUBDOM_TARGETS@ STUBDOM_BUILD := @STUBDOM_BUILD@ STUBDOM_INSTALL := @STUBDOM_INSTALL@ -ZLIB_VERSION := @ZLIB_VERSION@ -ZLIB_URL := @ZLIB_URL@ - NEWLIB_VERSION := @NEWLIB_VERSION@ NEWLIB_URL := @NEWLIB_URL@stubdom/.gitignore +0
-1@@ -29,4 +29,3 @@ /vtpm/vtpm_manager.h /xenstore /xenstorepvh -/zlib-*stubdom/Makefile +1
-23@@ -102,26 +102,6 @@ $(NEWLIB_STAMPFILE): mk-headers-$(XEN_TARGET_ARCH) newlib-$(NEWLIB_VERSION) $(MAKE) DESTDIR= && \ $(MAKE) DESTDIR= install ) -############ -# Cross-zlib -############ - -zlib-$(ZLIB_VERSION).tar.gz: - $(FETCHER) $@ $(ZLIB_URL)/$@ - -zlib-$(XEN_TARGET_ARCH): zlib-$(ZLIB_VERSION).tar.gz - tar xzf $< - mv zlib-$(ZLIB_VERSION) $@ - -ZLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libz.a -.PHONY: cross-zlib -cross-zlib: $(ZLIB_STAMPFILE) -$(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) - ( cd $< && \ - CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ - $(MAKE) DESTDIR= libz.a && \ - $(MAKE) DESTDIR= install ) - ###### # lwIP ######@@ -222,7 +202,7 @@ cross-tpmemu: $(TPMEMU_STAMPFILE) ####### .PHONY: $(CROSS_ROOT) -$(CROSS_ROOT): cross-newlib cross-zlib +$(CROSS_ROOT): cross-newlib ####### # libraries under tools/libs@@ -449,7 +429,6 @@ clean: crossclean: clean rm -fr $(CROSS_ROOT) rm -fr newlib-$(XEN_TARGET_ARCH) - rm -fr zlib-$(XEN_TARGET_ARCH) rm -fr libs-$(XEN_TARGET_ARCH) rm -fr xenstore xenstorepvh rm -fr gmp-$(XEN_TARGET_ARCH)@@ -471,7 +450,6 @@ patchclean: crossclean .PHONY: downloadclean downloadclean: patchclean rm -f newlib-$(NEWLIB_VERSION).tar.gz - rm -f zlib-$(ZLIB_VERSION).tar.gz rm -f gmp-$(GMP_VERSION).tar.bz2 rm -f tpm_emulator-$(TPMEMU_VERSION).tar.gz rm -f lwip-$(LWIP_VERSION).tar.gzstubdom/configure +0
-15@@ -634,8 +634,6 @@ LWIP_VERSION LWIP_URL NEWLIB_VERSION NEWLIB_URL -ZLIB_VERSION -ZLIB_URL INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM@@ -722,7 +720,6 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -ZLIB_URL NEWLIB_URL LWIP_URL GMP_URL@@ -1372,7 +1369,6 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> - ZLIB_URL Download url for zlib NEWLIB_URL Download url for newlib LWIP_URL Download url for lwip GMP_URL Download url for libgmp@@ -4023,17 +4019,6 @@ fi # Stubdom libraries version and url setup -if test "x$ZLIB_URL" = "x" -then : - - ZLIB_URL=\$\(XEN_EXTFILES_URL\) -fi -ZLIB_VERSION="1.2.3" - - - - - if test "x$NEWLIB_URL" = "x" then :stubdom/configure.ac +0
-1@@ -38,7 +38,6 @@ AC_PROG_INSTALL AX_DEPENDS_PATH_PROG([vtpm], [CMAKE], [cmake]) # Stubdom libraries version and url setup -AX_STUBDOM_LIB([ZLIB], [zlib], [1.2.3]) AX_STUBDOM_LIB([NEWLIB], [newlib], [1.16.0], [https://sourceware.org/ftp/newlib]) AX_STUBDOM_LIB([LWIP], [lwip], [1.3.0], [https://download.savannah.gnu.org/releases/lwip]) AX_STUBDOM_LIB([GMP], [libgmp], [4.3.2], [https://gmplib.org/download/gmp/archive])Signature · 1 line
2.55.0
Signature · 3 lines
Samuel Accroche-toi au terminal, j'enlève le shell... -+- nojhan -+-
PATCH 4/4 CHANGELOG: add removal of grub-pv
In reply to Juergen Gross--- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+)
CHANGELOG.md +2 -0
@@ -23,6 +23,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) The only known user was the classic-xen fork of Linux. This does not affect Xen kexec support in the kexec-tools package. - The example stubdom "c-stubdom" has been removed. + - The grub-pv stubdom has been removed. A grub-pv stubdom from an older + Xen version (e.g. 4.22) will still work with Xen 4.23. ## [4.22.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=staging) - 2026-07-30
Signature · 1 line
2.55.0