[PATCH 0/3] backends/hostmem: Round up memory size for qemu_madvise() and mbind()

Michal Privoznik posted 3 patches 1 year, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1716912651.git.mprivozn@redhat.com
Maintainers: David Hildenbrand <david@redhat.com>, Igor Mammedov <imammedo@redhat.com>
backends/hostmem.c | 38 ++++++++++++++++++++++++++++++--------
util/osdep.c       |  7 ++++++-
2 files changed, 36 insertions(+), 9 deletions(-)
[PATCH 0/3] backends/hostmem: Round up memory size for qemu_madvise() and mbind()
Posted by Michal Privoznik 1 year, 5 months ago
This is a resurrection of the following old patch of mine:

https://lists.gnu.org/archive/html/qemu-devel/2023-11/msg05536.html

You could say it's a v2 and here's what changed since v1:
- qemu_madvise() is fixed in case posix_madvise() is used
- Warnings are reported in case of qemu_madvise() failure
- Size is rounded up in case of live change of corresponding attributes
  too

Michal Privoznik (3):
  osdep: Make qemu_madvise() to set errno in all cases
  backends/hostmem: Warn on qemu_madvise() failures
  backends/hostmem: Round up memory size for qemu_madvise() and mbind()

 backends/hostmem.c | 38 ++++++++++++++++++++++++++++++--------
 util/osdep.c       |  7 ++++++-
 2 files changed, 36 insertions(+), 9 deletions(-)

-- 
2.44.1