mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemu: rename function for getting the default hugepage size
Use qemuBuildMemoryGetDefaultPagesize.
Fixes: 6864d8f740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
947ea8665e
commit
b261c9c3a0
@ -3409,8 +3409,8 @@ qemuBuildMemoryBackendPropsShare(virJSONValuePtr props,
|
||||
|
||||
|
||||
static int
|
||||
qemuqemuBuildMemoryBackendPropsGetPagesize(virQEMUDriverConfigPtr cfg,
|
||||
unsigned long long *pagesize)
|
||||
qemuBuildMemoryGetDefaultPagesize(virQEMUDriverConfigPtr cfg,
|
||||
unsigned long long *pagesize)
|
||||
{
|
||||
virHugeTLBFSPtr p;
|
||||
|
||||
@ -3568,7 +3568,7 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps,
|
||||
needHugepage = false;
|
||||
useHugepage = false;
|
||||
} else if (pagesize == 0) {
|
||||
if (qemuqemuBuildMemoryBackendPropsGetPagesize(cfg, &pagesize) < 0)
|
||||
if (qemuBuildMemoryGetDefaultPagesize(cfg, &pagesize) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user