mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user