Re: [PATCH] target/riscv: rvzicbo: Fixup CBO extension register calculation

2024-05-14 Thread Richard Henderson
On 5/14/24 04:39, Alistair Francis wrote: When running the instruction ``` cbo.flush 0(x0) ``` QEMU would segfault. The issue was in cpu_gpr[a->rs1] as QEMU does not have cpu_gpr[0] allocated. In order to fix this let's use the existing get_address() helper. This also has the benefit of

Re: [PATCH 0/3] Assorted fixes for PMU

2024-05-14 Thread Atish Kumar Patra
On Mon, May 13, 2024 at 11:29 PM Alistair Francis wrote: > > On Tue, Apr 30, 2024 at 5:29 AM Atish Patra wrote: > > > > This series contains few miscallenous fixes related to hpmcounters > > and related code. The first patch fixes an issue with cycle/instret > > counters overcouting while the rem

RE: [PATCH ats_vtd v1 03/24] intel_iommu: check if the input address is canonical

2024-05-14 Thread Duan, Zhenzhong
Hi Clement, >-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 03/24] intel_iommu: check if the input address >is canonical > >First stage translation must fail if the address to translate is >not canonical. > >Signed-off-by: Clément Mathieu--Drif >--- > hw/i386

Re: [PATCH v2 3/4] virtio-gpu: add x-vmstate-version

2024-05-14 Thread Marc-André Lureau
Hi On Tue, May 14, 2024 at 8:35 AM Peter Xu wrote: > > Hey, Marc-Andre, > > On Mon, May 13, 2024 at 11:19:04AM +0400, marcandre.lur...@redhat.com wrote: > > diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c > > index ae831b6b3e..7f9fb5eacc 100644 > > --- a/hw/display/virtio-gpu.c > >

Re: [PATCH] scripts/simpletrace: Mark output with unstable timestamp as WARN

2024-05-14 Thread Zhao Liu
Hi Stefan, > QEMU uses clock_gettime(CLOCK_MONOTONIC) on Linux hosts. The man page > says: > > All CLOCK_MONOTONIC variants guarantee that the time returned by > consecutive calls will not go backwards, but successive calls > may—depending on the architecture—return identical (not-i

Re: [PATCH v5 04/10] vfio: Use new Error** argument in vfio_save_setup()

2024-05-14 Thread Cédric Le Goater
On 5/13/24 15:21, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments Nit: change commit title prefix to vfio/migration (also in other patches that are closely related to vfio migration) Plus, maybe change subject to "Add

RE: [PATCH ats_vtd v1 06/24] intel_iommu: do not consider wait_desc as an invalid descriptor

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 06/24] intel_iommu: do not consider wait_desc >as an invalid descriptor > >Signed-off-by: Clément Mathieu--Drif >--- > hw/i386/intel_iommu.c | 5 + > 1 file changed, 5 insertions(+) > >diff --git a/hw/i386/i

RE: [PATCH ats_vtd v1 04/24] intel_iommu: set accessed and dirty bits during first stage translation

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 04/24] intel_iommu: set accessed and dirty bits >during first stage translation > >Signed-off-by: Clément Mathieu--Drif >--- > hw/i386/intel_iommu.c | 26 ++ > hw/i386/intel_iomm

Re: [PATCH v7 04/12] hw/mem/cxl_type3: Add support to create DC regions to type3 memory devices

2024-05-14 Thread Zhijian Li (Fujitsu)
On 19/04/2024 07:10, nifan@gmail.com wrote: > From: Fan Ni > > +} > + > static bool cxl_setup_memory(CXLType3Dev *ct3d, Error **errp) > { > DeviceState *ds = DEVICE(ct3d); > @@ -635,6 +676,13 @@ static bool cxl_setup_memory(CXLType3Dev *ct3d, Error > **errp) > g_free(p

RE: [PATCH ats_vtd v1 07/24] memory: add permissions in IOMMUAccessFlags

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 07/24] memory: add permissions in >IOMMUAccessFlags > >This will be necessary for devices implementing ATS. >We also define a new macro IOMMU_ACCESS_FLAG_FULL in addition to >IOMMU_ACCESS_FLAG to support more ac

Re: [PATCH v7 06/12] hw/mem/cxl_type3: Add host backend and address space handling for DC regions

2024-05-14 Thread Zhijian Li (Fujitsu)
On 19/04/2024 07:10, nifan@gmail.com wrote: > +uint64_t dc_size; > + > +mr = host_memory_backend_get_memory(ct3d->dc.host_dc); > +dc_size = memory_region_size(mr); > +region_len = DIV_ROUND_UP(dc_size, ct3d->dc.num_regions); > + > +if (dc_size % (ct3d->dc.num_regions * CXL

RE: [PATCH ats_vtd v1 08/24] pcie: add helper to declare PASID capability for a pcie device

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 08/24] pcie: add helper to declare PASID >capability for a pcie device > >Signed-off-by: Clément Mathieu--Drif >--- > hw/pci/pcie.c | 24 > include/hw/pci/pcie.h | 6 +

RE: [PATCH ats_vtd v1 09/24] pcie: helper functions to check if PASID and ATS are enabled

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 09/24] pcie: helper functions to check if PASID >and ATS are enabled > >ats_enabled and pasid_enabled check whether the capabilities are >present or not. If so, we read the configuration space to get >the status

Re: [PATCH v5 05/10] vfio: Add Error** argument to .vfio_save_config() handler

2024-05-14 Thread Cédric Le Goater
On 5/13/24 15:30, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments Use vmstate_save_state_with_err() to improve error reporting in the callers and store a reported error under the migration stream. Add documentation whil

Re: [PULL 00/27] Build/arch cleanups, target/i386 fixes for 2024-05-10

2024-05-14 Thread Richard Henderson
On 5/12/24 12:49, Paolo Bonzini wrote: The following changes since commit dafec285bdbfe415ac6823abdc510e0b92c3f094: Merge tag 'pull-request-2024-05-10' ofhttps://gitlab.com/thuth/qemu into staging (2024-05-10 09:41:35 +0200) are available in the Git repository at: https://gitlab.com/bo

Re: [PATCH v5 06/10] vfio: Reverse test on vfio_get_dirty_bitmap()

2024-05-14 Thread Cédric Le Goater
On 5/13/24 15:42, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments Title should be: Reverse test on vfio_get_xlat_addr()? It could. It will simplify the changes coming after. Signed-off-by: Cédric Le Goater ---  

Re: [PATCH v5 07/10] memory: Add Error** argument to memory_get_xlat_addr()

2024-05-14 Thread Cédric Le Goater
On 5/13/24 15:44, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments Let the callers do the reporting. This will be useful in vfio_iommu_map_dirty_notify(). Cc: "Michael S. Tsirkin" Cc: Paolo Bonzini Cc: David Hildenbra

Re: [PATCH v3 0/6] X86: Alias isa-bios area and clean up

2024-05-14 Thread Bernhard Beschow
Am 8. Mai 2024 20:39:28 UTC schrieb BALATON Zoltan : >On Wed, 8 May 2024, Bernhard Beschow wrote: >> This series changes the "isa-bios" MemoryRegion to be an alias rather than a >> copy in the pflash case. This fixes issuing pflash commands in the isa-bios >> region which matches real hardware a

Re: [PATCH v5 08/10] vfio: Add Error** argument to .get_dirty_bitmap() handler

2024-05-14 Thread Cédric Le Goater
On 5/13/24 15:51, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments Let the callers do the error reporting. Add documentation while at it. Signed-off-by: Cédric Le Goater ---   Changes in v5:   - Replaced error_setg()

[PATCH v2 1/2] hw/intc/loongarch_extioi: Add extioi virt extension definition

2024-05-14 Thread Song Gao
On LoongArch, IRQs can be routed to four vcpus with hardware extioi. This patch adds the extioi virt extension definition so that the IRQ can route to 256 vcpus. Signed-off-by: Song Gao --- include/hw/intc/loongarch_extioi.h | 21 +++ hw/intc/loongarch_extioi.c | 92 +

[PATCH v2 0/2] Add extioi virt extension support

2024-05-14 Thread Song Gao
Base-on: <20240514025109.3238398-1-maob...@loongson.cn> On LoongArch, IRQs can be routed to four vcpus with hardware extioi. This patch adds the extioi virt extension support so that the IRQ can route to 256 vcpus. v2: - Split the patch to two small patch. - Drop 'RFC' title. extioi virt extens

[PATCH v2 2/2] hw/loongarch/virt: Enable extioi virt extension

2024-05-14 Thread Song Gao
This patch adds a new board attribute 'v-eiointc'. A value of true enables the virt extended I/O interrupt controller. VMs working in kvm mode have 'v-eiointc' enabled by default. Signed-off-by: Song Gao --- include/hw/loongarch/virt.h | 2 + target/loongarch/cpu.h | 1 + hw/loongarch/v

Re: [PATCH] target/riscv: rvzicbo: Fixup CBO extension register calculation

2024-05-14 Thread Daniel Henrique Barboza
On 5/13/24 23:39, Alistair Francis wrote: When running the instruction ``` cbo.flush 0(x0) ``` QEMU would segfault. The issue was in cpu_gpr[a->rs1] as QEMU does not have cpu_gpr[0] allocated. In order to fix this let's use the existing get_address() helper. This also has the benefit

Re: [PATCH 0/3] Assorted fixes for PMU

2024-05-14 Thread Peter Maydell
On Mon, 29 Apr 2024 at 20:29, Atish Patra wrote: > > This series contains few miscallenous fixes related to hpmcounters > and related code. The first patch fixes an issue with cycle/instret > counters overcouting while the remaining two are more for specification > compliance. I've noticed a numb

RE: [PATCH ats_vtd v1 14/24] pci: add IOMMU operations to get address spaces and memory regions with PASID

2024-05-14 Thread Duan, Zhenzhong
>-Original Message- >From: CLEMENT MATHIEU--DRIF >Subject: [PATCH ats_vtd v1 14/24] pci: add IOMMU operations to get >address spaces and memory regions with PASID > >Signed-off-by: Clément Mathieu--Drif >--- > hw/pci/pci.c | 20 > include/hw/pci/pci.h | 34 ++

Re: [PATCH v2 1/3] qtest: allow SPCR acpi table changes

2024-05-14 Thread Peter Maydell
On Mon, 13 May 2024 at 11:36, Alistair Francis wrote: > > On Mon, May 13, 2024 at 4:32 PM Michael S. Tsirkin wrote: > > > > On Mon, May 13, 2024 at 01:55:50PM +1000, Alistair Francis wrote: > > > On Tue, May 7, 2024 at 3:24 PM Sia Jee Heng > > > wrote: > > > > > > Can you describe why you are do

[RFC PATCH] target/loongarch/kvm: Add pmu support

2024-05-14 Thread Song Gao
This patch adds PMU support, We just sets some cpucfg6 default value to PMU config on kvm mode, and then check the PMU config with kvm ioctl KVM_GET_DEVICE_ATTR. e.g '... -cpu max,pmu=on,pmnum=[1-16]'; '... -cpu max,pmu=on' (default pmnum = 4); '... -cpu max,pmu=off' (disable PMU)

Re: [PATCH 0/3] Assorted fixes for PMU

2024-05-14 Thread Alistair Francis
On Tue, May 14, 2024 at 5:15 PM Atish Kumar Patra wrote: > > On Mon, May 13, 2024 at 11:29 PM Alistair Francis > wrote: > > > > On Tue, Apr 30, 2024 at 5:29 AM Atish Patra wrote: > > > > > > This series contains few miscallenous fixes related to hpmcounters > > > and related code. The first pat

[PATCH 3/3] qerror: QERR_QGA_COMMAND_FAILED is no longer used, drop

2024-05-14 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- include/qapi/qmp/qerror.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h index 00b18e9082..390590bb81 100644 --- a/include/qapi/qmp/qerror.h +++ b/include/qapi/qmp/qerror.h @@ -29,9 +29,6 @@ #define

[PATCH 0/3] error: Eliminate QERR_QGA_COMMAND_FAILED

2024-05-14 Thread Markus Armbruster
Markus Armbruster (3): qga-win32: Improve guest-set-user-password, guest-file-open errors qga: Shorten several error messages qerror: QERR_QGA_COMMAND_FAILED is no longer used, drop include/qapi/qmp/qerror.h | 3 --- qga/commands-win32.c | 41 --- q

[PATCH 2/3] qga: Shorten several error messages

2024-05-14 Thread Markus Armbruster
Some, but not all error messages are of the form Guest agent command failed, error was '' For instance, command guest-exec can fail with an error message like Guest agent command failed, error was 'Failed to execute child process “/bin/invalid-cmd42” (No such file or directory)' Shorte

[PATCH v2] target/riscv: Remove experimental prefix from "B" extension

2024-05-14 Thread Rob Bradford
This extension has now been ratified: https://jira.riscv.org/browse/RVS-2006 so the "x-" prefix can be removed. Since this is now a ratified extension add it to the list of extensions included in the "max" CPU variant. Signed-off-by: Rob Bradford Reviewed-by: Andrew Jones --- target/riscv/cpu.

Re: [PATCH 2/3] qga: Shorten several error messages

2024-05-14 Thread Markus Armbruster
Markus Armbruster writes: > Some, but not all error messages are of the form > > Guest agent command failed, error was '' > > For instance, command guest-exec can fail with an error message like > > Guest agent command failed, error was 'Failed to execute child process > “/bin/invalid-cm

[PATCH 1/3] qga-win32: Improve guest-set-user-password, guest-file-open errors

2024-05-14 Thread Markus Armbruster
When guest-set-user-password's argument @password can't be converted from UTF-8 to UTF-16, we report something like Guest agent command failed, error was 'Invalid sequence in conversion input' Improve this to can't convert 'password' to UTF-16: Invalid sequence in conversion input Likew

Re: [PATCH v2] target/riscv: Remove experimental prefix from "B" extension

2024-05-14 Thread LIU Zhiwei
On 2024/5/14 19:02, Rob Bradford wrote: This extension has now been ratified: https://jira.riscv.org/browse/RVS-2006 so the "x-" prefix can be removed. Since this is now a ratified extension add it to the list of extensions included in the "max" CPU variant. Signed-off-by: Rob Bradford Revie

[PATCH] hw/riscv/virt: Add hotplugging and virtio-md-pci support

2024-05-14 Thread Björn Töpel
From: Björn Töpel Virtio-based memory devices allows for dynamic resizing of virtual machine memory, and requires proper hotplugging (add/remove) support to work. Enable virtio-md-pci with the corresponding missing hotplugging callbacks for the RISC-V "virt" machine. Signed-off-by: Björn Töpel

[PATCH] target/loongarch/kvm: fpu save the vreg registers high 192bit

2024-05-14 Thread Song Gao
On kvm side, get_fpu/set_fpu save the vreg registers high 192bits, but QEMU missing. Signed-off-by: Song Gao --- target/loongarch/kvm/kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/loongarch/kvm/kvm.c b/target/loongarch/kvm/kvm.c index a9f9020071..0b5dbb7ed8 100644 --- a/

Re: [PATCH] hw/loongarch: Add VM mode in IOCSR feature register in kvm mode

2024-05-14 Thread gaosong
在 2024/5/14 上午10:51, Bibo Mao 写道: If VM runs in kvm mode, VM mode is added in IOCSR feature register. So guest can detect kvm hypervisor type and enable possible pv functions. Signed-off-by: Bibo Mao --- Reviewed-by: Song Gao Thanks. Song Gao hw/loongarch/virt.c | 12 +--- 1 file

RE: [PATCH v2 2/3] hw/acpi: Upgrade ACPI SPCR table to support SPCR table version 4 format

2024-05-14 Thread JeeHeng Sia
> -Original Message- > From: Sunil V L > Sent: Monday, May 13, 2024 1:16 PM > To: JeeHeng Sia > Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org; qemu-ri...@nongnu.org; > m...@redhat.com; imamm...@redhat.com; > anisi...@redhat.com; peter.mayd...@linaro.org; shannon.zha...@gmail.com; >

RE: [PATCH v2 2/3] hw/acpi: Upgrade ACPI SPCR table to support SPCR table version 4 format

2024-05-14 Thread JeeHeng Sia
> -Original Message- > From: Michael S. Tsirkin > Sent: Monday, May 13, 2024 2:31 PM > To: JeeHeng Sia > Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org; qemu-ri...@nongnu.org; > imamm...@redhat.com; anisi...@redhat.com; > peter.mayd...@linaro.org; shannon.zha...@gmail.com; suni...@ven

Re: [PATCH v5 10/10] vfio: Extend vfio_set_migration_error() with Error* argument

2024-05-14 Thread Cédric Le Goater
On 5/13/24 16:26, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments vfio_set_migration_error() sets the 'return' error on the migration stream if a migration is in progress. To improve error reporting, add a new Error* ar

Re: [PATCH v2] target/riscv: Remove experimental prefix from "B" extension

2024-05-14 Thread Daniel Henrique Barboza
On 5/14/24 08:02, Rob Bradford wrote: This extension has now been ratified: https://jira.riscv.org/browse/RVS-2006 so the "x-" prefix can be removed. Since this is now a ratified extension add it to the list of extensions included in the "max" CPU variant. Signed-off-by: Rob Bradford Review

[PATCH] tests/libqos: Add loongarch virt machine node

2024-05-14 Thread Bibo Mao
Add loongarch virt machine to the graph. It is a modified copy of the existing riscv virtmachine in riscv-virt-machine.c It contains a generic-pcihost controller, and an extra function loongarch_config_qpci_bus() to configure GPEX pci host controller information, such as ecam and pio_base addresse

Re: [PATCH 1/2] copy-before-write: allow specifying minimum cluster size

2024-05-14 Thread Markus Armbruster
Fiona Ebner writes: > Am 26.03.24 um 10:06 schrieb Markus Armbruster: >>> @@ -365,7 +368,13 @@ BlockCopyState *block_copy_state_new(BdrvChild >>> *source, BdrvChild *target, >>> >>> GLOBAL_STATE_CODE(); >>> >>> -cluster_size = block_copy_calculate_cluster_size(target->bs, errp); >>>

Re: [RFC PATCH] target/loongarch/kvm: Add pmu support

2024-05-14 Thread maobibo
On 2024/5/14 下午5:46, Song Gao wrote: This patch adds PMU support, We just sets some cpucfg6 default value to PMU config on kvm mode, and then check the PMU config with kvm ioctl KVM_GET_DEVICE_ATTR. e.g '... -cpu max,pmu=on,pmnum=[1-16]'; '... -cpu max,pmu=on' (default pmnum = 4

Re: [PATCH] target/loongarch/kvm: fpu save the vreg registers high 192bit

2024-05-14 Thread maobibo
Reviewed-by: Bibo Mao On 2024/5/14 下午7:07, Song Gao wrote: On kvm side, get_fpu/set_fpu save the vreg registers high 192bits, but QEMU missing. Signed-off-by: Song Gao --- target/loongarch/kvm/kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/loongarch/kvm/kvm.c b/targ

Re: [RFC PATCH v3 3/5] KVM: x86: Add notifications for Heki policy configuration and violation

2024-05-14 Thread Mickaël Salaün
On Tue, May 07, 2024 at 09:16:06AM -0700, Sean Christopherson wrote: > On Tue, May 07, 2024, Mickaël Salaün wrote: > > > Actually, potential bad/crazy idea. Why does the _host_ need to define > > > policy? > > > Linux already knows what assets it wants to (un)protect and when. What's > > > miss

Re: [RFC PATCH v3 3/5] KVM: x86: Add notifications for Heki policy configuration and violation

2024-05-14 Thread Mickaël Salaün
On Fri, May 10, 2024 at 10:07:00AM +, Nicolas Saenz Julienne wrote: > On Tue May 7, 2024 at 4:16 PM UTC, Sean Christopherson wrote: > > > If yes, that would indeed require a *lot* of work for something we're not > > > sure will be accepted later on. > > > > Yes and no. The AWS folks are pursui

[PULL 02/11] dockerfiles: add 'MAKE' env variable to remaining containers

2024-05-14 Thread Thomas Huth
From: Daniel P. Berrangé All the lcitool generated containers define a "MAKE" env. It will be convenient for later patches if all containers do this. Signed-off-by: Daniel P. Berrangé Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240513111551.488088-2-berra...@re

[PULL 00/11] gitlab CI fix and glib update

2024-05-14 Thread Thomas Huth
The following changes since commit 9360070196789cc8b9404b2efaf319384e64b107: Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2024-05-12 13:41:26 +0200) are available in the Git repository at: https://gitlab.com/thuth/qemu.git tags/pull-request-2024-05-14 for you t

[PULL 05/11] Bump minimum glib version to v2.66

2024-05-14 Thread Thomas Huth
Now that we dropped support for CentOS 8 and Ubuntu 20.04, we can look into bumping the glib version to a new minimum for further clean-ups. According to repology.org, available versions are: CentOS Stream 9: 2.66.7 Debian 11: 2.66.8 Fedora 38: 2.74.1 Freebsd:

[PULL 09/11] block/nfs: Use URI parsing code from glib

2024-05-14 Thread Thomas Huth
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. While we're at it, slightly rephrase one of the error messages: Use "Invalid value..." instead of "Illegal value..." since the latter rather soun

[PULL 07/11] block/gluster: Use URI parsing code from glib

2024-05-14 Thread Thomas Huth
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. Since g_uri_get_path() returns a const pointer, we also need to tweak the parameter of parse_volume_options() (where we use the result of g_uri_g

[PULL 08/11] block/nbd: Use URI parsing code from glib

2024-05-14 Thread Thomas Huth
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 g_uri_get_host() also takes care of removing the square brackets from IPv6 addresses, so we can drop that part of the QEMU code now, too. Rev

[PULL 03/11] gitlab: use $MAKE instead of 'make'

2024-05-14 Thread Thomas Huth
From: Daniel P. Berrangé The lcitool generated containers have '$MAKE' set to the path of the right 'make' binary. Using the env variable makes it possible to override the choice per job. Signed-off-by: Daniel P. Berrangé Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-ID

[PULL 06/11] Remove glib compatibility code that is not required anymore

2024-05-14 Thread Thomas Huth
Now that we bumped the minimum glib version to 2.66, we can drop the old code. Suggested-by: Paolo Bonzini Reviewed-by: Daniel P. Berrangé Message-ID: <20240418101056.302103-9-th...@redhat.com> Signed-off-by: Thomas Huth --- qga/commands-posix-ssh.c | 8 util/error-report.c | 10

[PULL 04/11] gitlab: use 'setarch -R' to workaround tsan bug

2024-05-14 Thread Thomas Huth
From: Daniel P. Berrangé The TSAN job started failing when gitlab rolled out their latest release. The root cause is a change in the Google COS version used on shared runners. This brings a kernel running with vm.mmap_rnd_bits = 31 which is incompatible with TSAN in LLVM < 18, which only suppo

[PULL 01/11] configure: Fix error message when C compiler is not working

2024-05-14 Thread Thomas Huth
If you try to run the configure script on a system without a working C compiler, you get a very misleading error message: ERROR: Unrecognized host OS (uname -s reports 'Linux') Some people already opened bug tickets because of this problem: https://gitlab.com/qemu-project/qemu/-/issues/2057 h

Re: [PATCH] scripts/simpletrace: Mark output with unstable timestamp as WARN

2024-05-14 Thread Stefan Hajnoczi
On Tue, May 14, 2024, 03:57 Zhao Liu wrote: > Hi Stefan, > > > QEMU uses clock_gettime(CLOCK_MONOTONIC) on Linux hosts. The man page > > says: > > > > All CLOCK_MONOTONIC variants guarantee that the time returned by > > consecutive calls will not go backwards, but successive calls > > ma

[PULL 10/11] block/ssh: Use URI parsing code from glib

2024-05-14 Thread Thomas Huth
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. While we're at it, also emit a warning when encountering unknown parameters in the URI, so that the users have a chance to detect their typos or

[PULL 11/11] util/uri: Remove the old URI parsing code

2024-05-14 Thread Thomas Huth
Now that we switched all consumers of the URI code to use the URI parsing functions from glib instead, we can remove our internal URI parsing code since it is not used anymore. Reviewed-by: Eric Blake Message-ID: <20240418101056.302103-14-th...@redhat.com> Signed-off-by: Thomas Huth --- include

Re: [PATCH v2 3/4] virtio-gpu: add x-vmstate-version

2024-05-14 Thread Peter Xu
On Tue, May 14, 2024 at 11:25:26AM +0400, Marc-André Lureau wrote: > Hi > > On Tue, May 14, 2024 at 8:35 AM Peter Xu wrote: > > > > Hey, Marc-Andre, > > > > On Mon, May 13, 2024 at 11:19:04AM +0400, marcandre.lur...@redhat.com wrote: > > > diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-

Re: [PATCH 1/3] qga-win32: Improve guest-set-user-password, guest-file-open errors

2024-05-14 Thread Philippe Mathieu-Daudé
On 14/5/24 12:58, Markus Armbruster wrote: When guest-set-user-password's argument @password can't be converted from UTF-8 to UTF-16, we report something like Guest agent command failed, error was 'Invalid sequence in conversion input' Improve this to can't convert 'password' to UTF

Re: [PATCH 3/3] qerror: QERR_QGA_COMMAND_FAILED is no longer used, drop

2024-05-14 Thread Philippe Mathieu-Daudé
On 14/5/24 12:58, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/qmp/qerror.h | 3 --- 1 file changed, 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

[PULL 01/11] Allow UNIX socket option for VNC websocket

2024-05-14 Thread marcandre . lureau
From: Sergii Zasenko - Remove unix socket option limitation for VNC websocket - Reflect websocket option changes in documentation Signed-off-by: Sergii Zasenko Reviewed-by: Marc-André Lureau Message-Id: <20230724100353.16628-1-ser...@zasenko.name> --- ui/vnc.c| 5 - qemu-options.h

Re: [PATCH 2/3] qga: Shorten several error messages

2024-05-14 Thread Philippe Mathieu-Daudé
On 14/5/24 13:02, Markus Armbruster wrote: Markus Armbruster writes: Some, but not all error messages are of the form Guest agent command failed, error was '' For instance, command guest-exec can fail with an error message like Guest agent command failed, error was 'Failed to exec

[PULL 08/11] ui/console: move QemuDmaBuf struct def to dmabuf.c

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim To complete privatizing process of QemuDmaBuf, QemuDmaBuf struct def is moved to dmabuf.c Suggested-by: Marc-André Lureau Reviewed-by: Marc-André Lureau Cc: Philippe Mathieu-Daudé Cc: Daniel P. Berrangé Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim Message-Id: <202405081

[PULL 09/11] ui/gtk: Add gd_motion_event trace event

2024-05-14 Thread marcandre . lureau
From: hikalium Add gd_motion_event trace event for making it easy to debug gd_motion_event related issues. Signed-off-by: hikalium Reviewed-by: Marc-André Lureau Message-Id: <20240512111435.30121-2-hikal...@hikalium.com> --- ui/gtk.c| 2 ++ ui/trace-events | 1 + 2 files changed, 3 in

[PULL 02/11] ui/gtk: Draw guest frame at refresh cycle

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim Draw routine needs to be manually invoked in the next refresh if there is a scanout blob from the guest. This is to prevent a situation where there is a scheduled draw event but it won't happen bacause the window is currently in inactive state (minimized or tabified). If draw is

[PULL 03/11] ui/gtk: Check if fence_fd is equal to or greater than 0

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim 'fence_fd' needs to be validated always before being referenced And the passing condition should include '== 0' as 0 is a valid value for the file descriptor. Suggested-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Cc: Philippe Mathieu-Daudé Cc: Daniel P. Berrangé C

[PULL 06/11] ui/console: Use qemu_dmabuf_set_..() helpers instead

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim This commit updates all occurrences where these fields were set directly have been updated to utilize helper functions. v7: removed prefix, "dpy_gl_" from all helpers v8: Introduction of helpers was removed as those were already added by the previous commit Suggested-by:

[PULL 10/11] ui/gtk: Fix mouse/motion event scaling issue with GTK display backend

2024-05-14 Thread marcandre . lureau
From: hikalium Remove gtk_widget_get_scale_factor() usage from the calculation of the motion events in the GTK backend to make it work correctly on environments that have `gtk_widget_get_scale_factor() != 1`. This scale factor usage had been introduced in the commit f14aab420c and at that time t

[PULL 07/11] ui/console: Use qemu_dmabuf_new() and free() helpers instead

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim This commit introduces utility functions for the creation and deallocation of QemuDmaBuf instances. Additionally, it updates all relevant sections of the codebase to utilize these new utility functions. v7: remove prefix, "dpy_gl_" from all helpers qemu_dmabuf_free() return

[PULL 04/11] ui/console: new dmabuf.h and dmabuf.c for QemuDmaBuf struct and helpers

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim New header and source files are added for containing QemuDmaBuf struct definition and newly introduced helpers for creating/freeing the struct and accessing its data. v10: Change the license type for both dmabuf.h and dmabuf.c from MIT to GPL to be in line with QEMU's defa

[PULL 05/11] ui/console: Use qemu_dmabuf_get_..() helpers instead

2024-05-14 Thread marcandre . lureau
From: Dongwon Kim This commit updates all instances where fields within the QemuDmaBuf struct are directly accessed, replacing them with calls to these new helper functions. v6: fix typos in helper names in ui/spice-display.c v7: removed prefix, "dpy_gl_" from all helpers v8: Introduction of h

[PULL 00/11] Ui patches

2024-05-14 Thread marcandre . lureau
From: Marc-André Lureau The following changes since commit 9360070196789cc8b9404b2efaf319384e64b107: Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2024-05-12 13:41:26 +0200) are available in the Git repository at: https://gitlab.com/marcandre.lureau/qemu.git ta

[PULL 11/11] ui/sdl2: Allow host to power down screen

2024-05-14 Thread marcandre . lureau
From: Bernhard Beschow By default, SDL disables the screen saver which prevents the host from powering down the screen even if the screen is locked. This results in draining the battery needlessly when the host isn't connected to a wall charger. Fix that by enabling the screen saver. Signed-off-

Re: CPR/liveupdate: test results using prior bug fix

2024-05-14 Thread Michael Galaxy
Steve, OK, so it does not look like this bugfix you wrote was included in 8.2.4 (which was released yesterday). Unfortunately, that means that anyone using CPR in that release will still (eventually) encounter the bug like I did. I would recommend that y'all consider cherry-picking, perhaps,

Re: [PATCH v2 01/45] target/hppa: Move cpu_get_tb_cpu_state out of line

2024-05-14 Thread Helge Deller
On 5/13/24 09:46, Richard Henderson wrote: Signed-off-by: Richard Henderson Reviewed-by: Helge Deller --- target/hppa/cpu.h | 43 ++- target/hppa/cpu.c | 42 ++ 2 files changed, 44 insertions(+), 41 deletion

Re: CPR/liveupdate: test results using prior bug fix

2024-05-14 Thread Michael Tokarev
On 5/14/24 16:39, Michael Galaxy wrote: Steve, OK, so it does not look like this bugfix you wrote was included in 8.2.4 (which was released yesterday). Unfortunately, that means that anyone using CPR in that release will still (eventually) encounter the bug like I did. 8.2.4 is basically a

Re: [PATCH v2 00/45] target/hppa: Misc improvements

2024-05-14 Thread Helge Deller
On 5/13/24 09:46, Richard Henderson wrote: Most of the patches lead up to implementing CF_PCREL. Along the way there is a grab bag of code updates (TCG_COND_TST*), bug fixes (space changes during branch-in-branch-delay-slot), and implementation of features (PSW bits B, X, T, H, L). Sven reported

Re: [PATCH v2 02/45] target/hppa: Use hppa_form_gva_psw in hppa_cpu_get_pc

2024-05-14 Thread Helge Deller
* Richard Henderson : > This function is for log_pc(), which needs to produce a > similar result to cpu_get_tb_cpu_state(). > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller --- > --- > target/hppa/cpu.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff -

Re: [PATCH v2 03/45] target/hppa: Move constant destination check into use_goto_tb

2024-05-14 Thread Helge Deller
* Richard Henderson : > Share this check between gen_goto_tb and hppa_tr_translate_insn. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/target/hppa/

Re: [PATCH v2 04/45] target/hppa: Pass displacement to do_dbranch

2024-05-14 Thread Helge Deller
* Richard Henderson : > Pass a displacement instead of an absolute value. > > In trans_be, remove the user-only do_dbranch case. The branch we are > attempting to optimize is to the zero page, which is perforce on a > different page than the code currently executing, which means that > we will *n

RE: [PATCH v6 6/7] migration/multifd: implement qpl compression and decompression

2024-05-14 Thread Fabiano Rosas
"Liu, Yuan1" writes: >> -Original Message- >> From: Fabiano Rosas >> Sent: Monday, May 13, 2024 11:14 PM >> To: Liu, Yuan1 ; pet...@redhat.com >> Cc: qemu-devel@nongnu.org; Liu, Yuan1 ; Zou, Nanhai >> >> Subject: Re: [PATCH v6 6/7] migration/multifd: implement qpl compression >> and dec

Re: [PATCH v2 05/45] target/hppa: Allow prior nullification in do_ibranch

2024-05-14 Thread Helge Deller
* Richard Henderson : > Simplify the function by not attempting a conditional move > on the branch destination -- just use nullify_over normally. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 73 +++-- > 1

Re: [PATCH 4/9] migration: Add direct-io parameter

2024-05-14 Thread Markus Armbruster
Peter Xu writes: > On Fri, May 03, 2024 at 05:49:32PM -0300, Fabiano Rosas wrote: >> Peter Xu writes: >> >> > On Fri, Apr 26, 2024 at 11:20:37AM -0300, Fabiano Rosas wrote: >> >> Add the direct-io migration parameter that tells the migration code to >> >> use O_DIRECT when opening the migration

Re: [PATCH v2 06/45] target/hppa: Use CF_BP_PAGE instead of cpu_breakpoint_test

2024-05-14 Thread Helge Deller
* Richard Henderson : > The generic tcg driver will have already checked for breakpoints. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/target/hppa/translate.c b/tar

Re: [PATCH v2 07/45] target/hppa: Add install_iaq_entries

2024-05-14 Thread Helge Deller
* Richard Henderson : > Instead of two separate cpu_iaoq_entry calls, use one call to update > both IAQ_Front and IAQ_Back. Simplify with an argument combination > that automatically handles a simple increment from Front to Back. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller

Re: [PATCH v3 2/2] vhost-user: fix lost reconnect again

2024-05-14 Thread Raphael Norwitz
Code looks good. Just a question on the error case you're trying to fix. On Tue, May 14, 2024 at 2:12 AM Li Feng wrote: > > When the vhost-user is reconnecting to the backend, and if the vhost-user > fails > at the get_features in vhost_dev_init(), then the reconnect will fail > and it will not

Re: [PATCH v3 1/2] Revert "vhost-user: fix lost reconnect"

2024-05-14 Thread Raphael Norwitz
The code for these two patches looks fine. Just some questions on the failure case you're trying to fix. On Tue, May 14, 2024 at 2:12 AM Li Feng wrote: > > This reverts commit f02a4b8e6431598612466f76aac64ab492849abf. > > Since the current patch cannot completely fix the lost reconnect > problem

Re: [PATCH v5 10/10] vfio: Extend vfio_set_migration_error() with Error* argument

2024-05-14 Thread Cédric Le Goater
On 5/14/24 13:20, Cédric Le Goater wrote: On 5/13/24 16:26, Avihai Horon wrote: On 06/05/2024 12:20, Cédric Le Goater wrote: External email: Use caution opening links or attachments vfio_set_migration_error() sets the 'return' error on the migration stream if a migration is in progress. To i

Re: [PATCH v2 08/45] target/hppa: Add install_link

2024-05-14 Thread Helge Deller
* Richard Henderson : > Add a common routine for writing the return address. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 54 +++-- > 1 file changed, 31 insertions(+), 23 deletions(-) > > diff --git a/tar

Re: [PATCH v2 09/45] target/hppa: Delay computation of IAQ_Next

2024-05-14 Thread Helge Deller
* Richard Henderson : > We no longer have to allocate a temp and perform an > addition before translation of the rest of the insn. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 26 ++ > 1 file changed, 10 insertions(+)

Re: [PATCH v2 10/45] target/hppa: Skip nullified insns in unconditional dbranch path

2024-05-14 Thread Helge Deller
* Richard Henderson : > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/target/hppa/translate.c b/target/hppa/translate.c > index a9196050dc..ca979f4137 100644 > ---

Re: [PATCH v2 11/45] target/hppa: Simplify TB end

2024-05-14 Thread Helge Deller
* Richard Henderson : > Minimize the amount of code in hppa_tr_translate_insn advancing the > insn queue for the next insn. Move the goto_tb path to hppa_tr_tb_stop. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 109 +

Re: [PATCH-for-9.1 v2 2/3] migration: Remove RDMA protocol handling

2024-05-14 Thread Yu Zhang
Hello Peter and all, I did a comparison of the VM live-migration speeds between RDMA and TCP/IP on our servers and plotted the results to get an initial impression. Unfortunately, the Ethernet NICs are not the recent ones, therefore, it may not make much sense. I can do it on servers with more rec

Re: [PATCH v2 12/45] target/hppa: Add IASQ entries to DisasContext

2024-05-14 Thread Helge Deller
* Richard Henderson : > Add variable to track space changes to IAQ. So far, no such changes > are introduced, but the new checks vs ctx->iasq_b may eliminate an > unnecessary copy to cpu_iasq_f with e.g. BLR. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa

Re: [PATCH v2 13/45] target/hppa: Add space arguments to install_iaq_entries

2024-05-14 Thread Helge Deller
* Richard Henderson : > Move space assighments to a central location. > > Signed-off-by: Richard Henderson Reviewed-by: Helge Deller > --- > target/hppa/translate.c | 58 +++-- > 1 file changed, 27 insertions(+), 31 deletions(-) > > diff --git a/target/hp

[PATCH v6 1/9] vfio: Add Error** argument to .set_dirty_page_tracking() handler

2024-05-14 Thread Cédric Le Goater
We will use the Error object to improve error reporting in the .log_global*() handlers of VFIO. Add documentation while at it. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Avihai Horon Signed-off-by: Cédric Le Goater --- Changes in v5: - Fixed typo in set_dirty_page_tracking documentatio

  1   2   >