[PATCH v2 32/35 1/2] target/alpha: Pass immediate value to gen_bcond_internal()

2023-11-08 Thread Philippe Mathieu-Daudé
From: Richard Henderson Simplify gen_bcond() by passing an immediate value. Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-33-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 1/2] Signed-off-by: Philippe Mathieu-Daudé --- target/alpha/translate.c | 21 +++

[PATCH v2 32/35 2/2] target/alpha: Use TCG_COND_TST{EQ, NE} for BLB{C, S}

2023-11-08 Thread Philippe Mathieu-Daudé
From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-33-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 2/2] Signed-off-by: Philippe Mathieu-Daudé --- target/alpha/translate.c | 20 ++-- 1 file changed, 10 insertions(+),

Re: [PATCH v2 33/35] target/alpha: Use TCG_COND_TST{EQ,NE} for CMOVLB{C,S}

2023-11-08 Thread Philippe Mathieu-Daudé
On 28/10/23 21:45, Richard Henderson wrote: Signed-off-by: Richard Henderson --- target/alpha/translate.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 32/35 1/2] target/alpha: Pass immediate value to gen_bcond_internal()

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 21:52, Philippe Mathieu-Daudé wrote: From: Richard Henderson Simplify gen_bcond() by passing an immediate value. Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-33-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 1/2] Signed-off-by: Philippe Mat

Re: [PATCH v2 32/35] target/alpha: Use TCG_COND_TST{EQ,NE} for BLB{C,S}

2023-11-08 Thread Philippe Mathieu-Daudé
On 28/10/23 21:45, Richard Henderson wrote: Signed-off-by: Richard Henderson --- target/alpha/translate.c | 39 --- 1 file changed, 16 insertions(+), 23 deletions(-) Preferably split: Reviewed-by: Philippe Mathieu-Daudé

Re: [RFC PATCH] tests/docker: merge debian-native with debian-amd64

2023-11-08 Thread Anders Roxell
On Wed, 8 Nov 2023 at 17:56, Alex Bennée wrote: > > debian-native isn't really needed and suffers from the problem of > tracking a distros dependencies rather than the projects. With a > little surgery we can make the debian-amd64 container architecture > neutral and allow people to use it to buil

Re: [PATCH v2 20/35] tcg/sparc64: Hoist read of tcg_cond_to_rcond

2023-11-08 Thread Richard Henderson
On 11/6/23 13:02, Philippe Mathieu-Daudé wrote: On 28/10/23 21:45, Richard Henderson wrote: Use a non-zero value here (an illegal encoding) as a better condition than is_unsigned_cond for when MOVR/BPR is usable. Signed-off-by: Richard Henderson ---   tcg/sparc64/tcg-target.c.inc | 25

Re: [PATCH v2 34/35] target/alpha: Use TCG_COND_TSTNE for gen_fold_mzero

2023-11-08 Thread Philippe Mathieu-Daudé
On 28/10/23 21:45, Richard Henderson wrote: Signed-off-by: Richard Henderson --- target/alpha/translate.c | 49 +++- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index c7daf46de7..c68c2b

Re: [PATCH for-8.2] target/sparc: Fix RETURN

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 21:47, Richard Henderson wrote: Perform window restore before pc update. Required in order to recognize any window underflow trap with the current pc. Fixes: 86b82fe021f4 ("target/sparc: Move JMPL, RETT, RETURN to decodetree") Reported-by: Mark Cave-Ayland Signed-off-by: Richard Hend

Re: [PATCH] block-backend: per-device throttling of BLOCK_IO_ERROR reports

2023-11-08 Thread Eric Blake
On Tue, Nov 07, 2023 at 11:58:42AM +0300, Vladimir Sementsov-Ogievskiy wrote: > From: Leonid Kaplan > > BLOCK_IO_ERROR events comes from guest, so we must throttle them. > We still want per-device throttling, so let's use device id as a key. > > Signed-off-by: Leonid Kaplan > Signed-off-by: Vla

Re: [PATCH v2 27/35] tcg/ppc: Support TCG_COND_TST{EQ,NE}

2023-11-08 Thread Richard Henderson
On 11/8/23 12:40, Philippe Mathieu-Daudé wrote: Hi Richard, On 28/10/23 21:45, Richard Henderson wrote: Signed-off-by: Richard Henderson ---   tcg/ppc/tcg-target.c.inc | 105 ---   1 file changed, 98 insertions(+), 7 deletions(-) -static inline void tcg_o

Re: [PATCH v4 2/2] migration: prevent migration when a poisoned page is unknown from the VM

2023-11-08 Thread Peter Xu
On Mon, Nov 06, 2023 at 10:38:14PM +0100, William Roche wrote: > Note also that large pages are taken into account too for our live > migration, but the poisoning of a qemu large page requires more work > especially for VM using standard 4k pages on top of these qemu large > pages -- and this is a

Re: [PATCH v5 0/2] Qemu crashes on VM migration after an handled memory error

2023-11-08 Thread Peter Xu
On Mon, Nov 06, 2023 at 10:03:17PM +, “William Roche wrote: > From: William Roche > > > Note about ARM specificities: > This code has a small part impacting more specificaly ARM machines, > that's the reason why I added qemu-...@nongnu.org -- see description. > > > A Qemu VM can survive a

[PATCH v3] hw/ide/ahci: fix legacy software reset

2023-11-08 Thread Niklas Cassel
From: Niklas Cassel Legacy software contains a standard mechanism for generating a reset to a Serial ATA device - setting the SRST (software reset) bit in the Device Control register. Serial ATA has a more robust mechanism called COMRESET, also referred to as port reset. A port reset is the pref

Re: [PATCH RFC 3/7] migration: multifd_send_kick_main()

2023-11-08 Thread Fabiano Rosas
Peter Xu writes: > When a multifd sender thread hit errors, it always needs to kick the main > thread by kicking all the semaphores that it can be waiting upon. > > Provide a helper for it and deduplicate the code. > > Signed-off-by: Peter Xu > --- > migration/multifd.c | 21 +++

Re: [NOTFORMERGE PATCH 1/2] configure: Use distrib meson

2023-11-08 Thread Paolo Bonzini
Il mer 8 nov 2023, 20:52 BALATON Zoltan ha scritto: > AFAIU the problem is that macOS has system python in > /Library/Frameworks/python.framework (or something like that) but homebrew > does not use that but installs its own python somewhere in /opt and meson > from homebrew uses that python but

Re: [PATCH 2/2] .gitlab-ci.d/cirrus: Add manual testing of macOS 14 (Sonoma)

2023-11-08 Thread Paolo Bonzini
Il mer 8 nov 2023, 19:33 Philippe Mathieu-Daudé ha scritto: > Upgrade libvirt-ci so it covers macOS 14. Add a manual entry > (QEMU_JOB_OPTIONAL: 1) to test on Sonoma release. Refresh the > lci-tool generated files. > > Signed-off-by: Philippe Mathieu-Daudé > --- > Docs are disabled due to: > >

Re: [PATCH 1/1] hw/intc/riscv_aclint:Change the way to get CPUState from hard-base to pu_index

2023-11-08 Thread Dongxue Zhang
Reviewed-by: Dongxue Zhang On Thu, Nov 9, 2023 at 10:22 AM Leo Hou wrote: > > From: Leo Hou > > cpu_by_arch_id() uses hartid-base as the index to obtain the corresponding > CPUState structure variable. > qemu_get_cpu() uses cpu_index as the index to obtain the corresponding > CPUState struct

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Jason Gunthorpe >Sent: Wednesday, November 8, 2023 10:19 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On Wed, Nov 08, 2023 at 01:25:34PM +, Duan, Zhenzhong wrote: > >> >I was expecting that hwpt manipulation would be don

Re: [PATCH v5] tests/avocado: add test to exercize processor address space memory bound checks

2023-11-08 Thread Ani Sinha
> On 08-Nov-2023, at 8:33 PM, Philippe Mathieu-Daudé wrote: > > Hi Ani, > > On 3/11/23 12:06, Ani Sinha wrote: >> QEMU has validations to make sure that a VM is not started with more memory >> (static and hotpluggable memory) than what the guest processor can address >> directly with its addr

Re: [PULL v2 00/23] Final test, gdbstub, plugin and gitdm updates for 8.2

2023-11-08 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PULL v2 00/25] Block layer patches

2023-11-08 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

[PATCH v6] tests/avocado: add test to exercize processor address space memory bound checks

2023-11-08 Thread Ani Sinha
QEMU has validations to make sure that a VM is not started with more memory (static and hotpluggable memory) than what the guest processor can address directly with its addressing bits. This change adds a test to make sure QEMU fails to start with a specific error message when an attempt is made to

Re: [PATCH RFC v1 0/1] clipboard sharing implementation for SDL

2023-11-08 Thread Markus Armbruster
Kamay Xutax writes: > Hello, > > This is my first try contributing to QEMU, Welcome! > and I would like some advices before merging my patch into master branch. First piece of advice: it's a busy mailing list, and to get people's attention, cc: them. For a patch, you want to cc: maintainers o

[PULL 0/1] Tracing patches

2023-11-08 Thread Stefan Hajnoczi
The following changes since commit a3c3aaa846ad61b801e7196482dcf4afb8ba34e4: Merge tag 'pull-ppc-20231107' of https://gitlab.com/danielhb/qemu into staging (2023-11-08 20:35:00 +0800) are available in the Git repository at: https://gitlab.com/stefanha/qemu.git tags/tracing-pull-request for

[PULL 1/1] tracetool: avoid invalid escape in Python string

2023-11-08 Thread Stefan Hajnoczi
From: Marc-André Lureau This is an error in Python 3.12; fix it by using a raw string literal. Cc: Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Stefan Hajnoczi Message-ID: <20231108105649.60453-1-marcandre.lur...@redhat.com> --- scripts/tracetool/__in

Re: [PATCH v3] hw/ide/ahci: fix legacy software reset

2023-11-08 Thread Marcin Juszkiewicz
W dniu 8.11.2023 o 23:26, Niklas Cassel pisze: From: Niklas Cassel This fixes an issue for FreeBSD where the device would fail to reset. The problem was not noticed in Linux, because Linux uses a COMRESET instead of a legacy software reset by default. Fixes: e2a5d9b3d9c3 ("hw/ide/ahci: simpl

Re: [PATCH] tracetool: avoid invalid escape in Python string

2023-11-08 Thread Stefan Hajnoczi
On Wed, Nov 08, 2023 at 02:56:49PM +0400, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > This is an error in Python 3.12; fix it by using a raw string literal. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Marc-André Lureau > --- > scripts/tracetool/__init__.py | 2 +- > 1

[PATCH v3 2/6] target/i386: mark CR4.FRED not reserved

2023-11-08 Thread Xin Li
The CR4.FRED bit, i.e., CR4[32], is no longer a reserved bit when FRED is exposed to guests, otherwise it is still a reserved bit. Tested-by: Shan Kang Signed-off-by: Xin Li --- target/i386/cpu.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.h

[PATCH v3 1/6] target/i386: add support for FRED in CPUID enumeration

2023-11-08 Thread Xin Li
FRED, i.e., the Intel flexible return and event delivery architecture, defines simple new transitions that change privilege level (ring transitions). The new transitions defined by the FRED architecture are FRED event delivery and, for returning from events, two FRED return instructions. FRED even

[PATCH v3 0/6] target/i386: add support for FRED

2023-11-08 Thread Xin Li
This patch set adds support for the Intel flexible return and event delivery (FRED) architecture to allow Qemu to run KVM guests with FRED enabled. The FRED architecture defines simple new transitions that change privilege level (ring transitions). The FRED architecture was designed with the follo

[PATCH v3 4/6] target/i386: add support for VMX FRED controls

2023-11-08 Thread Xin Li
Add VMX FRED controls used to enable save/load of FRED MSRs. Tested-by: Shan Kang Signed-off-by: Xin Li --- scripts/kvm/vmxcap | 3 +++ target/i386/cpu.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 7da1e00ca8..44898d73c2 1

[PATCH v3 3/6] target/i386: add the secondary VM exit controls MSR

2023-11-08 Thread Xin Li
Add the secondary VM exit controls MSR to prepare for KVM FRED enabling. Tested-by: Shan Kang Signed-off-by: Xin Li --- scripts/kvm/vmxcap | 9 + target/i386/cpu.c | 2 +- target/i386/cpu.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/kvm/vmxcap b/scri

[PATCH v3 6/6] target/i386: Add get/set/migrate support for FRED MSRs

2023-11-08 Thread Xin Li
FRED CPU states are managed in 9 new FRED MSRs, in addtion to a few existing CPU registers and MSRs, e.g., CR4.FRED and MSR_IA32_PL0_SSP. Save/restore/migrate FRED MSRs if FRED is exposed to the guest. Tested-by: Shan Kang Signed-off-by: Xin Li --- target/i386/cpu.h | 22 ++

[PATCH v3 5/6] target/i386: enumerate VMX nested-exception support

2023-11-08 Thread Xin Li
Allow VMX nested-exception support to be exposed in KVM guests, thus nested KVM guests can enumerate it. Tested-by: Shan Kang Signed-off-by: Xin Li --- scripts/kvm/vmxcap | 1 + target/i386/cpu.c | 1 + target/i386/cpu.h | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/kvm/vmxcap

<    1   2