Skip to content

Commit 726a6bc

Browse files
authored
Build PCI_HYPERV as built-in (#11991)
Change PCI_HYPERV to be builtin. This also requires PCI_HYPERV_INTERFACE to be builtin as well. PCI_HYPERV was previously loaded as a module but it results in race conditions when devices are mapped and unmapped. Mariner is already starting to access PCIe Devices, when the MMIO mappings from UEFI haven't been fully torn down yet. That causes conflicts, which shows up as missing disks to the customer. If Mariner, has hyperv pci built into the kernel, then that changes the load ordering of the drivers in the kernel, which has the desired side-effect that UEFI mappings get torn down before the Mariner creates net mappings.
1 parent c85706c commit 726a6bc

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
lines changed

SPECS-SIGNED/kernel-signed/kernel-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
1212
Version: 5.15.173.1
13-
Release: 1%{?dist}
13+
Release: 2%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
1616
Distribution: Mariner
@@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Thu Jan 09 2025 Rachel Menge <[email protected]> - 5.15.173.1-2
157+
- Bump release to match kernel
158+
156159
* Fri Dec 06 2024 CBL-Mariner Servicing Account <[email protected]> - 5.15.173.1-1
157160
- Auto-upgrade to 5.15.173.1
158161

SPECS/kernel-headers/kernel-headers.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Summary: Linux API header files
1313
Name: kernel-headers
1414
Version: 5.15.173.1
15-
Release: 1%{?dist}
15+
Release: 2%{?dist}
1616
License: GPLv2
1717
Vendor: Microsoft Corporation
1818
Distribution: Mariner
@@ -73,6 +73,9 @@ done
7373
%endif
7474

7575
%changelog
76+
* Thu Jan 09 2025 Rachel Menge <[email protected]> - 5.15.173.1-2
77+
- Bump release to match kernel
78+
7679
* Fri Dec 06 2024 CBL-Mariner Servicing Account <[email protected]> - 5.15.173.1-1
7780
- Auto-upgrade to 5.15.173.1
7881

SPECS/kernel/config

+3-3
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ CONFIG_PCI_PRI=y
18341834
CONFIG_PCI_PASID=y
18351835
# CONFIG_PCI_P2PDMA is not set
18361836
CONFIG_PCI_LABEL=y
1837-
CONFIG_PCI_HYPERV=m
1837+
CONFIG_PCI_HYPERV=y
18381838
# CONFIG_PCIE_BUS_TUNE_OFF is not set
18391839
CONFIG_PCIE_BUS_DEFAULT=y
18401840
# CONFIG_PCIE_BUS_SAFE is not set
@@ -1850,7 +1850,7 @@ CONFIG_HOTPLUG_PCI_ACPI_IBM=m
18501850
# PCI controller drivers
18511851
#
18521852
CONFIG_VMD=y
1853-
CONFIG_PCI_HYPERV_INTERFACE=m
1853+
CONFIG_PCI_HYPERV_INTERFACE=y
18541854

18551855
#
18561856
# DesignWare PCI Core Support
@@ -5749,7 +5749,7 @@ CONFIG_VHOST_VSOCK=m
57495749
#
57505750
# Microsoft Hyper-V guest support
57515751
#
5752-
CONFIG_HYPERV=m
5752+
CONFIG_HYPERV=y
57535753
CONFIG_HYPERV_TIMER=y
57545754
CONFIG_HYPERV_UTILS=m
57555755
CONFIG_HYPERV_BALLOON=m

SPECS/kernel/kernel.signatures.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Signatures": {
33
"cbl-mariner-ca-20211013.pem": "5ef124b0924cb1047c111a0ecff1ae11e6ad7cac8d1d9b40f98f99334121f0b0",
4-
"config": "b76588ba8d87b4f123c63c6efa445611003d4ad13772099ee69c8c42e8791db2",
4+
"config": "25ea946a39b1d3b00f87e037c6214d48982d6430337ea3b3721814bc4d525647",
55
"config_aarch64": "29096b8a09733344d63d9e883147179005ead9c10ebf6b561c1b4057e5087f4b",
66
"sha512hmac-openssl.sh": "02ab91329c4be09ee66d759e4d23ac875037c3b56e5a598e32fd1206da06a27f",
77
"kernel-5.15.173.1.tar.gz": "f1aeb91c86010db1138bdf7b45d06b886fc34e07e554bd3116fac2d6f5d42d54"

SPECS/kernel/kernel.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Summary: Linux Kernel
2929
Name: kernel
3030
Version: 5.15.173.1
31-
Release: 1%{?dist}
31+
Release: 2%{?dist}
3232
License: GPLv2
3333
Vendor: Microsoft Corporation
3434
Distribution: Mariner
@@ -426,6 +426,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
426426
%{_sysconfdir}/bash_completion.d/bpftool
427427

428428
%changelog
429+
* Thu Jan 09 2025 Rachel Menge <[email protected]> - 5.15.173.1-2
430+
- Change pci_hyperv to built-in
431+
429432
* Fri Dec 06 2024 CBL-Mariner Servicing Account <[email protected]> - 5.15.173.1-1
430433
- Auto-upgrade to 5.15.173.1
431434

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
filesystem-1.1-20.cm2.aarch64.rpm
2-
kernel-headers-5.15.173.1-1.cm2.noarch.rpm
2+
kernel-headers-5.15.173.1-2.cm2.noarch.rpm
33
glibc-2.35-7.cm2.aarch64.rpm
44
glibc-devel-2.35-7.cm2.aarch64.rpm
55
glibc-i18n-2.35-7.cm2.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
filesystem-1.1-20.cm2.x86_64.rpm
2-
kernel-headers-5.15.173.1-1.cm2.noarch.rpm
2+
kernel-headers-5.15.173.1-2.cm2.noarch.rpm
33
glibc-2.35-7.cm2.x86_64.rpm
44
glibc-devel-2.35-7.cm2.x86_64.rpm
55
glibc-i18n-2.35-7.cm2.x86_64.rpm

toolkit/resources/manifests/package/toolchain_aarch64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ intltool-0.51.0-7.cm2.noarch.rpm
136136
itstool-2.0.6-4.cm2.noarch.rpm
137137
kbd-2.2.0-1.cm2.aarch64.rpm
138138
kbd-debuginfo-2.2.0-1.cm2.aarch64.rpm
139-
kernel-headers-5.15.173.1-1.cm2.noarch.rpm
139+
kernel-headers-5.15.173.1-2.cm2.noarch.rpm
140140
kmod-29-2.cm2.aarch64.rpm
141141
kmod-debuginfo-29-2.cm2.aarch64.rpm
142142
kmod-devel-29-2.cm2.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ intltool-0.51.0-7.cm2.noarch.rpm
141141
itstool-2.0.6-4.cm2.noarch.rpm
142142
kbd-2.2.0-1.cm2.x86_64.rpm
143143
kbd-debuginfo-2.2.0-1.cm2.x86_64.rpm
144-
kernel-cross-headers-5.15.173.1-1.cm2.noarch.rpm
145-
kernel-headers-5.15.173.1-1.cm2.noarch.rpm
144+
kernel-cross-headers-5.15.173.1-2.cm2.noarch.rpm
145+
kernel-headers-5.15.173.1-2.cm2.noarch.rpm
146146
kmod-29-2.cm2.x86_64.rpm
147147
kmod-debuginfo-29-2.cm2.x86_64.rpm
148148
kmod-devel-29-2.cm2.x86_64.rpm

0 commit comments

Comments
 (0)