[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

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

[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

[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

[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

[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

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

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:

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

[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

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

[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

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

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

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

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

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

[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

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

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

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:

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

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

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

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

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é

[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(+),

[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 for-8.2] target/sparc: Fix RETURN

2023-11-08 Thread Richard Henderson
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 Henderson --- target/sparc/translate.c | 2 +-

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

2023-11-08 Thread Philippe Mathieu-Daudé
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_out_rld(TCGContext *s, int op, TCGReg ra, TCGReg

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

2023-11-08 Thread BALATON Zoltan
On Wed, 8 Nov 2023, Peter Maydell wrote: On Wed, 8 Nov 2023 at 18:33, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- configure | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/configure b/configure index f1456f6123..93735b7661 100755 ---

Re: [PATCH v9 5/5] amd_iommu: report x2APIC support to the operating system

2023-11-08 Thread Michael S. Tsirkin
On Wed, Nov 08, 2023 at 09:22:18PM +0700, Bui Quang Minh wrote: > On 11/7/23 07:39, Michael S. Tsirkin wrote: > > On Tue, Oct 24, 2023 at 10:21:05PM +0700, Bui Quang Minh wrote: > > > This commit adds XTSup configuration to let user choose to whether enable > > > this feature or not. When XTSup is

Invitation to comment on Virtual I/O Device (VIRTIO) Version 1.3 - ends December 8th

2023-11-08 Thread Paul Knight
OASIS members and other interested parties, OASIS and the OASIS Virtual I/O Device (VIRTIO) TC are pleased to announce that Virtual I/O Device (VIRTIO) Version 1.3 is now available for public review and comment. Specification Overview: This document describes the specifications of the 'virtio'

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

2023-11-08 Thread Peter Maydell
On Wed, 8 Nov 2023 at 18:33, Philippe Mathieu-Daudé wrote: > > Signed-off-by: Philippe Mathieu-Daudé > --- > configure | 9 + > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/configure b/configure > index f1456f6123..93735b7661 100755 > --- a/configure > +++ b/configure

Re: [PATCH v1 9/9] target/loongarch: Add loongarch kvm into meson build

2023-11-08 Thread Richard Henderson
On 11/7/23 17:41, xianglai li wrote: From: Tianrui Zhao Add kvm.c and kvm-stub.c into meson.build to compile it when kvm is configed. Meanwhile in meson.build, we set the kvm_targets to loongarch64-softmmu when the cpu is loongarch. Signed-off-by: Tianrui Zhao Signed-off-by: xianglai li ---

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

2023-11-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > On 8/11/23 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

Re: [SeaBIOS] [PATCH v5] limit physical address space size

2023-11-08 Thread Kevin O'Connor
On Tue, Nov 07, 2023 at 02:03:09PM +0100, Gerd Hoffmann wrote: > For better compatibility with old linux kernels, > see source code comment. > > Related (same problem in ovmf): > https://github.com/tianocore/edk2/commit/c1e853769046 Thanks. I'll defer to your judgement on this. It does seem a

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

2023-11-08 Thread Philippe Mathieu-Daudé
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: Collecting sphinx Downloading sphinx-7.2.6-py3-none-any.whl.metadata

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

2023-11-08 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- configure | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/configure b/configure index f1456f6123..93735b7661 100755 --- a/configure +++ b/configure @@ -955,15 +955,8 @@ if $python -c 'import sys; sys.exit(sys.version_info >=

[RFC PATCH 0/2] buildsys: Use host meson on macOS Sonoma (14)

2023-11-08 Thread Philippe Mathieu-Daudé
macOS 14 "Sonoma" was released end of September 2023, developers who upgraded they host can not build QEMU anymore due to some issue with meson, described in https://gitlab.com/qemu-project/qemu/-/issues/1939 (mkvenv ignore the host meson and forces to use the old meson 0.63.3, which doesn't work

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

2023-11-08 Thread Philippe Mathieu-Daudé
On 28/10/23 21:45, Richard Henderson wrote: Merge tcg_out_testi into tcg_out_cmp and adjust the two uses. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 83 ++- 1 file changed, 47 insertions(+), 36 deletions(-) #if

Re: [PATCH v2 11/35 2/2] tcg/arm: Support TCG_COND_TST{EQ,NE}

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 15:52, Philippe Mathieu-Daudé wrote: From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-12-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 2/2] Signed-off-by: Philippe Mathieu-Daudé --- tcg/arm/tcg-target.c.inc | 29

Re: [PATCH v6 1/4] qom: add default value

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 16:38, Maksim Davydov wrote: qmp_qom_list_properties can print default values if they are available as qmp_device_list_properties does, because both of them use the ObjectPropertyInfo structure with default_value field. This can be useful when working with "not device" types (e.g.

Re: [PATCH] host/include/generic/host/atomic128: Fix compilation problem with Clang 17

2023-11-08 Thread Richard Henderson
On 11/8/23 00:59, Thomas Huth wrote: When compiling QEMU with Clang 17 on a s390x, the compilation fails: In file included from ../accel/tcg/cputlb.c:32: In file included from /root/qemu/include/exec/helper-proto-common.h:10: In file included from /root/qemu/include/qemu/atomic128.h:62:

Re: [PATCH v6 3/4] python: add binary

2023-11-08 Thread Philippe Mathieu-Daudé
Hi Maksim, On 8/11/23 16:38, Maksim Davydov wrote: Add a supportive property to access the path to the qemu binary Signed-off-by: Maksim Davydov --- python/qemu/machine/machine.py | 5 + 1 file changed, 5 insertions(+) diff --git a/python/qemu/machine/machine.py

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

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 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 build a native QEMU.

Re: [PATCH] MAINTAINERS: Fix a couple s390 paths

2023-11-08 Thread Halil Pasic
On Fri, 20 Oct 2023 16:15:09 +0200 Eric Farman wrote: > : Fri, 20 Oct 2023 16:15:09 +0200 > X-Mailer: git-send-email 2.39.2 > > These are simple typos, since the directories don't exist but the > files themselves do in hw/s390x/ > > Fixes: 56e3483402 ("MAINTAINERS: split out s390x sections") >

Re: [PATCH] .gitlab-ci.d/cirrus: Upgrade macOS to 13 (Ventura)

2023-11-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > macOS 14 "Sonoma" was released on September 2023 [1]. > > According to QEMU's support policy, we stop supporting the > previous major release two years after the the new major > release has been published. Replace the macOS 12 (Monterey) > testing by macOS 13

[PULL v2 00/25] Block layer patches

2023-11-08 Thread Kevin Wolf
The following changes since commit 462ad017ed76889d46696a3581e1b52343f9b683: Merge tag 'pixman-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging (2023-11-07 19:00:03 +0800) are available in the Git repository at: https://repo.or.cz/qemu/kevin.git tags/for-upstream for

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

2023-11-08 Thread Alex Bennée
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 build a native QEMU. Rename it so it follows the same

Re: [PATCH] .gitlab-ci.d/cirrus: Upgrade macOS to 13 (Ventura)

2023-11-08 Thread Daniel P . Berrangé
On Wed, Nov 08, 2023 at 05:20:22PM +0100, Philippe Mathieu-Daudé wrote: > macOS 14 "Sonoma" was released on September 2023 [1]. > > According to QEMU's support policy, we stop supporting the > previous major release two years after the the new major > release has been published. Replace the macOS

[PATCH] risu: Add test summary

2023-11-08 Thread Sebastian Mitterle
Currently, a successful test run finishes silently with exit code 0. The last message on the console is "starting image" which can leave the user wondering if they executed the commands correctly. Now add a summary of the number of executed instructions in case of success. Don't add that message

[PATCH] .gitlab-ci.d/cirrus: Upgrade macOS to 13 (Ventura)

2023-11-08 Thread Philippe Mathieu-Daudé
macOS 14 "Sonoma" was released on September 2023 [1]. According to QEMU's support policy, we stop supporting the previous major release two years after the the new major release has been published. Replace the macOS 12 (Monterey) testing by macOS 13 (Ventura, released on October 2022, [2]).

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

2023-11-08 Thread Kamay Xutax
Hello, This is my first try contributing to QEMU, and I would like some advices before merging my patch into master branch. Current implementation works with qemu-vdagent character device. I decided to ignore QemuClipboardPeer's request function pointer for my current implementation because I

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

2023-11-08 Thread Alex Bennée
Stefan Hajnoczi writes: > On Tue, 7 Nov 2023 at 22:25, Alex Bennée wrote: >> >> The following changes since commit 462ad017ed76889d46696a3581e1b52343f9b683: >> >> Merge tag 'pixman-pull-request' of >> https://gitlab.com/marcandre.lureau/qemu into staging (2023-11-07 19:00:03 >> +0800) >> >>

[PATCH RFC v1 1/1] ui/sdl2: clipboard sharing implementation for SDL

2023-11-08 Thread Kamay Xutax
Signed-off-by: Kamay Xutax --- include/ui/sdl2.h | 5 ++ meson.build | 1 + ui/meson.build | 1 + ui/sdl2-clipboard.c | 147 ui/sdl2.c | 8 +++ 5 files changed, 162 insertions(+) create mode 100644 ui/sdl2-clipboard.c

[PATCH v6 4/4] scripts: add script to compare compatible properties

2023-11-08 Thread Maksim Davydov
This script runs QEMU to obtain compat_props of machines and default values of different types of drivers to produce comparison table. This table can be used to compare machine types to choose the most suitable machine or compare binaries to be sure that migration to the newer version will save

[PATCH v6 2/4] qmp: add dump machine type compatible properties

2023-11-08 Thread Maksim Davydov
To control that creating new machine type doesn't affect the previous types (their compat_props) and to check complex compat_props inheritance we need qmp command to print machine type compatible properties. This patch adds the ability to get list of all the compat_props of the corresponding

[PATCH v6 0/4] compare machine type compat_props

2023-11-08 Thread Maksim Davydov
This script can be used to choose the best machine type in the appropriate cases. Also we have to check compat_props of the old MT after changes to be sure that they haven't broken old the MT. For example, pc_compat_3_1 of pc-q35-3.1 has Icelake-Client which was removed. v6 -> v5: * add ability

[PATCH v6 3/4] python: add binary

2023-11-08 Thread Maksim Davydov
Add a supportive property to access the path to the qemu binary Signed-off-by: Maksim Davydov --- python/qemu/machine/machine.py | 5 + 1 file changed, 5 insertions(+) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index 31cb9d617d..78436403b2 100644 ---

[PATCH v6 1/4] qom: add default value

2023-11-08 Thread Maksim Davydov
qmp_qom_list_properties can print default values if they are available as qmp_device_list_properties does, because both of them use the ObjectPropertyInfo structure with default_value field. This can be useful when working with "not device" types (e.g. memory-backend). Signed-off-by: Maksim

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

2023-11-08 Thread Alex Bennée
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/stsquad/qemu.git

Re: QEMU Virtio GPU features status & roadmap?

2023-11-08 Thread Alex Bennée
Hans de Ruiter writes: (Cc: Adding others with interest in VirtIO GPUs to the thread) > Hi, > > I'm working on Virtio GPU drivers for AmigaOS, and would like to know > what features are currently stable enough to use. Looking at the > master QEMU branch, both Virgl and blob resources are

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

2023-11-08 Thread Philippe Mathieu-Daudé
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 addressing bits. This change adds a test to make sure QEMU fails to start with a

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

2023-11-08 Thread Alex Bennée
Stefan Hajnoczi writes: > On Tue, 7 Nov 2023 at 22:25, Alex Bennée wrote: >> >> The following changes since commit 462ad017ed76889d46696a3581e1b52343f9b683: >> >> Merge tag 'pixman-pull-request' of >> https://gitlab.com/marcandre.lureau/qemu into staging (2023-11-07 19:00:03 >> +0800) >> >>

[PATCH v2 11/35 2/2] tcg/arm: Support TCG_COND_TST{EQ,NE}

2023-11-08 Thread Philippe Mathieu-Daudé
From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-12-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 2/2] Signed-off-by: Philippe Mathieu-Daudé --- tcg/arm/tcg-target.c.inc | 29 - 1 file changed, 28

[PATCH v2 11/35 1/2] tcg/arm: Factor tcg_out_cmp() out

2023-11-08 Thread Philippe Mathieu-Daudé
From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-12-richard.hender...@linaro.org> [PMD: Split from bigger patch, part 1/2] Signed-off-by: Philippe Mathieu-Daudé --- tcg/arm/tcg-target.c.inc | 32 +--- 1 file changed, 17

Re: [PATCH v3 05/20] mcdstub: tcp packet processing added

2023-11-08 Thread Philippe Mathieu-Daudé
Hi Nicolas, On 7/11/23 14:03, Nicolas Eder wrote: --- include/mcdstub/mcdstub.h | 144 mcdstub/mcdstub.c | 277 ++ 2 files changed, 421 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index

Re: [PATCH v3 00/20] first version of mcdstub

2023-11-08 Thread Philippe Mathieu-Daudé
Hi Nicolas, On 7/11/23 14:03, Nicolas Eder wrote: SUMMARY === This patch-set introduces the first version of the mcdstub. 30 files changed, 3749 insertions(+), 38 deletions(-) create mode 100644 debug/debug-common.c create mode 100644 debug/debug-gdb.c create mode 100644

Re: [PATCH v9 5/5] amd_iommu: report x2APIC support to the operating system

2023-11-08 Thread Bui Quang Minh
On 11/7/23 07:39, Michael S. Tsirkin wrote: On Tue, Oct 24, 2023 at 10:21:05PM +0700, Bui Quang Minh wrote: This commit adds XTSup configuration to let user choose to whether enable this feature or not. When XTSup is enabled, additional bytes in IRTE with enabled guest virtual VAPIC are used to

Re: [PULL 0/5] Misc fixes 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

Re: [PULL 00/75] Misc HW/UI patches for 2023-11-07

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 0/9] ppc queue

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 00/11] s390x and MAINTAINERS updates

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: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-08 Thread Jason Gunthorpe
On Wed, Nov 08, 2023 at 01:25:34PM +, Duan, Zhenzhong wrote: > >I was expecting that hwpt manipulation would be done exclusively > >inside the device-specific vIOMMU userspace driver. Generic code paths > >that don't have that knowledge should use the IOAS for everything > > Yes, this way we

Re: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object

2023-11-08 Thread Cédric Le Goater
On 11/8/23 11:30, Markus Armbruster wrote: Cédric Le Goater writes: Hello Markus, On 11/8/23 06:50, Markus Armbruster wrote: Cédric Le Goater writes: On 11/2/23 08:12, Zhenzhong Duan wrote: From: Eric Auger Introduce an iommufd object which allows the interaction with the host

Re: QEMU Virtio GPU features status & roadmap?

2023-11-08 Thread Antonio Caggiano
Hi Marc-André, On 08/11/2023 12:07, Marc-André Lureau wrote: Hi On Wed, Nov 8, 2023 at 1:04 PM Antonio Caggiano wrote: Hi Hans, +cc Gert and Dmitry On 17/10/2023 02:48, Hans de Ruiter wrote: Hi, I'm working on Virtio GPU drivers for AmigaOS, and would like to know what features are

[PATCH] ui/console: fix default VC when there are no display

2023-11-08 Thread marcandre . lureau
From: Marc-André Lureau When display is "none", we may still have remote displays (I think it would be simpler if VNC/Spice were regular display btw). Return the default VC then, and set them up to fix a regression when using remote display and it used the TTY instead. Fixes: commit 1bec1cc0d

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 8:48 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On Wed, Nov 08, 2023 at 07:16:52AM +, Duan, Zhenzhong wrote: > >> >> +ret = iommufd_backend_alloc_hwpt(iommufd,

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

2023-11-08 Thread Philippe Mathieu-Daudé
On 8/11/23 11:56, 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 file changed, 1 insertion(+), 1

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

2023-11-08 Thread Kevin Wolf
Am 08.11.2023 um 00:57 hat Niklas Cassel geschrieben: > On Tue, Nov 07, 2023 at 07:14:07PM +0100, Kevin Wolf wrote: > > Am 05.10.2023 um 12:04 hat Niklas Cassel geschrieben: > > > From: Niklas Cassel > > > > > > Legacy software contains a standard mechanism for generating a reset to a > > >

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

2023-11-08 Thread Jason Gunthorpe
On Wed, Nov 08, 2023 at 07:16:52AM +, Duan, Zhenzhong wrote: > >> +ret = iommufd_backend_alloc_hwpt(iommufd, vbasedev->devid, > >> + container->ioas_id, _id); > >> + > >> +if (ret) { > >> +error_setg_errno(errp, errno, "error alloc shadow

[PATCH 1/1] Changed the way aclint gets CPUState from hartid-base to cpu_index

2023-11-08 Thread Leo Hou
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 structure variable. In heterogeneous CPU or multi-socket scenarios, multiple aclint needs to be

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

2023-11-08 Thread Stefan Hajnoczi
On Tue, 7 Nov 2023 at 22:25, Alex Bennée wrote: > > The following changes since commit 462ad017ed76889d46696a3581e1b52343f9b683: > > Merge tag 'pixman-pull-request' of https://gitlab.com/marcandre.lureau/qemu > into staging (2023-11-07 19:00:03 +0800) > > are available in the Git repository

Re: [PATCH 14/22] plugins: make test/example plugins work on windows

2023-11-08 Thread Paolo Bonzini
On Tue, Nov 7, 2023 at 1:43 PM Greg Manning wrote: > Windows will look for __pfnDliFailureHook2 in the module doing the delay > loading, which in this case is the plugin DLL. Fair enough, this is what was not clear from the Microsoft docs. Paolo

Re: virtio...@redhat.com bouncing

2023-11-08 Thread Mauro Matteo Cascella
Hi, On Wed, Nov 8, 2023 at 12:40 PM Stefan Hajnoczi wrote: > > On Wed, 8 Nov 2023 at 19:05, Philippe Mathieu-Daudé wrote: > > > > Hi Stefan, > > > > You are listed as virtiofs maintainer, see MAINTAINERS: > > > >virtiofs > >M: Stefan Hajnoczi > >S: Supported > >F:

Re: virtio...@redhat.com bouncing

2023-11-08 Thread Stefan Hajnoczi
On Wed, 8 Nov 2023 at 19:05, Philippe Mathieu-Daudé wrote: > > Hi Stefan, > > You are listed as virtiofs maintainer, see MAINTAINERS: > >virtiofs >M: Stefan Hajnoczi >S: Supported >F: hw/virtio/vhost-user-fs* >F: include/hw/virtio/vhost-user-fs.h >L: virtio...@redhat.com

Re: [PATCH] Fix Windows 2000 and XP HDAudio Support

2023-11-08 Thread Gerd Hoffmann
On Wed, Nov 08, 2023 at 11:02:06AM +0100, Philippe Mathieu-Daudé wrote: > Thanks Christopher for your patch, > > I'm Cc'ing Volker and Gerd who know better this hardware model. > > On 7/11/23 20:27, Christopher Lentocha wrote: > > > > Change the ID to be a Realtek ALC885 so that both No.

Re: QEMU Virtio GPU features status & roadmap?

2023-11-08 Thread Marc-André Lureau
Hi On Wed, Nov 8, 2023 at 1:04 PM Antonio Caggiano wrote: > > Hi Hans, > > +cc Gert and Dmitry > > On 17/10/2023 02:48, Hans de Ruiter wrote: > > Hi, > > > > I'm working on Virtio GPU drivers for AmigaOS, and would like to know > > what features are currently stable enough to use. Looking at the

virtio...@redhat.com bouncing

2023-11-08 Thread Philippe Mathieu-Daudé
Hi Stefan, You are listed as virtiofs maintainer, see MAINTAINERS: virtiofs M: Stefan Hajnoczi S: Supported F: hw/virtio/vhost-user-fs* F: include/hw/virtio/vhost-user-fs.h L: virtio...@redhat.com Mails sent to this list address are bouncing: : host

RE: [PATCH V6 7/9] hw/acpi: Update ACPI GED framework to support vCPU Hotplug

2023-11-08 Thread Salil Mehta via
Hi Igor, > From: Igor Mammedov > Sent: Friday, October 27, 2023 2:18 PM > To: Salil Mehta > Cc: qemu-devel@nongnu.org; qemu-...@nongnu.org; m...@kernel.org; jean- > phili...@linaro.org; Jonathan Cameron ; > lpieral...@kernel.org; peter.mayd...@linaro.org; > richard.hender...@linaro.org;

[PATCH] tracetool: avoid invalid escape in Python string

2023-11-08 Thread marcandre . lureau
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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracetool/__init__.py

Re: [PATCH] vl: constify default_list

2023-11-08 Thread Philippe Mathieu-Daudé
On 30/10/23 11:19, Philippe Mathieu-Daudé wrote: On 30/10/23 11:15, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau It's not modified, let's make it const. Signed-off-by: Marc-André Lureau ---   system/vl.c | 2 +-   1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by:

  1   2   >