Skip to content

Commit c664a5e

Browse files
committed
Update to Xen 4.19.0
Rebase all the patches, drop patches included upstream already: - all "backports" - all HWP-related (with except to switching the default, which is moved to qubes-specific section) - MSI-X patches - 1013-libxl-do-not-force-qdisk-backend-for-cdrom.patch - appears to be not necessary anymore Renumber the patches to have clean ordering, and also drop patch number from the title so further rebases generate smaller diff. Other changes: - disable pygrub via (now existing) configure option, this removes libxenfsimage too - add --enable-systemd - the default in -rc2 is disabled, likely due to a bug - remove traces of xencons and xentrace_format - both removed upstream - don't fail the build on missing build-id in xen.efi.elf.
1 parent 5747625 commit c664a5e

File tree

96 files changed

+583
-4834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+583
-4834
lines changed

.qubesbuilder

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ source:
1212
# signature: https://downloads.xenproject.org/release/xen/@VERSION@/xen-@[email protected]
1313
# - git-url: https://gitlab.com/xen-project/xen.git
1414
- git-url: https://xenbits.xenproject.org/git-http/xen.git
15-
tag: RELEASE-4.17.4
16-
git-basename: xen-4.17.4
15+
tag: RELEASE-4.19.0
16+
git-basename: xen-@VERSION@
1717
pubkeys:
1818
- xen.org-key.asc

0201-EFI-early-Add-noexit-to-inhibit-calling-ExitBootServ.patch 0200-EFI-early-Add-noexit-to-inhibit-calling-ExitBootServ.patch

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
From 097d3f0c0c735cd3fee4bcbb707cbccb4fd0770b Mon Sep 17 00:00:00 2001
1+
From bf8e7496d95c2a71a3bdac4340e1a9c03b86b0af Mon Sep 17 00:00:00 2001
22
From: Konrad Rzeszutek Wilk <konrad@xxxxxxxxxx>
33
Date: Fri, 24 Apr 2015 16:47:18 -0400
4-
Subject: [PATCH 01/26] EFI/early: Add /noexit to inhibit calling
5-
ExitBootServices
4+
Subject: [PATCH] EFI/early: Add /noexit to inhibit calling ExitBootServices
65

76
The '/noexitboot' parameter will inhibit Xen in calling ExitBootServices.
87

@@ -18,10 +17,10 @@ Signed-off-by: Marcus of Wetware Labs <[email protected]>
1817
2 files changed, 12 insertions(+), 6 deletions(-)
1918

2019
diff --git a/xen/arch/x86/efi/efi-boot.h b/xen/arch/x86/efi/efi-boot.h
21-
index e82ac9daa7ad..2221cdec681a 100644
20+
index f282358435f1..39cc8baef4bc 100644
2221
--- a/xen/arch/x86/efi/efi-boot.h
2322
+++ b/xen/arch/x86/efi/efi-boot.h
24-
@@ -816,7 +816,7 @@ void __init efi_multiboot2(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable
23+
@@ -909,7 +909,7 @@ void asmlinkage __init efi_multiboot2(EFI_HANDLE ImageHandle,
2524

2625
efi_relocate_esrt(SystemTable);
2726

@@ -31,10 +30,10 @@ index e82ac9daa7ad..2221cdec681a 100644
3130

3231
/*
3332
diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c
34-
index db0340c8e262..d78a315e56e0 100644
33+
index efbec00af9da..8004cf4d1303 100644
3534
--- a/xen/common/efi/boot.c
3635
+++ b/xen/common/efi/boot.c
37-
@@ -145,7 +145,7 @@ static void efi_tables(void);
36+
@@ -146,7 +146,7 @@ static void efi_tables(void);
3837
static void setup_efi_pci(void);
3938
static void efi_variables(void);
4039
static void efi_set_gop_mode(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop, UINTN gop_mode);
@@ -43,7 +42,7 @@ index db0340c8e262..d78a315e56e0 100644
4342

4443
static const EFI_BOOT_SERVICES *__initdata efi_bs;
4544
static UINT32 __initdata efi_bs_revision;
46-
@@ -1175,7 +1175,7 @@ static void __init efi_relocate_esrt(EFI_SYSTEM_TABLE *SystemTable)
45+
@@ -1180,7 +1180,7 @@ static void __init efi_set_gop_mode(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop, UINTN gop
4746
#define INVALID_VIRTUAL_ADDRESS (0xBAAADUL << \
4847
(EFI_PAGE_SHIFT + BITS_PER_LONG - 32))
4948

@@ -52,7 +51,7 @@ index db0340c8e262..d78a315e56e0 100644
5251
{
5352
EFI_STATUS status;
5453
UINTN info_size = 0, map_key;
55-
@@ -1206,8 +1206,11 @@ static void __init efi_exit_boot(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *Syste
54+
@@ -1211,8 +1211,11 @@ static void __init efi_exit_boot(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *Syste
5655

5756
efi_arch_pre_exit_boot();
5857

@@ -65,7 +64,7 @@ index db0340c8e262..d78a315e56e0 100644
6564
efi_bs = NULL;
6665
if ( status != EFI_INVALID_PARAMETER || retry )
6766
break;
68-
@@ -1262,7 +1265,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
67+
@@ -1268,7 +1271,7 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle,
6968
EFI_SHIM_LOCK_PROTOCOL *shim_lock;
7069
EFI_GRAPHICS_OUTPUT_PROTOCOL *gop = NULL;
7170
union string section = { NULL }, name;
@@ -74,7 +73,7 @@ index db0340c8e262..d78a315e56e0 100644
7473
const char *option_str;
7574
bool use_cfg_file;
7675
int dt_modules_found;
77-
@@ -1312,6 +1315,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
76+
@@ -1318,6 +1321,8 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle,
7877
base_video = true;
7978
else if ( wstrcmp(ptr + 1, L"mapbs") == 0 )
8079
map_bs = true;
@@ -83,15 +82,15 @@ index db0340c8e262..d78a315e56e0 100644
8382
else if ( wstrncmp(ptr + 1, L"cfg=", 4) == 0 )
8483
cfg_file_name = ptr + 5;
8584
else if ( i + 1 < argc && wstrcmp(ptr + 1, L"cfg") == 0 )
86-
@@ -1322,6 +1327,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
85+
@@ -1328,6 +1333,7 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle,
8786
PrintStr(L"Xen EFI Loader options:\r\n");
8887
PrintStr(L"-basevideo retain current video mode\r\n");
8988
PrintStr(L"-mapbs map EfiBootServices{Code,Data}\r\n");
9089
+ PrintStr(L"-noexitboot Do not call ExitBootServices\r\n");
9190
PrintStr(L"-cfg=<file> specify configuration file\r\n");
9291
PrintStr(L"-help, -? display this help\r\n");
9392
blexit(NULL);
94-
@@ -1539,7 +1545,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
93+
@@ -1541,7 +1547,7 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle,
9594

9695
efi_relocate_esrt(SystemTable);
9796

@@ -101,5 +100,5 @@ index db0340c8e262..d78a315e56e0 100644
101100
efi_arch_post_exit_boot(); /* Doesn't return. */
102101
}
103102
--
104-
2.37.3
103+
2.44.0
105104

0202-efi-Ensure-incorrectly-typed-runtime-services-get-ma.patch 0201-efi-Ensure-incorrectly-typed-runtime-services-get-ma.patch

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
From f0ec9a1726a66278249f58a46c2b4f9394b32eff Mon Sep 17 00:00:00 2001
1+
From 6707e983682615765b5ac1df7c9e811852cc683d Mon Sep 17 00:00:00 2001
22
From: Ross Lagerwall <[email protected]>
33
Date: Fri, 20 Mar 2015 14:32:04 +0000
4-
Subject: [PATCH 02/26] efi: Ensure incorrectly typed runtime services get
5-
mapped
4+
Subject: [PATCH] efi: Ensure incorrectly typed runtime services get mapped
65

76
Some firmware implementations do not correctly mark memory needed for runtime
87
services, not setting the EFI_MEMORY_RUNTIME bit and giving it a type
@@ -28,18 +27,18 @@ Signed-off-by: Ross Lagerwall <[email protected]>
2827
1 file changed, 6 insertions(+)
2928

3029
diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c
31-
index d78a315e56e0..4fb755bc4e43 100644
30+
index 8004cf4d1303..b34521c5e74a 100644
3231
--- a/xen/common/efi/boot.c
3332
+++ b/xen/common/efi/boot.c
34-
@@ -156,6 +156,7 @@ static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;
33+
@@ -157,6 +157,7 @@ static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;
3534

3635
static UINT32 __initdata mdesc_ver;
3736
static bool __initdata map_bs;
3837
+static bool __initdata map_res = true;
3938

4039
static struct file __initdata cfg;
4140
static struct file __initdata kernel;
42-
@@ -1717,6 +1718,11 @@ void __init efi_init_memory(void)
41+
@@ -1723,6 +1724,11 @@ void __init efi_init_memory(void)
4342
if ( !map_bs )
4443
continue;
4544
break;
@@ -52,5 +51,5 @@ index d78a315e56e0..4fb755bc4e43 100644
5251
}
5352

5453
--
55-
2.37.3
54+
2.44.0
5655

0203-Add-xen.cfg-options-for-mapbs-and-noexitboot.patch 0202-Add-xen.cfg-options-for-mapbs-and-noexitboot.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
From 9fbad03a0bac47d127bf7a62c8c3c374e4ca950e Mon Sep 17 00:00:00 2001
1+
From d837a8e0ea14164a237d15b6355c915b8d4e5ff0 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
33
44
Date: Sat, 4 Jun 2016 19:13:31 +0200
5-
Subject: [PATCH 03/26] Add xen.cfg options for /mapbs and /noexitboot
5+
Subject: [PATCH] Add xen.cfg options for /mapbs and /noexitboot
66
MIME-Version: 1.0
77
Content-Type: text/plain; charset=UTF-8
88
Content-Transfer-Encoding: 8bit
@@ -15,12 +15,12 @@ Signed-off-by: Marek Marczykowski-Górecki <[email protected]>
1515
1 file changed, 12 insertions(+)
1616

1717
diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c
18-
index 4fb755bc4e43..8e880fe30c75 100644
18+
index b34521c5e74a..ad8488f7f9d7 100644
1919
--- a/xen/common/efi/boot.c
2020
+++ b/xen/common/efi/boot.c
21-
@@ -1470,6 +1470,18 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
21+
@@ -1472,6 +1472,18 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle,
2222
name.s = get_value(&cfg, section.s, "options");
23-
efi_arch_handle_cmdline(argc ? *argv : NULL, options, name.s);
23+
efi_arch_handle_cmdline(options, name.s);
2424

2525
+ name.s = get_value(&cfg, section.s, "mapbs");
2626
+ if ( name.s )
@@ -38,5 +38,5 @@ index 4fb755bc4e43..8e880fe30c75 100644
3838
{
3939
name.cs = get_value(&cfg, section.s, "video");
4040
--
41-
2.37.3
41+
2.44.0
4242

0203-xen.efi.build.patch

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 22a0881b94f0b17d369ce090cbf3cced6366fae5 Mon Sep 17 00:00:00 2001
2+
From: Fedora developers <[email protected]>
3+
Date: Mon, 8 Jul 2024 13:35:51 +0200
4+
Subject: [PATCH] xen.efi.build
5+
6+
---
7+
xen/arch/x86/arch.mk | 4 +++-
8+
1 file changed, 3 insertions(+), 1 deletion(-)
9+
10+
diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk
11+
index 4f6c086988dd..0efc664bc919 100644
12+
--- a/xen/arch/x86/arch.mk
13+
+++ b/xen/arch/x86/arch.mk
14+
@@ -91,7 +91,9 @@ XEN_BUILD_EFI := $(call if-success,$(CC) $(filter-out -include %/include/xen/con
15+
-c $(srctree)/$(efi-check).c -o $(efi-check).o,y)
16+
17+
# Check if the linker supports PE.
18+
-EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
19+
+#EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
20+
+# use a reduced set of options from LDFLAGS
21+
+EFI_LDFLAGS = --as-needed --build-id=sha1 -mi386pep --subsystem=10
22+
LD_PE_check_cmd = $(call ld-option,$(EFI_LDFLAGS) --image-base=0x100000000 -o $(efi-check).efi $(efi-check).o)
23+
XEN_BUILD_PE := $(LD_PE_check_cmd)
24+
25+
--
26+
2.44.0
27+

0204-xen.efi.build.patch

-13
This file was deleted.

0301-x86-mm-shadow-avoid-assuming-a-specific-Xen-PAT.patch

-43
This file was deleted.

0302-x86-mm-shadow-do-not-open-code-PAGE_CACHE_ATTRS.patch

-49
This file was deleted.

0303-p2m-pt-Avoid-hard-coding-Xen-s-PAT.patch

-50
This file was deleted.

0 commit comments

Comments
 (0)