]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildMemoryBackendProps: Get pagesize early
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 29 Mar 2019 15:21:28 +0000 (16:21 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Apr 2019 14:37:19 +0000 (16:37 +0200)
commit6864d8f740e2502dc7625bdf18ffde4465b14f69
tree894f5fd3a230a0e6961f0d355d028b5c0f281e4d
parent465df4771a0b18ca7e52802a487ce0a24fa4d18a
qemuBuildMemoryBackendProps: Get pagesize early

https://bugzilla.redhat.com/show_bug.cgi?id=1693066

Up until memfd introduction (in 24b74d187ca) we did not need to
know @pagesize because qemuGetDomainHupageMemPath() could deal
with it being zero (value of zero means use the default hugetlbfs
mount). But since for memfd we are not passing a path to
hugetlbfs mount rather the page size value we need to know its
value upfront.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/memfd-memory-default-hugepage.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/memfd-memory-default-hugepage.xml [new symlink]
tests/qemuxml2xmltest.c