- Sep 08, 2023
-
-
Thomas Huth authored
The file has been converted to .rst a while ago - make sure that the references in the trace-events files are pointing to the right location now. Signed-off-by:
Thomas Huth <thuth@redhat.com> Signed-off-by:
Michael Tokarev <mjt@tls.msk.ru>
-
- Aug 31, 2023
-
-
Philippe Mathieu-Daudé authored
By default, C function prototypes declared in headers are visible, so there is no need to declare them as 'extern' functions. Remove this redundancy in a single bulk commit; do not modify: - meson.build (used to check function availability at runtime) - pc-bios/ - libdecnumber/ - tests/ - *.c Signed-off-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Message-Id: <20230605175647.88395-5-philmd@linaro.org>
-
- Aug 30, 2023
-
-
Warner Losh authored
For the moment, move PRAGMA_DISABLE_PACKED_WARNING and PRAGMA_ENABLE_PACKED_WARNING back to bsd-user/qemu.h. Of course, these should be in compiler.h, but that interferes with too many things at the moment, so take one step back to unbreak clang linux-user builds first. Use the exact same version that's in linux-user/qemu.h since that's what should be in compiler.h. Signed-off-by:
Warner Losh <imp@bsdimp.com> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Aug 28, 2023
-
-
Warner Losh authored
Without it, we'd call preadv, then write with weird parameters, which is clearly not ideal... Signed-off-by:
Warner Losh <imp@bsdimp.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Fixes: 770d8aba ("bsd-user/bsd-file.h: Meat of the write system calls") Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230820045419.89691-1-imp@bsdimp.com>
-
Warner Losh authored
Add glue to call the following syscalls to the freebsd_syscall: freebsd11_getdents getdirentries freebsd11_getdirentries fcntl Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Add glue to call the following syscalls to the freebsd_syscall: freebsd11_statfs statfs freebsd11_fstatfs fstatfs freebsd11_getfsstat getfsstat Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
-
Warner Losh authored
Add glue to call the following syscalls to the freebsd_syscall: getfh lgetfh fhopen freebsd11_fhstat freebsd11_fhstatfs fhstat fhstatfs Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
-
Warner Losh authored
Add glue to call the freebsd11_stat syscalls to the freebsd_syscall: freebsd11_stat freebsd11_lstat freebsd11_fstat freebsd11_fstatat freebsd11_nstat, freebsd11_nfstat, freebsd11_nlstat fstatat fstat Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Karim Taha authored
Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Mikaël Urankar authored
Signed-off-by:
Mikaël Urankar <mikael.urankar@gmail.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Forward declaration of the nstat syscalls: nstat nlstat nfstat Co-authored-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Implement the freebsd11 variant of the following syscalls: getdirentries(2) Co-authored-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Implement the freebsd11 variant of the following syscalls: statfs(2) fstatfs(2) getfsstat(2) Co-authored-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Implement the freebsd11 variant of the following syscalls: fstat(2) fstatat(2) fhstat(2) fhstatfs(2) Co-authored-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Rename the following syscalls to the freebsd11 variant: do_freebsd_lstat -> do_freebsd11_lstat do_freebsd_stat -> do_freebsd11_stat Co-authored-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the following syscalls: fcntl(2) Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the following syscalls: getdents(2) getdirecentries(2) Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the following syscalls: statfs(2) fstatfs(2) getfsstat(2) Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the following syscalls: getfh(2) lgetfh(2) fhopen(2) fhstat(2) fhstatfs(2) Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the following syscalls: stat(2) lstat(2) fstat(2) fstatat(2) nstat nfstat nlstat Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
They are the 64-bit variants of h2t_freebsd11_stat and h2t_freebsd11_statfs, respectively Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the stat conversion functions: target_to_host_fcntl_cmd Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the stat conversion functions: h2t_freebds11_statfs Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the stat conversion functions: h2t_freebsd_fhandle t2h_freebsd_fhandle Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Implement the stat conversion functions: h2t_freebsd11_stat h2t_freebsd_nstat Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
This is necessary for future code using target_time_t, in bsd-user/syscall_defs. Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
-
Kyle Evans authored
Signed-off-by:
Kyle Evans <kevans@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Add struct target_freebsd_fhandle and fcntl flags to bsd-user/syscall_defs.h Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Michal Meloun authored
Add struct target_statfs to bsd-user/syscall_defs.h Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Add structs target_freebsd11_nstat and target_freebsd11_statfs to bsd-user/syscall_defs.h Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org>
-
Michal Meloun authored
Signed-off-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org> Singed-off-by:
Warner Losh <imp@bsdimp.com>
-
Stacey Son authored
Declarations of functions that convert between host and target structs. Co-authored-by:
Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Use __builtin_choose_expr to avoid type promotion from ?: in __put_user_e and __get_user_e macros. Copied from linux-user/qemu.h, originally by Blue Swirl. Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
-
Warner Losh authored
move _WANT_FREEBSD macros from bsd-user/freebsd/os-syscall.c to include/qemu/osdep.h in order to pull some struct defintions needed later in the build. Signed-off-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Karim Taha <kariem.taha2.7@gmail.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org>
-
Richard Henderson authored
This has the same value is image_info.brk, which is also logged, and is otherwise unused. Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230818175736.144194-4-richard.henderson@linaro.org> Reviewed-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Richard Henderson authored
This value is unused. Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230818175736.144194-3-richard.henderson@linaro.org> Reviewed-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Richard Henderson authored
The start_mmap value is write-only. Remove the field and the defines that populated it. Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230818175736.144194-2-richard.henderson@linaro.org> Reviewed-by:
Warner Losh <imp@bsdimp.com> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
- Aug 09, 2023
-
-
Richard Henderson authored
Rather than using a zero tuple to end the table, use a macro to apply ARRAY_SIZE and pass that on to the convert functions. This fixes two bugs in which the conversion functions required that both the target and host masks be non-zero in order to continue, rather than require both target and host masks be zero in order to terminate. This affected mmap_flags_tbl when the host does not support all of the flags we wish to convert (e.g. MAP_UNINITIALIZED). Mapping these flags to zero is good enough, and matches how the kernel ignores bits that are unknown. Fixes: 4b840f96 ("linux-user: Populate more bits in mmap_flags_tbl") Reviewed-by:
Alex Bennée <alex.bennee@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
- Aug 06, 2023
-
-
Richard Henderson authored
This variable is unused. Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-