Skip to content

Commit 3019ed2

Browse files
authored
xen: 4.19.1 -> 4.20.0 (#373294)
2 parents bd5c354 + 4a0180f commit 3019ed2

File tree

3 files changed

+19
-157
lines changed

3 files changed

+19
-157
lines changed

nixos/modules/virtualisation/xen-boot-builder.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This script is called by ./xen-dom0.nix to create the Xen boot entries.
22
# shellcheck shell=bash
33

4+
export LC_ALL=C
5+
46
# Handle input argument and exit if the flag is invalid. See virtualisation.xen.efi.bootBuilderVerbosity below.
57
[[ $# -ne 1 ]] && echo -e "\e[1;31merror:\e[0m xenBootBuilder must be called with exactly one verbosity argument. See the \e[1;34mvirtualisation.xen.efi.bootBuilderVerbosity\e[0m option." && exit 1
68
case "$1" in
@@ -89,7 +91,8 @@ EOF
8991
# https://xenbits.xenproject.org/docs/unstable/misc/efi.html.
9092
[ "$1" = "debug" ] && echo -e "\e[1;34mxenBootBuilder:\e[0m making Xen UKI..."
9193
xenEfi=$(jq -re '."org.xenproject.bootspec.v1".xen' "$bootspecFile")
92-
padding=$(objdump --header --section=".pad" "$xenEfi" | awk '/\.pad/ { printf("0x%016x\n", strtonum("0x"$3) + strtonum("0x"$4))};')
94+
finalSection=$(objdump --header --wide "$xenEfi" | tail -n +6 | sort --key="4,4" | tail -n 1 | grep -Eo '\.[a-z]*')
95+
padding=$(objdump --header --section="$finalSection" "$xenEfi" | awk -v section="$finalSection" '$0 ~ section { printf("0x%016x\n", and(strtonum("0x"$3) + strtonum("0x"$4) + 0xfff, compl(0xfff)))};')
9396
[ "$1" = "debug" ] && echo " - padding: $padding"
9497
objcopy \
9598
--add-section .config="$tmpCfg" \

pkgs/by-name/xe/xen/README.md

Lines changed: 0 additions & 133 deletions
This file was deleted.

pkgs/by-name/xe/xen/package.nix

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,37 @@
66

77
buildXenPackage.override { inherit python3Packages; } {
88
pname = "xen";
9-
version = "4.19.1";
9+
version = "4.20.0";
1010
patches = [
1111
(fetchpatch {
12-
url = "https://lore.kernel.org/xen-devel/e2caa6648a0b6c429349a9826d8fbc4338222482.1733766758.git.andrii.sultanov@cloud.com/raw";
13-
hash = "sha256-JC1ueXuC1Jdi2gtUsjOHmTeEx56zjotMMLde5vBonxc=";
12+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-01.patch";
13+
hash = "sha256-go743oBhYDuxsK0Xc6nK/WxutQQwc2ERtLKhCU9Dnng=";
1414
})
1515
(fetchpatch {
16-
url = "https://xenbits.xenproject.org/xsa/xsa467.patch";
17-
hash = "sha256-O2IwfRo6BnXAO04xjKmOyrV6J6Q1mAVLHWNCxqIEQGU=";
16+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-02.patch";
17+
hash = "sha256-FTtEGAPFYxsun38hLhVMKJ1TFJOsTMK3WWPkO0R/OHg=sha256-FTtEGAPFYxsun38hLhVMKJ1TFJOsTMK3WWPkO0R/OHg=";
1818
})
1919
(fetchpatch {
20-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-01.patch";
21-
hash = "sha256-YUcp9QI49RM/7WCxYzpzppv+vKtyl/NvLy6rIX5hVMw=";
22-
})
23-
(fetchpatch {
24-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-02.patch";
25-
hash = "sha256-FTtEGAPFYxsun38hLhVMKJ1TFJOsTMK3WWPkO0R/OHg=";
26-
})
27-
(fetchpatch {
28-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-03.patch";
20+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-03.patch";
2921
hash = "sha256-UkYMSpUgFvr4GJPXLgQsCyppGkNbeiFMyCZORK5tfmA=";
3022
})
3123
(fetchpatch {
32-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-04.patch";
24+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-04.patch";
3325
hash = "sha256-lpiDPSHi+v2VfaWE9kp4+hveZKTzojD1F+RHsOtKE3A=";
3426
})
3527
(fetchpatch {
36-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-05.patch";
37-
hash = "sha256-EKo9a5STX0mTRopoThe3+6gCWat+3XbguLr9QgMheZs=";
28+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-05.patch";
29+
hash = "sha256-N+WR8S5w9dLISlOhMI71TOH8jvCgVAR8xm310k3ZA/M=";
3830
})
3931
(fetchpatch {
40-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-06.patch";
41-
hash = "sha256-HU+4apyTZNIFZ9cySOEtNh0JBJDG3LjDLwMvQYq0src=";
32+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-06.patch";
33+
hash = "sha256-ePuyB3VP9NfQbW36BP3jjMMHKJWFJGeTYUYZqy+IlHQ=";
4234
})
4335
(fetchpatch {
44-
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.19-07.patch";
45-
hash = "sha256-9S85nkQ9Nn0cMzyRe4KGrFUaLggVxXBeKhoFF4R0y78=";
36+
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-07.patch";
37+
hash = "sha256-+BsCJa01R2lrbu7tEluGrYSAqu2jJcrpFNUoLMY466c=";
4638
})
4739
];
48-
rev = "ccf400846780289ae779c62ef0c94757ff43bb60";
49-
hash = "sha256-s0eCBCd6ybl+kLtXCC6E1sk++w7txXn/B/Cg5acQFfY=";
40+
rev = "3ad5d648cda5add395f49fc3704b2552aae734f7";
41+
hash = "sha256-v2DRJv+1bym8zAgU74lo1HQ/9rUcyK3qc4Eec4RpcEY=";
5042
}

0 commit comments

Comments
 (0)