[RFC PATCH v6 00/29] Add LoongArch softmmu support

2022-02-25 Thread Xiaojuan Yang
This series patch add softmmu support for LoongArch. The latest kernel: * https://github.com/loongson/linux/tree/loongarch-next The latest uefi: * https://github.com/loongson/edk2 * https://github.com/loongson/edk2-platforms The manual: * https://github.com/loongson/LoongArch-Documentation/

[RFC PATCH v6 02/29] target/loongarch: Add CSRs definition

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu-csr.h | 236 + target/loongarch/cpu.c | 35 ++ target/loongarch/cpu.h | 57 + 3 files changed, 328 insertions(+) create mode 100644 target/loongarch/cpu-csr.h

[RFC PATCH v6 26/29] hw/loongarch: Add LoongArch smbios support

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 1 + hw/loongarch/loongson3.c | 43 include/hw/loongarch/loongarch.h | 1 + 3 files changed, 45 insertions(+) diff --git a/hw/loongarch/Kconfig b/hw/loongarch/K

[RFC PATCH v6 01/29] target/loongarch: Add system emulation introduction

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 8 +++ docs/system/loongarch/loongson3.rst | 37 + target/loongarch/README | 28 ++ 3 files changed, 73 insertions(+) create mode 10064

[RFC PATCH v6 00/29] Add LoongArch softmmu support

2022-02-25 Thread Xiaojuan Yang
This series patch add softmmu support for LoongArch. The latest kernel: * https://github.com/loongson/linux/tree/loongarch-next The latest uefi: * https://github.com/loongson/edk2 * https://github.com/loongson/edk2-platforms The manual: * https://github.com/loongson/LoongArch-Documentation/

[RFC PATCH v6 12/29] target/loongarch: Add timer related instructions support.

2022-02-25 Thread Xiaojuan Yang
This includes: -RDTIME{L/H}.W -RDTIME.D Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/helper.h | 1 + target/loongarch/insn_trans/trans_extra.c.inc | 32 +++ target/loongarch/op_helper.c | 6 target/loongarc

[RFC PATCH v6 09/29] target/loongarch: Add TLB instruction support

2022-02-25 Thread Xiaojuan Yang
This includes: - TLBSRCH - TLBRD - TLBWR - TLBFILL - TLBCLR - TLBFLUSH - INVTLB Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/disas.c | 17 + target/loongarch/helper.h | 12 + .../insn_trans/trans_privileged.c.inc |

[RFC PATCH v6 03/29] target/loongarch: Add basic vmstate description of CPU.

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu.c | 3 ++ target/loongarch/internals.h | 4 ++ target/loongarch/machine.c | 85 target/loongarch/meson.build | 6 +++ 4 files changed, 98

[RFC PATCH v6 11/29] target/loongarch: Add LoongArch interrupt and exception handle

2022-02-25 Thread Xiaojuan Yang
1.This patch Add loongarch interrupt and exception handle. 2.Rename the user excp to the exccode from the csr defintions. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- linux-user/loongarch64/cpu_loop.c | 8 +- target/loongarch/cpu.c| 251

[RFC PATCH v6 05/29] target/loongarch: Add constant timer support

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/constant_timer.c | 62 +++ target/loongarch/cpu.h| 10 + target/loongarch/meson.build | 1 + 3 files changed, 73 insertions(+) create mode 100644 target/loongarch/constant

[RFC PATCH v6 23/29] hw/loongarch: Add LoongArch ls7a rtc device support

2022-02-25 Thread Xiaojuan Yang
This patch add ls7a rtc device support. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS| 1 + hw/loongarch/Kconfig | 1 + hw/loongarch/loongson3.c | 4 + hw/rtc/Kconfig | 3 + hw/rtc/ls7a_rtc.c | 323 +

[RFC PATCH v6 18/29] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI)

2022-02-25 Thread Xiaojuan Yang
This patch realize PCH-MSI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 5 ++ hw/intc/loongarch_pch_msi.c | 75 + hw/intc/meson.build | 1 + hw/intc/trace-events

[RFC PATCH v6 13/29] target/loongarch: Add gdb support.

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 2 + configs/targets/loongarch64-softmmu.mak | 1 + gdb-xml/loongarch-base64.xml| 43 +++ gdb-xml/loongarch-fpu64.xml | 57 +++ target/loongarch/cpu.c

[RFC PATCH v6 19/29] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC)

2022-02-25 Thread Xiaojuan Yang
This patch realize the EIOINTC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig| 3 + hw/intc/loongarch_extioi.c | 417 + hw/intc/meson.build| 1 + hw/intc/trace-events

[RFC PATCH v6 16/29] hw/loongarch: Add LoongArch ipi interrupt support(IPI)

2022-02-25 Thread Xiaojuan Yang
This patch realize the IPI interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 2 + hw/intc/Kconfig | 3 + hw/intc/loongarch_ipi.c | 164 hw/intc/meson.build |

[RFC PATCH v6 15/29] hw/loongarch: Add LoongArch cpu interrupt support(CPUINTC)

2022-02-25 Thread Xiaojuan Yang
Loongson-3A5000 support 14 interrupts from 64 - 77(Timer->75 IPI->76) Loongson-3A5000 and ls7a form a legacy model and extended model irq hierarchy.Tcg mode emulate a simplified extended model which has no Legacy I/O Interrupt Controller(LIOINTC) and LPC. e.g: |+-++-+ +---

[RFC PATCH v6 29/29] tests/tcg/loongarch64: Add hello/memory test in loongarch64 system

2022-02-25 Thread Xiaojuan Yang
- We write a very minimal softmmu harness. - This is a very simple smoke test with no need to run a full Linux/kernel. - The Makefile.softmmu-target record the rule to run. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 1 + tests/tcg/l

[RFC PATCH v6 22/29] hw/loongarch: Add some devices support for 3A5000.

2022-02-25 Thread Xiaojuan Yang
1.Add uart,virtio-net,vga and usb for 3A5000. 2.Add irq set and map for the pci host. Non pci device use irq 0-16, pci device use 16-64. 3.Add some unimplented device to emulate guest unused memory space. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 7 +

[RFC PATCH v6 17/29] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC)

2022-02-25 Thread Xiaojuan Yang
This patch realize the PCH-PIC interrupt controller. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/intc/Kconfig | 4 + hw/intc/loongarch_pch_pic.c | 488 hw/intc/meson.build | 1 + hw/intc/trace-events

[RFC PATCH v6 21/29] Enable common virtio pci support for LoongArch

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- softmmu/qdev-monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/softmmu/qdev-monitor.c b/softmmu/qdev-monitor.c index 01f3834db5..49491d74a1 100644 --- a/softmmu/qdev-monitor.c +++ b/softmmu/qdev-monitor.c @@ -

[RFC PATCH v6 04/29] target/loongarch: Implement qmp_query_cpu_definitions()

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- qapi/machine-target.json | 6 -- target/loongarch/cpu.c | 26 ++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/qapi/machine-target.json b/qapi/machine-target.

[RFC PATCH v6 06/29] target/loongarch: Add MMU support for LoongArch CPU.

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu-param.h | 2 +- target/loongarch/cpu.c| 30 target/loongarch/cpu.h| 42 - target/loongarch/internals.h | 9 + target/loongarch/machine.c| 17 ++ target/loongarch/meson.build | 1

[RFC PATCH v6 08/29] target/loongarch: Add LoongArch IOCSR instruction

2022-02-25 Thread Xiaojuan Yang
This includes: - IOCSR{RD/WR}.{B/H/W/D} Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.h| 4 + target/loongarch/disas.c | 8 + target/loongarch/helper.h | 2 + .../insn_trans/trans_privileged.c

[PULL 6/6] hw/openrisc/openrisc_sim: Add support for initrd loading

2022-02-25 Thread Stafford Horne
The initrd passed via the command line is loaded into memory. It's location and size is then added to the device tree so the kernel knows where to find it. Signed-off-by: Stafford Horne Reviewed-by: Peter Maydell --- hw/openrisc/openrisc_sim.c | 31 +++ 1 file chang

[RFC PATCH v6 10/29] target/loongarch: Add other core instructions support

2022-02-25 Thread Xiaojuan Yang
This includes: -CACOP -LDDIR -LDPTE -ERTN -DBCL -IDLE Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.h| 2 + target/loongarch/disas.c | 17 target/loongarch/helper.h | 4 + .../insn_trans/tran

Re: [PATCH 4/4] q35: compat: keep hotplugged PCIe device broken after migration for 6.2-older machine types

2022-02-25 Thread Igor Mammedov
On Thu, 24 Feb 2022 13:11:53 -0500 "Michael S. Tsirkin" wrote: > On Thu, Feb 24, 2022 at 12:44:11PM -0500, Igor Mammedov wrote: > > Q35 switched to ACPI PCI hotplug by default in since 6.1 > > machine type and migration worked as expected (with BARs > > on target being the same as on source) > >

[RFC PATCH v6 24/29] hw/loongarch: Add default bios startup support.

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 4 ++ hw/loongarch/fw_cfg.c| 33 ++ hw/loongarch/fw_cfg.h| 15 +++ hw/loongarch/loongson3.c | 76 +++- hw/loongarch/meson.build

[RFC PATCH v6 27/29] hw/loongarch: Add LoongArch acpi support

2022-02-25 Thread Xiaojuan Yang
Add a simple acpi model for LoongArch cpu More complex functions will be added later Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS | 2 + hw/acpi/Kconfig | 4 + hw/acpi/ls7a.c | 374 ++ hw/acpi/me

Re: [PATCH] hw/arm/virt: Fix CPU's default NUMA node ID

2022-02-25 Thread Gavin Shan
Hi Igor, On 2/17/22 10:14 AM, Gavin Shan wrote: On 1/26/22 5:14 PM, Igor Mammedov wrote: On Wed, 26 Jan 2022 13:24:10 +0800 Gavin Shan wrote: The default CPU-to-NUMA association is given by mc->get_default_cpu_node_id() when it isn't provided explicitly. However, the CPU topology isn't fully

[RFC PATCH v6 28/29] hw/loongarch: Add fdt support.

2022-02-25 Thread Xiaojuan Yang
Add tree nodes for 3A5000 device tree. - cpu nodes; - fw_cfg nodes; - pcie nodes. The lastest loongarch bios have supported fdt. - https://github.com/loongson/edk2 - https://github.com/loongson/edk2-platforms Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/loongson3.c

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Igor Mammedov
On Thu, 24 Feb 2022 13:05:07 -0500 "Michael S. Tsirkin" wrote: > On Thu, Feb 24, 2022 at 12:44:09PM -0500, Igor Mammedov wrote: > > on creation a PCIDevice has power turned on at the end of pci_qdev_realize() > > however later on if PCIe slot isn't populated with any children > > it's power is tu

[PATCH] qapi: Belatedly adjust limitations documentation

2022-02-25 Thread Markus Armbruster
Commit 57df0dff1a "qapi: Extend -compat to set policy for unstable interfaces" (v6.2.0) took care of covering experimental features, but neglected to adjust a comment suggesting to cover it. Adjust it now. Fixes: 57df0dff1a1f4c846aa74a082bfd595a8a990015 Signed-off-by: Markus Armbruster --- qapi

[PULL 0/6] OpenRISC DTS Generation patches for 7.0

2022-02-25 Thread Stafford Horne
The following changes since commit 4aa2e497a98bafe962e72997f67a369e4b52d9c1: Merge remote-tracking branch 'remotes/berrange-gitlab/tags/misc-next-pull-request' into staging (2022-02-23 09:25:05 +) are available in the Git repository at: git://github.com/stffrdhrn/qemu.git tags/or1k-pul

[RFC PATCH v6 25/29] hw/loongarch: Add -kernel and -initrd options support

2022-02-25 Thread Xiaojuan Yang
Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- hw/loongarch/loongson3.c | 81 include/hw/loongarch/loongarch.h | 5 ++ 2 files changed, 86 insertions(+) diff --git a/hw/loongarch/loongson3.c b/hw/loongarch/loongson3.c index 2795fcc895..9533057

[PULL 4/6] hw/openrisc/openrisc_sim: Increase max_cpus to 4

2022-02-25 Thread Stafford Horne
Now that we no longer have a limit of 2 CPUs due to fixing the IRQ routing issues we can increase the max. Here we increase the limit to 4, we could go higher, but currently OMPIC has a limit of 4, so we align with that. Signed-off-by: Stafford Horne Reviewed-by: Peter Maydell Reviewed-by: Phil

[PULL 2/6] hw/openrisc/openrisc_sim: Parameterize initialization

2022-02-25 Thread Stafford Horne
Move magic numbers to variables and enums. These will be reused for upcoming fdt initialization. Signed-off-by: Stafford Horne Reviewed-by: Philippe Mathieu-Daudé --- hw/openrisc/openrisc_sim.c | 42 ++ 1 file changed, 34 insertions(+), 8 deletions(-) diff -

[RFC PATCH v6 20/29] hw/loongarch: Add irq hierarchy for the system

2022-02-25 Thread Xiaojuan Yang
This patch add the irq hierarchy for the virt board. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- MAINTAINERS| 1 + hw/loongarch/loongson3.c | 99 ++ include/hw/pci-host/ls7a.h | 30 3 files changed, 130 insertions(

Re: [PATCH 0/4] Fix broken PCIe device after migration

2022-02-25 Thread Igor Mammedov
On Thu, 24 Feb 2022 13:08:11 -0500 "Michael S. Tsirkin" wrote: > On Thu, Feb 24, 2022 at 12:44:07PM -0500, Igor Mammedov wrote: > > Currently ACPI PCI hotplug is enabled by default for Q35 machine > > type and overrides native PCIe hotplug. It works as expected when > > a PCIe device is hotplugge

[PULL 3/6] hw/openrisc/openrisc_sim: Use IRQ splitter when connecting UART

2022-02-25 Thread Stafford Horne
Currently the OpenRISC SMP configuration only supports 2 cores due to the UART IRQ routing being limited to 2 cores. As was done in commit 1eeffbeb11 ("hw/openrisc/openrisc_sim: Use IRQ splitter when connecting IRQ to multiple CPUs") we can use a splitter to wire more than 2 CPUs. This patch move

[RFC PATCH v6 14/29] hw/loongarch: Add support loongson3 virt machine type.

2022-02-25 Thread Xiaojuan Yang
Emulate a 3A5000 board use the new loongarch instruction. 3A5000 belongs to the Loongson3 series processors. The board consists of a 3A5000 cpu model and the virt bridge. The host 3A5000 board is really complicated and contains many functions.Now for the tcg softmmu mode only part functions are emu

[PULL 1/6] hw/openrisc/openrisc_sim: Create machine state for or1ksim

2022-02-25 Thread Stafford Horne
This will allow us to attach machine state attributes like the device tree fdt. Signed-off-by: Stafford Horne Reviewed-by: Philippe Mathieu-Daudé --- hw/openrisc/openrisc_sim.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/hw/openrisc/openri

[RFC PATCH v6 07/29] target/loongarch: Add LoongArch CSR instruction

2022-02-25 Thread Xiaojuan Yang
This includes: - CSRRD - CSRWR - CSRXCHG Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.h| 88 target/loongarch/csr_helper.c | 112 target/loongarch/disas.c | 15 +++ targ

[PULL 5/6] hw/openrisc/openrisc_sim: Add automatic device tree generation

2022-02-25 Thread Stafford Horne
Using the device tree means that qemu can now directly tell the kernel what hardware is configured rather than use having to maintain and update a separate device tree file. This patch adds automatic device tree generation support for the OpenRISC simulator. A device tree is built up based on the

[PATCH v9 3/3] qapi/monitor: allow VNC display id in set/expire_password

2022-02-25 Thread Fabian Ebner
From: Stefan Reiter It is possible to specify more than one VNC server on the command line, either with an explicit ID or the auto-generated ones à la "default", "vnc2", "vnc3", ... It is not possible to change the password on one of these extra VNC displays though. Fix this by adding a "display

Re: [PATCH v2 0/3] qapi: Move RTC_CHANGE back out of target schema

2022-02-25 Thread Markus Armbruster
Peter Maydell writes: > This patchset moves RTC_CHANGE back to misc.json, effectively > reverting commit 183e4281a30962, which moved the RTC_CHANGE event to > the target schema. That change was an attempt to make the event > target-specific to improve introspection, but the event isn't really >

[PATCH v9 1/3] monitor/hmp: add support for flag argument with value

2022-02-25 Thread Fabian Ebner
From: Stefan Reiter Adds support for the "-xs" parameter type, where "-x" denotes a flag name and the "s" suffix indicates that this flag is supposed to take an arbitrary string parameter. These parameters are always optional, the entry in the qdict will be omitted if the flag is not given. Rev

[PATCH v9 0/3] VNC-related HMP/QMP fixes

2022-02-25 Thread Fabian Ebner
Original cover letter by Stefan R.: Since the removal of the generic 'qmp_change' command, one can no longer replace the 'default' VNC display listen address at runtime (AFAIK). For our users who need to set up a secondary VNC access port, this means configuring a second VNC display (in addition t

Re: [PATCH] hw/arm/virt: Fix CPU's default NUMA node ID

2022-02-25 Thread Igor Mammedov
On Fri, 25 Feb 2022 16:41:43 +0800 Gavin Shan wrote: > Hi Igor, > > On 2/17/22 10:14 AM, Gavin Shan wrote: > > On 1/26/22 5:14 PM, Igor Mammedov wrote: > >> On Wed, 26 Jan 2022 13:24:10 +0800 > >> Gavin Shan wrote: > >> > >>> The default CPU-to-NUMA association is given by > >>> mc->get_de

[PATCH v9 2/3] qapi/monitor: refactor set/expire_password with enums

2022-02-25 Thread Fabian Ebner
From: Stefan Reiter 'protocol' and 'connected' are better suited as enums than as strings, make use of that. No functional change intended. Suggested-by: Markus Armbruster Reviewed-by: Markus Armbruster Signed-off-by: Stefan Reiter [FE: update "Since: " from 6.2 to 7.0 put 'keep' first i

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Michael S. Tsirkin
On Thu, Feb 24, 2022 at 12:44:09PM -0500, Igor Mammedov wrote: > on creation a PCIDevice has power turned on at the end of pci_qdev_realize() > however later on if PCIe slot isn't populated with any children > it's power is turned off. It's fine if native hotplug is used > as plug callback will pow

Re: [PATCH v13 4/4] target/ppc: trigger PERFM EBBs from power8-pmu.c

2022-02-25 Thread Daniel Henrique Barboza
On 2/24/22 18:45, Richard Henderson wrote: On 2/24/22 10:19, Daniel Henrique Barboza wrote: +void helper_ebb_perfm_excp(CPUPPCState *env) Please reserve the prefix "helper_" for something that is called from tcg generated code, which this is not. The prefix is due to the fact that this i

Re: [PATCH 0/2] Minor doc fixes

2022-02-25 Thread Markus Armbruster
Queued.

[PATCH v14 2/4] target/ppc: finalize pre-EBB PMU logic

2022-02-25 Thread Daniel Henrique Barboza
There are still PMU exclusive bits to handle in fire_PMC_interrupt() before implementing the EBB support. Let's finalize it now to avoid dealing with PMU and EBB logic at the same time in the next patches. fire_PMC_interrupt() will fire an Performance Monitor alert depending on MMCR0_PMAE. If we a

[PATCH v14 1/4] target/ppc: make power8-pmu.c CONFIG_TCG only

2022-02-25 Thread Daniel Henrique Barboza
This is an exclusive TCG helper. Gating it with CONFIG_TCG and changing meson.build accordingly will prevent problems --disable-tcg and --disable-linux-user later on. We're also changing the uses of !kvm_enabled() to tcg_enabled() to avoid adding "defined(CONFIG_TCG)" ifdefs, since tcg_enabled() w

Re: [PATCH v2] Added parameter to take screenshot with screendump as PNG

2022-02-25 Thread Daniel P . Berrangé
On Fri, Feb 25, 2022 at 11:26:20AM +0530, Kshitij Suri wrote: > > On 24/02/22 9:48 pm, Daniel P. Berrangé wrote: > > On Thu, Feb 24, 2022 at 11:59:08AM +, Kshitij Suri wrote: > > > Currently screendump only supports PPM format, which is un-compressed and > > > not > > > standard. Added a "for

[PATCH v14 4/4] target/ppc: trigger PERFM EBBs from power8-pmu.c

2022-02-25 Thread Daniel Henrique Barboza
This patch adds the EBB exception support that are triggered by Performance Monitor alerts. This happens when a Performance Monitor alert occurs and MMCR0_EBE, BESCR_PME and BESCR_GE are set. fire_PMC_interrupt() will execute the raise_ebb_perfm_exception() helper which will check for MMCR0_EBE, B

[PATCH v14 3/4] target/ppc: add PPC_INTERRUPT_EBB and EBB exceptions

2022-02-25 Thread Daniel Henrique Barboza
PPC_INTERRUPT_EBB is a new interrupt that will be used to deliver EBB exceptions that had to be postponed because the thread wasn't in problem state at the time the event-based branch was supposed to occur. ISA 3.1 also defines two EBB exceptions: Performance Monitor EBB exception and External EBB

Re: [PATCH v5 00/16] host: Support macOS 12

2022-02-25 Thread Philippe Mathieu-Daudé
On 18/2/22 16:26, Peter Maydell wrote: On Mon, 14 Feb 2022 at 18:56, Philippe Mathieu-Daudé wrote: Few patches to be able to build QEMU on macOS 12 (Monterey). This basically consists of adapting deprecated APIs. CI job added to avoid bitrotting. Hi; I'm going to take the "obviously correc

[PATCH v14 0/4] PMU-EBB support for PPC64 TCG

2022-02-25 Thread Daniel Henrique Barboza
Hi, This new version contains a change suggested by Richard in patch 4. No function change was made. Changes from v13: - patch 1: * added Richard's r-b - patch 4: * renamed helper_ebb_perfm_excp() to raise_ebb_perfm_exception(). The function is no longer declared as translation helper - v

Re: [PATCH v2] Added parameter to take screenshot with screendump as PNG

2022-02-25 Thread Kshitij Suri
On 25/02/22 2:40 pm, Daniel P. Berrangé wrote: On Fri, Feb 25, 2022 at 11:26:20AM +0530, Kshitij Suri wrote: On 24/02/22 9:48 pm, Daniel P. Berrangé wrote: On Thu, Feb 24, 2022 at 11:59:08AM +, Kshitij Suri wrote: Currently screendump only supports PPM format, which is un-compressed and

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Gerd Hoffmann
Hi, >pcie_cap_slot_post_load() >-> pcie_cap_update_power() >-> pcie_set_power_device() >-> pci_set_power() >-> pci_update_mappings() > Fix it by honoring PCI_EXP_SLTCAP_PCP and updating power status > only if capability is enabled. >

Re: [PATCH v2] target/arm: Support PSCI 1.1 and SMCCC 1.0

2022-02-25 Thread Peter Maydell
On Fri, 25 Feb 2022 at 03:36, Akihiko Odaki wrote: > > On 2022/02/24 21:53, Peter Maydell wrote: > > On Sun, 13 Feb 2022 at 03:58, Akihiko Odaki wrote: > >> > >> Support the latest PSCI on TCG and HVF. A 64-bit function called from > >> AArch32 now returns NOT_SUPPORTED, which is necessary to adh

Re: [PATCH v5 00/16] host: Support macOS 12

2022-02-25 Thread Peter Maydell
On Fri, 25 Feb 2022 at 09:26, Philippe Mathieu-Daudé wrote: > If there is no objections I'll send a PR with the non-cocoa macOS > fixes for 7.0, so Monterey users can build QEMU without having to > disable failing features and flooded by hundreds of warnings. We should definitely get this in for

Re: [PATCH RFC v1 0/2] VM fork detection for RNG

2022-02-25 Thread Michael S. Tsirkin
On Thu, Feb 24, 2022 at 11:57:34AM +0100, Jason A. Donenfeld wrote: > On Thu, Feb 24, 2022 at 11:56 AM Daniel P. Berrangé > wrote: > > IIRC this part of the QEMU doc was making an implicit assumption > > about the way QEMU is to be used by mgmt apps doing snapshots. > > > > Instead of using the '

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Michael S. Tsirkin
On Fri, Feb 25, 2022 at 09:18:30AM +0100, Igor Mammedov wrote: > On Thu, 24 Feb 2022 13:05:07 -0500 > "Michael S. Tsirkin" wrote: > > > On Thu, Feb 24, 2022 at 12:44:09PM -0500, Igor Mammedov wrote: > > > on creation a PCIDevice has power turned on at the end of > > > pci_qdev_realize() > > > ho

Re: [PATCH 0/4] Fix broken PCIe device after migration

2022-02-25 Thread Michael S. Tsirkin
On Thu, Feb 24, 2022 at 12:44:07PM -0500, Igor Mammedov wrote: > Currently ACPI PCI hotplug is enabled by default for Q35 machine > type and overrides native PCIe hotplug. It works as expected when > a PCIe device is hotplugged into slot, however the device becomes > in-operational after migration.

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Michael S. Tsirkin
On Fri, Feb 25, 2022 at 11:12:59AM +0100, Gerd Hoffmann wrote: > Hi, > > >pcie_cap_slot_post_load() > >-> pcie_cap_update_power() > >-> pcie_set_power_device() > >-> pci_set_power() > >-> pci_update_mappings() > > > Fix it by honoring

Re: [PATCH v3 2/2] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Laszlo Ersek
On 02/24/22 14:39, Jason A. Donenfeld wrote: > VM Generation ID is a feature from Microsoft, described at > , and supported by > Hyper-V and QEMU. Its usage is described in Microsoft's RNG whitepaper, > , as: > > If the O

Re: [RFC PATCH 4/4] spapr: Add KVM-on-TCG migration support

2022-02-25 Thread Nicholas Piggin
Excerpts from David Gibson's message of February 25, 2022 1:42 pm: > On Thu, Feb 24, 2022 at 03:58:17PM -0300, Fabiano Rosas wrote: >> This adds migration support for TCG pseries machines running a KVM-HV >> guest. >> @@ -734,6 +777,7 @@ const VMStateDescription vmstate_ppc_cpu = { >> &vms

Re: [PATCH v2 3/8] x86: Grant AMX permission for guest

2022-02-25 Thread Yang Zhong
On Thu, Feb 17, 2022 at 02:44:10PM +0100, Paolo Bonzini wrote: > On 2/17/22 06:58, Yang Zhong wrote: > >>+ > >>+if ((mask & XSTATE_XTILE_DATA_MASK) == XSTATE_XTILE_DATA_MASK) { > >>+bitmask = kvm_arch_get_supported_cpuid(s, 0xd, 0, R_EAX); > >>+if (!(bitmask & XSTATE_XTILE_DATA_

Re: [PATCH v2 0/5] Misc OHCI clean ups

2022-02-25 Thread BALATON Zoltan
On Wed, 16 Feb 2022, BALATON Zoltan wrote: On Tue, 8 Feb 2022, BALATON Zoltan wrote: On Tue, 25 Jan 2022, BALATON Zoltan wrote: v2 - Fixed checkpatch errors Hello, Ping? Ping^2 Ping^3 https://patchew.org/QEMU/cover.1643117600.git.bala...@eik.bme.hu/ Regards, BALATON Zoltan I have th

Re: [PATCH v3 2/2] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Ard Biesheuvel
On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > VM Generation ID is a feature from Microsoft, described at > , and supported by > Hyper-V and QEMU. Its usage is described in Microsoft's RNG whitepaper, > , as: > >

Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Ard Biesheuvel
On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > When a VM forks, we must immediately mix in additional information to > the stream of random output so that two forks or a rollback don't > produce the same stream of random numbers, which could have catastrophic > cryptographic consequen

Re: [PULL 0/6] Python patches

2022-02-25 Thread Peter Maydell
On Wed, 23 Feb 2022 at 22:09, John Snow wrote: > > The following changes since commit 31e3caf21b6cdf54d11f3744b8b341f07a30b5d7: > > Merge remote-tracking branch > 'remotes/lvivier-gitlab/tags/trivial-branch-for-7.0-pull-request' into > staging (2022-02-22 20:17:09 +) > > are available in t

Re: Fix a potential memory leak bug in write_boot_rom() (v6.2.0).

2022-02-25 Thread Peter Maydell
On Fri, 25 Feb 2022 at 03:33, wrote: > > > > > > yes. Could you please send a patch using g_autofree ? > > > > Thanks, > > > > C. > > > Here is the new patch. Hi; that patch doesn't seem to be using g_autofree. Did you attach the wrong version of it? You've sent a few patches recently, and they

Re: [PATCH v4 13/14] hw/mem/system-memory: add a memory sysbus device

2022-02-25 Thread Igor Mammedov
On Thu, 24 Feb 2022 12:43:21 +0100 Damien Hedde wrote: > On 2/24/22 10:55, Igor Mammedov wrote: > > On Wed, 23 Feb 2022 11:19:49 +0100 > > Damien Hedde wrote: > > > >> On 2/23/22 10:44, Igor Mammedov wrote: > >>> On Wed, 23 Feb 2022 10:07:05 +0100 > >>> Damien Hedde wrote: > >>> > >>

Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Jason A. Donenfeld
On Fri, Feb 25, 2022 at 12:26 PM Ard Biesheuvel wrote: > > On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > > > When a VM forks, we must immediately mix in additional information to > > the stream of random output so that two forks or a rollback don't > > produce the same stream of ran

Re: Re: Fix a potential Use-after-free bug in handle_simd_shift_fpint_conv() (v6.2.0).

2022-02-25 Thread Peter Maydell
On Fri, 25 Feb 2022 at 04:05, wrote: > > > > > > The fix is correct. We just need the submission formatted properly, with > > your > > Signed-off-by tag. When re-formatting, you can add my > > > > Reviewed-by: Richard Henderson > > > > > r~ > > Hi guys, > > Thank you for waiting for me. > > He

Re: [PATCH v9 3/3] qapi/monitor: allow VNC display id in set/expire_password

2022-02-25 Thread Markus Armbruster
Fabian Ebner writes: > From: Stefan Reiter > > It is possible to specify more than one VNC server on the command line, > either with an explicit ID or the auto-generated ones à la "default", > "vnc2", "vnc3", ... > > It is not possible to change the password on one of these extra VNC > displays

Re: [PATCH v4] tests/qtest: add qtests for npcm7xx sdhci

2022-02-25 Thread Peter Maydell
On Thu, 24 Feb 2022 at 19:03, Hao Wu wrote: > > From: Shengtan Mao > > Reviewed-by: Hao Wu > Reviewed-by: Chris Rauer > Signed-off-by: Shengtan Mao > Signed-off-by: Patrick Venture > Signed-off-by: Hao Wu > --- > v4: > * use strncmp to compare fixed length strings > v3: > * fixup compilati

Re: [PATCH] hw/intc/armv7m_nvic: Fix typo in comment

2022-02-25 Thread Evgeny Ermakov
Ah, indeed. Sorry for having bothered you. On Thu, 24 Feb 2022, 23:46 Peter Maydell, wrote: > On Thu, 24 Feb 2022 at 12:22, Evgeny Ermakov > wrote: > > > > Signed-off-by: Evgeny Ermakov > > --- > > hw/intc/armv7m_nvic.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff

Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Ard Biesheuvel
On Fri, 25 Feb 2022 at 12:44, Jason A. Donenfeld wrote: > > On Fri, Feb 25, 2022 at 12:26 PM Ard Biesheuvel wrote: > > > > On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > > > > > When a VM forks, we must immediately mix in additional information to > > > the stream of random output s

Re: [PATCH v3 2/2] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Michael S. Tsirkin
On Fri, Feb 25, 2022 at 12:24:05PM +0100, Ard Biesheuvel wrote: > On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > > > VM Generation ID is a feature from Microsoft, described at > > , and supported by > > Hyper-V and QEMU. Its usage is des

[PATCH 1/2] Replacing CONFIG_VNC_PNG with CONFIG_PNG

2022-02-25 Thread Kshitij Suri
Libpng is only detected if VNC is enabled currently. This patch adds a generalised png option in the meson build which is aimed to replace use of CONFIG_VNC_PNG with CONFIG_PNG. Signed-off-by: Kshitij Suri --- meson.build| 10 +- meson_options.txt | 4 ++-- ui/vnc-enc-tight.c |

[PATCH 2/2] Added parameter to take screenshot with screendump as PNG

2022-02-25 Thread Kshitij Suri
Currently screendump only supports PPM format, which is un-compressed and not standard. Added a "format" parameter to qemu monitor screendump capabilites to support PNG image capture using libpng. The param was added in QAPI schema of screendump present in ui.json along with png_save() function whi

Re: [PATCH v3 2/2] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Jason A. Donenfeld
On Fri, Feb 25, 2022 at 12:52 PM Michael S. Tsirkin wrote: > > > if VIRT_DRIVERS > > > > > > +config VMGENID > > > + tristate "Virtual Machine Generation ID driver" > > > + default y > > > > Please make this default m - this code can run as a module and the > > feature it relies on is

Re: [PATCH v3 2/2] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Jason A. Donenfeld
On Fri, Feb 25, 2022 at 12:24 PM Ard Biesheuvel wrote: > > > @@ -13,6 +13,15 @@ menuconfig VIRT_DRIVERS > > > > if VIRT_DRIVERS > > > > +config VMGENID > > + tristate "Virtual Machine Generation ID driver" > > + default y > > Please make this default m - this code can run as a module

Re: [PATCH v9 3/3] qapi/monitor: allow VNC display id in set/expire_password

2022-02-25 Thread Fabian Ebner
Am 25.02.22 um 12:34 schrieb Markus Armbruster: > Fabian Ebner writes: > >> From: Stefan Reiter >> >> It is possible to specify more than one VNC server on the command line, >> either with an explicit ID or the auto-generated ones à la "default", >> "vnc2", "vnc3", ... >> >> It is not possible t

Re: [PATCH v3 4/6] i386/pc: relocate 4g start to 1T where applicable

2022-02-25 Thread Joao Martins
On 2/24/22 21:40, Alex Williamson wrote: > On Thu, 24 Feb 2022 20:34:40 + > Joao Martins wrote: > >> On 2/24/22 20:12, Michael S. Tsirkin wrote: >>> On Thu, Feb 24, 2022 at 08:04:48PM +, Joao Martins wrote: On 2/24/22 19:54, Michael S. Tsirkin wrote: > On Thu, Feb 24, 2022 at

Re: [PATCH v3 4/6] i386/pc: relocate 4g start to 1T where applicable

2022-02-25 Thread Joao Martins
On 2/25/22 05:22, Michael S. Tsirkin wrote: > On Thu, Feb 24, 2022 at 08:34:40PM +, Joao Martins wrote: >> On 2/24/22 20:12, Michael S. Tsirkin wrote: >>> On Thu, Feb 24, 2022 at 08:04:48PM +, Joao Martins wrote: On 2/24/22 19:54, Michael S. Tsirkin wrote: > On Thu, Feb 24, 2022 at

Re: Call for GSoC and Outreachy project ideas for summer 2022

2022-02-25 Thread Stefan Hajnoczi
On Tue, 22 Feb 2022 at 15:03, Keith Busch wrote: > > On Tue, Feb 22, 2022 at 09:48:06AM +, Stefan Hajnoczi wrote: > > On Mon, 21 Feb 2022 at 12:00, Klaus Jensen wrote: > > > > > > Yes, I'll go ahead as mentor for this. > > > > > > @Keith, if you want to join in, let us know :) > > Thank you f

Re: [PATCH v9 3/3] qapi/monitor: allow VNC display id in set/expire_password

2022-02-25 Thread Markus Armbruster
Fabian Ebner writes: > Am 25.02.22 um 12:34 schrieb Markus Armbruster: >> Fabian Ebner writes: >> >>> From: Stefan Reiter >>> >>> It is possible to specify more than one VNC server on the command line, >>> either with an explicit ID or the auto-generated ones à la "default", >>> "vnc2", "vnc3"

[PATCH v4] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Jason A. Donenfeld
VM Generation ID is a feature from Microsoft, described at , and supported by Hyper-V and QEMU. Its usage is described in Microsoft's RNG whitepaper, , as: If the OS is running in a VM, there is a problem that most hy

Re: [PATCH v3 4/6] i386/pc: relocate 4g start to 1T where applicable

2022-02-25 Thread Michael S. Tsirkin
On Fri, Feb 25, 2022 at 12:36:24PM +, Joao Martins wrote: > I am trying to approach this iteratively and starting by fixing AMD 1T+ guests > with something that hopefully is less painful to bear and unbreaks users doing > multi-TB guests on kernels >= 5.4. While for < 5.4 it would not wrongly b

Re: [PATCH v2 4/4] hw/nios2: Machine with a Vectored Interrupt Controller

2022-02-25 Thread Peter Maydell
On Thu, 24 Feb 2022 at 13:50, Amir Gonnen wrote: > > Demonstrate how to use nios2 VIC on a machine. > Introduce a new machine "10m50-ghrd-vic" which is based on "10m50-ghrd" > with a VIC attached and internal interrupt controller removed. > > When VIC is present, irq0 connects the VIC to the cpu,

Re: [PATCH v5 15/16] lcitool: refresh

2022-02-25 Thread Peter Maydell
On Mon, 14 Feb 2022 at 18:58, Philippe Mathieu-Daudé wrote: > > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/ubuntu1804.docker | 2 -- > tests/docker/dockerfiles/ubuntu2004.docker | 2 -- > 2 files changed, 4 deletions(-) What's happening here? The commit message only

Re: [PATCH v4] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Greg KH
On Fri, Feb 25, 2022 at 01:48:48PM +0100, Jason A. Donenfeld wrote: > +static struct acpi_driver acpi_driver = { > + .name = "vmgenid", > + .ids = vmgenid_ids, > + .owner = THIS_MODULE, > + .ops = { > + .add = vmgenid_acpi_add, > + .notify = vmgenid_acpi_noti

Re: [PATCH v5 13/16] ui/cocoa: Add Services menu

2022-02-25 Thread Peter Maydell
On Mon, 14 Feb 2022 at 18:58, Philippe Mathieu-Daudé wrote: > > From: Akihiko Odaki > > Services menu functionality of Cocoa is described at: > https://developer.apple.com/design/human-interface-guidelines/macos/extensions/services/ > > Signed-off-by: Akihiko Odaki > Reviewed-by: Philippe Mathie

Re: [PATCH 2/4] pcie: update slot power status only is power control is enabled

2022-02-25 Thread Igor Mammedov
On Fri, 25 Feb 2022 11:12:59 +0100 Gerd Hoffmann wrote: > Hi, > > >pcie_cap_slot_post_load() > >-> pcie_cap_update_power() > >-> pcie_set_power_device() > >-> pci_set_power() > >-> pci_update_mappings() > > > Fix it by honoring P

Re: [PATCH v4] virt: vmgenid: introduce driver for reinitializing RNG on VM fork

2022-02-25 Thread Greg KH
On Fri, Feb 25, 2022 at 01:48:48PM +0100, Jason A. Donenfeld wrote: > VM Generation ID is a feature from Microsoft, described at > , and supported by > Hyper-V and QEMU. Its usage is described in Microsoft's RNG whitepaper, >

  1   2   3   4   >