mbox series

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

Message ID cover.1716912651.git.mprivozn@redhat.com
Headers show
Series backends/hostmem: Round up memory size for qemu_madvise() and mbind() | expand

Message

Michal Privoznik May 28, 2024, 4:15 p.m. UTC
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(-)