qemu-devel
[Top][All Lists]
Advanced

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

[PATCH 00/22] Implement the mmap system call for FreeBSD.


From: Karim Taha
Subject: [PATCH 00/22] Implement the mmap system call for FreeBSD.
Date: Sat, 19 Aug 2023 11:47:44 +0200

Upstream the implementation of the following mmap system calls, from the
qemu-bsd-user fork:
   mmap(2), munmap(2), mprotect(2), msync(2), mlock(2), munlock(2), mlockall(2)
   munlockall(2), madvise(2), minherit(2), mincore(2),
   shm_open(2),shm_open2(2), shm_rename2(2), shm_unlink(2), shmget(2), 
shmctl(2), shmat(2),
   shmdt(2)

Karim Taha (1):
  Add bsd-mem.c to meson.build

Kyle Evans (2):
  Implement shm_open2(2) system call
  Implement shm_rename(2) system call

Stacey Son (19):
  Implement struct target_ipc_perm
  Implement struct target_shmid_ds
  Declarations for ipc_perm and shmid_ds conversion functions
  Introduce freebsd/os-misc.h to the source tree
  Implement target_set_brk function in bsd-mem.c instead of os-syscall.c
  Implement ipc_perm conversion between host and target.
  Implement shmid_ds conversion between host and target.
  Introduce bsd-mem.h to the source tree
  Implement mmap(2) and munmap(2)
  Implement mprotect(2)
  Implement msync(2)
  Implement mlock(2), munlock(2), mlockall(2), munlockall(2),
    madvise(2), minherit(2)
  Implement mincore(2)
  Implement do_obreak function
  Implement shm_open(2)
  Implement shm_unlink(2) and shmget(2)
  Implement shmctl(2)
  Implement shmat(2) and shmdt(2)
  Add stubs for vadvise(), sbrk() and sstk()

 bsd-user/bsd-mem.c            | 125 ++++++++++
 bsd-user/bsd-mem.h            | 431 ++++++++++++++++++++++++++++++++++
 bsd-user/freebsd/os-misc.h    | 104 ++++++++
 bsd-user/freebsd/os-syscall.c | 112 ++++++++-
 bsd-user/meson.build          |   1 +
 bsd-user/qemu-bsd.h           |  45 ++++
 bsd-user/syscall_defs.h       |  37 +++
 7 files changed, 851 insertions(+), 4 deletions(-)
 create mode 100644 bsd-user/bsd-mem.c
 create mode 100644 bsd-user/bsd-mem.h
 create mode 100644 bsd-user/freebsd/os-misc.h
 create mode 100644 bsd-user/qemu-bsd.h

-- 
2.40.0




reply via email to

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