Re: [PATCH v11 1/6] target/riscv: Add sscofpmf extension support

2022-07-30 Thread Atish Kumar Patra
On Sat, Jul 30, 2022 at 9:11 PM Rahul Pathak wrote: > Hi Atish, > > I tried your riscv_pmu_v12 branch but I couldn't made it working > without below change - > without this change qemu was not exporting the sscofpmf in the cpu dt nodes > > - > diff --git a/target/riscv/cpu.c b/target

Re: [PATCH v11 1/6] target/riscv: Add sscofpmf extension support

2022-07-30 Thread Rahul Pathak
Hi Atish, I tried your riscv_pmu_v12 branch but I couldn't made it working without below change - without this change qemu was not exporting the sscofpmf in the cpu dt nodes - diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 2e0dd6ddb5..2b36830755 100644 --- a/target/riscv/

[PATCH v4] target/ppc: Fix host PVR matching for KVM

2022-07-30 Thread Nicholas Piggin
ppc_cpu_compare_class_pvr_mask() should match the best CPU class in the family, because it is used by the KVM subsystem to find the host CPU class. Since commit 03ae4133ab8 ("target-ppc: Add pvr_match() callback"), it matches any class in the family (the first one in the comparison list). Since co

Re: [RFC 0/3] Add Generic SPI GPIO model

2022-07-30 Thread Peter Delevoryas
On Sat, Jul 30, 2022 at 11:18:33PM +0200, Cédric Le Goater wrote: > On 7/29/22 19:30, Peter Delevoryas wrote: > > On Fri, Jul 29, 2022 at 03:25:55PM +0200, Cédric Le Goater wrote: > > > Hello Iris, > > > > > > On 7/29/22 01:23, Iris Chen wrote: > > > > Hey everyone, > > > > > > > > I have been wo

Re: [RFC 0/3] Add Generic SPI GPIO model

2022-07-30 Thread Cédric Le Goater
On 7/29/22 19:30, Peter Delevoryas wrote: On Fri, Jul 29, 2022 at 03:25:55PM +0200, Cédric Le Goater wrote: Hello Iris, On 7/29/22 01:23, Iris Chen wrote: Hey everyone, I have been working on a project to add support for SPI-based TPMs in QEMU. Currently, most of our vboot platforms using a S

Re: [PULL 0/2] minor loongarch cleanups

2022-07-30 Thread Richard Henderson
On 7/29/22 17:37, Richard Henderson wrote: As this is a new target this release, and these patches are so minor, I'm applying these as a bug fix. r~ Xiaojuan Yang (2): hw/loongarch: Rename file 'loongson3.XXX' to 'virt.XXX' hw/loongarch: Change macro name 'LS7A_XXX' to 'VIRT_XXX' inclu

[PATCH v3 3/4] chardev/char-socket: Update AF_UNIX for Windows

2022-07-30 Thread Bin Meng
From: Bin Meng Now that AF_UNIX has come to Windows, update the existing logic in qemu_chr_compute_filename() and qmp_chardev_open_socket() for Windows. Signed-off-by: Bin Meng Reviewed-by: Marc-André Lureau --- (no changes since v2) Changes in v2: - drop #include as it is now already inclu

[PATCH v3 4/4] tests/unit: Update test-io-channel-socket.c for Windows

2022-07-30 Thread Bin Meng
From: Bin Meng Enable the following 3 test cases for Windows when AF_UNIX is available: * test_io_channel_unix_sync * test_io_channel_unix_async * test_io_channel_unix_listen_cleanup Signed-off-by: Bin Meng --- (no changes since v2) Changes in v2: - new patch: tests/unit: Update test-i

[PATCH v3 2/4] util/qemu-sockets: Enable unix socket support on Windows

2022-07-30 Thread Bin Meng
From: Bin Meng Support for the unix socket has existed both in BSD and Linux for the longest time, but not on Windows. Since Windows 10 build 17063 [1], the native support for the unix socket has come to Windows. Starting this build, two Win32 processes can use the AF_UNIX address family over Win

[PATCH v3 1/4] util/qemu-sockets: Replace the call to close a socket with closesocket()

2022-07-30 Thread Bin Meng
From: Bin Meng close() is a *nix function. It works on any file descriptor, and sockets in *nix are an example of a file descriptor. closesocket() is a Windows-specific function, which works only specifically with sockets. Sockets on Windows do not use *nix-style file descriptors, and socket() r

[PATCH v3 0/4] Enable unix socket support on Windows

2022-07-30 Thread Bin Meng
Support for the unix socket has existed both in BSD and Linux for the longest time, but not on Windows. Since Windows 10 build 17063 [1], the native support for the unix socket has come to Windows. Starting this build, two Win32 processes can use the AF_UNIX address family over Winsock API to commu

[PATCH for-7.1 2/2] scsi-disk: ensure block size is non-zero and changes limited to bits 8-15

2022-07-30 Thread Mark Cave-Ayland
The existing code assumes that the block size can be generated from p[1] << 8 in multiple places which ignores the top and bottom 8 bits. If the block size is allowed to be set to an arbitrary value then this causes a mismatch between the value written by the guest in the block descriptor and the v

[PATCH for-7.1 1/2] scsi-disk: fix overflow when block size is not a multiple of BDRV_SECTOR_SIZE

2022-07-30 Thread Mark Cave-Ayland
In scsi_disk_emulate_write_same() the number of host sectors to transfer is calculated as (s->qdev.blocksize / BDRV_SECTOR_SIZE) which is then used to copy data in block size chunks to the iov buffer. Since the loop copying the data to the iov buffer uses a fixed increment of s->qdev.blocksize the

[PATCH for-7.1 0/2] scsi-disk: fixes for block size crashes found by fuzzer

2022-07-30 Thread Mark Cave-Ayland
These two patches fix a couple of issues which were found by the fuzzer as a consequence of allowing the guest to change the SCSI block size in commit 356c4c441e ("scsi-disk: allow MODE SELECT block descriptor to set the block size"). Signed-off-by: Mark Cave-Ayland Mark Cave-Ayland (2): scs

Re: [PATCH 2/2] linux-user: Implment host/ppc/host-signal.h

2022-07-30 Thread Daniel Henrique Barboza
commit title typo: "Implment" On 7/29/22 14:21, Richard Henderson wrote: This commit re-enables ppc32 as a linux-user host, as existance of the directory is noted by configure. s/existance/existence Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1097 Signed-off-by: Richard Henderso

Re: [PATCH 1/2] common-user/host/ppc: Implement safe-syscall.inc.S

2022-07-30 Thread Daniel Henrique Barboza
On 7/29/22 14:21, Richard Henderson wrote: Signed-off-by: Richard Henderson --- Reviewed-by: Daniel Henrique Barboza common-user/host/ppc/safe-syscall.inc.S | 107 1 file changed, 107 insertions(+) create mode 100644 common-user/host/ppc/safe-syscall.inc.S

Re: [PATCH] WHPX: Add support for device backed memory regions

2022-07-30 Thread Helge Konetzka
Am 27.07.22 um 20:00 schrieb Aidan Khoury: Due to skipping the mapping of read only device memory, Windows Hypervisor Platform would fail to emulate such memory accesses when booting OVMF EDK2 firmware. This patch adds ROM device memory region support for WHPX since the Windows Hypervisor Platfor