[PATCH v4 0/5] backends/hostmem: Report more errors on failures

Michal Privoznik posted 5 patches 5 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1717584048.git.mprivozn@redhat.com
Maintainers: David Hildenbrand <david@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
backends/hostmem.c | 46 ++++++++++++++++++++++++++++++++++++++--------
meson.build        | 14 ++++++++++----
util/osdep.c       |  9 +++++++--
3 files changed, 55 insertions(+), 14 deletions(-)
[PATCH v4 0/5] backends/hostmem: Report more errors on failures
Posted by Michal Privoznik 5 months, 3 weeks ago
v4 of:

https://mail.gnu.org/archive/html/qemu-devel/2024-05/msg06511.html

diff to v3:
- In 2/5 instead of fixing up posix_madvise() retval at runtime, just
  don't use posix_madvise() on Darwin at all (resulted in new patch 1/5).
  Since 2/5 is now the same as 1/4 from v2 I'm including David's
  Reviewed-by line.
- The last patch was tested by Mario, so I've included his Tested-by
  line. Thanks!

Michal Privoznik (5):
  meson: Don't even detect posix_madvise() on Darwin
  osdep: Make qemu_madvise() to set errno in all cases
  osdep: Make qemu_madvise() return ENOSYS on unsupported OSes
  backends/hostmem: Report error on qemu_madvise() failures
  backends/hostmem: Report error when memory size is unaligned

 backends/hostmem.c | 46 ++++++++++++++++++++++++++++++++++++++--------
 meson.build        | 14 ++++++++++----
 util/osdep.c       |  9 +++++++--
 3 files changed, 55 insertions(+), 14 deletions(-)

-- 
2.44.1
Re: [PATCH v4 0/5] backends/hostmem: Report more errors on failures
Posted by Paolo Bonzini 5 months, 3 weeks ago
Queued, thanks.

Paolo