[PULL 24/51] bsd-user: Implement setloginclass(2) and getloginclass(2) system calls.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-25-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 32 bsd-user/freebsd/os-syscall.c | 8 2 files changed, 40

[PULL 48/51] bsd-user: Implement shm_unlink(2) and shmget(2)

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-21-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 23 +++ bsd-user/freebsd/os-syscall.c | 8 ++

[PULL 33/51] bsd-user: Implement shm_open2(2) system call

2023-10-03 Thread Warner Losh
From: Karim Taha Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-6-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-misc.h| 46 +++ bsd-user/freebsd/os-syscall.c | 22 - 2

[PULL 08/51] bsd-user: Implement host_to_target_rusage and host_to_target_wrusage.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-9-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.c | 54 + 1 file changed, 54 insertions(

[PULL 16/51] bsd-user: Implement get/set[resuid/resgid/sid] and issetugid.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-17-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 76 +++ bsd-user/freebsd/os-syscall.c

[PULL 47/51] bsd-user: Implement shm_open(2)

2023-10-03 Thread Warner Losh
From: Stacey Son Co-authored-by: Kyle Evans Signed-off-by: Stacey Son Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-20-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 25 + bsd-user/

[PULL 25/51] bsd-user: Implement pdgetpid(2) and the undocumented setugid.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-26-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 23 +++ bsd-user/freebsd/os-syscall.c | 8 ++

[PULL 15/51] bsd-user: Implement several get/set system calls:

2023-10-03 Thread Warner Losh
From: Stacey Son getpid(2), getppid(2), getpgrp(2) setreuid(2), setregid(2) getuid(2), geteuid(2), getgid(2), getegid(2), getpgid(2) setuid(2), seteuid(2), setgid(2), setegid(2), setpgid(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner

[PULL 30/51] bsd-user: Implement struct target_shmid_ds

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182709.4834-3-kariem.taha...@gmail.com> --- bsd-user/syscall_defs.h | 20 1 file changed, 20 insertions(+) diff --git a/bsd-

[PULL 19/51] bsd-user: Implement get_filename_from_fd.

2023-10-03 Thread Warner Losh
From: Karim Taha Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-20-kariem.taha...@gmail.com> --- bsd-user/freebsd/meson.build | 1 + bsd-user/freebsd/os-proc.c | 82 ++

[PULL 46/51] bsd-user: Implement do_obreak function

2023-10-03 Thread Warner Losh
From: Stacey Son Match linux-user, by manually applying the following commits, in order: d28b3c90cfad1a7e211ae2bce36ecb9071086129 linux-user: Make sure initial brk(0) is page-aligned 15ad98536ad9410fb32ddf1ff09389b677643faa linux-user: Fix qemu brk() to not zero bytes on current page dfe49

[PULL 27/51] bsd-user: Implement rfork(2) system call.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-28-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 39 +++ bsd-user/freebsd/os-syscall.c

[PULL 31/51] bsd-user: Declarations for ipc_perm and shmid_ds conversion functions

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182709.4834-4-kariem.taha...@gmail.com> --- bsd-user/qemu-bsd.h | 20 1 file changed, 20 insertions(+) diff --git a/bsd-user

[PULL 28/51] bsd-user: Implement pdfork(2) system call.

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Acked-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-29-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 32 bsd-user/freebsd/os-syscall.c | 4

[PULL 40/51] bsd-user: Implement mmap(2) and munmap(2)

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-13-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 20 bsd-user/freebsd/os-syscall.c | 9 +

Re: [PATCH v2 3/5] hw/i386/apic: Simplify apic_get_class()

2023-10-03 Thread Bernhard Beschow
Am 3. Oktober 2023 08:27:26 UTC schrieb "Philippe Mathieu-Daudé" : >Now than apic_get_class() can not fail, remove its s/than/that/ s/can not/can't/ (which is stylistically consistent with "neither" below) Best regards, Bernhard >Error** parameter. It can't return NULL neither, so >simplify

[PULL 02/51] bsd-user: Define procctl(2) related structs

2023-10-03 Thread Warner Losh
From: Stacey Son Implement procctl flags and related structs: struct target_procctl_reaper_status struct target_procctl_reaper_pidinfo struct target_procctl_reaper_pids struct target_procctl_reaper_kill Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewe

[PULL 35/51] bsd-user: Add bsd-mem.c to meson.build

2023-10-03 Thread Warner Losh
From: Karim Taha Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182709.4834-8-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.c | 0 bsd-user/meson.build | 1 + 2 files changed, 1 insertion(+) create mode 100644 bsd-user/bsd-mem.c dif

[PULL 44/51] bsd-user: Implment madvise(2) to match the linux-user implementation.

2023-10-03 Thread Warner Losh
From: Karim Taha Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-17-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 53 +++ bsd-user/freebsd/os-syscall.c | 4 +++ bsd-user/syscall_defs.h | 2 ++ 3 f

Re: [PATCH v3 10/15] vfio/ccw: Use vfio_[attach/detach]_device

2023-10-03 Thread Matthew Rosato
On 10/3/23 6:14 AM, Eric Auger wrote: > Let the vfio-ccw device use vfio_attach_device() and > vfio_detach_device(), hence hiding the details of the used > IOMMU backend. > > Note that the migration reduces the following trace > "vfio: subchannel %s has already been attached" (featuring > cssid.ss

[PULL 51/51] bsd-user: Add stubs for vadvise(), sbrk() and sstk()

2023-10-03 Thread Warner Losh
The above system calls are not supported by qemu. Signed-off-by: Warner Losh Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-24-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 18 ++ bsd-user/freebsd/os-syscall.c | 12

[PULL 49/51] bsd-user: Implement shmctl(2)

2023-10-03 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-22-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 39 +++ bsd-user/freebsd/os-syscall.c | 4 2 files change

[PULL 0/2] hex queue

2023-10-03 Thread Brian Cain
The following changes since commit 36e9aab3c569d4c9ad780473596e18479838d1aa: migration: Move return path cleanup to main migration thread (2023-09-27 13:58:02 -0400) are available in the Git repository at: https://github.com/quic/qemu tags/pull-hex-20231003 for you to fetch changes up to

[PULL 2/2] target/hexagon: fix some occurrences of -Wshadow=local

2023-10-03 Thread Brian Cain
Of the changes in this commit, the changes in `HELPER(commit_hvx_stores)()` are less obvious. They are required because of some macro invocations like SCATTER_OP_WRITE_TO_MEM(). e.g.: In file included from ../target/hexagon/op_helper.c:31: ../target/hexagon/mmvec/macros.h:205:18: error:

[PULL 1/2] target/hexagon: move GETPC() calls to top level helpers

2023-10-03 Thread Brian Cain
From: Matheus Tavares Bernardino As docs/devel/loads-stores.rst states: ``GETPC()`` should be used with great care: calling it in other functions that are *not* the top level ``HELPER(foo)`` will cause unexpected behavior. Instead, the value of ``GETPC()`` should be read from the helper

Ping: Re: [PULL 4/5] hw/ufs: Support for UFS logical unit

2023-10-03 Thread Jeuk Kim
Dear Paolo This is a ping for the following. If you don't mind, could you give me some feedback? Thank you very much. Jeuk On 23. 9. 21. 17:38, Jeuk Kim wrote: Dear Paolo Hi. I've been looking into how ufs-lu can share code with scsi-hd. I have verified that ufs-lu can use scsi-hd's code, a

[PATCH v2 0/3] vhost: clean up device reset

2023-10-03 Thread Stefan Hajnoczi
v2: - Fix compilation error when vhost is not built [Michael] Stateful vhost devices may need to free resources or clear device state upon device reset. The vhost-user protocol has a VHOST_USER_RESET_DEVICE message for this and vDPA has SET_STATUS 0, but only QEMU's vhost-user-scsi device actually

[PATCH v2 2/3] vhost-backend: remove vhost_kernel_reset_device()

2023-10-03 Thread Stefan Hajnoczi
vhost_kernel_reset_device() invokes RESET_OWNER, which disassociates the owner process from the device. The device is left non-operational since SET_OWNER is only called once during startup in vhost_dev_init(). vhost_kernel_reset_device() is never called so this latent bug never appears. Get rid o

[PATCH v2 3/3] virtio: call ->vhost_reset_device() during reset

2023-10-03 Thread Stefan Hajnoczi
vhost-user-scsi has a VirtioDeviceClass->reset() function that calls ->vhost_reset_device(). The other vhost devices don't notify the vhost device upon reset. Stateful vhost devices may need to handle device reset in order to free resources or prevent stale device state from interfering after rese

[PATCH v2 1/3] vhost-user: do not send RESET_OWNER on device reset

2023-10-03 Thread Stefan Hajnoczi
The VHOST_USER_RESET_OWNER message is deprecated in the spec: This is no longer used. Used to be sent to request disabling all rings, but some back-ends interpreted it to also discard connection state (this interpretation would lead to bugs). It is recommended that back-ends either ig

Re: [PATCH v2 0/3] vhost: clean up device reset

2023-10-03 Thread Raphael Norwitz
> On Oct 3, 2023, at 9:45 PM, Stefan Hajnoczi wrote: > > v2: > - Fix compilation error when vhost is not built [Michael] > > Stateful vhost devices may need to free resources or clear device state upon > device reset. The vhost-user protocol has a VHOST_USER_RESET_DEVICE message > for > this

Re: [PATCH v5 2/2] migration: Update error description outside migration.c

2023-10-03 Thread Tejus GK
On 03/10/23 6:14 pm, Juan Quintela wrote: Tejus GK wrote: A few code paths exist in the source code,where a migration is marked as failed via MIGRATION_STATUS_FAILED, but the failure happens outside of migration.c In such cases, an error_report() call is made, however the current MigrationStat

Re: [PATCH RESEND 09/15] ppc: spapr: Implement nested PAPR hcall - H_GUEST_CREATE_VCPU

2023-10-03 Thread Harsh Prateek Bora
On 9/7/23 08:19, Nicholas Piggin wrote: On Wed Sep 6, 2023 at 2:33 PM AEST, Harsh Prateek Bora wrote: This patch implements support for hcall H_GUEST_CREATE_VCPU which is used to instantiate a new VCPU for a previously created nested guest. The L1 provide the guest-id (returned by L0 during c

Re: [PATCH v10 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-03 Thread Het Gala
On 05/09/23 6:52 pm, Fabiano Rosas wrote: Het Gala writes: Hi qemu-devel community, A gentle reminder and request for all migration maintainers - Peter, Juan, Dr. Gilbert and others too for review of the patchset series. Received reviewed-by from Daniel on migration implementation patches b

Re: [PATCH v3 03/15] vfio/common: Move IOMMU agnostic helpers to a separate file

2023-10-03 Thread Cédric Le Goater
Eric, On 10/3/23 12:14, Eric Auger wrote: From: Yi Liu Move low-level iommu agnostic helpers to a separate helpers.c file. They relate to regions, interrupts, device/region capabilities and etc. Signed-off-by: Eric Auger Signed-off-by: Yi Sun Signed-off-by: Yi Liu Signed-off-by: Zhenzhong

[PATCH] xlnx-versal-efuse: hw/nvram: Remove deprecated device reset

2023-10-03 Thread Tong Ho
This change implements the ResettableClass interface for the device. Signed-off-by: Tong Ho --- hw/nvram/xlnx-versal-efuse-ctrl.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/nvram/xlnx-versal-efuse-ctrl.c b/hw/nvram/xlnx-versal-efuse-ctrl.c index b35ba65ab5..b

[PATCH] xlnx-zynqmp-efuse: hw/nvram: Remove deprecated device reset

2023-10-03 Thread Tong Ho
This change implements the ResettableClass interface for the device. Signed-off-by: Tong Ho --- hw/nvram/xlnx-zynqmp-efuse.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/nvram/xlnx-zynqmp-efuse.c b/hw/nvram/xlnx-zynqmp-efuse.c index 228ba0bbfa..3db5f98ec1 100644

Re: [PATCH] linux-user: Propagate failure in mmap_reserve_or_unmap back to target_munmap

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 23:02, Richard Henderson wrote: Do not assert success, but return any failure received. Additionally, fix the method of earlier error return in target_munmap. Reported-by: Andreas Schwab Signed-off-by: Richard Henderson --- linux-user/mmap.c | 30 +- 1

Re: [PATCH v3] hw/i386/acpi-build: Remove build-time assertion on PIIX/ICH9 reset registers being identical

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 23:16, Bernhard Beschow wrote: Commit 6103451aeb74 ("hw/i386: Build-time assertion on pc/q35 reset register being identical.") introduced a build-time check where the addresses of the reset registers are expected to be equal. Back then the code to generate AML for the reset register in

Re: [PATCH] hw/isa/vt82c686: Respect SCI interrupt assignment

2023-10-03 Thread Philippe Mathieu-Daudé
Hi Bernhard, On 3/10/23 23:44, Bernhard Beschow wrote: According to the datasheet, SCI interrupts of the power management function aren't triggered through the PCI pins but rather directly to the integrated PIC. The routing is configurable through the ACPI interrupt select register at offset 42

Re: [PATCH 01/10] tcg: Introduce tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Begin disconnecting CONFIG_SOFTMMU from !CONFIG_USER_ONLY. Introduce a variable which can be set at startup to select one method or another for user-only. Signed-off-by: Richard Henderson --- include/tcg/tcg.h | 8 ++-- tcg/tcg-op-ldst.c | 14 +

Re: [PATCH v3] hw/i386/acpi-build: Remove build-time assertion on PIIX/ICH9 reset registers being identical

2023-10-03 Thread Ani Sinha
> On 04-Oct-2023, at 2:46 AM, Bernhard Beschow wrote: > > Commit 6103451aeb74 ("hw/i386: Build-time assertion on pc/q35 reset register > being identical.") introduced a build-time check where the addresses of the > reset registers are expected to be equal. Back then the code to generate AML >

Re: [PATCH 07/10] tcg/mips: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c.inc | 231 +++--- 1 file changed, 113 insertions(+), 118 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 04/10] tcg/aarch64: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.c.inc | 177 +-- 1 file changed, 88 insertions(+), 89 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 06/10] tcg/loongarch64: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/loongarch64/tcg-target.c.inc | 126 +++ 1 file changed, 61 insertions(+), 65 deletions(-) Trivial when reviewing with git-diff --ignore-all-space. Reviewed-by: Philippe Mathieu-D

Re: [PATCH 08/10] tcg/ppc: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 284 --- 1 file changed, 143 insertions(+), 141 deletions(-) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 90d76c2c2c..e3782

Re: [PATCH 09/10] tcg/riscv: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.c.inc | 189 +++-- 1 file changed, 97 insertions(+), 92 deletions(-) @@ -2075,10 +2080,10 @@ static void tcg_target_qemu_prologue(TCGContext *s)

Re: [PATCH 10/10] tcg/s390x: Use tcg_use_softmmu

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 161 ++--- 1 file changed, 79 insertions(+), 82 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 02/10] tcg: Provide guest_base fallback for system mode

2023-10-03 Thread Philippe Mathieu-Daudé
On 3/10/23 19:43, Richard Henderson wrote: Provide a define to allow !tcg_use_softmmu code paths to compile in system mode, but require elimination. Signed-off-by: Richard Henderson --- tcg/tcg.c | 4 1 file changed, 4 insertions(+) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v8 0/5] Support x2APIC mode with TCG accelerator

2023-10-03 Thread Michael S. Tsirkin
On Tue, Sep 26, 2023 at 11:23:53PM +0700, Bui Quang Minh wrote: > On 9/26/23 23:06, Bui Quang Minh wrote: > > > Version 8 changes, > > - Patch 2, 4: > >+ Rebase to master and resolve conflicts in these 2 patches > > The conflicts when rebasing is due to the commit 9926cf34de5fa15da > ("target

<    1   2   3   4   5