qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 935f1d: bsd-user: Remove ELF_START_MMAP and i


From: Alex Bennée
Subject: [Qemu-commits] [qemu/qemu] 935f1d: bsd-user: Remove ELF_START_MMAP and image_info.sta...
Date: Tue, 29 Aug 2023 14:03:41 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 935f1dd8181b757e6eff83522d85b0a2b84c27c5
      
https://github.com/qemu/qemu/commit/935f1dd8181b757e6eff83522d85b0a2b84c27c5
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/arm/target_arch_elf.h
    M bsd-user/elfload.c
    M bsd-user/i386/target_arch_elf.h
    M bsd-user/qemu.h
    M bsd-user/x86_64/target_arch_elf.h

  Log Message:
  -----------
  bsd-user: Remove ELF_START_MMAP and image_info.start_mmap

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>


  Commit: 7db1873664dcba22820981ad105b0d30bcd509b8
      
https://github.com/qemu/qemu/commit/7db1873664dcba22820981ad105b0d30bcd509b8
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/elfload.c
    M bsd-user/qemu.h

  Log Message:
  -----------
  bsd-user: Remove image_info.mmap

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>


  Commit: 4436e2ff6cae585f4863fa59a3ad77dd3c54ac63
      
https://github.com/qemu/qemu/commit/4436e2ff6cae585f4863fa59a3ad77dd3c54ac63
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/elfload.c
    M bsd-user/main.c
    M bsd-user/qemu.h

  Log Message:
  -----------
  bsd-user: Remove image_info.start_brk

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>


  Commit: 25e2cfbb8e621a4a726040427f14dca68f78bd1b
      
https://github.com/qemu/qemu/commit/25e2cfbb8e621a4a726040427f14dca68f78bd1b
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c
    M include/qemu/osdep.h

  Log Message:
  -----------
  bsd-user: Move _WANT_FREEBSD macros to include/qemu/osdep.h

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>


  Commit: 15b950ecd16ecc6e9a1f21e1f9f185ee61a5a1d5
      
https://github.com/qemu/qemu/commit/15b950ecd16ecc6e9a1f21e1f9f185ee61a5a1d5
  Author: Kyle Evans <kevans@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M include/qemu/compiler.h

  Log Message:
  -----------
  bsd-user: Disable clang warnings

Implement PRAGMA_DISABLE_PACKED_WARNING and
PRAGMA_REENABLE_PACKED_WARNING macros in include/qemu/compiler.h.

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>


  Commit: 6538c682db9c2b34fbffc22e111a4bcd8f4b02de
      
https://github.com/qemu/qemu/commit/6538c682db9c2b34fbffc22e111a4bcd8f4b02de
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/qemu.h
    M bsd-user/signal.c

  Log Message:
  -----------
  bsd-user; Update the definitions of __put_user and __get_user macros

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>


  Commit: 9b4a902d3164b60ea732cca7405fcd2d083b784e
      
https://github.com/qemu/qemu/commit/9b4a902d3164b60ea732cca7405fcd2d083b784e
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    A bsd-user/freebsd/qemu-os.h
    M bsd-user/qemu.h

  Log Message:
  -----------
  bsd-user: Declarations of h2t and t2h conversion functions.

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>


  Commit: 40f5e2983407e51e00e0fc82ff59c1ed55001530
      
https://github.com/qemu/qemu/commit/40f5e2983407e51e00e0fc82ff59c1ed55001530
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Add struct target_freebsd11_stat to bsd-user/syscall_defs

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>


  Commit: ad805a77592a1765515c70be225ec3097c954e5c
      
https://github.com/qemu/qemu/commit/ad805a77592a1765515c70be225ec3097c954e5c
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Add struct target_stat 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>


  Commit: 1de075a0f6c6aa0ab54cef4fae902d4c0e95effa
      
https://github.com/qemu/qemu/commit/1de075a0f6c6aa0ab54cef4fae902d4c0e95effa
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Add structs target_freebsd11_{nstat,statfs}

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>


  Commit: 25efcda41f107f124019f338ae929a694ec6191e
      
https://github.com/qemu/qemu/commit/25efcda41f107f124019f338ae929a694ec6191e
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Add struct target_statfs

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>


  Commit: 54d07b44aa534277d72fa570498bd379c06d9a40
      
https://github.com/qemu/qemu/commit/54d07b44aa534277d72fa570498bd379c06d9a40
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Add struct target_freebsd_fhandle and fcntl flags

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>


  Commit: 243c725fe7489b15aa441a20b0298035481da2f9
      
https://github.com/qemu/qemu/commit/243c725fe7489b15aa441a20b0298035481da2f9
  Author: Kyle Evans <kevans@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h

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>


  Commit: a0c20b1b36576042d1c2789f92b42043f48409c4
      
https://github.com/qemu/qemu/commit/a0c20b1b36576042d1c2789f92b42043f48409c4
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/syscall_defs.h

  Log Message:
  -----------
  bsd-user: Rename target_freebsd_time_t to target_time_t

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>


  Commit: 86547e577bdfe55f32778a052b82227599233067
      
https://github.com/qemu/qemu/commit/86547e577bdfe55f32778a052b82227599233067
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    A bsd-user/freebsd/os-stat.c

  Log Message:
  -----------
  bsd-user: Implement h2t_freebsd11_stat h2t_freebsd_nstat

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>


  Commit: f2bc92aaf3d2944fd41073ed3bfb5addf9ee96e7
      
https://github.com/qemu/qemu/commit/f2bc92aaf3d2944fd41073ed3bfb5addf9ee96e7
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.c

  Log Message:
  -----------
  bsd-user: Implement h2t_freebsd_fhandle t2h_freebsd_fhandle

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>


  Commit: 5aa88f962cac2e93f222c48c92a14d685aaf00e7
      
https://github.com/qemu/qemu/commit/5aa88f962cac2e93f222c48c92a14d685aaf00e7
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.c

  Log Message:
  -----------
  bsd-user: Implement h2t_freebds11_statfs

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>


  Commit: 584d6fce65bd80335795d80c0e9bf1062ef3c4f6
      
https://github.com/qemu/qemu/commit/584d6fce65bd80335795d80c0e9bf1062ef3c4f6
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.c

  Log Message:
  -----------
  bsd-user: Implement target_to_host_fcntl_cmd

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>


  Commit: f9d5a35fbbfeb534e748fc79df7f3f85b83c695a
      
https://github.com/qemu/qemu/commit/f9d5a35fbbfeb534e748fc79df7f3f85b83c695a
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.c

  Log Message:
  -----------
  bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions

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>


  Commit: bf14f13d8be8f572fa169a866d3244fa4a1988ac
      
https://github.com/qemu/qemu/commit/bf14f13d8be8f572fa169a866d3244fa4a1988ac
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    A bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement stat related syscalls

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>


  Commit: db8ee08f0a88ae04ee6b684690a3d53f862e7ea3
      
https://github.com/qemu/qemu/commit/db8ee08f0a88ae04ee6b684690a3d53f862e7ea3
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement statfh related syscalls

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>


  Commit: 191fe50d5dc8f26e0049d62e92d192d410520fab
      
https://github.com/qemu/qemu/commit/191fe50d5dc8f26e0049d62e92d192d410520fab
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement statfs related syscalls

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>


  Commit: 213444529de083d1cbd1ef2391a1323207182f93
      
https://github.com/qemu/qemu/commit/213444529de083d1cbd1ef2391a1323207182f93
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement getdents related syscalls

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>


  Commit: c0023204cb05f330c51432fdcae8929413ff6d73
      
https://github.com/qemu/qemu/commit/c0023204cb05f330c51432fdcae8929413ff6d73
  Author: Stacey Son <sson@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement stat related syscalls

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>


  Commit: b443297793ef696f282e470775dc89815758fb24
      
https://github.com/qemu/qemu/commit/b443297793ef696f282e470775dc89815758fb24
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement freebsd11 stat related syscalls

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>


  Commit: 33d730684efbe9f9343a07a6f4259e322d22f63e
      
https://github.com/qemu/qemu/commit/33d730684efbe9f9343a07a6f4259e322d22f63e
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement freebsd11 fstat and fhstat related syscalls

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>


  Commit: 196da9d3d3f1ab142473a6b2f714720ba1b29a33
      
https://github.com/qemu/qemu/commit/196da9d3d3f1ab142473a6b2f714720ba1b29a33
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement freebsd11 statfs related syscalls

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>


  Commit: 91a98c9bbcfba2a9f278a0811676cd2f8000481c
      
https://github.com/qemu/qemu/commit/91a98c9bbcfba2a9f278a0811676cd2f8000481c
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement freebsd11 getdirents related syscalls

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>


  Commit: 292f00c05bfa62a020eee5eb1d8c0983e8483b33
      
https://github.com/qemu/qemu/commit/292f00c05bfa62a020eee5eb1d8c0983e8483b33
  Author: Michal Meloun <mmel@FreeBSD.org>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement freebsd11 netbsd stat related syscalls

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>


  Commit: 292bfd0f512aa71fcc8f7e2f6ce2aa40a5a825ef
      
https://github.com/qemu/qemu/commit/292bfd0f512aa71fcc8f7e2f6ce2aa40a5a825ef
  Author: Mikaël Urankar <mikael.urankar@gmail.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-stat.h

  Log Message:
  -----------
  bsd-user: Implement do_freebsd_realpathat syscall

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>


  Commit: c97c1f3a9f4d4a5bebf88c844b9b3fc07c4296e3
      
https://github.com/qemu/qemu/commit/c97c1f3a9f4d4a5bebf88c844b9b3fc07c4296e3
  Author: Karim Taha <kariem.taha2.7@gmail.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/meson.build

  Log Message:
  -----------
  bsd-user: Add os-stat.c to the build

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>


  Commit: e800e6c541b4088a52f4c0129eb4cbbf8a0ea9fb
      
https://github.com/qemu/qemu/commit/e800e6c541b4088a52f4c0129eb4cbbf8a0ea9fb
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c

  Log Message:
  -----------
  bsd-user: Add glue for the freebsd11_stat syscalls

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>


  Commit: 6fe97c6cf7969bcf809a89ecabc30acf10b77735
      
https://github.com/qemu/qemu/commit/6fe97c6cf7969bcf809a89ecabc30acf10b77735
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c

  Log Message:
  -----------
  bsd-user: Add glue for getfh and related syscalls

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>


  Commit: d7e9a545084ba1ded8fe864697db174cc3e6ebe2
      
https://github.com/qemu/qemu/commit/d7e9a545084ba1ded8fe864697db174cc3e6ebe2
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c

  Log Message:
  -----------
  bsd-user: Add glue for statfs related system calls

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>


  Commit: 97a3c571147c3b62a79a994ebd85769419e630c2
      
https://github.com/qemu/qemu/commit/97a3c571147c3b62a79a994ebd85769419e630c2
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c

  Log Message:
  -----------
  bsd-user: Add getdents and fcntl related system calls

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>


  Commit: f51e7c41acb4b17d28fc74f9f10df50a4a65fbcc
      
https://github.com/qemu/qemu/commit/f51e7c41acb4b17d28fc74f9f10df50a4a65fbcc
  Author: Warner Losh <imp@bsdimp.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M bsd-user/freebsd/os-syscall.c

  Log Message:
  -----------
  bsd-user: Add missing break after do_bsd_preadv

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: 770d8abae7 ("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>


  Commit: 58b4def2a28b38d7c5d49e99beb31e45936b1096
      
https://github.com/qemu/qemu/commit/58b4def2a28b38d7c5d49e99beb31e45936b1096
  Author: alloc.young <alloc.young@outlook.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M softmmu/dirtylimit.c

  Log Message:
  -----------
  softmmu: Fix dirtylimit memory leak

Fix memory leak in hmp_info_vcpu_dirty_limit,use g_autoptr
to handle memory deallocation.

Signed-off-by: alloc.young <alloc.young@outlook.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Message-Id: 
<SA1PR11MB6760B9AB7EAFBDAFB524ED06F5E3A@SA1PR11MB6760.namprd11.prod.outlook.com>
Signed-off-by: Hyman Huang <yong.huang@smartx.com>


  Commit: 19b14cea453b7429a06922fe96e55e6b32fe718a
      
https://github.com/qemu/qemu/commit/19b14cea453b7429a06922fe96e55e6b32fe718a
  Author: alloc.young <alloc.young@outlook.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M softmmu/dirtylimit.c

  Log Message:
  -----------
  softmmu/dirtylimit: Convert free to g_free

Convert free to g_free to match g_new and g_malloc functions.

Fixes: cc2b33eab0 ("softmmu/dirtylimit: Implement vCPU dirtyrate calculation 
periodically")
Fixes: baa609832e ("softmmu/dirtylimit: Implement virtual CPU throttle")
Signed-off-by: alloc.young <alloc.young@outlook.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: 
<SA1PR11MB67604ECD85AFF34BEB3072F7F5E3A@SA1PR11MB6760.namprd11.prod.outlook.com>
Signed-off-by: Hyman Huang <yong.huang@smartx.com>


  Commit: 3eb82637fbf8c0471990b59e6733fd4beb1f9939
      
https://github.com/qemu/qemu/commit/3eb82637fbf8c0471990b59e6733fd4beb1f9939
  Author: Andrei Gudkov <gudkov.andrei@huawei.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M migration/dirtyrate.c

  Log Message:
  -----------
  migration/dirtyrate: Fix precision losses and g_usleep overshoot

Signed-off-by: Andrei Gudkov <gudkov.andrei@huawei.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Message-Id: 
<8ddb0d40d143f77aab8f602bd494e01e5fa01614.1691161009.git.gudkov.andrei@huawei.com>
Signed-off-by: Hyman Huang <yong.huang@smartx.com>


  Commit: 813bac3d8d70d85cb7835f7945eb9eed84c2d8d0
      
https://github.com/qemu/qemu/commit/813bac3d8d70d85cb7835f7945eb9eed84c2d8d0
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M bsd-user/arm/target_arch_elf.h
    M bsd-user/elfload.c
    M bsd-user/freebsd/meson.build
    A bsd-user/freebsd/os-stat.c
    A bsd-user/freebsd/os-stat.h
    M bsd-user/freebsd/os-syscall.c
    A bsd-user/freebsd/qemu-os.h
    M bsd-user/i386/target_arch_elf.h
    M bsd-user/main.c
    M bsd-user/qemu.h
    M bsd-user/signal.c
    M bsd-user/syscall_defs.h
    M bsd-user/x86_64/target_arch_elf.h
    M include/qemu/compiler.h
    M include/qemu/osdep.h

  Log Message:
  -----------
  Merge tag '2023q3-bsd-user-pull-request' of https://gitlab.com/bsdimp/qemu 
into staging

Pull request for bsd-user 2023 Q3 (first batch)

First batch of commits submitted by my GSoC student Karim Taha

These implement the stat, statfs, statfh and dirents system calls.

In addition, fix a missing break statment, and submit Richard Henderson's
elf stat mmap cleansup.

# -----BEGIN PGP SIGNATURE-----
# Comment: GPGTools - https://gpgtools.org
#
# iQIzBAABCgAdFiEEIDX4lLAKo898zeG3bBzRKH2wEQAFAmTtL6EACgkQbBzRKH2w
# EQALHQ//WOoHYxpNS1hy+oYIAvjW0JOqz9gCSFR0d56mDBShm7WO/9FZA6eGAzYQ
# i5kBSVFwEBlM76K5vLTbRvCbCbAwlpAdMgI7HXValjspNhvu/66DNWmdil6GnXKu
# 4QRaM/QGrobmYrNmf4SdgyjlMVH7wGyTrCTpXfvPfktZLAbQq7dCyNPTsOYXJP2V
# LASk8j2gyW6fDi3z1AxTNVfS7BJX6DWMhPhlvC/aUOLVVGgj9Hw9uxPaKXC1t47D
# bpZ+wJb4GMkcsmuiGJ40CXowjQ+M1lBrA4rN+lTMJNttZJ+TUYmizTFkYhX+B28h
# Q2JZy5eLXlsxxRByOkOwFczfDT6jlG4BlK4jmDOvKlrTPLaWIHjezztTavWIZDlU
# ce1oXQo3KEdWoa/QEsuxLeBbE+uZpu5+NqLeCk1cU4GPks8nbAcD7BGl6dDHKXM4
# 8vCcOMZLwO+xi5Etgcf/MtTPMpSO0rD9fTq2VSdYX0H197mkOdyCDAXjfKPsBUIE
# VLAnCFfajMNRc5ITobEbz4GiMD/xy5s8eDZNeefG8lgySpl9XB2Lvw7SWDz1imsL
# nBgQH6RHznU65wEvVGtnCGMj5kIMbohY2AGR75iGkRdgR+t2zMjUIiaU/qivD+6z
# IEJ2jqDWqtQb81jFNrFzJlsim+GYRl0HcaEmyye2bgf5LHRSSNM=
# =ORJ7
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon 28 Aug 2023 19:37:05 EDT
# gpg:                using RSA key 2035F894B00AA3CF7CCDE1B76C1CD1287DB01100
# gpg: Good signature from "Warner Losh <wlosh@netflix.com>" [unknown]
# gpg:                 aka "Warner Losh <imp@bsdimp.com>" [unknown]
# gpg:                 aka "Warner Losh <imp@freebsd.org>" [unknown]
# gpg:                 aka "Warner Losh <imp@village.org>" [unknown]
# gpg:                 aka "Warner Losh <wlosh@bsdimp.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 2035 F894 B00A A3CF 7CCD  E1B7 6C1C D128 7DB0 1100

* tag '2023q3-bsd-user-pull-request' of https://gitlab.com/bsdimp/qemu: (36 
commits)
  bsd-user: Add missing break after do_bsd_preadv
  bsd-user: Add getdents and fcntl related system calls
  bsd-user: Add glue for statfs related system calls
  bsd-user: Add glue for getfh and related syscalls
  bsd-user: Add glue for the freebsd11_stat syscalls
  bsd-user: Add os-stat.c to the build
  bsd-user: Implement do_freebsd_realpathat syscall
  bsd-user: Implement freebsd11 netbsd stat related syscalls
  bsd-user: Implement freebsd11 getdirents related syscalls
  bsd-user: Implement freebsd11 statfs related syscalls
  bsd-user: Implement freebsd11 fstat and fhstat related syscalls
  bsd-user: Implement freebsd11 stat related syscalls
  bsd-user: Implement stat related syscalls
  bsd-user: Implement getdents related syscalls
  bsd-user: Implement statfs related syscalls
  bsd-user: Implement statfh related syscalls
  bsd-user: Implement stat related syscalls
  bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions
  bsd-user: Implement target_to_host_fcntl_cmd
  bsd-user: Implement h2t_freebds11_statfs
  ...

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 86e4f93d827d3c1efd00cd8a906e38a2c0f2b5bc
      
https://github.com/qemu/qemu/commit/86e4f93d827d3c1efd00cd8a906e38a2c0f2b5bc
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M softmmu/physmem.c

  Log Message:
  -----------
  softmmu: Assert data in bounds in iotlb_to_section

Acked-by: Alex Bennée <alex.bennee@linaro.org>
Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 0d58c660689f6da1e3feff8a997014003d928b3b
      
https://github.com/qemu/qemu/commit/0d58c660689f6da1e3feff8a997014003d928b3b
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M accel/tcg/cpu-exec-common.c
    M include/exec/cpu-common.h
    M softmmu/physmem.c

  Log Message:
  -----------
  softmmu: Use async_run_on_cpu in tcg_commit

After system startup, run the update to memory_dispatch
and the tlb_flush on the cpu.  This eliminates a race,
wherein a running cpu sees the memory_dispatch change
but has not yet seen the tlb_flush.

Since the update now happens on the cpu, we need not use
qatomic_rcu_read to protect the read of memory_dispatch.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1826
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1834
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1846
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 77fafcb50046f6c683f3cab9df975fdab43e1a68
      
https://github.com/qemu/qemu/commit/77fafcb50046f6c683f3cab9df975fdab43e1a68
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M tcg/tcg-op-vec.c

  Log Message:
  -----------
  tcg: Remove vecop_list check from tcg_gen_not_vec

The not pattern is always available via generic expansion.
See debug block in tcg_can_emit_vecop_list.

Fixes: 11978f6f58 ("tcg: Fix expansion of INDEX_op_not_vec")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: dad2f2f5afbaf58d6056f31dfd4b9edd0854b8ab
      
https://github.com/qemu/qemu/commit/dad2f2f5afbaf58d6056f31dfd4b9edd0854b8ab
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M tcg/sparc64/tcg-target.c.inc
    M tcg/sparc64/tcg-target.h

  Log Message:
  -----------
  tcg/sparc64: Disable TCG_TARGET_HAS_extr_i64_i32

Since a59a29312660 ("tcg/sparc64: Remove sparc32plus constraints")
we no longer distinguish registers with 32 vs 64 bits.
Therefore we can remove support for the backend-specific
type change opcodes.

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


  Commit: 25d505dab9361204b067f8f94a92ca7281d934a8
      
https://github.com/qemu/qemu/commit/25d505dab9361204b067f8f94a92ca7281d934a8
  Author: Jeuk Kim <jeuk20.kim@gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M MAINTAINERS
    M docs/specs/pci-ids.rst
    M hw/Kconfig
    M hw/meson.build
    A hw/ufs/Kconfig
    A hw/ufs/meson.build
    A hw/ufs/trace-events
    A hw/ufs/trace.h
    A hw/ufs/ufs.c
    A hw/ufs/ufs.h
    A include/block/ufs.h
    M include/hw/pci/pci.h
    M include/hw/pci/pci_ids.h
    M meson.build

  Log Message:
  -----------
  hw/ufs: Initial commit for emulated Universal-Flash-Storage

Universal Flash Storage (UFS) is a high-performance mass storage device
with a serial interface. It is primarily used as a high-performance
data storage device for embedded applications.

This commit contains code for UFS device to be recognized
as a UFS PCI device.
Patches to handle UFS logical unit and Transfer Request will follow.

Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 
9f3db32fe1c708090a6bb764d456973b5abef55f.1691062912.git.jeuk20.kim@samsung.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 65e7fcb021f5e88af4ea98a377f6dea7fb1cd462
      
https://github.com/qemu/qemu/commit/65e7fcb021f5e88af4ea98a377f6dea7fb1cd462
  Author: Jeuk Kim <jeuk20.kim@gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M hw/ufs/trace-events
    M hw/ufs/ufs.c
    M hw/ufs/ufs.h

  Log Message:
  -----------
  hw/ufs: Support for Query Transfer Requests

This commit makes the UFS device support query
and nop out transfer requests.

The next patch would be support for UFS logical
unit and scsi command transfer request.

Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 
d06b440d660872092f70af1b8167bd5f4704c957.1691062912.git.jeuk20.kim@samsung.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 3b178ca6e12e36427fca27728054c4c75c98c1fc
      
https://github.com/qemu/qemu/commit/3b178ca6e12e36427fca27728054c4c75c98c1fc
  Author: Jeuk Kim <jeuk20.kim@gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    A hw/ufs/lu.c
    M hw/ufs/meson.build
    M hw/ufs/trace-events
    M hw/ufs/ufs.c
    M hw/ufs/ufs.h
    M include/scsi/constants.h

  Log Message:
  -----------
  hw/ufs: Support for UFS logical unit

This commit adds support for ufs logical unit.
The LU handles processing for the SCSI command,
unit descriptor query request.

This commit enables the UFS device to process
IO requests.

Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 
898cea923e819dc21a99597bf045a12d7983be28.1691062912.git.jeuk20.kim@samsung.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 01cbd7fa28037af421ff5405c199f101c64147d2
      
https://github.com/qemu/qemu/commit/01cbd7fa28037af421ff5405c199f101c64147d2
  Author: Jeuk Kim <jeuk20.kim@gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M MAINTAINERS
    M tests/qtest/meson.build
    A tests/qtest/ufs-test.c

  Log Message:
  -----------
  tests/qtest: Introduce tests for UFS

This patch includes the following tests
  Test mmio read
  Test ufs device initialization and ufs-lu recognition
  Test I/O (Performs a write followed by a read to verify)

Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 
af6b8d54c049490b3533a784a0aeac4798bb9217.1691062912.git.jeuk20.kim@samsung.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: d659ce347b8b5287188583772d16ee57715d8b38
      
https://github.com/qemu/qemu/commit/d659ce347b8b5287188583772d16ee57715d8b38
  Author: Fabiano Rosas <farosas@suse.de>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M migration/block.c

  Log Message:
  -----------
  block-migration: Ensure we don't crash during migration cleanup

We can fail the blk_insert_bs() at init_blk_migration(), leaving the
BlkMigDevState without a dirty_bitmap and BlockDriverState. Account
for the possibly missing elements when doing cleanup.

Fix the following crashes:

Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault.
0x0000555555ec83ef in bdrv_release_dirty_bitmap (bitmap=0x0) at 
../block/dirty-bitmap.c:359
359         BlockDriverState *bs = bitmap->bs;
 #0  0x0000555555ec83ef in bdrv_release_dirty_bitmap (bitmap=0x0) at 
../block/dirty-bitmap.c:359
 #1  0x0000555555bba331 in unset_dirty_tracking () at ../migration/block.c:371
 #2  0x0000555555bbad98 in block_migration_cleanup_bmds () at 
../migration/block.c:681

Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault.
0x0000555555e971ff in bdrv_op_unblock (bs=0x0, op=BLOCK_OP_TYPE_BACKUP_SOURCE, 
reason=0x0) at ../block.c:7073
7073        QLIST_FOREACH_SAFE(blocker, &bs->op_blockers[op], list, next) {
 #0  0x0000555555e971ff in bdrv_op_unblock (bs=0x0, 
op=BLOCK_OP_TYPE_BACKUP_SOURCE, reason=0x0) at ../block.c:7073
 #1  0x0000555555e9734a in bdrv_op_unblock_all (bs=0x0, reason=0x0) at 
../block.c:7095
 #2  0x0000555555bbae13 in block_migration_cleanup_bmds () at 
../migration/block.c:690

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Message-id: 20230731203338.27581-1-farosas@suse.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: f8e6b77d15af2c958db305e66c70f80d0640d1b5
      
https://github.com/qemu/qemu/commit/f8e6b77d15af2c958db305e66c70f80d0640d1b5
  Author: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M block.c
    M block/qcow2.c
    M include/block/block-common.h

  Log Message:
  -----------
  block: add subcluster_size field to BlockDriverInfo

This is going to be used in the subsequent commit as requests alignment
(in particular, during copy-on-read).  This value only makes sense for
the formats which support subclusters (currently QCOW2 only).  If this
field isn't set by driver's own bdrv_get_info() implementation, we
simply set it equal to the cluster size thus treating each cluster as
having a single subcluster.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230711172553.234055-2-andrey.drobyshev@virtuozzo.com>


  Commit: bf895f4c2ecf48bf8dee2fd82f2bb599c85ca9d1
      
https://github.com/qemu/qemu/commit/bf895f4c2ecf48bf8dee2fd82f2bb599c85ca9d1
  Author: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M block/io.c
    M block/mirror.c
    M include/block/block-io.h

  Log Message:
  -----------
  block/io: align requests to subcluster_size

When target image is using subclusters, and we align the request during
copy-on-read, it makes sense to align to subcluster_size rather than
cluster_size.  Otherwise we end up with unnecessary allocations.

This commit renames bdrv_round_to_clusters() to bdrv_round_to_subclusters()
and utilizes subcluster_size field of BlockDriverInfo to make necessary
alignments.  It affects copy-on-read as well as mirror job (which is
using bdrv_round_to_clusters()).

This change also fixes the following bug with failing assert (covered by
the test in the subsequent commit):

qemu-img create -f qcow2 base.qcow2 64K
qemu-img create -f qcow2 -o 
extended_l2=on,backing_file=base.qcow2,backing_fmt=qcow2 img.qcow2 64K
qemu-io -c "write -P 0xaa 0 2K" img.qcow2
qemu-io -C -c "read -P 0x00 2K 62K" img.qcow2

qemu-io: ../block/io.c:1236: bdrv_co_do_copy_on_readv: Assertion `skip_bytes < 
pnum' failed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230711172553.234055-3-andrey.drobyshev@virtuozzo.com>


  Commit: 3f5f2285bfcdd855508a55da7875fb92de1a6ed0
      
https://github.com/qemu/qemu/commit/3f5f2285bfcdd855508a55da7875fb92de1a6ed0
  Author: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M tests/qemu-iotests/197
    M tests/qemu-iotests/197.out

  Log Message:
  -----------
  tests/qemu-iotests/197: add testcase for CoR with subclusters

Add testcase which checks that allocations during copy-on-read are
performed on the subcluster basis when subclusters are enabled in target
image.

This testcase also triggers the following assert with previous commit
not being applied, so we check that as well:

qemu-io: ../block/io.c:1236: bdrv_co_do_copy_on_readv: Assertion `skip_bytes < 
pnum' failed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230711172553.234055-4-andrey.drobyshev@virtuozzo.com>


  Commit: d86d03755cf85099c623fccad38d656ed601ed7e
      
https://github.com/qemu/qemu/commit/d86d03755cf85099c623fccad38d656ed601ed7e
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M migration/dirtyrate.c
    M softmmu/dirtylimit.c

  Log Message:
  -----------
  Merge tag 'dirtylimit-dirtyrate-pull-request' of 
https://github.com/newfriday/qemu into staging

Dirtylimit and dirtyrate 20230829 patches PULL request

Correct memory leaks in dirtylimit and accuracy losses in
dirtyrate, respectively; make minor corrections to overshoot
and memory deallocation.

This is v3 with a signed tag. Please apply.

Thanks, Yong.

# -----BEGIN PGP SIGNATURE-----
# Version: GnuPG v2.0.22 (GNU/Linux)
#
# iQIcBAABAgAGBQJk7VtOAAoJEN/yI9az/suchasP/j/7DQTggrrB/2lWhB79BTrT
# L+Tgljh9zynrJeL/OjvE7VD3sxDcHQmHprGT7FkdgIdd3fHl8GHnFz8L1CMLg63E
# i/4SY3RFIvmMqMrmBNx77+D6nSfezKrkwmoln7VGjK6rC0s86PRok+Dxf4SaoP1i
# cCeFOq2O0U/im1fQQl0uETqxYAX+StVRhnpWTqpPFBBaVCmCGQx3WWXGXXFOl5PB
# JNLgDX3lxSpSIfRK9vCb61gFe8gMp+5hUDZgfUln9fmXrO6NsVgHEjvsMqm9UZO1
# tNGSh1GNmO2du6m2iCzVChB8bfe9P3g/XAubfRIkqZtWZK8lhz1mVQEg4wJ4VgX1
# uMAi8gzpMV5Rdiy9MWYZW9sCuoiZepksBuGtrFMBXXyCpP76N+uWshfj+/Mp2mt0
# 475ZiC4silwCeRDWH4UkTyNQtc7+WVRjZP0ToXuUOSyWFdyRPCQdAIDlUacxk/9p
# BSymBM2P760oa4IMCwhey5/WaFdfFFcMD4e2UwfTpafwY5uwVOTxN23k7+iCivQs
# 3RbP8ghvakgNPTO+1HcdoRW/LrjnGn1mZ5qvLj1+f7slP5NEsBDZVEylQJIHjXh4
# oE8OwB/rRexlUGRUuIgMpVeEk8/LcEMy73I+dj/zSkfQEw8KuCp6EUB5HFiciS0/
# IG5X0TdcvAdicG8qmDGx
# =NKkN
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon 28 Aug 2023 22:43:26 EDT
# gpg:                using RSA key DFF223D6B3FECB9C
# gpg: Can't check signature: No public key

* tag 'dirtylimit-dirtyrate-pull-request' of https://github.com/newfriday/qemu:
  migration/dirtyrate: Fix precision losses and g_usleep overshoot
  softmmu/dirtylimit: Convert free to g_free
  softmmu: Fix dirtylimit memory leak

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 3df11e59164cdcdd2461e4d0a8d1f8ba3c2f2802
      
https://github.com/qemu/qemu/commit/3df11e59164cdcdd2461e4d0a8d1f8ba3c2f2802
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M accel/tcg/cpu-exec-common.c
    M include/exec/cpu-common.h
    M softmmu/physmem.c
    M tcg/sparc64/tcg-target.c.inc
    M tcg/sparc64/tcg-target.h
    M tcg/tcg-op-vec.c

  Log Message:
  -----------
  Merge tag 'pull-tcg-20230829' of https://gitlab.com/rth7680/qemu into staging

softmmu: Use async_run_on_cpu in tcg_commit
tcg: Remove vecop_list check from tcg_gen_not_vec
tcg/sparc64: Disable TCG_TARGET_HAS_extr_i64_i32

# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmTuJFwdHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV8QSAf6Al5n/5paGGclZJvo
# k5KMvsSa30IOaUo8kJIpVWC0zIk3hCeHYneR2XK6dEVHL3fBCNHWoH1GGirLCdcV
# oGhaafmJM+eE9dVemakHzYy8//zJk9LRZiBdZKYXx2lPzFDg7lJQ2StsuJZ6h8rk
# aiKsrJIPaQMD/cuvEcIKKMZfGSx7UqphOKeQuqkTMRyL+sNHJS61uEwsSCdlO/Nw
# V00bgbyevKmBKd16W9RaHLIK1uAxvX0yO1duLY5Ce0fbcGyf+5rPIcndu9PsM46j
# ZQdrLj0MtxrvHMrMRr+gg4qvmSVOP8RSz+0yMg61S9+tFtSVbslLkG3s+iP151Za
# KmSLEg==
# =Xg9j
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 29 Aug 2023 13:01:16 EDT
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" 
[full]
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F

* tag 'pull-tcg-20230829' of https://gitlab.com/rth7680/qemu:
  tcg/sparc64: Disable TCG_TARGET_HAS_extr_i64_i32
  tcg: Remove vecop_list check from tcg_gen_not_vec
  softmmu: Use async_run_on_cpu in tcg_commit
  softmmu: Assert data in bounds in iotlb_to_section

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 05ba96b08668ca610ddaac2b19f9c503ab015a95
      
https://github.com/qemu/qemu/commit/05ba96b08668ca610ddaac2b19f9c503ab015a95
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M MAINTAINERS
    M block.c
    M block/io.c
    M block/mirror.c
    M block/qcow2.c
    M docs/specs/pci-ids.rst
    M hw/Kconfig
    M hw/meson.build
    A hw/ufs/Kconfig
    A hw/ufs/lu.c
    A hw/ufs/meson.build
    A hw/ufs/trace-events
    A hw/ufs/trace.h
    A hw/ufs/ufs.c
    A hw/ufs/ufs.h
    M include/block/block-common.h
    M include/block/block-io.h
    A include/block/ufs.h
    M include/hw/pci/pci.h
    M include/hw/pci/pci_ids.h
    M include/scsi/constants.h
    M meson.build
    M migration/block.c
    M tests/qemu-iotests/197
    M tests/qemu-iotests/197.out
    M tests/qtest/meson.build
    A tests/qtest/ufs-test.c

  Log Message:
  -----------
  Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into 
staging

Pull request

v2:
- Fix authorship information lost by the mailing list for Andrey Drobyshev

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmTuKQoACgkQnKSrs4Gr
# c8g5GAf+JtBfWqhkytG+x7BVp8GmLCtvK+LYiLdjld1lfpLlMzdnbiXA9iJidDHl
# AAMYVCoN9T81RDuEqkvSuJEuBDMGkKpJGK8NOHEfUPln1QtikLtEq1VUBRGpnsEy
# 8el9hA84iP5kaQtbP+qVlxo6Y9Jm8hhemHukuIOIMLHmTJKt0utXojftvHFwwM5c
# UBMJfVMo1FTdD0ywuY7e+uPPJV4/D8kXTOXkXxbQrx43ztJBT6K6N0kDDuOAlPxJ
# l+U6zxvlKlB22vXt/Q4bkP9c1K8oukKOr8FjU1PxvLSZADXbbm2xq7yDPSRw9YpN
# igSA2n9O8aZcp0xpviT0D6alTibl4w==
# =SMYB
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 29 Aug 2023 13:21:14 EDT
# gpg:                using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [ultimate]
# gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [ultimate]
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* tag 'block-pull-request' of https://gitlab.com/stefanha/qemu:
  tests/qemu-iotests/197: add testcase for CoR with subclusters
  block/io: align requests to subcluster_size
  block: add subcluster_size field to BlockDriverInfo
  block-migration: Ensure we don't crash during migration cleanup
  tests/qtest: Introduce tests for UFS
  hw/ufs: Support for UFS logical unit
  hw/ufs: Support for Query Transfer Requests
  hw/ufs: Initial commit for emulated Universal-Flash-Storage

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


Compare: https://github.com/qemu/qemu/compare/f5fe7c17ac4e...05ba96b08668



reply via email to

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