qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/5] include: Move qemu_madvise() and related #defines to new


From: Richard Henderson
Subject: Re: [PATCH 1/5] include: Move qemu_madvise() and related #defines to new qemu/madvise.h
Date: Wed, 9 Feb 2022 10:01:50 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/9/22 07:08, Peter Maydell wrote:
The function qemu_madvise() and the QEMU_MADV_* constants associated
with it are used in only 10 files.  Move them out of osdep.h to a new
qemu/madvise.h header that is included where it is needed.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  include/qemu/madvise.h     | 95 ++++++++++++++++++++++++++++++++++++++
  include/qemu/osdep.h       | 82 --------------------------------
  backends/hostmem-file.c    |  1 +
  backends/hostmem.c         |  1 +
  hw/virtio/virtio-balloon.c |  1 +
  migration/postcopy-ram.c   |  1 +
  migration/qemu-file.c      |  1 +
  migration/ram.c            |  1 +
  softmmu/physmem.c          |  1 +
  tcg/region.c               |  1 +
  util/osdep.c               |  1 +
  util/oslib-posix.c         |  1 +
  12 files changed, 105 insertions(+), 82 deletions(-)
  create mode 100644 include/qemu/madvise.h

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]