lib/launch-direct.c: Remove workaround that disabled 5-level page tables

https://bugzilla.redhat.com/2082806 is a private kernel bug (sigh) for
RHEL 8, where some missing backports caused 5-level page tables to
fail when qemu emulated them.  This was fixed back in 2023, so let's
remove this workaround now.
This commit is contained in:
Richard W.M. Jones
2025-10-17 09:57:53 +01:00
parent ac1cb3cd7c
commit 7398fdc77c

View File

@@ -613,19 +613,8 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
} end_list ();
cpu_model = guestfs_int_get_cpu_model (has_kvm && !force_tcg);
if (cpu_model) {
#if defined(__x86_64__)
/* Temporary workaround for RHBZ#2082806 */
if (STREQ (cpu_model, "max")) {
start_list ("-cpu") {
append_list (cpu_model);
append_list ("la57=off");
} end_list ();
}
else
#endif
arg ("-cpu", cpu_model);
}
if (cpu_model)
arg ("-cpu", cpu_model);
if (g->smp > 1)
arg_format ("-smp", "%d", g->smp);