mirror of
https://github.com/systemd/systemd.git
synced 2024-12-01 06:13:38 +08:00
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:
parent
cea9216a42
commit
77290bc83f
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user