[PATCH] tests/tcg/s390x: Add cdsg.c

2022-11-28 Thread Ilya Leoshkevich
Add a simple test to prevent regressions. Signed-off-by: Ilya Leoshkevich --- tests/tcg/s390x/Makefile.target | 4 ++ tests/tcg/s390x/cdsg.c | 73 + 2 files changed, 77 insertions(+) create mode 100644 tests/tcg/s390x/cdsg.c diff --git a/tests/tcg/s390

Re: [PATCH for-8.0 v2 12/13] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG

2022-11-28 Thread Richard Henderson
On 11/28/22 15:40, Ilya Leoshkevich wrote: On an s390x host we fall back to cpu_exec_step_atomic(), because in the configure test: int main(void) { unsigned __int128 x = 0, y = 0; __sync_val_compare_and_swap_16(&x, y, x); return 0; } x and y are n

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-28 Thread Michael Roth
On Tue, Oct 25, 2022 at 11:13:37PM +0800, Chao Peng wrote: > From: "Kirill A. Shutemov" > > +static struct file *restrictedmem_file_create(struct file *memfd) > +{ > + struct restrictedmem_data *data; > + struct address_space *mapping; > + struct inode *inode; > + struct file *

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-28 Thread Michael Roth
On Tue, Oct 25, 2022 at 11:13:37PM +0800, Chao Peng wrote: > From: "Kirill A. Shutemov" > > Introduce 'memfd_restricted' system call with the ability to create > memory areas that are restricted from userspace access through ordinary > MMU operations (e.g. read/write/mmap). The memory content is

[PATCH for-7.2] replay: Fix declaration of replay_read_next_clock

2022-11-28 Thread Richard Henderson
Fixes the build with gcc 13: replay/replay-time.c:34:6: error: conflicting types for \ 'replay_read_next_clock' due to enum/integer mismatch; \ have 'void(ReplayClockKind)' [-Werror=enum-int-mismatch] 34 | void replay_read_next_clock(ReplayClockKind kind) | ^

Re: [PATCH v6 2/9] target/riscv: add support for Zca extension

2022-11-28 Thread weiwei
On 2022/11/29 07:06, Wilfred Mallawa wrote: On Mon, 2022-11-28 at 20:29 +0800, Weiwei Li wrote: Modify the check for C extension to Zca (C implies Zca) Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis ---  target/riscv/insn_tra

Re: [PATCH 12/26] target/s390x: Move masking of psw.addr to cpu_get_tb_cpu_state

2022-11-28 Thread Ilya Leoshkevich
On Sat, Nov 05, 2022 at 09:27:07AM +1100, Richard Henderson wrote: > On 11/4/22 00:42, Ilya Leoshkevich wrote: > > On Wed, Oct 05, 2022 at 08:44:07PM -0700, Richard Henderson wrote: > > > Masking after the fact in s390x_tr_init_disas_context > > > provides incorrect information to tb_lookup. > > >

[PATCH] tests/tcg/s390x: Add sam.S

2022-11-28 Thread Ilya Leoshkevich
Add a small test to prevent regressions. Signed-off-by: Ilya Leoshkevich --- tests/tcg/s390x/Makefile.softmmu-target | 1 + tests/tcg/s390x/sam.S | 67 + 2 files changed, 68 insertions(+) create mode 100644 tests/tcg/s390x/sam.S diff --git a/tests/tcg

Re: [PATCH v6 2/9] target/riscv: add support for Zca extension

2022-11-28 Thread Wilfred Mallawa
On Tue, 2022-11-29 at 09:38 +0800, weiwei wrote: > > On 2022/11/29 07:06, Wilfred Mallawa wrote: >   > > On Mon, 2022-11-28 at 20:29 +0800, Weiwei Li wrote: > >   > > > Modify the check for C extension to Zca (C implies Zca) > > > > > > Signed-off-by: Weiwei Li > > > Signed-off-by: Junqiang Wang

Re: [PATCH v2] acpi/tests/avocado/bits: add SPDX license identifiers for bios bits tests

2022-11-28 Thread Ani Sinha
On Fri, Nov 25, 2022 at 10:11 AM Ani Sinha wrote: > Added the SPDX license identifiers for biosbits tests. > Also added a comment on each of the test scripts to indicate that they run > from within the biosbits environment and hence are not subjected to the > regular > maintenance activities for

[PATCH v7 1/9] target/riscv: add cfg properties for Zc* extension

2022-11-28 Thread Weiwei Li
Add properties for Zca,Zcb,Zcf,Zcd,Zcmp,Zcmt extension Add check for these properties Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 43 +++ target/riscv/cpu.h

[PATCH v7 5/9] target/riscv: add support for Zcb extension

2022-11-28 Thread Weiwei Li
Add encode and trans* functions support for Zcb instructions Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn16.decode| 24 ++ target/riscv/insn_trans/trans_rvzce.c.inc | 100 +

[PATCH v7 0/9] support subsets of code size reduction extension

2022-11-28 Thread Weiwei Li
This patchset implements RISC-V Zc* extension v1.0.0.RC5.7 version instructions. Specification: https://github.com/riscv/riscv-code-size-reduction/tree/main/Zc-specification The port is available here: https://github.com/plctlab/plct-qemu/tree/plct-zce-upstream-v7 To test Zc* implementation, spe

[PATCH v7 2/9] target/riscv: add support for Zca extension

2022-11-28 Thread Weiwei Li
Modify the check for C extension to Zca (C implies Zca) Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: Wilfred Mallawa --- target/riscv/insn_trans/trans_rvi.c.inc | 4 ++-- target/riscv/translate.c

[PATCH v7 6/9] target/riscv: add support for Zcmp extension

2022-11-28 Thread Weiwei Li
Add encode, trans* functions for Zcmp instructions Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn16.decode| 18 +++ target/riscv/insn_trans/trans_rvzce.c.inc | 189 +-

[PATCH v7 8/9] target/riscv: expose properties for Zc* extension

2022-11-28 Thread Weiwei Li
Expose zca,zcb,zcf,zcd,zcmp,zcmt properties Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 3d06b57416..5f03698b3b 100644

[PATCH v7 3/9] target/riscv: add support for Zcf extension

2022-11-28 Thread Weiwei Li
Separate c_flw/c_fsw from flw/fsw to add check for Zcf extension Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn16.decode | 8 target/riscv/insn_trans/trans_rvf.c.inc | 18 +

[PATCH v7 4/9] target/riscv: add support for Zcd extension

2022-11-28 Thread Weiwei Li
Separate c_fld/c_fsd from fld/fsd to add additional check for c.fld{sp}/c.fsd{sp} which is useful for zcmp/zcmt to reuse their encodings Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn16.decode

[PATCH v7 7/9] target/riscv: add support for Zcmt extension

2022-11-28 Thread Weiwei Li
Add encode, trans* functions and helper functions support for Zcmt instrutions Add support for jvt csr Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/cpu.h| 4 ++ target/riscv/cpu_bit

[PATCH v7 9/9] disas/riscv.c: add disasm support for Zc*

2022-11-28 Thread Weiwei Li
Zcmp/Zcmt instructions will override disasm for c.fld*/c.fsd* instructions currently Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Acked-by: Alistair Francis --- disas/riscv.c | 287 +- 1 file changed, 286 insertions(+), 1 deletion(-) di

Re: [PATCH] vhost: configure all host notifiers in a single MR transaction

2022-11-28 Thread Jason Wang
On Mon, Nov 28, 2022 at 5:08 PM Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > > 在 2022/11/21 12:01, Jason Wang 写道: > > On Fri, Nov 18, 2022 at 10:49 PM Longpeng(Mike) > > wrote: > >> > >> From: Longpeng > >> > >> This allows the vhost device to batch the setup of all

[PATCH for 7.2? V2] vhost: fix vq dirty bitmap syncing when vIOMMU is enabled

2022-11-28 Thread Jason Wang
When vIOMMU is enabled, the vq->used_phys is actually the IOVA not GPA. So we need to translate it to GPA before the syncing otherwise we may hit the following crash since IOVA could be out of the scope of the GPA log size. This could be noted when using virtio-IOMMU with vhost using 1G memory. Fi

[PATCH] migration/dirtyrate: Show sample pages only in page-sampling mode

2022-11-28 Thread Zhenzhong Duan
The value of "Sample Pages" is confusing in mode other than page-sampling. See below: (qemu) calc_dirty_rate -b 10 520 (qemu) info dirty_rate Status: measuring Start Time: 11646834 (ms) Sample Pages: 520 (per GB) Period: 10 (sec) Mode: dirty-bitmap Dirty rate: (not ready) (qemu) info dirty_rate S

Re: [PATCH v2] acpi/tests/avocado/bits: add SPDX license identifiers for bios bits tests

2022-11-28 Thread Michael S. Tsirkin
On Tue, Nov 29, 2022 at 08:02:15AM +0530, Ani Sinha wrote: > > > On Fri, Nov 25, 2022 at 10:11 AM Ani Sinha wrote: > > Added the SPDX license identifiers for biosbits tests. > Also added a comment on each of the test scripts to indicate that they run > from within the biosbits envir

Re: [PATCH v3 7/7] hw/virtio: generalise CHR_EVENT_CLOSED handling

2022-11-28 Thread Raphael Norwitz
> On Nov 28, 2022, at 11:41 AM, Alex Bennée wrote: > > ..and use for both virtio-user-blk and virtio-user-gpio. This avoids > the circular close by deferring shutdown due to disconnection until a > later point. virtio-user-blk already had this mechanism in place so The mechanism was originally c

Re: [PATCH v3 7/7] hw/virtio: generalise CHR_EVENT_CLOSED handling

2022-11-28 Thread Michael S. Tsirkin
On Tue, Nov 29, 2022 at 05:18:58AM +, Raphael Norwitz wrote: > > On Nov 28, 2022, at 11:41 AM, Alex Bennée wrote: > > > > ..and use for both virtio-user-blk and virtio-user-gpio. This avoids > > the circular close by deferring shutdown due to disconnection until a > > later point. virtio-user

Re: [PATCH v2] acpi/tests/avocado/bits: add SPDX license identifiers for bios bits tests

2022-11-28 Thread Ani Sinha
On Tue, Nov 29, 2022 at 10:37 AM Michael S. Tsirkin wrote: > > On Tue, Nov 29, 2022 at 08:02:15AM +0530, Ani Sinha wrote: > > > > > > On Fri, Nov 25, 2022 at 10:11 AM Ani Sinha wrote: > > > > Added the SPDX license identifiers for biosbits tests. > > Also added a comment on each of the te

Re: [PATCH] MAINTAINERS: Add 9p test client to section "virtio-9p"

2022-11-28 Thread Greg Kurz
On Mon, 28 Nov 2022 18:12:04 +0100 Christian Schoenebeck wrote: > The 9p test cases use a dedicated, lite-weight 9p client implementation > (using virtio transport) under tests/qtest/libqos/ to communicate with > QEMU's 9p server. > > It's already there for a long time. Let's officially assign i

Re: [PATCH for-7.2] replay: Fix declaration of replay_read_next_clock

2022-11-28 Thread Pavel Dovgalyuk
Reviewed-by: Pavel Dovgalyuk On 29.11.2022 04:05, Richard Henderson wrote: Fixes the build with gcc 13: replay/replay-time.c:34:6: error: conflicting types for \ 'replay_read_next_clock' due to enum/integer mismatch; \ have 'void(ReplayClockKind)' [-Werror=enum-int-mismatch] 34 | vo

Re: [PATCH] MAINTAINERS: Add 9p test client to section "virtio-9p"

2022-11-28 Thread Wilfred Mallawa
On Mon, 2022-11-28 at 18:12 +0100, Christian Schoenebeck wrote: > The 9p test cases use a dedicated, lite-weight 9p client > implementation > (using virtio transport) under tests/qtest/libqos/ to communicate > with > QEMU's 9p server. > > It's already there for a long time. Let's officially assign

Re: [PATCH for-7.2] replay: Fix declaration of replay_read_next_clock

2022-11-28 Thread Wilfred Mallawa
On Mon, 2022-11-28 at 17:05 -0800, Richard Henderson wrote: > Fixes the build with gcc 13: > > replay/replay-time.c:34:6: error: conflicting types for  \ >   'replay_read_next_clock' due to enum/integer mismatch; \ >   have 'void(ReplayClockKind)' [-Werror=enum-int-mismatch] >    34 | void replay_

Re: [PATCH v14 4/5] hw/riscv: virt: Add PMU DT node to the device tree

2022-11-28 Thread Andrew Jones
On Mon, Nov 28, 2022 at 09:10:03PM +, conor.doo...@microchip.com wrote: > On 28/11/2022 20:41, Atish Kumar Patra wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > On Mon, Nov 28, 2022 at 12:38 PM wrote: > >> > >> On 28/11/2022 2

Re: [RFC PATCH-for-7.2 v3 3/5] hw/display/qxl: Pass requested buffer size to qxl_phys2virt()

2022-11-28 Thread Gerd Hoffmann
> @@ -228,7 +230,8 @@ static void qxl_unpack_chunks(void *dest, size_t size, > PCIQXLDevice *qxl, > if (offset == size) { > return; > } > -chunk = qxl_phys2virt(qxl, chunk->next_chunk, group_id); > +chunk = qxl_phys2virt(qxl, chunk->next_chunk, group_

Re: [PATCH v14 4/5] hw/riscv: virt: Add PMU DT node to the device tree

2022-11-28 Thread Conor.Dooley
On 29/11/2022 07:08, Andrew Jones wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, Nov 28, 2022 at 09:10:03PM +, conor.doo...@microchip.com wrote: >> On 28/11/2022 20:41, Atish Kumar Patra wrote: >>> EXTERNAL EMAIL: Do not click

Re: [PATCH 1/2] qga-win: add logging to Windows event log

2022-11-28 Thread Marc-André Lureau
Hi On Tue, Nov 29, 2022 at 12:59 AM Andrey Drobyshev via wrote: > > This commit allows QGA to write to Windows event log using Win32 API's > ReportEvent() [1], much like syslog() under *nix guests. > > In order to generate log message definitions we use a very basic message > text file [2], so th

Re: [PATCH 2/2] qga: map GLib log levels to system levels

2022-11-28 Thread Marc-André Lureau
On Tue, Nov 29, 2022 at 12:59 AM Andrey Drobyshev via wrote: > > This patch translates GLib-specific log levels to system ones, so that > they may be used by both *nix syslog() (as a "priority" argument) and > Windows ReportEvent() (as a "wType" argument). > > Currently the only codepath to write

Re: [PATCH for-7.2] replay: Fix declaration of replay_read_next_clock

2022-11-28 Thread Philippe Mathieu-Daudé
On 29/11/22 02:05, Richard Henderson wrote: Fixes the build with gcc 13: replay/replay-time.c:34:6: error: conflicting types for \ 'replay_read_next_clock' due to enum/integer mismatch; \ have 'void(ReplayClockKind)' [-Werror=enum-int-mismatch] 34 | void replay_read_next_clock(ReplayC

<    1   2   3