vmspawn: enable hyperv enlightenments

THese are generally recommended (and libvirt/gnome-boxes default to them
hence). They are mostly relevant for Windows, but I think it makes sense
to enable them anyway for Linux too, simply to excercise #28001, and
they shouldn't hurt.
This commit is contained in:
Lennart Poettering 2024-04-19 13:38:38 +02:00
parent cea9216a42
commit 77290bc83f

View File

@ -1421,7 +1421,13 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
pass_fds[n_pass_fds++] = device_fd; pass_fds[n_pass_fds++] = device_fd;
} }
r = strv_extend_many(&cmdline, "-cpu", "max"); r = strv_extend_many(&cmdline, "-cpu",
#ifdef __x86_64__
"max,hv_relaxed,hv-vapic,hv-time"
#else
"max"
#endif
);
if (r < 0) if (r < 0)
return log_oom(); return log_oom();