]> git.proxmox.com Git - qemu-server.git/commit
prevent starting a 32-bit VM using a 64-bit OVMF BIOS
authorFilip Schauer <f.schauer@proxmox.com>
Wed, 21 Feb 2024 14:33:14 +0000 (15:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Mar 2024 13:24:32 +0000 (14:24 +0100)
commit89d5b1c90b854a67270001094569e0bee9f5b6e3
tree60c710eff286f6d7b6b8f187ec7dee9d15538794
parent5416ff700f86e5c390bbaaeda65cc372539d0f24
prevent starting a 32-bit VM using a 64-bit OVMF BIOS

Instead of starting a VM with a 32-bit CPU type and a 64-bit OVMF image,
throw an error before starting the VM telling the user that OVMF is not
supported on 32-bit CPU types.

To obtain a list of 32-bit CPU types, refer to the builtin_x86_defs in
target/i386/cpu.c of QEMU. Exclude any entries that have the long mode
feature (CPUID_EXT2_LM).

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/CPUConfig.pm