Skip to contentSkip to conversation

missing backport patch (KVM/SVM) to support modern guests in nested environment with 6.1.x

DISCUSSION Lagoth Zanta 1 participant 1 message Sep 4, 2024 KVM

lore
Share & tools
lore
#0 lore raw

Package: linux-source-6.1
Version: 6.1.106-3

Hi!

One patch is missing from the kernel source, causing modern guest OSes to be broken in a nested environment.

Affected Guest (for example): ESXI 8. with AMD CPUs

ESXI 8.0 can boot, but any VM doesn't boot/work inside the nested environment.

The guest VMs are work inside nested environment after applying the missing patch.

More info: https://lists.proxmox.com/pipermail/pve-devel/2023-October/
059540.html

Original patch in the mainline kernel: https://git.kernel.org/pub/scm/linux/
kernel/git/stable/linux.git/commit/arch/x86/kvm/svm/svm.c? h=v6.10.7&id=176bfc5b17fee327585583a427e2857d9dfd8f68

A backported patch is available here: https://github.com/lagothzanta77/lagoth-infra/blob/master/issues/patches/amd_nested_flushbyasid.patch

Screenshots of the nested ESXi environment are available here:

--without patch: https://github.com/lagothzanta77/lagoth-infra/blob/master/
issues/images/esxi8_without_patch.png

-- with patch: https://github.com/lagothzanta77/lagoth-infra/blob/master/
issues/images/esxi8_with_patch.png

Lagoth Zanta