From b261c9c3a07c59bfb1a413b00ac0154f88eeb105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 4 Apr 2019 13:51:45 +0200 Subject: [PATCH] qemu: rename function for getting the default hugepage size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use qemuBuildMemoryGetDefaultPagesize. Fixes: 6864d8f740e2502dc7625bdf18ffde4465b14f69 Signed-off-by: Ján Tomko --- src/qemu/qemu_command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 029780fe86..aaca75900b 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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; }