]> git.proxmox.com Git - pve-kernel.git/log
pve-kernel.git
2 months agoupdate ABI file for 6.5.13-2-pve
Thomas Lamprecht [Mon, 11 Mar 2024 14:21:12 +0000 (15:21 +0100)]
update ABI file for 6.5.13-2-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobump version to 6.5.13-2
Thomas Lamprecht [Mon, 11 Mar 2024 13:36:33 +0000 (14:36 +0100)]
bump version to 6.5.13-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoRevert "cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts"
Thomas Lamprecht [Mon, 11 Mar 2024 13:19:45 +0000 (14:19 +0100)]
Revert "cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts"

This reverts commit 29cb6fcbb78e0d2b0b585783031402cc8d4ca148, user
feedback was showing any positive impact of this patch, and upstream
still hasn't a fix for older stable releases (but for 6.8), so for now
rather revert this and wait for either a better (well, actual) fix or
updating to 6.8 or newer.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate ZFS to 2.2.3
Thomas Lamprecht [Mon, 11 Mar 2024 12:48:35 +0000 (13:48 +0100)]
update ZFS to 2.2.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agorebase patches on top of Ubuntu-6.5.0-27.27
Thomas Lamprecht [Mon, 11 Mar 2024 12:38:05 +0000 (13:38 +0100)]
rebase patches on top of Ubuntu-6.5.0-27.27

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate sources to Ubuntu-6.5.0-27.27
Thomas Lamprecht [Mon, 11 Mar 2024 12:38:05 +0000 (13:38 +0100)]
update sources to Ubuntu-6.5.0-27.27

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate ABI file for 6.5.13-1-pve
Thomas Lamprecht [Wed, 14 Feb 2024 11:02:47 +0000 (12:02 +0100)]
update ABI file for 6.5.13-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate fwlist for 6.5.13-1
Thomas Lamprecht [Mon, 5 Feb 2024 14:49:36 +0000 (15:49 +0100)]
update fwlist for 6.5.13-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobump version to 6.5.13-1
Thomas Lamprecht [Mon, 5 Feb 2024 13:51:04 +0000 (14:51 +0100)]
bump version to 6.5.13-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agocherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts
Friedrich Weber [Wed, 17 Jan 2024 14:45:21 +0000 (15:45 +0100)]
cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts

Users have been reporting [1] that VMs occasionally become
unresponsive with high CPU usage for some time (varying between ~1 and
more than 60 seconds). After that time, the guests come back and
continue running. Windows VMs seem most affected (not responding to
pings during the hang, RDP sessions time out), but we also got reports
about Linux VMs (reporting soft lockups). The issue was not present on
host kernel 5.15 and was first reported with kernel 6.2. Users
reported that the issue becomes easier to trigger the more memory is
assigned to the guests. Setting mitigations=off was reported to
alleviate (but not eliminate) the issue. For most users the issue
seems to disappear after (also) disabling KSM [2], but some users
reported freezes even with KSM disabled [3].

It turned out the reports concerned NUMA hosts only, and that the
freezes correlated with runs of the NUMA balancer [4]. Users reported
that disabling the NUMA balancer resolves the issue (even with KSM
enabled).

We put together a Linux VM reproducer, ran a git-bisect on the kernel
to find the commit introducing the issue and asked upstream for help
[5]. As it turned out, an upstream bugreport was recently opened [6]
and a preliminary fix to the KVM TDP MMU was proposed [7]. With that
patch [7] on top of kernel 6.7, the reproducer does not trigger
freezes anymore. As of now, the patch (or its v2 [8]) is not yet
merged in the mainline kernel, and backporting it may be difficult due
to dependencies on other KVM changes [9].

However, the bugreport [6] also prompted an upstream developer to
propose a patch to the kernel scheduler logic that decides whether a
contended spinlock/rwlock should be dropped [10]. Without the patch,
PREEMPT_DYNAMIC kernels (such as ours) would always drop contended
locks. With the patch, the kernel only drops contended locks if the
kernel is currently set to preempt=full. As noted in the commit
message [10], this can (counter-intuitively) improve KVM performance.
Our kernel defaults to preempt=voluntary (according to
/sys/kernel/debug/sched/preempt), so with the patch it does not drop
contended locks anymore, and the reproducer does not trigger freezes
anymore. Hence, backport [10] to our kernel.

[1] https://forum.proxmox.com/threads/130727/
[2] https://forum.proxmox.com/threads/130727/page-4#post-575886
[3] https://forum.proxmox.com/threads/130727/page-8#post-617587
[4] https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#numa-balancing
[5] https://lore.kernel.org/kvm/832697b9-3652-422d-a019-8c0574a188ac@proxmox.com/
[6] https://bugzilla.kernel.org/show_bug.cgi?id=218259
[7] https://lore.kernel.org/all/20230825020733.2849862-1-seanjc@google.com/
[8] https://lore.kernel.org/all/20240110012045.505046-1-seanjc@google.com/
[9] https://lore.kernel.org/kvm/Zaa654hwFKba_7pf@google.com/
[10] https://lore.kernel.org/all/20240110214723.695930-1-seanjc@google.com/

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
2 months agoupdate kernel and patches for Ubuntu-6.5.0-20.20
Thomas Lamprecht [Mon, 5 Feb 2024 12:08:43 +0000 (13:08 +0100)]
update kernel and patches for Ubuntu-6.5.0-20.20

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 months agofix malformed lintian overrides
Fabian Grünbichler [Tue, 30 Jan 2024 13:59:51 +0000 (14:59 +0100)]
fix malformed lintian overrides

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agoupdate ABI file for 6.5.11-8-pve
Fabian Grünbichler [Tue, 30 Jan 2024 13:38:48 +0000 (14:38 +0100)]
update ABI file for 6.5.11-8-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agobump version to 6.5.11-8
Fabian Grünbichler [Tue, 30 Jan 2024 12:28:01 +0000 (13:28 +0100)]
bump version to 6.5.11-8

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agofix #5158: cherry-pick ext4 fix for high-CPU flush
Fabian Grünbichler [Tue, 30 Jan 2024 12:26:35 +0000 (13:26 +0100)]
fix #5158: cherry-pick ext4 fix for high-CPU flush

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agofix #5077: cherry-pick revert for aacraid resets
Fabian Grünbichler [Tue, 30 Jan 2024 12:24:16 +0000 (13:24 +0100)]
fix #5077: cherry-pick revert for aacraid resets

reported both in our bug tracker and upstream to fix the affected hardware.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-7
Thomas Lamprecht [Tue, 5 Dec 2023 09:44:17 +0000 (10:44 +0100)]
bump version to 6.5.11-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ZFS to 2.2.2
Thomas Lamprecht [Tue, 5 Dec 2023 09:42:09 +0000 (10:42 +0100)]
update ZFS to 2.2.2

There shouldn't be any changes for us w.r.t. data integrity and the
recent uncovered dnode dirtiness, as we backported those patches
already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-6-pve
Fabian Grünbichler [Wed, 29 Nov 2023 09:28:15 +0000 (10:28 +0100)]
update ABI file for 6.5.11-6-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-6
Fabian Grünbichler [Wed, 29 Nov 2023 08:33:09 +0000 (09:33 +0100)]
bump version to 6.5.11-6

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate zfs to 2.2.0-pve4
Fabian Grünbichler [Wed, 29 Nov 2023 08:31:50 +0000 (09:31 +0100)]
update zfs to 2.2.0-pve4

which contains the fix for https://github.com/openzfs/zfs/issues/15526

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate ABI file for 6.5.11-5-pve
Fabian Grünbichler [Mon, 27 Nov 2023 20:37:46 +0000 (21:37 +0100)]
update ABI file for 6.5.11-5-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-5
Fabian Grünbichler [Mon, 27 Nov 2023 19:54:07 +0000 (20:54 +0100)]
bump version to 6.5.11-5

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agocherry-pick fix for RCU stall issue after VM live migration
Fiona Ebner [Mon, 27 Nov 2023 17:39:48 +0000 (18:39 +0100)]
cherry-pick fix for RCU stall issue after VM live migration

caused by a lapic timer interrupt getting lost.

Already queued for 6.5.13:
https://lore.kernel.org/stable/20231124172031.920738810@linuxfoundation.org/

Reported in the community forum:
https://forum.proxmox.com/threads/136992/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
5 months agod/rules: VFIO_VIRQFD config is a boolean
Thomas Lamprecht [Sat, 25 Nov 2023 13:12:39 +0000 (14:12 +0100)]
d/rules: VFIO_VIRQFD config is a boolean

since e2d55709398e ("vfio: Fold vfio_virqfd.ko into vfio.ko") this
config isn't a tristate anymore but a bool, so adapt to that.

Luckily the kconfig script did the right thing and set (or at least
kept) this to yes anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-4-pve
Fabian Grünbichler [Mon, 20 Nov 2023 14:01:02 +0000 (15:01 +0100)]
update ABI file for 6.5.11-4-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobuild: add signed-template to DEBS
Fabian Grünbichler [Mon, 20 Nov 2023 14:00:38 +0000 (15:00 +0100)]
build: add signed-template to DEBS

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-4
Fabian Grünbichler [Mon, 20 Nov 2023 10:20:12 +0000 (11:20 +0100)]
bump version to 6.5.11-4

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agometa package: prefer signed kernel package
Fabian Grünbichler [Mon, 20 Nov 2023 11:59:13 +0000 (12:59 +0100)]
meta package: prefer signed kernel package

to ensure future versions are properly pulled in.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agod/control: add missing python3-dev
Fabian Grünbichler [Mon, 20 Nov 2023 10:38:07 +0000 (11:38 +0100)]
d/control: add missing python3-dev

required by perf's Makefile

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobuild: add proxmox-kernel-X.Y-pve-signed-template
Fabian Grünbichler [Thu, 16 Mar 2023 09:40:02 +0000 (10:40 +0100)]
build: add proxmox-kernel-X.Y-pve-signed-template

the signed template together with the binary package(s) containing the unsigned
files form the input to our secure boot signing service.

the signed template consists of
- files.json (specifying which files are signed how and by which key)
- packaging template used to build the signed package(s)

the signing service
- extracts and checks the signed-template binary package
- extracts the unsigned package(s)
- signs the needed files
- packs up the signatures + the template contained in the signed-template
  package into the signed source package

the signed source package can then be built in the regular fashion (in case of
the kernel packages, it will copy the kernel image, modules and some helper
files from the unsigned package, attach the signature created by the signing
service, and re-pack the result as signed-kernel package).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoadd Proxmox UEFI certificates
Fabian Grünbichler [Thu, 2 Mar 2023 08:34:36 +0000 (09:34 +0100)]
add Proxmox UEFI certificates

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate ABI file for 6.5.11-3-pve
Thomas Lamprecht [Fri, 17 Nov 2023 17:09:41 +0000 (18:09 +0100)]
update ABI file for 6.5.11-3-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-3
Thomas Lamprecht [Fri, 17 Nov 2023 16:34:46 +0000 (17:34 +0100)]
bump version to 6.5.11-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ZFS to include important fixes staged for 2.2.1
Thomas Lamprecht [Fri, 17 Nov 2023 16:33:36 +0000 (17:33 +0100)]
update ZFS to include important fixes staged for 2.2.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-2-pve
Thomas Lamprecht [Thu, 16 Nov 2023 14:05:41 +0000 (15:05 +0100)]
update ABI file for 6.5.11-2-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-2
Thomas Lamprecht [Wed, 15 Nov 2023 16:22:24 +0000 (17:22 +0100)]
bump version to 6.5.11-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate submodule to Ubuntu-6.5.0-14.14
Thomas Lamprecht [Thu, 16 Nov 2023 12:26:52 +0000 (13:26 +0100)]
update submodule to Ubuntu-6.5.0-14.14

still with 6.5.3 to 6.5.10 cherry-picked

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: temporarily disable UBSAN bound checks again
Thomas Lamprecht [Thu, 16 Nov 2023 12:25:01 +0000 (13:25 +0100)]
d/rules: temporarily disable UBSAN bound checks again

it's really not just ZFS and AMDGPU modules, but way more and
generating scary looking messages for these "issues" is just noise
that drown real issues. Disable this for now, maybe in another few
years.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobackport UBSAN fixes for amdgpu
Fiona Ebner [Tue, 14 Nov 2023 12:14:43 +0000 (13:14 +0100)]
backport UBSAN fixes for amdgpu

to silence array-index-out-of-bounds warnings for dynamically-sized
arrays. All commits applied cleanly and just replace array[1] with
array[].

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
5 months agoupdate ABI file for 6.5.11-1-pve
Thomas Lamprecht [Sun, 12 Nov 2023 17:02:30 +0000 (18:02 +0100)]
update ABI file for 6.5.11-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-1
Thomas Lamprecht [Sun, 12 Nov 2023 15:37:04 +0000 (16:37 +0100)]
bump version to 6.5.11-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agocherry-pick 6.5.11 stable release
Thomas Lamprecht [Sun, 12 Nov 2023 15:38:11 +0000 (16:38 +0100)]
cherry-pick 6.5.11 stable release

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: use olddefconfig to generate our config
Thomas Lamprecht [Sun, 12 Nov 2023 15:36:18 +0000 (16:36 +0100)]
d/rules: use olddefconfig to generate our config

makes it easier to cherry-pick newer stable release tags, that
sometimes contain new config values one must pick from.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: disable CONFIG_WQ_CPU_INTENSIVE_REPORT for now
Thomas Lamprecht [Sun, 12 Nov 2023 15:33:18 +0000 (16:33 +0100)]
d/rules: disable CONFIG_WQ_CPU_INTENSIVE_REPORT for now

it's mostly noise for users, and quiet some interpret this as real
problem and report it to us.

Ideally we'd either educate them, or take time ourself, to report this
upstream and see if the situation can be improved overall, but
currently that's not feasible. We should check this out a few releases
down, if the lower hanging fruits got fixed and noise got lower we
could enable it again to catch the more rare cases.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ZFS to get better work-around for UBSAN bounds-checking
Thomas Lamprecht [Sun, 12 Nov 2023 15:19:15 +0000 (16:19 +0100)]
update ZFS to get better work-around for UBSAN bounds-checking

We have a slightly better fix where only a few targeted ZFS module
parts are added to the UBSAN ignore-list, so the rest of the kernel
still gets exposure.

Link: https://github.com/openzfs/zfs/pull/15510
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoRevert "UBUNTU: SAUCE: ceph: make sure all the files successfully put before unmounting"
Thomas Lamprecht [Tue, 7 Nov 2023 08:36:59 +0000 (09:36 +0100)]
Revert "UBUNTU: SAUCE: ceph: make sure all the files successfully put before unmounting"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agorevert "memfd: improve userspace warnings for missing exec-related flags"
Thomas Lamprecht [Mon, 6 Nov 2023 09:21:01 +0000 (10:21 +0100)]
revert "memfd: improve userspace warnings for missing exec-related flags"

This is generating far too much noise in the logs, so keep it at once
per boot until we (and other user space tools) adapted to the kernel
wanting user space to chose memfd execution behavior very explicitly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ABI file for 6.5.3-1-pve
Thomas Lamprecht [Sat, 28 Oct 2023 12:29:54 +0000 (14:29 +0200)]
update ABI file for 6.5.3-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.5.3-1
Thomas Lamprecht [Wed, 25 Oct 2023 08:03:53 +0000 (10:03 +0200)]
bump version to 6.5.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate to current ubuntu-mantic/master-next
Thomas Lamprecht [Wed, 25 Oct 2023 06:25:43 +0000 (08:25 +0200)]
update to current ubuntu-mantic/master-next

to get some relevant fixes for our use cases, like hangs on reboots on
some x86_64 machines.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: temporarily disable UBSAN bound checks
Thomas Lamprecht [Wed, 25 Oct 2023 06:22:18 +0000 (08:22 +0200)]
d/rules: temporarily disable UBSAN bound checks

until ZFS can cope with them:
https://github.com/openzfs/zfs/issues/15145

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.5.3-1~1
Thomas Lamprecht [Fri, 13 Oct 2023 13:28:19 +0000 (15:28 +0200)]
bump version to 6.5.3-1~1

for initial testing and internal QA

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: adapt to merge of ZFS kernel modules
Thomas Lamprecht [Sun, 15 Oct 2023 14:05:10 +0000 (16:05 +0200)]
d/rules: adapt to merge of ZFS kernel modules

Following ZFS commit ad9e76765 ("linux: module: weld all but spl.ko
into zfs.ko") we only have two modules to care about.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ZFS module to 2.2.0
Thomas Lamprecht [Sun, 15 Oct 2023 13:16:41 +0000 (15:16 +0200)]
update ZFS module to 2.2.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate fwlist for 6.5.3-1
Thomas Lamprecht [Fri, 13 Oct 2023 14:15:54 +0000 (16:15 +0200)]
update fwlist for 6.5.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate sources to Ubuntu-6.5.0-10.10
Thomas Lamprecht [Sun, 15 Oct 2023 09:35:46 +0000 (11:35 +0200)]
update sources to Ubuntu-6.5.0-10.10

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: perf: build without libtraceevent
Thomas Lamprecht [Fri, 13 Oct 2023 14:02:57 +0000 (16:02 +0200)]
d/rules: perf: build without libtraceevent

following suite on 64d8243904f1 ("UBUNTU: [Packaging] perf: build
without libtraceevent")

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate submodule to Ubuntu-6.5.0-9.9
Thomas Lamprecht [Fri, 13 Oct 2023 13:27:50 +0000 (15:27 +0200)]
update submodule to Ubuntu-6.5.0-9.9

from ubuntu mantic sources

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.2.16-19
Thomas Lamprecht [Tue, 24 Oct 2023 12:08:10 +0000 (14:08 +0200)]
bump version to 6.2.16-19

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobackport constraining guest-supported xfeatures only at KVM_GET_XSAVE{2}
Thomas Lamprecht [Sat, 21 Oct 2023 13:16:25 +0000 (15:16 +0200)]
backport constraining guest-supported xfeatures only at KVM_GET_XSAVE{2}

This improves compatibility for guests w.r.t. live-migration, or live
snapshot rollback, to hosts with less (FPU) xfeatures supported, as
long as the set of features that was actually exposed to the guest is
still supported.

This improves on the ad856280ddea ("x86/kvm/fpu: Limit guest
user_xfeatures to supported bits of XCR0") bug fix.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agonormalize patches
Thomas Lamprecht [Sat, 21 Oct 2023 13:15:35 +0000 (15:15 +0200)]
normalize patches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobackport exposing FLUSHBYASID when running nested VMs on AMD CPUs
Stefan Sterz [Thu, 19 Oct 2023 14:59:12 +0000 (16:59 +0200)]
backport exposing FLUSHBYASID when running nested VMs on AMD CPUs

this exposes the FLUSHBYASID CPU flag to nested VMs when running on an
AMD CPU. also reverts a made up check that would advertise
FLUSHBYASID as not supported. this enable certain modern hypervisors
such as VMWare ESXi 7 and Workstation 17 to run nested VMs properly
again.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
7 months agod/changelog: fix typo
Thomas Lamprecht [Wed, 11 Oct 2023 16:11:41 +0000 (18:11 +0200)]
d/changelog: fix typo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-18-pve
Thomas Lamprecht [Wed, 11 Oct 2023 15:28:39 +0000 (17:28 +0200)]
update ABI file for 6.2.16-18-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-18
Thomas Lamprecht [Wed, 11 Oct 2023 15:05:31 +0000 (17:05 +0200)]
bump version to 6.2.16-18

merge both versions, I saw the fix for AMD slightly to late and
previous build wasn't made public already anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobackport fix for AMD erratum #1485 on Zen4-based CPUs
Thomas Lamprecht [Wed, 11 Oct 2023 15:03:45 +0000 (17:03 +0200)]
backport fix for AMD erratum #1485 on Zen4-based CPUs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-17-pve
Thomas Lamprecht [Wed, 11 Oct 2023 14:57:16 +0000 (16:57 +0200)]
update ABI file for 6.2.16-17-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-17
Thomas Lamprecht [Wed, 11 Oct 2023 14:14:49 +0000 (16:14 +0200)]
bump version to 6.2.16-17

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ZFS for backport of Intel AMX errata fix
Thomas Lamprecht [Tue, 10 Oct 2023 12:56:04 +0000 (14:56 +0200)]
update ZFS for backport of Intel AMX errata fix

From the upstream commit [0] that this update pulls in:

> Intel SPR erratum SPR4 says that if you trip into a vmexit while
> doing FPU save/restore, your AMX register state might misbehave...
> and by misbehave, I mean save all zeroes incorrectly, leading to
> explosions if you restore it.
>
> Since we're not using AMX for anything, the simple way to avoid
> this is to just not save/restore those when we do anything, since
> we're killing preemption of any sort across our save/restores.
>
> If we ever decide to use AMX, it's not clear that we have any
> way to mitigate this, on Linux...but I am not an expert.

[0]: https://github.com/openzfs/zfs/commit/c65aaa83876f9764f9017db278cefa453e1a3f5b

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-16-pve
Thomas Lamprecht [Tue, 3 Oct 2023 15:04:07 +0000 (17:04 +0200)]
update ABI file for 6.2.16-16-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate fwlist
Thomas Lamprecht [Tue, 3 Oct 2023 15:03:31 +0000 (17:03 +0200)]
update fwlist

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-16
Thomas Lamprecht [Tue, 3 Oct 2023 05:42:38 +0000 (07:42 +0200)]
bump version to 6.2.16-16

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agorebase patches on top of Ubuntu-6.2.0-36.36
Thomas Lamprecht [Tue, 3 Oct 2023 05:05:13 +0000 (07:05 +0200)]
rebase patches on top of Ubuntu-6.2.0-36.36

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate sources to Ubuntu-6.2.0-36.36
Thomas Lamprecht [Tue, 3 Oct 2023 05:05:13 +0000 (07:05 +0200)]
update sources to Ubuntu-6.2.0-36.36

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-15-pve
Thomas Lamprecht [Thu, 28 Sep 2023 14:25:16 +0000 (16:25 +0200)]
update ABI file for 6.2.16-15-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-15
Thomas Lamprecht [Thu, 28 Sep 2023 13:56:28 +0000 (15:56 +0200)]
bump version to 6.2.16-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ZFS to 2.1.13
Thomas Lamprecht [Thu, 28 Sep 2023 13:40:52 +0000 (15:40 +0200)]
update ZFS to 2.1.13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocherry-pick fix for new amd64 ucode
Stoiko Ivanov [Mon, 25 Sep 2023 17:23:35 +0000 (19:23 +0200)]
cherry-pick fix for new amd64 ucode

The latest amd64-microcode package in sid [0] (which probably will
eventually make it to bookworm-security) has a change that requires
the added patch to work properly.

The changelog-entry refers to stable k.o branches only - but a quick
look through the linux-firmware.git log identifies:
`f2eb058afc57348cde66852272d6bf11da1eef8f` as relevant commit, which
refers (as NOTE in the patch) to:
a32b0f0db3f3 ("x86/microcode/AMD: Load late on both threads too")
which applies cleanly (although I cherry-picked the patch from the
6.1.y stable branch to have the original commit in the commit
message).

quickly tested compiling and booting the result in a VM (however w/o
a fitting CPU (Epyc Genoa or Bergamo) it should cause a change)

reported in our Enterprise Support as potential culprit for one
thread from 128 being reported as offline in `lscpu`

[0] https://metadata.ftp-master.debian.org/changelogs//non-free-firmware/a/amd64-microcode/amd64-microcode_3.20230808.1.1_changelog

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
7 months agofix thunderbolt ring-interrupt not being masked on suspend
Thomas Lamprecht [Wed, 20 Sep 2023 04:33:03 +0000 (06:33 +0200)]
fix thunderbolt ring-interrupt not being masked on suspend

Originally for v6.4-rc7 and now it also got already into some stable
trees, but not yet into a (released) ubuntu tag – so backport it
already.

Link: https://forum.proxmox.com/threads/133104/post-590457
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-14
Thomas Lamprecht [Tue, 19 Sep 2023 08:17:23 +0000 (10:17 +0200)]
bump version to 6.2.16-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-14
Thomas Lamprecht [Tue, 19 Sep 2023 08:17:23 +0000 (10:17 +0200)]
bump version to 6.2.16-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoadd basic build instructions to README and build-dir-fresh target
Thomas Lamprecht [Tue, 19 Sep 2023 08:15:46 +0000 (10:15 +0200)]
add basic build instructions to README and build-dir-fresh target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocherry-pick fix for setting X86_FEATURE_OSXSAVE feature
Thomas Lamprecht [Tue, 19 Sep 2023 07:27:09 +0000 (09:27 +0200)]
cherry-pick fix for setting X86_FEATURE_OSXSAVE feature

Avoids regressions where some code falsely think they cannot use some
CPU features like AVX1, e.g., ZFS.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-13-pve
Thomas Lamprecht [Mon, 18 Sep 2023 14:36:21 +0000 (16:36 +0200)]
update ABI file for 6.2.16-13-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-13
Thomas Lamprecht [Mon, 18 Sep 2023 13:32:01 +0000 (15:32 +0200)]
bump version to 6.2.16-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agorebase patches on top of Ubuntu-6.2.0-34.34
Thomas Lamprecht [Mon, 18 Sep 2023 13:19:28 +0000 (15:19 +0200)]
rebase patches on top of Ubuntu-6.2.0-34.34

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate sources to Ubuntu-6.2.0-34.34
Thomas Lamprecht [Mon, 18 Sep 2023 13:19:28 +0000 (15:19 +0200)]
update sources to Ubuntu-6.2.0-34.34

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobackport thunderbolt-net fixes
Thomas Lamprecht [Mon, 18 Sep 2023 08:32:05 +0000 (10:32 +0200)]
backport thunderbolt-net fixes

A user of ours reported an issue with p2p thunderbolt-net w.r.t. IPv6
and failure to reestablish the connection after a reboot of a peer
node, in the forum [0] and the relayed it upstream, so lets
cherry-pick those two patches to our 6.2. Especially the IPv6 one
seems straight forward, and the other one makes it actually spec
conform and should only improve things.

[0]: https://forum.proxmox.com/threads/133104/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agofix #4707: add override parameter for RMRR relaxation
Fabian Grünbichler [Tue, 5 Sep 2023 12:31:04 +0000 (14:31 +0200)]
fix #4707: add override parameter for RMRR relaxation

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 months agofix changelog typo
Fabian Grünbichler [Wed, 6 Sep 2023 06:53:04 +0000 (08:53 +0200)]
fix changelog typo

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 months agobump version to 6.2.16-12
Thomas Lamprecht [Mon, 4 Sep 2023 13:24:19 +0000 (15:24 +0200)]
bump version to 6.2.16-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agocherry-pick fix for KVM vCPU page fault loop
Fiona Ebner [Mon, 4 Sep 2023 09:39:20 +0000 (11:39 +0200)]
cherry-pick fix for KVM vCPU page fault loop

The mailing list thread [0] (found by Friedrich, many thanks!) leading
up to this patch sounds very familiar to issues users reported in the
community forum [1] and enterprise support channel, where a VM would
be stuck for no discernable reason with all vCPU threads spinning.

[0]: https://lore.kernel.org/all/f023d927-52aa-7e08-2ee5-59a2fbc65953@gameservers.com/T/#u
[1]: https://forum.proxmox.com/threads/127459/

Suggested-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
8 months agoupdate fwlist for 6.2.16-11
Thomas Lamprecht [Fri, 1 Sep 2023 06:34:52 +0000 (08:34 +0200)]
update fwlist for 6.2.16-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobuildsys: inline getting git revision
Thomas Lamprecht [Thu, 31 Aug 2023 10:09:49 +0000 (12:09 +0200)]
buildsys: inline getting git revision

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobump version to 6.2.16-11
Thomas Lamprecht [Thu, 31 Aug 2023 09:56:24 +0000 (11:56 +0200)]
bump version to 6.2.16-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agorebase patches on top of Ubuntu-6.2.0-32.32
Thomas Lamprecht [Thu, 31 Aug 2023 09:04:14 +0000 (11:04 +0200)]
rebase patches on top of Ubuntu-6.2.0-32.32

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoupdate sources to Ubuntu-6.2.0-32.32
Thomas Lamprecht [Thu, 31 Aug 2023 09:04:14 +0000 (11:04 +0200)]
update sources to Ubuntu-6.2.0-32.32

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agocherry-pick fix to surpress faulty segfault logging
Fiona Ebner [Fri, 25 Aug 2023 09:26:50 +0000 (11:26 +0200)]
cherry-pick fix to surpress faulty segfault logging

While there is no actual issue, users are still nervous about the
faulty logging [0]. It might take a while until the fix comes in via
upstream, so just pick it up manually.

[0]: https://forum.proxmox.com/threads/130628/post-583864

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
8 months agoupdate ABI file for 6.2.16-10-pve
Wolfgang Bumiller [Fri, 18 Aug 2023 12:13:43 +0000 (14:13 +0200)]
update ABI file for 6.2.16-10-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>