[PATCH] typo: Fix description of '--disable-debug-info'

2024-09-22 Thread Aditya Gupta
The existing description of '--disable-debug-info' seems to have a typo. Later scripts/meson-buildoptions.sh does the following based on option: +--enable-debug-info) printf "%s" -Ddebug=true ;; +--disable-debug-info) printf "%s" -Ddebug=false ;; With above logic, the description should

[PATCH v2] Add -build-info and -build-info-json CLI arguments

2024-09-22 Thread Manos Pitsidianakis
-*s -\n", + BUILD_INFO_HEADER_WIDTH, + "-"); +for (size_t i = 0; i < BUILD_INFO_SIZE ; i++) { +printf(" %-*s %s\n", + BUILD_INFO_HEADER_WIDTH, + BUILD_INFO[i].key, + BUILD_INFO[i].value); +} +} +} + enum { #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \ @@ -3019,6 +3054,12 @@ void qemu_init(int argc, char **argv) version(); exit(0); break; +case QEMU_OPTION_build_info: +/* fallthrough */ +case QEMU_OPTION_build_info_json: +build_info(argv[0], popt->index != QEMU_OPTION_build_info); +exit(0); +break; case QEMU_OPTION_m: opts = qemu_opts_parse_noisily(qemu_find_opts("memory"), optarg, true); if (opts == NULL) { --- base-commit: 01dc65a3bc262ab1bec8fe89775e9bbfa627becb change-id: 20240922-feature-build-info-cli-c9e08e34c34b -- γαῖα πυρί μιχθήτω

[PATCH] Add -build-info and -build-info-json CLI arguments

2024-09-22 Thread Manos Pitsidianakis
+ BUILD_INFO_HEADER_WIDTH, + "-"); +for (size_t i = 0; i < BUILD_INFO_SIZE ; i++) { +printf(" %-*s %s\n", + BUILD_INFO_HEADER_WIDTH, + BUILD_INFO[i].key, + BUILD_INFO[i].value); +} +} +} + enum { #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \ @@ -3019,6 +3054,12 @@ void qemu_init(int argc, char **argv) version(); exit(0); break; +case QEMU_OPTION_build_info: +/* fallthrough */ +case QEMU_OPTION_build_info_json: +build_info(argv[0], popt->index != QEMU_OPTION_build_info); +exit(0); +break; case QEMU_OPTION_m: opts = qemu_opts_parse_noisily(qemu_find_opts("memory"), optarg, true); if (opts == NULL) { --- base-commit: 01dc65a3bc262ab1bec8fe89775e9bbfa627becb change-id: 20240922-feature-build-info-cli-c9e08e34c34b -- γαῖα πυρί μιχθήτω

Re: [PATCH v4 03/12] tcg/riscv: Add vset{i}vli and ld/st vec ops

2024-09-22 Thread LIU Zhiwei
On 2024/9/22 12:46, Richard Henderson wrote: On 9/11/24 15:26, LIU Zhiwei wrote: @@ -2129,6 +2389,7 @@ static void tcg_target_qemu_prologue(TCGContext *s)     static void tcg_out_tb_start(TCGContext *s)   { +    s->riscv_cur_type = TCG_TYPE_COUNT;   /* nothing to do */   } I recently re

[PATCH 1/2] hw/arm/boot: Use hooks if PSCI is disabled

2024-09-22 Thread Sebastian Huber
In arm_load_kernel(), use the secondary boot hooks provided by the platform if PSCI is disabled also while booting a non-Linux kernel. While booting Linux with PSCI disabled, provide default hooks if needed. In do_cpu_reset(), use the secondary CPU reset hook provided by the platform for resetting

[PATCH 2/2] hw/arm/xilinx_zynq: Add CPU1 reset

2024-09-22 Thread Sebastian Huber
After a system reset (SRST), the CPU1 should execute a wfe instruction and then load the start address from 0xfff0: https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Starting-Code-on-CPU-1 Signed-off-by: Sebastian Huber --- hw/arm/xilinx_zynq.c | 25 + 1 file chan

[PATCH 0/2] Fix secondary CPU reset for Xilinx Zynq 7000

2024-09-22 Thread Sebastian Huber
I recently added the support for CPU1 to the xilinx-zynq-a9 machine (hw/arm/xilinx_zynq.c). However, the reset behaviour doesn't match exactly with the hardware. After a system reset (SRST), the CPU1 should execute a wfe instruction and then load the start address from 0xfff0: https://docs.amd

回复: [PATCH] migration/multifd: receive channel socket needs to be set to non-blocking

2024-09-22 Thread Yuchen
> -邮件原件- > 发件人: Peter Xu > 发送时间: 2024年9月20日 23:53 > 收件人: yuchen (CCSPL) > 抄送: faro...@suse.de; qemu-devel@nongnu.org > 主题: Re: [PATCH] migration/multifd: receive channel socket needs to be set to > non-blocking > > On Fri, Sep 20, 2024 at 10:05:42AM +, Yuchen wrote: > > When the mi

RE: [PATCH 0/6] refactor RDMA live migration based on rsocket API

2024-09-22 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Michael Galaxy [mailto:mgal...@akamai.com] > Sent: Monday, September 23, 2024 3:29 AM > To: Michael S. Tsirkin ; Peter Xu > Cc: Gonglei (Arei) ; qemu-devel@nongnu.org; > yu.zh...@ionos.com; elmar.ger...@ionos.com; zhengchuan > ; berra...@redhat.com; arm...

Re: [PATCH for-9.1 6/9] block/nbd: Use URI parsing code from glib

2024-09-22 Thread Richard W.M. Jones
On Thu, Mar 28, 2024 at 02:13:42PM +, Richard W.M. Jones wrote: > On Thu, Mar 28, 2024 at 03:06:03PM +0100, Thomas Huth wrote: > > Since version 2.66, glib has useful URI parsing functions, too. > > Use those instead of the QEMU-internal ones to be finally able > > to get rid of the latter. The

Re: [PATCH 0/3] Fix WinXP ISO boot using the dc390/am53C974 SCSI device

2024-09-22 Thread Mark Cave-Ayland
On 22/09/2024 15:31, Ricardo Ribalda wrote: Mark Cave-Ayland reported that after landing the pre-computed _PRT, the above mentioned testcase failed to pass. It seems that it is due to WinXP not handling properly a variable package. Let's replace it. Unfortunately, the ASL diff is not the best

Re: [PATCH 0/6] refactor RDMA live migration based on rsocket API

2024-09-22 Thread Michael Galaxy
Hi All, I have met with the team from IONOS about their testing on actual IB hardware here at KVM Forum today and the requirements are starting to make more sense to me. I didn't say much in our previous thread because I misunderstood the requirements, so let me try to explain and see if we'r

[PATCH v1 0/2] Drop ignore_memory_transaction_failures for xilink_zynq

2024-09-22 Thread Chao Liu
The ignore_memory_transaction_failures is used for compatibility with legacy board models. I attempted to remove this property from the xilink_zynq board and replace it with unimplemented devices to handle devices that are not implemented on the board. Chao Liu (2): xilink_zynq: Add various m

[PATCH v1 1/2] xilink_zynq: Add various missing unimplemented devices

2024-09-22 Thread Chao Liu
Add PMU, CAN, GPIO, I2C, and other as unimplemented devices. Remove a ignore_memory_transaction_failures concurrently. This allows operating systems such as Linux to run emulations such as xilinx_zynq-7000 Signed-off-by: Chao Liu --- hw/arm/xilinx_zynq.c | 44 +

[PATCH v1 2/2] xilink-zynq-devcfg: Fix up for memory address range size not set correctly

2024-09-22 Thread Chao Liu
Signed-off-by: Chao Liu --- hw/dma/xlnx-zynq-devcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dma/xlnx-zynq-devcfg.c b/hw/dma/xlnx-zynq-devcfg.c index b8544d0731..7170353a62 100644 --- a/hw/dma/xlnx-zynq-devcfg.c +++ b/hw/dma/xlnx-zynq-devcfg.c @@ -372,7 +372,7 @@ s

[PATCH 3/3] tests/acpi: pc: update golden masters for DSDT

2024-09-22 Thread Ricardo Ribalda
Signed-off-by: Ricardo Ribalda --- tests/data/acpi/x86/pc/DSDT | Bin 8527 -> 8526 bytes tests/data/acpi/x86/pc/DSDT.acpierst| Bin 8438 -> 8437 bytes tests/data/acpi/x86/pc/DSDT.acpihmat| Bin 9852 -> 9851 bytes tests/data/acpi/x86/pc/DSDT.bridge | Bin 15

[PATCH 2/3] hw/i386/acpi-build: return a non-var package from _PRT()

2024-09-22 Thread Ricardo Ribalda
Windows XP seems to have issues when _PRT() returns a variable package. We know in advance the size, so we can return a fixed package instead. https://lore.kernel.org/qemu-devel/c82d9331-a8ce-4bb0-b51f-2ee789e27...@ilande.co.uk/T/#m541190c942676bccf7a7f7fbcb450d94a4e2da53 Reported-by: Mark Cave-Ay

[PATCH 1/3] tests/acpi: pc: allow DSDT acpi table changes

2024-09-22 Thread Ricardo Ribalda
Signed-off-by: Ricardo Ribalda --- tests/qtest/bios-tables-test-allowed-diff.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index dfb8523c8b..f81f4e2469 100644 --- a/tests/qtest/bios

[PATCH 0/3] Fix WinXP ISO boot using the dc390/am53C974 SCSI device

2024-09-22 Thread Ricardo Ribalda
Mark Cave-Ayland reported that after landing the pre-computed _PRT, the above mentioned testcase failed to pass. It seems that it is due to WinXP not handling properly a variable package. Let's replace it. Unfortunately, the ASL diff is not the best (or I cannot produce something better): 12c12

Re: [PATCH v5 0/3] hw/i386/acpi: Pre-compute the _PRT table

2024-09-22 Thread Mark Cave-Ayland
On 22/09/2024 14:11, Ricardo Ribalda wrote: Hi Mark On Sun, 22 Sept 2024 at 13:57, Mark Cave-Ayland wrote: On 21/08/2024 15:45, Igor Mammedov wrote: On Wed, 14 Aug 2024 11:56:08 + Ricardo Ribalda wrote: Today for x86 the _PRT() table is computed in runtime. Under some configurations

Re: [PATCH v5 0/3] hw/i386/acpi: Pre-compute the _PRT table

2024-09-22 Thread Ricardo Ribalda
Hi Mark On Sun, 22 Sept 2024 at 13:57, Mark Cave-Ayland wrote: > > On 21/08/2024 15:45, Igor Mammedov wrote: > > > On Wed, 14 Aug 2024 11:56:08 + > > Ricardo Ribalda wrote: > > > >> Today for x86 the _PRT() table is computed in runtime. > >> Under some configurations, computing the _PRT ta

Re: [PATCH 6/7] tests/functional: Convert the mac ppc Avocado tests

2024-09-22 Thread Mark Cave-Ayland
On 19/09/2024 19:57, Thomas Huth wrote: The g3beige and mac99 tests use the same asset, so put them together in a new test_ppc_mac.py file. Signed-off-by: Thomas Huth --- MAINTAINERS | 2 ++ tests/avocado/boot_linux_console.py | 30 --- tests/fu

Re: [PATCH 4/7] tests/functional: Convert the SPARCStation Avocado test

2024-09-22 Thread Mark Cave-Ayland
On 19/09/2024 19:57, Thomas Huth wrote: Use the new launch_kernel function to convert this test in a simple way. Signed-off-by: Thomas Huth --- MAINTAINERS | 1 + tests/avocado/boot_linux_console.py | 8 tests/functional/meson.build | 4

[PULL 28/31] linux-user,riscv: move to syscalltbl file

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Since kernel v6.11 riscv has moved from syscall_nr.h file to syscall.tbl (3db80c999deb ("riscv: convert to generic syscall table")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall.tbl instead of syscall_nr.h. New syscall.tbl is imported fr

[PULL 26/31] linux-user,aarch64: move to syscalltbl file

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Since kernel v6.11 aarch64 has moved from syscall_nr.h file to syscall_64.tbl (See e632bca07c8e ("arm64: generate 64-bit syscall.tbl")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall_64.tbl instead of syscall_nr.h. New syscall_64.tbl is i

[PULL 04/31] tcg: Export vec_gen_6

2024-09-22 Thread Richard Henderson
Add declaration to tcg-internal.h, making it available for use from tcg backend vector expanders. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tcg-internal.h | 2 ++ tcg/tcg-op-vec.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tcg/t

[PULL 02/31] tcg: Propagate new TCGOp to add_as_label_use

2024-09-22 Thread Richard Henderson
The use of tcg_last_op does not interact well with TCGContext.emit_before_op, resulting in the label being linked to something other than the branch op. In this case it is easier to simply collect the emitted branch op and pass it directly to add_as_label_use. Reported-by: Elisha Hollander Revie

[PULL 22/31] target/ppc: Fix lxvx/stxvx facility check

2024-09-22 Thread Richard Henderson
From: Fabiano Rosas The XT check for the lxvx/stxvx instructions is currently inverted. This was introduced during the move to decodetree. >From the ISA: Chapter 7. Vector-Scalar Extension Facility Load VSX Vector Indexed X-form lxvx XT,RA,RB if TX=0 & MSR.VSX=0 then VSX_Unavailable()

[PULL 29/31] linux-user,hexagon: move to syscalltbl file

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Since kernel v6.11 hexagon has moved from syscall_nr.h file to syscall.tbl (36d69c29759e ("hexagon: use new system call table")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall.tbl instead of syscall_nr.h. New syscall.tbl is imported from

[PULL 21/31] tcg/s390x: Optimize cmpsel with constant 0/-1 arguments

2024-09-22 Thread Richard Henderson
These can be simplified to and/or/andc/orc, avoiding the load of the constantinto a register. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h | 3 ++- tcg/s390x/tcg-target-con-str.h | 1 + tcg/s390x/tcg-target.c.inc | 40 ++ 3 files chang

[PULL 06/31] tcg/i386: Do not expand cmp_vec early

2024-09-22 Thread Richard Henderson
Move most of expansion to opcode generation, leaving the conversion of unsigned to signed to be done in the early phase. Small inefficiencies, but not incorrect results, are introduced until cmpsel_vec is converted in the next patch. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc

[PULL 12/31] tcg/optimize: Optimize bitsel_vec

2024-09-22 Thread Richard Henderson
Fold matching true/false operands. Fold true/false operands with 0/-1 to simpler logicals. Signed-off-by: Richard Henderson --- tcg/optimize.c | 58 ++ 1 file changed, 58 insertions(+) diff --git a/tcg/optimize.c b/tcg/optimize.c index f11f576fd4.

[PULL 10/31] tcg/optimize: Fold movcond with true and false values identical

2024-09-22 Thread Richard Henderson
Fold "x = cond ? y : y" to "x = y". Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/optimize.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tcg/optimize.c b/tcg/optimize.c index ba16ec27e2..cf311790e0 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -

[PULL 31/31] linux-user: update syscall.tbl to Linux v6.11

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Updated running scripts/update-syscalltbl.sh Signed-off-by: Laurent Vivier Message-ID: <20240920151034.859533-7-laur...@vivier.eu> Signed-off-by: Richard Henderson --- linux-user/arm/syscall.tbl | 1 + linux-user/i386/syscall_32.tbl | 7 --- linux-user/x86_64/

[PULL 20/31] tcg/s390x: Implement cmpsel_vec

2024-09-22 Thread Richard Henderson
Do not allow cmpsel_vec to be expanded early, so that we can make the correct decision wrt the sense of the comparison. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h | 1 + tcg/s390x/tcg-target.h | 2 +- tcg/s390x/tcg-target.c.inc | 40 ++--

[PULL 13/31] tcg/i386: Optimize cmpsel with constant 0 operand 3.

2024-09-22 Thread Richard Henderson
These can be simplified to and/andc, avoiding the load of the zero into a register. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target-con-set.h | 2 +- tcg/i386/tcg-target-con-str.h | 1 + tcg/i386/tcg-target.c.inc | 32 +--- 3 files changed, 27 insertion

[PULL 03/31] tcg: Fix iteration step in 32-bit gvec operation

2024-09-22 Thread Richard Henderson
From: TANG Tiancheng The loop in the 32-bit case of the vector compare operation was incorrectly incrementing by 8 bytes per iteration instead of 4 bytes. This caused the function to process only half of the intended elements. Cc: qemu-sta...@nongnu.org Fixes: 9622c697d1 (tcg: Add gvec compare w

[PULL 08/31] tcg/ppc: Do not expand cmp_vec early

2024-09-22 Thread Richard Henderson
Move expansion to opcode generation. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 169 +-- 1 file changed, 90 insertions(+), 79 deletions(-) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 3553a47ba9..497e130581 10064

[PULL 23/31] linux-user: update syscall_nr.h to Linux v6.10

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Automatically generated using scripts/gensyscalls.sh Signed-off-by: Laurent Vivier Reviewed-by: Brian Cain Message-ID: <20240918074256.720617-2-laur...@vivier.eu> Signed-off-by: Richard Henderson --- linux-user/aarch64/syscall_nr.h | 19 ++- linux-use

[PULL 15/31] tcg/i386: Add predicate parameters to tcg_out_evex_opc

2024-09-22 Thread Richard Henderson
Extend tcg_out_evex_opc to handle the predicate and zero-merging parameters of the evex prefix. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tcg/i386/tcg-target.c.inc

[PULL 18/31] tcg/ppc: Implement cmpsel_vec

2024-09-22 Thread Richard Henderson
Do not allow cmpsel_vec to be expanded early, so that we can make the correct decision wrt the sense of the comparison. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target-con-set.h | 1 + tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.c.inc | 60 ++

[PULL 25/31] linux-user: update syscall.tbl to Linux v6.10

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Updated running scripts/update-syscalltbl.sh Signed-off-by: Laurent Vivier Message-ID: <20240918074256.720617-4-laur...@vivier.eu> Signed-off-by: Richard Henderson --- linux-user/alpha/syscall.tbl | 28 +--- linux-user/arm/syscall.tbl| 24 +--

[PULL 16/31] tcg/i386: Implement cmpsel_vec with avx512 insns

2024-09-22 Thread Richard Henderson
The avx512 vpblendm* instructions exactly implement cmpsel, using a predicate input. Of course this matches nicely with the avx512 predicate comparison instructions. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 44 ++- 1 file changed, 43 i

[PULL 05/31] tcg/i386: Split out tcg_out_vex_modrm_type

2024-09-22 Thread Richard Henderson
Helper function to handle setting of VEXL based on the type of the operation. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 38 +++--- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/tcg/i386/

[PULL 17/31] tcg/i386: Implement vector TST{EQ,NE} for avx512

2024-09-22 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 2 +- tcg/i386/tcg-target.c.inc | 31 --- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 342be30c

[PULL 30/31] linux-user,loongarch: move to syscalltbl file

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Since kernel v6.11 loongarch has moved from syscall_nr.h file to syscall.tbl (26a3b85bac08 ("loongarch: convert to generic syscall table")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall.tbl instead of syscall_nr.h. New syscall.tbl is imp

[PULL 07/31] tcg/i386: Do not expand cmpsel_vec early

2024-09-22 Thread Richard Henderson
Expand during output instead of during opcode generation. Remove x86_vpblendvb_vec opcode, this this removes the only user. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target-con-set.h | 1 + tcg/i386/tcg-target.h | 2 +- tcg/i386/tcg-target.opc.h | 1 - tcg/i386/tcg-target.

[PULL 11/31] tcg/optimize: Optimize cmp_vec and cmpsel_vec

2024-09-22 Thread Richard Henderson
Place immediate values second in the comparison. Place destination matches first in the true/false values. All of this mirrors what we do for integer setcond and movcond. Signed-off-by: Richard Henderson --- tcg/optimize.c | 36 1 file changed, 36 insertions(

[PULL 27/31] linux-user,openrisc: move to syscalltbl file

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Since kernel v6.11 openrisc has moved from syscall_nr.h file to syscall.tbl (See 77122bf9e3df ("openrisc: convert to generic syscall table")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall.tbl instead of syscall_nr.h. New syscall.tbl is i

[PULL 00/31] tcg + linux-user patch queue

2024-09-22 Thread Richard Henderson
u.git tags/pull-tcg-20240922 for you to fetch changes up to c4d80fa63e823dc8dbf094b29e39b6978a3073b6: linux-user: update syscall.tbl to Linux v6.11 (2024-09-22 09:30:18 +0200) target/ppc: Fix lxvx/stxvx facility check linux-us

[PULL 09/31] tcg/s390x: Do not expand cmp_vec early

2024-09-22 Thread Richard Henderson
Move expansion to opcode generation. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 139 + 1 file changed, 65 insertions(+), 74 deletions(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index ad587325fc..23935fd0f0 1

[PULL 19/31] tcg/ppc: Optimize cmpsel with constant 0/-1 arguments

2024-09-22 Thread Richard Henderson
These can be simplified to and/or/andc/orc, avoiding the load of the constantinto a register. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target-con-set.h | 2 +- tcg/ppc/tcg-target.c.inc | 43 +++- 2 files changed, 33 insertions(+), 12 deletions(-) dif

[PULL 24/31] linux-user, mips: update syscall-args-o32.c.inc to Linux v6.10

2024-09-22 Thread Richard Henderson
From: Laurent Vivier Updated running scripts/update-mips-syscall-args.sh Signed-off-by: Laurent Vivier Message-ID: <20240918074256.720617-3-laur...@vivier.eu> Signed-off-by: Richard Henderson --- linux-user/mips/syscall-args-o32.c.inc | 20 1 file changed, 20 insertions(+

[PULL 01/31] tcg: Return TCGOp from tcg_gen_op[1-6]

2024-09-22 Thread Richard Henderson
TCGOp to be propagated further in the next patch. Reviewed-by: Alex Bennée Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- tcg/tcg-internal.h | 12 ++-- tcg/tcg-op.c | 23 +++ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/

[PULL 14/31] tcg/i386: Implement cmp_vec with avx512 insns

2024-09-22 Thread Richard Henderson
The sse/avx instruction set only has EQ and GT as direct comparisons. Other signed comparisons can be generated from swapping and inversion. However unsigned comparisons are not available and must be transformed to signed comparisons by biasing the inputs. The avx512 instruction set has a complete

Re: [PATCH v5 0/3] hw/i386/acpi: Pre-compute the _PRT table

2024-09-22 Thread Mark Cave-Ayland
On 21/08/2024 15:45, Igor Mammedov wrote: On Wed, 14 Aug 2024 11:56:08 + Ricardo Ribalda wrote: Today for x86 the _PRT() table is computed in runtime. Under some configurations, computing the _PRT table can take more than 30 seconds and the ACPI timeout is violated. This patchset modifie

Re: [PATCH 0/6] linux-user: move all remaining archs to syscalltbl

2024-09-22 Thread Richard Henderson
On 9/20/24 17:10, Laurent Vivier wrote: linux v6.11 has moved all the remaining archs to syscalltbl, update QEMU accordingly. Remove scripts/gensyscalls.sh that is now useless. Update headers to v6.11 Based-on: <20240918074256.720617-1-laur...@vivier.eu> Laurent Vivier (6): linux-user,aarc

Re: [PATCH 0/3] linux-user: Update syscall numbers

2024-09-22 Thread Richard Henderson
On 9/18/24 09:42, Laurent Vivier wrote: Run scripts/gensyscalls.sh, scripts/update-mips-syscall-args.sh and scripts/update-syscalltbl.sh to update syscall numbers to linux v6.10 Laurent Vivier (3): linux-user: update syscall_nr.h to Linux v6.10 linux-user, mips: update syscall-args-o32.c.i

[PATCH v7 2/5] device/virtio-nsm: Support for Nitro Secure Module device

2024-09-22 Thread Dorjoy Chowdhury
Nitro Secure Module (NSM)[1] device is used in AWS Nitro Enclaves[2] for stripped down TPM functionality like cryptographic attestation. The requests to and responses from NSM device are CBOR[3] encoded. This commit adds support for NSM device in QEMU. Although related to AWS Nitro Enclaves, the v

Re: [PATCH v6 0/8] AWS Nitro Enclave emulation support

2024-09-22 Thread Dorjoy Chowdhury
Thanks for reviewing. I have now submitted a v7 : https://lore.kernel.org/qemu-devel/20240922094441.23802-1-dorjoychy...@gmail.com/T/#t Regards, Dorjoy

[PATCH v7 0/5] AWS Nitro Enclave emulation support

2024-09-22 Thread Dorjoy Chowdhury
This is v7 submission for AWS Nitro Enclave emulation in QEMU. From the QEMU side the implementation for nitro enclaves is complete. v6 is at: https://lore.kernel.org/qemu-devel/20240905195735.16911-1-dorjoychy...@gmail.com/T/#t Changes in v7: - rebased with master as the first 3 crypto patch

[PATCH v7 4/5] machine/nitro-enclave: New machine type for AWS Nitro Enclaves

2024-09-22 Thread Dorjoy Chowdhury
AWS nitro enclaves[1] is an Amazon EC2[2] feature that allows creating isolated execution environments, called enclaves, from Amazon EC2 instances which are used for processing highly sensitive data. Enclaves have no persistent storage and no external networking. The enclave VMs are based on the Fi

[PATCH v7 5/5] docs/nitro-enclave: Documentation for nitro-enclave machine type

2024-09-22 Thread Dorjoy Chowdhury
Signed-off-by: Dorjoy Chowdhury --- MAINTAINERS| 1 + docs/system/i386/nitro-enclave.rst | 78 ++ 2 files changed, 79 insertions(+) create mode 100644 docs/system/i386/nitro-enclave.rst diff --git a/MAINTAINERS b/MAINTAINERS index 37411dfffa.

[PATCH v7 3/5] hw/core: Add Enclave Image Format (EIF) related helpers

2024-09-22 Thread Dorjoy Chowdhury
An EIF (Enclave Image Format)[1] file is used to boot an AWS nitro enclave[2] virtual machine. The EIF file contains the necessary kernel, cmdline, ramdisk(s) sections to boot. Some helper functions have been introduced for extracting the necessary sections from an EIF file and then writing them t

[PATCH v7 1/5] tests/lcitool: Update libvirt-ci and add libcbor dependency

2024-09-22 Thread Dorjoy Chowdhury
libcbor dependecy is necessary for adding virtio-nsm and nitro-enclave machine support in the following commits. libvirt-ci has already been updated with the dependency upstream and this commit updates libvirt-ci submodule in QEMU to latest upstream. Also the libcbor dependency has been added to te

Re: [PATCH v6 1/1] linux-user: add openat2 support in linux-user

2024-09-22 Thread Richard Henderson
On 9/20/24 11:22, Michael Vogt wrote: +static int do_openat2(CPUArchState *cpu_env, abi_long dirfd, + abi_ptr guest_pathname, abi_ptr guest_open_how, + abi_long guest_size) abi_ulong guest_size, as the "real" type is the unsigned size_t. +