]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Create base hugepages path on memory hotplug
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Oct 2022 14:48:38 +0000 (16:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Oct 2022 06:40:58 +0000 (08:40 +0200)
commitbabcbf2d5c883c1f76d2134a4a3f4ce1958a30f5
treec4764ede40ac2df019343601304e7e381da114d8
parent72adf3b717f994eb2109bfa9e92ab04456143b5b
qemu: Create base hugepages path on memory hotplug

Users can play all sorts of games with mount points. For
instance, they can unmount and mount back a hugetlbfs and only
after that attempt to hotplug memory.

This has an unfortunate consequence though. During memory
hotplug, when qemuProcessBuildDestroyMemoryPaths() is called the
path is created with very restrictive mode (0700) because under
the hood g_mkdir_with_parents(path, 0700) is called.

Therefore, create the driver generic portion of the path
separately.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2134009
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_process.c