[PATCH] bsd-user: Add missing break after do_bsd_preadv

2023-08-19 Thread Warner Losh
Without it, we'd call preadv, then write with weird parameters, which is clearly not ideal... Signed-off-by: Warner Losh --- bsd-user/freebsd/os-syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index de36c4b71c6..c90400ab

Re: [PATCH 0/3] bsd-user: image_info cleanups

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 4:44 AM Philippe Mathieu-Daudé wrote: > On 18/8/23 19:57, Richard Henderson wrote: > > > Richard Henderson (3): > >bsd-user: Remove ELF_START_MMAP and image_info.start_mmap > >bsd-user: Remove image_info.mmap > >bsd-user: Remove image_info.start_brk > > Series:

Re: [PATCH 22/22] Add stubs for vadvise(), sbrk() and sstk()

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > The above system calls are not supported by qemu. > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 21 + > bsd-user/freebsd/os-syscall.c | 12 +

Re: [PATCH 21/22] Implement shmat(2) and shmdt(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 72 +++ > bsd-user/freebsd/os-syscall.c | 8 > 2 files changed, 80 insertions(+) > > dif

Re: [PATCH 20/22] Implement shmctl(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 33 + > bsd-user/freebsd/os-syscall.c | 4 > 2 files changed, 37 insertions(+) > Review

Re: [PATCH 19/22] Implement shm_unlink(2) and shmget(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 23 +++ > bsd-user/freebsd/os-syscall.c | 8 > 2 files changed, 31 insertions(+) > Reviewed-by:

Re: [PATCH 18/22] Implement shm_open(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Co-authored-by: Kyle Evans > > Signed-off-by: Stacey Son > Signed-off-by: Kyle Evans > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 27 +++ > bsd-user/freebsd/os-syscall.c |

Re: [PATCH 17/22] Implement do_obreak function

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Co-authored-by: Mikaël Urankar > > Signed-off-by: Mikaël Urankar > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 85 +++ > bsd-user/freebs

Re: [PATCH 16/22] Implement mincore(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 23 +++ > bsd-user/freebsd/os-syscall.c | 4 > 2 files changed, 27 insertions(+) > Reviewed-by: War

Re: [PATCH 15/22] Implement mlock(2), munlock(2), mlockall(2), munlockall(2), madvise(2), minherit(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 44 +++ > bsd-user/freebsd/os-syscall.c | 24 +++ > 2 files changed, 68 insert

Re: [PATCH 14/22] Implement msync(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Co-authored-by: Kyle Evans > > Signed-off-by: Stacey Son > Signed-off-by: Kyle Evans > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 11 +++ > bsd-user/freebsd/os-syscall.c | 4 > 2 fi

Re: [PATCH 13/22] Implement mprotect(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 7 +++ > bsd-user/freebsd/os-syscall.c | 4 > 2 files changed, 11 insertions(+) > Reviewed-by: Warner Losh > diff

Re: [PATCH 12/22] Implement mmap(2) and munmap(2)

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.h| 20 > bsd-user/freebsd/os-syscall.c | 9 + > 2 files changed, 29 insertions(+) > Reviewed-by: W

Re: [PATCH 11/22] Introduce bsd-mem.h to the source tree

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote: > From: Stacey Son > > To preserve the copyright notice and help with the 'Author' info for > subsequent changes to the file. > I'd drop the first 'To' in this message. It's clearer without it what is meant. > Signed-off-by: Stacey Son > Sign

Re: [PATCH 10/22] Implement shmid_ds conversion between host and target.

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.c | 46 ++ > 1 file changed, 46 insertions(+) > Reviewed-by: Warner Losh diff --git a/bsd-user

Re: [PATCH 09/22] Implement ipc_perm conversion between host and target.

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.c | 41 + > 1 file changed, 41 insertions(+) > Reviewed-by: Warner Losh > diff --git a/bsd-user/b

Re: [PATCH 08/22] Implement target_set_brk function in bsd-mem.c instead of os-syscall.c

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Co-authored-by: Mikaël Urankar > Signed-off-by: Mikaël Urankar > Signed-off-by: Karim Taha > --- > bsd-user/bsd-mem.c| 38 +++ > bsd-user/freebsd/os-syscall.c | 4 > 2 f

Re: [PATCH 07/22] Add bsd-mem.c to meson.build

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > --- > bsd-user/bsd-mem.c | 0 > bsd-user/meson.build | 1 + > 2 files changed, 1 insertion(+) > create mode 100644 bsd-user/bsd-mem.c > Reviewed-by: Warner Losh > diff --git a/bsd-user/bsd-mem.c b/bsd-user/bsd-mem.c > new file mode 10064

Re: [PATCH 06/22] Implement shm_rename(2) system call

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Kyle Evans > > Signed-off-by: Kyle Evans > Signed-off-by: Karim Taha > --- > bsd-user/freebsd/os-misc.h| 24 > bsd-user/freebsd/os-syscall.c | 6 ++ > 2 files changed, 30 insertions(+) > Reviewed-by:

Re: [PATCH 05/22] Implement shm_open2(2) system call

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 9:10 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/19/23 02:47, Karim Taha wrote: > > From: Kyle Evans > > > > Signed-off-by: Kyle Evans > > Signed-off-by: Karim Taha > > --- > > bsd-user/freebsd/os-misc.h| 52 ++

Re: [PATCH 04/22] Introduce freebsd/os-misc.h to the source tree

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > To preserve the copyright notice and help with the 'Author' info for > subsequent changes to the file. > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/freebsd/os-misc.h | 28 +++

Re: [PATCH 03/22] Declarations for ipc_perm and shmid_ds conversion functions

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/qemu-bsd.h | 45 + > 1 file changed, 45 insertions(+) > create mode 100644 bsd-user/qemu-bsd.h > Review

Re: [PATCH 02/22] Implement struct target_shmid_ds

2023-08-19 Thread Warner Losh
On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/syscall_defs.h | 20 > 1 file changed, 20 insertions(+) > Reviewed-by: Warner Losh > diff --git a/bsd-user/syscall_defs.h b/

Re: [PATCH 01/22] Implement struct target_ipc_perm

2023-08-19 Thread Warner Losh
One general thing about all the patches in this series. The first line in the commit message should start with 'bsd-user: ' which I'll only say once. You can fix it in v2 easily enough. On Sat, Aug 19, 2023 at 3:48 AM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-

Re: [PATCH v3 00/32] Implement the stat system calls for FreeBSD.

2023-08-19 Thread Warner Losh
On Sun, Aug 13, 2023 at 1:43 PM Karim Taha wrote: > Upstream the implementation of the stat system calls from the > qemu-bsd-user fork, the following system calls are implemented: > stat(2), lstat(2), fstat(2), fstatat(2), nstat, nfstat, nlstat > getfh(2), lgetfh(2), fhopen(2), fhstat(2), fhstatf

Re: [PATCH v3 8/8] vdpa: Send cvq state load commands in parallel

2023-08-19 Thread Hawkins Jiawei
On 2023/8/19 01:27, Eugenio Perez Martin wrote: > On Wed, Jul 19, 2023 at 9:54 AM Hawkins Jiawei wrote: >> >> This patch enables sending CVQ state load commands >> in parallel at device startup by following steps: >> >>* Refactor vhost_vdpa_net_load_cmd() to iterate through >> the control comm

Re: [PATCH v3 6/8] vdpa: Move vhost_svq_poll() to the caller of vhost_vdpa_net_cvq_add()

2023-08-19 Thread Hawkins Jiawei
On 2023/8/18 23:48, Eugenio Perez Martin wrote: > On Wed, Jul 19, 2023 at 9:54 AM Hawkins Jiawei wrote: >> >> This patch moves vhost_svq_poll() to the caller of >> vhost_vdpa_net_cvq_add() and introduces a helper funtion. >> >> By making this change, next patches in this series is >> able to refac

Re: [PATCH v3 4/8] vdpa: Avoid using vhost_vdpa_net_load_*() outside vhost_vdpa_net_load()

2023-08-19 Thread Hawkins Jiawei
On 2023/8/18 23:39, Eugenio Perez Martin wrote: > On Wed, Jul 19, 2023 at 9:54 AM Hawkins Jiawei wrote: >> >> Next patches in this series will refactor vhost_vdpa_net_load_cmd() >> to iterate through the control commands shadow buffers, allowing QEMU >> to send CVQ state load commands in parallel

Re: [PATCH v3 2/8] vdpa: Use iovec for vhost_vdpa_net_cvq_add()

2023-08-19 Thread Hawkins Jiawei
On 2023/8/18 23:23, Eugenio Perez Martin wrote: > On Wed, Jul 19, 2023 at 9:54 AM Hawkins Jiawei wrote: >> >> Next patches in this series will no longer perform an >> immediate poll and check of the device's used buffers >> for each CVQ state load command. Consequently, there >> will be multiple p

Re: [PATCH v3 1/8] vhost: Add argument to vhost_svq_poll()

2023-08-19 Thread Hawkins Jiawei
On 2023/8/18 23:08, Eugenio Perez Martin wrote: > On Wed, Jul 19, 2023 at 9:54 AM Hawkins Jiawei wrote: >> > > The subject could be more explicit. What about "add count argument to > vhost_svq_poll"? Hi Eugenio, Thanks for reviewing. You are right, I will use this new subject in the v4 patch. T

Re: [PATCH 05/22] Implement shm_open2(2) system call

2023-08-19 Thread Richard Henderson
On 8/19/23 02:47, Karim Taha wrote: From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/freebsd/os-misc.h| 52 +++ bsd-user/freebsd/os-syscall.c | 13 + 2 files changed, 65 insertions(+) diff --git a/bsd-user/freeb

Re: [PATCH 04/22] Introduce freebsd/os-misc.h to the source tree

2023-08-19 Thread Richard Henderson
On 8/19/23 02:47, Karim Taha wrote: From: Stacey Son To preserve the copyright notice and help with the 'Author' info for subsequent changes to the file. Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-misc.h | 28 1 file changed, 28 i

Re: [PATCH 03/22] Declarations for ipc_perm and shmid_ds conversion functions

2023-08-19 Thread Richard Henderson
On 8/19/23 02:47, Karim Taha wrote: From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/qemu-bsd.h | 45 + 1 file changed, 45 insertions(+) create mode 100644 bsd-user/qemu-bsd.h Reviewed-by: Richard Henderson r~

Re: [PATCH 02/22] Implement struct target_shmid_ds

2023-08-19 Thread Richard Henderson
On 8/19/23 02:47, Karim Taha wrote: From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 20 1 file changed, 20 insertions(+) Reviewed-by: Richard Henderson r~

Re: [PATCH 01/22] Implement struct target_ipc_perm

2023-08-19 Thread Richard Henderson
On 8/19/23 02:47, Karim Taha wrote: From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 17 + 1 file changed, 17 insertions(+) Reviewed-by: Richard Henderson r~

Re: [PATCH 0/3] bsd-user: image_info cleanups

2023-08-19 Thread Philippe Mathieu-Daudé
On 18/8/23 19:57, Richard Henderson wrote: Richard Henderson (3): bsd-user: Remove ELF_START_MMAP and image_info.start_mmap bsd-user: Remove image_info.mmap bsd-user: Remove image_info.start_brk Series: Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH] target/arm: Fix SME ST1Q

2023-08-19 Thread Philippe Mathieu-Daudé
On 18/8/23 23:42, Richard Henderson wrote: A typo, noted in the bug report, resulting in an incorrect write offset. Cc: qemu-sta...@nongnu.org Fixes: 7390e0e9ab8 ("target/arm: Implement SME LD1, ST1") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1833 Signed-off-by: Richard Henderson

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

2023-08-19 Thread Karim Taha
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),

[PATCH 01/22] Implement struct target_ipc_perm

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 17 + 1 file changed, 17 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index e4825f2662..39a9bc8ed7 100644 --- a/bsd-user/syscall_defs.h +++ b/bsd-

[PATCH 19/22] Implement shm_unlink(2) and shmget(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 23 +++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 31 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index 013b82f49a..3d91d3eb30

[PATCH 16/22] Implement mincore(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 23 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 27 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index f76881519c..edbccd3111 100

[PATCH 08/22] Implement target_set_brk function in bsd-mem.c instead of os-syscall.c

2023-08-19 Thread Karim Taha
From: Stacey Son Co-authored-by: Mikaël Urankar Signed-off-by: Mikaël Urankar Signed-off-by: Karim Taha --- bsd-user/bsd-mem.c| 38 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/bsd-user

[PATCH 18/22] Implement shm_open(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Co-authored-by: Kyle Evans Signed-off-by: Stacey Son Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 27 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 31 insertions(+) diff --git a/bsd-user/bsd

[PATCH 11/22] Introduce bsd-mem.h to the source tree

2023-08-19 Thread Karim Taha
From: Stacey Son To preserve the copyright notice and help with the 'Author' info for subsequent changes to the file. Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 65 +++ bsd-user/freebsd/os-syscall.c | 1 + 2 files c

[PATCH 12/22] Implement mmap(2) and munmap(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 20 bsd-user/freebsd/os-syscall.c | 9 + 2 files changed, 29 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index fed7b7cd80..057c995a6e 1

[PATCH 10/22] Implement shmid_ds conversion between host and target.

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/bsd-user/bsd-mem.c b/bsd-user/bsd-mem.c index e69250cc0d..4446c94725 100644 --- a/bsd-user/bsd-mem.c +

[PATCH 15/22] Implement mlock(2), munlock(2), mlockall(2), munlockall(2), madvise(2), minherit(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 44 +++ bsd-user/freebsd/os-syscall.c | 24 +++ 2 files changed, 68 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index

[PATCH 20/22] Implement shmctl(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 33 + bsd-user/freebsd/os-syscall.c | 4 2 files changed, 37 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index 3d91d3eb30..221a

[PATCH 21/22] Implement shmat(2) and shmdt(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 72 +++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 80 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index 221ad76d8c..f7

[PATCH 03/22] Declarations for ipc_perm and shmid_ds conversion functions

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/qemu-bsd.h | 45 + 1 file changed, 45 insertions(+) create mode 100644 bsd-user/qemu-bsd.h diff --git a/bsd-user/qemu-bsd.h b/bsd-user/qemu-bsd.h new file mode 100644

[PATCH 13/22] Implement mprotect(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 7 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 11 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h index 057c995a6e..a6446a454c 100644 --- a/bsd-user

[PATCH 22/22] Add stubs for vadvise(), sbrk() and sstk()

2023-08-19 Thread Karim Taha
From: Stacey Son The above system calls are not supported by qemu. Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 21 + bsd-user/freebsd/os-syscall.c | 12 2 files changed, 33 insertions(+) diff --git a/bsd-user/bsd-me

[PATCH 09/22] Implement ipc_perm conversion between host and target.

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.c | 41 + 1 file changed, 41 insertions(+) diff --git a/bsd-user/bsd-mem.c b/bsd-user/bsd-mem.c index 6c123abf04..e69250cc0d 100644 --- a/bsd-user/bsd-mem.c +++ b/

[PATCH 07/22] Add bsd-mem.c to meson.build

2023-08-19 Thread Karim Taha
--- bsd-user/bsd-mem.c | 0 bsd-user/meson.build | 1 + 2 files changed, 1 insertion(+) create mode 100644 bsd-user/bsd-mem.c diff --git a/bsd-user/bsd-mem.c b/bsd-user/bsd-mem.c new file mode 100644 index 00..e69de29bb2 diff --git a/bsd-user/meson.build b/bsd-user/meson.build index 52

[PATCH 17/22] Implement do_obreak function

2023-08-19 Thread Karim Taha
From: Stacey Son Co-authored-by: Mikaël Urankar Signed-off-by: Mikaël Urankar Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 85 +++ bsd-user/freebsd/os-syscall.c | 7 +++ 2 files changed, 92 insertions(+) diff --git

[PATCH 14/22] Implement msync(2)

2023-08-19 Thread Karim Taha
From: Stacey Son Co-authored-by: Kyle Evans Signed-off-by: Stacey Son Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/bsd-mem.h| 11 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 15 insertions(+) diff --git a/bsd-user/bsd-mem.h b/bsd-use

[PATCH 06/22] Implement shm_rename(2) system call

2023-08-19 Thread Karim Taha
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/freebsd/os-misc.h| 24 bsd-user/freebsd/os-syscall.c | 6 ++ 2 files changed, 30 insertions(+) diff --git a/bsd-user/freebsd/os-misc.h b/bsd-user/freebsd/os-misc.h index 993e459

[PATCH 05/22] Implement shm_open2(2) system call

2023-08-19 Thread Karim Taha
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/freebsd/os-misc.h| 52 +++ bsd-user/freebsd/os-syscall.c | 13 + 2 files changed, 65 insertions(+) diff --git a/bsd-user/freebsd/os-misc.h b/bsd-user/freebsd/os-misc.h

[PATCH 04/22] Introduce freebsd/os-misc.h to the source tree

2023-08-19 Thread Karim Taha
From: Stacey Son To preserve the copyright notice and help with the 'Author' info for subsequent changes to the file. Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-misc.h | 28 1 file changed, 28 insertions(+) create mode 100644 bsd-

[PATCH 02/22] Implement struct target_shmid_ds

2023-08-19 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 20 1 file changed, 20 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index 39a9bc8ed7..074df7bdd6 100644 --- a/bsd-user/syscall_defs.h +++ b/b

Re: [PATCH v2 2/8] target/loongarch: Remove duplicated disas_set_info assignment

2023-08-19 Thread gaosong
在 2023/8/19 上午1:20, Philippe Mathieu-Daudé 写道: Commit 228021f05e ("target/loongarch: Add core definition") sets disas_set_info to loongarch_cpu_disas_set_info. Probably due to a failed git-rebase, commit ca61e75071 ("target/loongarch: Add gdb support") also sets it to the same value. Remove the d

Re: [PATCH v2 1/8] target/loongarch: Log I/O write accesses to CSR registers

2023-08-19 Thread gaosong
在 2023/8/19 上午1:20, Philippe Mathieu-Daudé 写道: Various CSR registers have Read/Write fields. We might want to see guest trying to change such registers. Signed-off-by: Philippe Mathieu-Daudé --- target/loongarch/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/loongarch/cpu