mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
Qemu: ask for memory preallocation with large pages
The -mem-prealloc flag should be used when using large pages This ensures qemu tries to allocate all required memory immediately, rather than when first used. The latter mode will crash qemu if hugepages aren't available when accessed, while the former should gracefully fallback to non-hugepages. * src/qemu/qemu_conf.c: add -mem-prealloc flag to qemu command line when using large pages
This commit is contained in:
parent
98ea78b6ee
commit
edcae5a7c4
@ -2108,6 +2108,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
|
||||
def->emulator);
|
||||
goto error;
|
||||
}
|
||||
ADD_ARG_LIT("-mem-prealloc");
|
||||
ADD_ARG_LIT("-mem-path");
|
||||
ADD_ARG_LIT(driver->hugepage_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user