[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

[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

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

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

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

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

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 >

[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

[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

[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

[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

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,

[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

[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 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

[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

[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

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 >

[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

[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

[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 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

[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 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 +++

[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

[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 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

[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 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 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 +

[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 +++

[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

[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 36/51] bsd-user: Implement target_set_brk function in bsd-mem.c instead of os-syscall.c

2023-10-03 Thread Warner Losh
From: Stacey Son The definitions and variables names matches the corresponding ones in linux-user/syscall.c, for making later implementation of do_obreak easier Co-authored-by: Mikaël Urankar Signed-off-by: Mikaël Urankar Signed-off-by: Karim Taha Reviewed-by: Warner Losh Reviewed-by:

[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,

[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 05/51] bsd-user: add extern declarations for bsd-proc.c 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: <20230925182425.3163-6-kariem.taha...@gmail.com> --- bsd-user/qemu-bsd.h | 38 ++ 1 file changed, 38 insertions(+)

[PULL 39/51] bsd-user: Introduce bsd-mem.h to the source tree

2023-10-03 Thread Warner Losh
From: Stacey Son 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 Reviewed-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-12-kariem.taha...@gmail.com> ---

Re: [PATCH v3 08/14] Introduce machine property "audiodev"

2023-10-03 Thread Bernhard Beschow
Am 29. September 2023 08:51:01 UTC schrieb Paolo Bonzini : >From: Martin Kletzander > >Many machine types have default audio devices with no way to set the underlying >audiodev. Instead of adding an option for each and every one of them, this new >property can be used as a default during

[PULL 32/51] bsd-user: Introduce freebsd/os-misc.h to the source tree

2023-10-03 Thread Warner Losh
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 Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182709.4834-5-kariem.taha...@gmail.com> ---

[PULL 03/51] bsd-user: Implement host_to_target_siginfo.

2023-10-03 Thread Warner Losh
From: Stacey Son Used in wait6 system call Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-4-kariem.taha...@gmail.com> --- bsd-user/signal-common.h | 1 + bsd-user/signal.c| 6 ++ 2

[PULL 10/51] bsd-user: Get number of cpus.

2023-10-03 Thread Warner Losh
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-11-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.c | 24 bsd-user/bsd-proc.h | 2 ++ 2 files changed, 26 insertions(+) diff --git

[PULL 21/51] bsd-user: Implement procctl(2) along with necessary conversion functions.

2023-10-03 Thread Warner Losh
From: Stacey Son Implement t2h_procctl_cmd, h2t_reaper_status, h2t_reaper_pidinfo and h2t/t2h reaper_kill conversion functions. Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-22-kariem.taha...@gmail.com> ---

[PULL 34/51] bsd-user: Implement shm_rename(2) system call

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

[PULL 13/51] bsd-user: Implement getrusage(2).

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-14-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 13 + bsd-user/freebsd/os-syscall.c | 4 2 files

[PULL 37/51] bsd-user: Implement ipc_perm conversion between host and target.

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-10-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.c | 25 + 1 file changed, 25 insertions(+) diff --git a/bsd-user/bsd-mem.c

[PULL 07/51] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion.

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-8-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PULL 12/51] bsd-user: Implement umask(2), setlogin(2) and getlogin(2)

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-13-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 39 +++ bsd-user/freebsd/os-syscall.c | 12 +++ 2 files

[PULL 38/51] bsd-user: Implement shmid_ds conversion between host and target.

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-11-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.c | 47 ++ 1 file changed, 47 insertions(+) diff --git

[PULL 06/51] bsd-user: Implement target_to_host_resource conversion function

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-7-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.c | 40 bsd-user/bsd-proc.h | 4 bsd-user/meson.build | 6 ++

[PULL 50/51] bsd-user: Implement shmat(2) and shmdt(2)

2023-10-03 Thread Warner Losh
From: Stacey Son Use `WITH_MMAP_LOCK_GUARD` instead of mmap_lock() and mmap_unlock(), to match linux-user implementation, according to the following commits: 69fa2708a216df715ba5102a0f98468b540a464e linux-user: Use WITH_MMAP_LOCK_GUARD in target_{shmat,shmdt}

[PULL 42/51] bsd-user: Implement msync(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: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20230925182709.4834-15-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 11

[PULL 41/51] bsd-user: Implement mprotect(2)

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-14-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 7 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed,

[PULL 20/51] bsd-user: Implement freebsd_exec_common, used in implementing execve/fexecve.

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-21-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.c | 181 - bsd-user/main.c| 2 +- bsd-user/qemu.h

[PULL 18/51] bsd-user: Implement getpriority(2) and setpriority(2).

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-19-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 24 bsd-user/freebsd/os-syscall.c | 8 2 files changed, 32

[PULL 45/51] bsd-user: Implement mincore(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-18-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 23 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 27

[PULL 26/51] bsd-user: Implement fork(2) and vfork(2) system calls.

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-27-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 34 ++ bsd-user/freebsd/os-syscall.c

[PULL 01/51] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics, and fix RLIM_INFINITY

2023-10-03 Thread Warner Losh
From: Karim Taha RLIM_INFINITY on FreeBSD, OpenBSD and NetBSD has value of ~(1<<63), caculated one way or another. Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Message-Id: <20230925182425.3163-2-kariem.taha...@gmail.com> ---

[PULL 04/51] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h.

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-5-kariem.taha...@gmail.com> --- bsd-user/qemu.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/bsd-user/qemu.h

[PULL 43/51] bsd-user: Implement mlock(2), munlock(2), mlockall(2), munlockall(2), minherit(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-16-kariem.taha...@gmail.com> --- bsd-user/bsd-mem.h| 37 +++ bsd-user/freebsd/os-syscall.c | 20 +++

[PULL 29/51] bsd-user: Implement struct target_ipc_perm

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-2-kariem.taha...@gmail.com> --- bsd-user/syscall_defs.h | 17 + 1 file changed, 17 insertions(+) diff --git

[PULL 09/51] bsd-user: Implement host_to_target_waitstatus conversion.

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-10-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.c | 17 + 1 file changed, 17 insertions(+) diff --git

[PULL 00/51] Bsd user mmap patches

2023-10-03 Thread Warner Losh
The following changes since commit da1034094d375afe9e3d8ec8980550ea0f06f7e0: Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2023-10-03 07:43:44 -0400) are available in the Git repository at: g...@gitlab.com:bsdimp/qemu.git tags/bsd-user-mmap-pull-request for you

[PULL 17/51] bsd-user: Add stubs for profil(2), ktrace(2), utrace(2) and ptrace(2).

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-18-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 28 bsd-user/freebsd/os-syscall.c | 16

[PULL 11/51] bsd-user: Implement getgroups(2) and setgroups(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-12-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 44 +++ bsd-user/freebsd/os-syscall.c | 9 +++ 2 files changed,

[PULL 14/51] bsd-user: Implement getrlimit(2) and setrlimit(2)

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-15-kariem.taha...@gmail.com> --- bsd-user/bsd-proc.h | 59 +++

[PULL 22/51] bsd-user: Implement execve(2) and fexecve(2) system calls.

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-23-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 49 +++

[PULL 23/51] bsd-user: Implement wait4(2) and wait6(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-24-kariem.taha...@gmail.com> --- bsd-user/freebsd/os-proc.h| 84 +++ bsd-user/freebsd/os-syscall.c | 15 +++ 2 files changed,

Re: [PATCH v2 2/5] hw/i386/apic: Defer error check from apic_get_class to kvm_apic_realize

2023-10-03 Thread Bernhard Beschow
Am 3. Oktober 2023 08:27:25 UTC schrieb "Philippe Mathieu-Daudé" : >apic_get_class() isn't supposed to fail. kvm_apic_realize() is >DeviceRealize() handler, which can fail. Defer the error check >to the latter. > >Signed-off-by: Philippe Mathieu-Daudé >--- > hw/i386/kvm/apic.c | 5 +

Re: [PATCH v3 09/15] vfio/ap: Use vfio_[attach/detach]_device

2023-10-03 Thread Matthew Rosato
On 10/3/23 11:25 AM, Cédric Le Goater wrote: > On 10/3/23 12:14, Eric Auger wrote: >> Let the vfio-ap device use vfio_attach_device() and >> vfio_detach_device(), hence hiding the details of the used >> IOMMU backend. >> >> We take the opportunity to use g_path_get_basename() which >> is prefered,

Re: [PATCH v6 08/19] linux-user: Add gen-vdso tool

2023-10-03 Thread Richard Henderson
On 10/3/23 06:00, Philippe Mathieu-Daudé wrote: On 30/9/23 04:15, Richard Henderson wrote: This tool will be used for post-processing the linked vdso image, turning it into something that is easy to include into elfload.c. Signed-off-by: Richard Henderson ---   linux-user/gen-vdso.c 

Re: [PATCH v6 18/19] linux-user/s390x: Add vdso

2023-10-03 Thread Richard Henderson
On 10/3/23 06:07, Philippe Mathieu-Daudé wrote: +++ b/linux-user/s390x/vdso.ld @@ -0,0 +1,69 @@ +/* + * Linker script for linux x86-64 replacement vdso. + * + * Copyright 2023 Linaro, Ltd. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +VERSION { +    LINUX_2.6.29 { +   

Re: [PATCH 0/3] target/m68k: Fix a few semihosting bugs

2023-10-03 Thread Richard Henderson
On 8/2/23 09:19, Keith Packard via wrote: The first two patches mirror similar patches I recently sent for nios2. 1. Use correct parameter for EXIT (d1 instead of d0) 2. Fix use of deposit64 in LSEEK (argument order was incorrect) The second patch has also been submitted by Peter Maydell,

[PATCH v2 2/2] target/m68k: Support semihosting on non-ColdFire targets

2023-10-03 Thread Richard Henderson
According to the m68k semihosting spec: "The instruction used to trigger a semihosting request depends on the m68k processor variant. On ColdFire, "halt" is used; on other processors (which don't implement "halt"), "bkpt #0" may be used." Add support for non-CodeFire processors by matching

[PATCH v2 1/2] target/m68k: Perform the semihosting test during translate

2023-10-03 Thread Richard Henderson
Replace EXCP_HALT_INSN by EXCP_SEMIHOSTING. Perform the pre- and post-insn tests during translate, leaving only the actual semihosting operation for the exception. Signed-off-by: Richard Henderson --- target/m68k/cpu.h | 2 +- target/m68k/op_helper.c | 14 ++---

[PATCH v2 0/2] target/m68k: Support semihosting on non-ColdFire targets

2023-10-03 Thread Richard Henderson
Hi Keith, Sorry this has languished for a few months. I wasn't happy with the frobbing done by EXCP_HALT_INSN, and less keen to replicate it with EXCP_BKPT_INSN, so I've re-organized a bit. So far only compile-tested. I guess gcc testing with m68k-elf might exercise libgloss and thence

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

2023-10-03 Thread Bernhard Beschow
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 in the PCI configuration space of the ISA function.

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

2023-10-03 Thread Bernhard Beschow
The iteration in the subject should have been 1, not 3... Am 3. Oktober 2023 21:16:58 UTC schrieb Bernhard Beschow : >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

Re: [PATCH] target/m68k: Map FPU exceptions to FPSR register

2023-10-03 Thread Richard Henderson
On 8/2/23 20:52, Keith Packard via wrote: Add helpers for reading/writing the 68881 FPSR register so that changes in floating point exception state can be seen by the application. Call these helpers in pre_load/post_load hooks to synchronize exception state. Signed-off-by: Keith Packard ---

Re: [PATCH for-8.1] vfio/display: Fix missing update to set backing fields

2023-10-03 Thread Cédric Le Goater
On 10/3/23 19:03, Michael Tokarev wrote: 22.09.2023 12:38, Cédric Le Goater: On 9/13/23 21:18, Alex Williamson wrote: Hi Gerd, Some consultation would be appreciated on this thread to get this patch out of limbo.  Is there a better solution that what I've proposed? This does fix a

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

2023-10-03 Thread Bernhard Beschow
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 the FADT was common. However, since commit

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

2023-10-03 Thread Stefan Hajnoczi
On Tue, 3 Oct 2023 at 17:01, Michael S. Tsirkin wrote: > > On Wed, Sep 27, 2023 at 03:27:34PM -0400, Stefan Hajnoczi wrote: > > 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 > >

Re: [PATCH] analyze-migration: ignore RAM_SAVE_FLAG_MULTIFD_FLUSH

2023-10-03 Thread Peter Xu
On Wed, Sep 27, 2023 at 02:32:37PM +0400, Marc-André Lureau wrote: > On Tue, Sep 26, 2023 at 12:19 PM wrote: > > > > From: Marc-André Lureau > > > > Traceback (most recent call last): > > File "scripts/analyze-migration.py", line 605, in > > dump.read(dump_memory = args.memory) > > File

Re: [PULL 38/47] linux-user: Rename mmap_reserve to mmap_reserve_or_unmap

2023-10-03 Thread Richard Henderson
On 9/18/23 01:35, Andreas Schwab wrote: On Jul 15 2023, Richard Henderson wrote: @@ -776,9 +776,15 @@ static void mmap_reserve(abi_ulong start, abi_ulong len) real_len = real_last - real_start + 1; host_start = g2h_untagged(real_start); -ptr = mmap(host_start, real_len,

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

2023-10-03 Thread Richard Henderson
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 file changed, 17 insertions(+), 13

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

2023-10-03 Thread Michael S. Tsirkin
On Wed, Sep 27, 2023 at 03:27:34PM -0400, Stefan Hajnoczi wrote: > 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

Re: [PATCH v2 4/5] hw/intc/apic: Rename x86_cpu_apic_create() -> x86_cpu_apic_new()

2023-10-03 Thread Peter Xu
On Tue, Oct 03, 2023 at 10:27:27AM +0200, Philippe Mathieu-Daudé wrote: > x86_cpu_apic_create()'s Error** parameter is unused, drop it. > > While there is no convention, QDev methods are usually named > with _new() / _realize() suffixes. Rename as appropriate. > > Signed-off-by: Philippe

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

2023-10-03 Thread Peter Xu
On Tue, Oct 03, 2023 at 10:27:26AM +0200, Philippe Mathieu-Daudé wrote: > Now than apic_get_class() can not fail, remove its > Error** parameter. It can't return NULL neither, so > simplify x86_cpu_apic_create(). > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu -- Peter Xu

Re: [PATCH v2 1/5] hw/intc/apic: Use ERRP_GUARD() in apic_common_realize()

2023-10-03 Thread Peter Xu
On Tue, Oct 03, 2023 at 10:27:24AM +0200, Philippe Mathieu-Daudé wrote: > APICCommonClass::realize() is a DeviceRealize() handler which > take an Error** parameter and can fail. Do not proceed further > on failure. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu -- Peter Xu

Re: [PATCH v2 2/5] hw/i386/apic: Defer error check from apic_get_class to kvm_apic_realize

2023-10-03 Thread Peter Xu
On Tue, Oct 03, 2023 at 10:27:25AM +0200, Philippe Mathieu-Daudé wrote: > apic_get_class() isn't supposed to fail. kvm_apic_realize() is > DeviceRealize() handler, which can fail. Defer the error check > to the latter. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/i386/kvm/apic.c |

[PATCH v15 9/9] docs/system: add basic virtio-gpu documentation

2023-10-03 Thread Gurchetan Singh
This adds basic documentation for virtio-gpu. Suggested-by: Akihiko Odaki Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Emmanouil Pitsidianakis Tested-by: Akihiko Odaki Reviewed-by: Emmanouil Pitsidianakis Reviewed-by: Antonio Caggiano Reviewed-by: Akihiko Odaki ---

[PATCH v15 8/9] gfxstream + rutabaga: enable rutabaga

2023-10-03 Thread Gurchetan Singh
This change enables rutabaga to receive virtio-gpu-3d hypercalls when it is active. Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Emmanouil Pitsidianakis Tested-by: Akihiko Odaki Reviewed-by: Antonio Caggiano Reviewed-by: Emmanouil Pitsidianakis Reviewed-by: Akihiko Odaki

[PATCH v15 2/9] virtio-gpu: CONTEXT_INIT feature

2023-10-03 Thread Gurchetan Singh
From: Antonio Caggiano The feature can be enabled when a backend wants it. Signed-off-by: Antonio Caggiano Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Akihiko Odaki Tested-by: Huang Rui Acked-by: Huang Rui Reviewed-by: Marc-André Lureau Reviewed-by: Philippe

[PATCH v15 6/9] gfxstream + rutabaga: add initial support for gfxstream

2023-10-03 Thread Gurchetan Singh
This adds initial support for gfxstream and cross-domain. Both features rely on virtio-gpu blob resources and context types, which are also implemented in this patch. gfxstream has a long and illustrious history in Android graphics paravirtualization. It has been powering graphics in the

[PATCH v15 1/9] virtio: Add shared memory capability

2023-10-03 Thread Gurchetan Singh
From: "Dr. David Alan Gilbert" Define a new capability type 'VIRTIO_PCI_CAP_SHARED_MEMORY_CFG' to allow defining shared memory regions with sizes and offsets of 2^32 and more. Multiple instances of the capability are allowed and distinguished by a device-specific 'id'. Signed-off-by: Dr. David

[PATCH v15 3/9] virtio-gpu: hostmem

2023-10-03 Thread Gurchetan Singh
From: Gerd Hoffmann Use VIRTIO_GPU_SHM_ID_HOST_VISIBLE as id for virtio-gpu. Signed-off-by: Antonio Caggiano Tested-by: Alyssa Ross Tested-by: Akihiko Odaki Tested-by: Huang Rui Acked-by: Huang Rui Acked-by: Michael S. Tsirkin Reviewed-by: Akihiko Odaki --- hw/display/virtio-gpu-pci.c

[PATCH v15 7/9] gfxstream + rutabaga: meson support

2023-10-03 Thread Gurchetan Singh
- Add meson detection of rutabaga_gfx - Build virtio-gpu-rutabaga.c + associated vga/pci files when present Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Emmanouil Pitsidianakis Tested-by: Akihiko Odaki Reviewed-by: Emmanouil Pitsidianakis Reviewed-by: Antonio Caggiano

[PATCH v15 0/9] rutabaga_gfx + gfxstream

2023-10-03 Thread Gurchetan Singh
From: Gurchetan Singh Prior version: https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg07402.html Branch containing changes: https://gitlab.com/gurchetansingh/qemu/-/commits/qemu-gfxstream-v15 Changes since v14: - Thomas Huth suggested the use of the "x-" prefix for experimental

  1   2   3   4   5   >