qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings
@ 2022-09-06  0:08 Ilya Leoshkevich
  2022-09-06  0:08 ` [PATCH v3 1/5] linux-user: Provide MADV_* definitions Ilya Leoshkevich
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Ilya Leoshkevich @ 2022-09-06  0:08 UTC (permalink / raw)
  To: Richard Henderson, Paolo Bonzini, Laurent Vivier, Taylor Simpson,
	Alex Bennée
  Cc: qemu-devel, Ilya Leoshkevich

Hi,

This series is made of patches from [1]. I've added a test and noticed
that madvise(MADV_DONTNEED) was broken on alpha, fixing which required
adding per-arch MADV_* definitions. This in turn affected the strace
patch, so it made sense to make a series out of the results.

Patch 1 adds MADV_* constants for all architectures.
Patch 2 fixes the alpha bug.
Patch 3 adds madvise() support to strace.
Patch 4 adds MADV_DONTNEED support for file mappings.
Patch 5 adds a test.

Best regards,
Ilya

[1] https://lists.gnu.org/archive/html/qemu-devel/2022-09/msg00710.html

Ilya Leoshkevich (5):
  linux-user: Provide MADV_* definitions
  linux-user: Fix madvise(MADV_DONTNEED) on alpha
  linux-user: Implement stracing madvise()
  linux-user: Passthrough MADV_DONTNEED for certain file mappings
  tests/tcg/linux-test: Add linux-madvise test

 accel/tcg/translate-all.c                 |  2 +-
 include/exec/cpu-all.h                    |  6 ++
 linux-user/aarch64/target_mman.h          |  1 +
 linux-user/alpha/target_mman.h            |  8 ++
 linux-user/arm/target_mman.h              |  1 +
 linux-user/cris/target_mman.h             |  1 +
 linux-user/generic/target_mman.h          | 92 +++++++++++++++++++++++
 linux-user/hexagon/target_mman.h          |  1 +
 linux-user/hppa/target_mman.h             | 15 ++++
 linux-user/i386/target_mman.h             |  1 +
 linux-user/loongarch64/target_mman.h      |  1 +
 linux-user/m68k/target_mman.h             |  1 +
 linux-user/microblaze/target_mman.h       |  1 +
 linux-user/mips/target_mman.h             |  1 +
 linux-user/mips64/target_mman.h           |  1 +
 linux-user/mmap.c                         | 30 ++++++--
 linux-user/nios2/target_mman.h            |  1 +
 linux-user/openrisc/target_mman.h         |  1 +
 linux-user/ppc/target_mman.h              |  1 +
 linux-user/riscv/target_mman.h            |  1 +
 linux-user/s390x/target_mman.h            |  1 +
 linux-user/sh4/target_mman.h              |  1 +
 linux-user/sparc/target_mman.h            |  1 +
 linux-user/strace.c                       | 41 ++++++++++
 linux-user/strace.list                    |  2 +-
 linux-user/x86_64/target_mman.h           |  1 +
 linux-user/xtensa/target_mman.h           |  1 +
 tests/tcg/multiarch/linux/linux-madvise.c | 70 +++++++++++++++++
 28 files changed, 277 insertions(+), 8 deletions(-)
 create mode 100644 linux-user/aarch64/target_mman.h
 create mode 100644 linux-user/alpha/target_mman.h
 create mode 100644 linux-user/arm/target_mman.h
 create mode 100644 linux-user/cris/target_mman.h
 create mode 100644 linux-user/generic/target_mman.h
 create mode 100644 linux-user/hexagon/target_mman.h
 create mode 100644 linux-user/hppa/target_mman.h
 create mode 100644 linux-user/i386/target_mman.h
 create mode 100644 linux-user/loongarch64/target_mman.h
 create mode 100644 linux-user/m68k/target_mman.h
 create mode 100644 linux-user/microblaze/target_mman.h
 create mode 100644 linux-user/mips/target_mman.h
 create mode 100644 linux-user/mips64/target_mman.h
 create mode 100644 linux-user/nios2/target_mman.h
 create mode 100644 linux-user/openrisc/target_mman.h
 create mode 100644 linux-user/ppc/target_mman.h
 create mode 100644 linux-user/riscv/target_mman.h
 create mode 100644 linux-user/s390x/target_mman.h
 create mode 100644 linux-user/sh4/target_mman.h
 create mode 100644 linux-user/sparc/target_mman.h
 create mode 100644 linux-user/x86_64/target_mman.h
 create mode 100644 linux-user/xtensa/target_mman.h
 create mode 100644 tests/tcg/multiarch/linux/linux-madvise.c

-- 
2.37.2



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-09-23 22:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06  0:08 [PATCH v3 0/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings Ilya Leoshkevich
2022-09-06  0:08 ` [PATCH v3 1/5] linux-user: Provide MADV_* definitions Ilya Leoshkevich
2022-09-23 21:51   ` Laurent Vivier
2022-09-06  0:08 ` [PATCH v3 2/5] linux-user: Fix madvise(MADV_DONTNEED) on alpha Ilya Leoshkevich
2022-09-23 21:51   ` Laurent Vivier
2022-09-06  0:08 ` [PATCH v3 3/5] linux-user: Implement stracing madvise() Ilya Leoshkevich
2022-09-23 21:51   ` Laurent Vivier
2022-09-06  0:08 ` [PATCH v3 4/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings Ilya Leoshkevich
2022-09-23 21:51   ` Laurent Vivier
2022-09-06  0:08 ` [PATCH v3 5/5] tests/tcg/linux-test: Add linux-madvise test Ilya Leoshkevich
2022-09-23 21:52   ` Laurent Vivier
2022-09-06  7:35 ` [PATCH v3 0/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).