* [PULL 0/3] target-arm queue
@ 2019-11-11 13:58 Peter Maydell
2019-11-11 16:54 ` Peter Maydell
2019-11-12 6:46 ` no-reply
0 siblings, 2 replies; 12+ messages in thread
From: Peter Maydell @ 2019-11-11 13:58 UTC (permalink / raw)
To: qemu-devel
Arm patches for rc1:
* two final "remove the old API" patches for some API transitions
* bugfix for raspi/highbank Linux boot
thanks
-- PMM
The following changes since commit 654efcb511d394c1d3f5292c28503d1d19e5b1d3:
Merge remote-tracking branch 'remotes/vivier/tags/q800-branch-pull-request' into staging (2019-11-11 09:23:46 +0000)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20191111
for you to fetch changes up to 45c078f163fd47c35e7505d98928fae63baada7d:
hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine (2019-11-11 13:44:16 +0000)
----------------------------------------------------------------
target-arm queue:
* Remove old unassigned_access CPU hook API
* Remove old ptimer_init_with_bh() API
* hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine
----------------------------------------------------------------
Clement Deschamps (1):
hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine
Peter Maydell (2):
ptimer: Remove old ptimer_init_with_bh() API
Remove unassigned_access CPU hook
include/hw/arm/boot.h | 7 ++--
include/hw/core/cpu.h | 24 --------------
include/hw/ptimer.h | 45 ++++++++++++-------------
accel/tcg/cputlb.c | 2 --
hw/arm/boot.c | 3 ++
hw/core/ptimer.c | 91 +++++++++------------------------------------------
memory.c | 7 ----
7 files changed, 44 insertions(+), 135 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PULL 0/3] target-arm queue
2019-11-11 13:58 Peter Maydell
@ 2019-11-11 16:54 ` Peter Maydell
2019-11-12 6:46 ` no-reply
1 sibling, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2019-11-11 16:54 UTC (permalink / raw)
To: QEMU Developers
On Mon, 11 Nov 2019 at 13:58, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> Arm patches for rc1:
> * two final "remove the old API" patches for some API transitions
> * bugfix for raspi/highbank Linux boot
>
> thanks
> -- PMM
>
> The following changes since commit 654efcb511d394c1d3f5292c28503d1d19e5b1d3:
>
> Merge remote-tracking branch 'remotes/vivier/tags/q800-branch-pull-request' into staging (2019-11-11 09:23:46 +0000)
>
> are available in the Git repository at:
>
> https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20191111
>
> for you to fetch changes up to 45c078f163fd47c35e7505d98928fae63baada7d:
>
> hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine (2019-11-11 13:44:16 +0000)
>
> ----------------------------------------------------------------
> target-arm queue:
> * Remove old unassigned_access CPU hook API
> * Remove old ptimer_init_with_bh() API
> * hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine
>
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PULL 0/3] target-arm queue
2019-11-11 13:58 Peter Maydell
2019-11-11 16:54 ` Peter Maydell
@ 2019-11-12 6:46 ` no-reply
1 sibling, 0 replies; 12+ messages in thread
From: no-reply @ 2019-11-12 6:46 UTC (permalink / raw)
To: peter.maydell; +Cc: qemu-devel
Patchew URL: https://patchew.org/QEMU/20191111135803.14414-1-peter.maydell@linaro.org/
Hi,
This series seems to have some coding style problems. See output below for
more information:
Subject: [PULL 0/3] target-arm queue
Type: series
Message-id: 20191111135803.14414-1-peter.maydell@linaro.org
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Switched to a new branch 'test'
=== OUTPUT BEGIN ===
checkpatch.pl: no revisions returned for revlist '1'
=== OUTPUT END ===
Test command exited with code: 255
The full log is available at
http://patchew.org/logs/20191111135803.14414-1-peter.maydell@linaro.org/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PULL 0/3] target-arm queue
@ 2021-04-13 12:07 Peter Maydell
2021-04-13 20:04 ` Peter Maydell
0 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2021-04-13 12:07 UTC (permalink / raw)
To: qemu-devel
A few last patches to go in for rc3...
The following changes since commit c1e90def01bdb8fcbdbebd9d1eaa8e4827ece620:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210412' into staging (2021-04-12 12:12:09 +0100)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20210413
for you to fetch changes up to 2d18b4ca023ca1a3aee18064251d6e6e1084f3eb:
sphinx: qapidoc: Wrap "If" section body in a paragraph node (2021-04-13 10:14:58 +0100)
----------------------------------------------------------------
target-arm queue:
* Fix MPC setting for AN524 SRAM block
* sphinx: qapidoc: Wrap "If" section body in a paragraph node
----------------------------------------------------------------
John Snow (1):
sphinx: qapidoc: Wrap "If" section body in a paragraph node
Peter Maydell (2):
hw/arm/mps2-tz: Fix MPC setting for AN524 SRAM block
hw/arm/mps2-tz: Assert if more than one RAM is attached to an MPC
docs/sphinx/qapidoc.py | 4 +++-
hw/arm/mps2-tz.c | 10 +++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PULL 0/3] target-arm queue
2021-04-13 12:07 Peter Maydell
@ 2021-04-13 20:04 ` Peter Maydell
0 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2021-04-13 20:04 UTC (permalink / raw)
To: QEMU Developers
On Tue, 13 Apr 2021 at 13:07, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> A few last patches to go in for rc3...
>
> The following changes since commit c1e90def01bdb8fcbdbebd9d1eaa8e4827ece620:
>
> Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210412' into staging (2021-04-12 12:12:09 +0100)
>
> are available in the Git repository at:
>
> https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20210413
>
> for you to fetch changes up to 2d18b4ca023ca1a3aee18064251d6e6e1084f3eb:
>
> sphinx: qapidoc: Wrap "If" section body in a paragraph node (2021-04-13 10:14:58 +0100)
>
> ----------------------------------------------------------------
> target-arm queue:
> * Fix MPC setting for AN524 SRAM block
> * sphinx: qapidoc: Wrap "If" section body in a paragraph node
>
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PULL 0/3] target-arm queue
@ 2022-08-01 15:36 Peter Maydell
2022-08-01 20:54 ` Richard Henderson
0 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2022-08-01 15:36 UTC (permalink / raw)
To: qemu-devel
Only thing for Arm for rc1 is RTH's fix for the KVM SVE probe code.
-- PMM
The following changes since commit 4e06b3fc1b5e1ec03f22190eabe56891dc9c2236:
Merge tag 'pull-hex-20220731' of https://github.com/quic/qemu into staging (2022-07-31 21:38:54 -0700)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20220801
for you to fetch changes up to 5265d24c981dfdda8d29b44f7e84a514da75eedc:
target/arm: Move sve probe inside kvm >= 4.15 branch (2022-08-01 16:21:18 +0100)
----------------------------------------------------------------
target-arm queue:
* Fix KVM SVE ID register probe code
----------------------------------------------------------------
Richard Henderson (3):
target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features
target/arm: Set KVM_ARM_VCPU_SVE while probing the host
target/arm: Move sve probe inside kvm >= 4.15 branch
target/arm/kvm64.c | 45 ++++++++++++++++++++++-----------------------
1 file changed, 22 insertions(+), 23 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PULL 0/3] target-arm queue
2022-08-01 15:36 Peter Maydell
@ 2022-08-01 20:54 ` Richard Henderson
0 siblings, 0 replies; 12+ messages in thread
From: Richard Henderson @ 2022-08-01 20:54 UTC (permalink / raw)
To: Peter Maydell, qemu-devel
On 8/1/22 08:36, Peter Maydell wrote:
> Only thing for Arm for rc1 is RTH's fix for the KVM SVE probe code.
>
> -- PMM
>
> The following changes since commit 4e06b3fc1b5e1ec03f22190eabe56891dc9c2236:
>
> Merge tag 'pull-hex-20220731' of https://github.com/quic/qemu into staging (2022-07-31 21:38:54 -0700)
>
> are available in the Git repository at:
>
> https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20220801
>
> for you to fetch changes up to 5265d24c981dfdda8d29b44f7e84a514da75eedc:
>
> target/arm: Move sve probe inside kvm >= 4.15 branch (2022-08-01 16:21:18 +0100)
>
> ----------------------------------------------------------------
> target-arm queue:
> * Fix KVM SVE ID register probe code
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.
r~
>
> ----------------------------------------------------------------
> Richard Henderson (3):
> target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features
> target/arm: Set KVM_ARM_VCPU_SVE while probing the host
> target/arm: Move sve probe inside kvm >= 4.15 branch
>
> target/arm/kvm64.c | 45 ++++++++++++++++++++++-----------------------
> 1 file changed, 22 insertions(+), 23 deletions(-)
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PULL 0/3] target-arm queue
@ 2025-11-03 15:46 Peter Maydell
2025-11-03 15:46 ` [PULL 1/3] hw/arm/imx8mp-evk: Add KVM support Peter Maydell
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Peter Maydell @ 2025-11-03 15:46 UTC (permalink / raw)
To: qemu-devel
One last small target-arm pullreq for before softfreeze.
thanks
-- PMM
The following changes since commit 53b41bb78950912ba2d9809eef6b45e4df30c647:
Merge tag 'pull-target-arm-20251031' of https://gitlab.com/pm215/qemu into staging (2025-11-01 10:52:48 +0100)
are available in the Git repository at:
https://gitlab.com/pm215/qemu.git tags/pull-target-arm-20251103
for you to fetch changes up to 5848d2c3a6c4cc1b37234db462b1b36bc0a18bf4:
docs/devel/testing/fuzzing: Note that you can get qtest to read from a file (2025-11-03 14:16:53 +0000)
----------------------------------------------------------------
target-arm queue:
* allow KVM accelerator on imx8mp-evk
* docs/devel/testing/fuzzing: Note that you can get qtest to read from a file
----------------------------------------------------------------
Bernhard Beschow (2):
hw/arm/imx8mp-evk: Add KVM support
hw/arm/imx8mp-evk: Fix guest time in KVM mode
Peter Maydell (1):
docs/devel/testing/fuzzing: Note that you can get qtest to read from a file
docs/devel/testing/fuzzing.rst | 9 +++++++++
docs/system/arm/imx8mp-evk.rst | 19 +++++++++++++++++++
hw/arm/fsl-imx8mp.c | 34 +++++++++++++++++++++++++++++-----
hw/arm/imx8mp-evk.c | 20 ++++++++++++++++++++
hw/arm/Kconfig | 3 ++-
5 files changed, 79 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PULL 1/3] hw/arm/imx8mp-evk: Add KVM support
2025-11-03 15:46 [PULL 0/3] target-arm queue Peter Maydell
@ 2025-11-03 15:46 ` Peter Maydell
2025-11-03 15:46 ` [PULL 2/3] hw/arm/imx8mp-evk: Fix guest time in KVM mode Peter Maydell
` (2 subsequent siblings)
3 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2025-11-03 15:46 UTC (permalink / raw)
To: qemu-devel
From: Bernhard Beschow <shentey@gmail.com>
Allows the imx8mp-evk machine to run guests with KVM acceleration.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-id: 20251101120130.236721-2-shentey@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
docs/system/arm/imx8mp-evk.rst | 19 +++++++++++++++++++
hw/arm/fsl-imx8mp.c | 34 +++++++++++++++++++++++++++++-----
hw/arm/imx8mp-evk.c | 11 +++++++++++
hw/arm/Kconfig | 3 ++-
4 files changed, 61 insertions(+), 6 deletions(-)
diff --git a/docs/system/arm/imx8mp-evk.rst b/docs/system/arm/imx8mp-evk.rst
index b2f7d29ade5..75c8fbd3668 100644
--- a/docs/system/arm/imx8mp-evk.rst
+++ b/docs/system/arm/imx8mp-evk.rst
@@ -60,3 +60,22 @@ Now that everything is prepared the machine can be started as follows:
-dtb imx8mp-evk.dtb \
-append "root=/dev/mmcblk2p2" \
-drive file=sdcard.img,if=sd,bus=2,format=raw,id=mmcblk2
+
+
+KVM Acceleration
+----------------
+
+To enable hardware-assisted acceleration via KVM, append
+``-accel kvm -cpu host`` to the command line. While this speeds up performance
+significantly, be aware of the following limitations:
+
+* The ``imx8mp-evk`` machine is not included under the "virtualization use case"
+ of :doc:`QEMU's security policy </system/security>`. This means that you
+ should not trust that it can contain malicious guests, whether it is run
+ using TCG or KVM. If you don't trust your guests and you're relying on QEMU to
+ be the security boundary, you want to choose another machine such as ``virt``.
+* Rather than Cortex-A53 CPUs, the same CPU type as the host's will be used.
+ This is a limitation of KVM and may not work with guests with a tight
+ dependency on Cortex-A53.
+* No EL2 and EL3 exception levels are available which is also a KVM limitation.
+ Direct kernel boot should work but running U-Boot, TF-A, etc. won't succeed.
diff --git a/hw/arm/fsl-imx8mp.c b/hw/arm/fsl-imx8mp.c
index 866f4d1d740..ee6f3e42d23 100644
--- a/hw/arm/fsl-imx8mp.c
+++ b/hw/arm/fsl-imx8mp.c
@@ -12,11 +12,13 @@
#include "system/address-spaces.h"
#include "hw/arm/bsa.h"
#include "hw/arm/fsl-imx8mp.h"
-#include "hw/intc/arm_gicv3.h"
#include "hw/misc/unimp.h"
#include "hw/boards.h"
+#include "system/kvm.h"
#include "system/system.h"
+#include "target/arm/cpu.h"
#include "target/arm/cpu-qom.h"
+#include "target/arm/kvm_arm.h"
#include "qapi/error.h"
#include "qobject/qlist.h"
@@ -193,15 +195,15 @@ static void fsl_imx8mp_init(Object *obj)
{
MachineState *ms = MACHINE(qdev_get_machine());
FslImx8mpState *s = FSL_IMX8MP(obj);
+ const char *cpu_type = ms->cpu_type ?: ARM_CPU_TYPE_NAME("cortex-a53");
int i;
for (i = 0; i < MIN(ms->smp.cpus, FSL_IMX8MP_NUM_CPUS); i++) {
g_autofree char *name = g_strdup_printf("cpu%d", i);
- object_initialize_child(obj, name, &s->cpu[i],
- ARM_CPU_TYPE_NAME("cortex-a53"));
+ object_initialize_child(obj, name, &s->cpu[i], cpu_type);
}
- object_initialize_child(obj, "gic", &s->gic, TYPE_ARM_GICV3);
+ object_initialize_child(obj, "gic", &s->gic, gicv3_class_name());
object_initialize_child(obj, "ccm", &s->ccm, TYPE_IMX8MP_CCM);
@@ -274,7 +276,8 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
/* CPUs */
for (i = 0; i < ms->smp.cpus; i++) {
/* On uniprocessor, the CBAR is set to 0 */
- if (ms->smp.cpus > 1) {
+ if (ms->smp.cpus > 1 &&
+ object_property_find(OBJECT(&s->cpu[i]), "reset-cbar")) {
object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar",
fsl_imx8mp_memmap[FSL_IMX8MP_GIC_DIST].addr,
&error_abort);
@@ -286,6 +289,16 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
object_property_set_int(OBJECT(&s->cpu[i]), "cntfrq", 8000000,
&error_abort);
+ if (object_property_find(OBJECT(&s->cpu[i]), "has_el2")) {
+ object_property_set_bool(OBJECT(&s->cpu[i]), "has_el2",
+ !kvm_enabled(), &error_abort);
+ }
+
+ if (object_property_find(OBJECT(&s->cpu[i]), "has_el3")) {
+ object_property_set_bool(OBJECT(&s->cpu[i]), "has_el3",
+ !kvm_enabled(), &error_abort);
+ }
+
if (i) {
/*
* Secondary CPUs start in powered-down state (and can be
@@ -304,6 +317,7 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
{
SysBusDevice *gicsbd = SYS_BUS_DEVICE(&s->gic);
QList *redist_region_count;
+ bool pmu = object_property_get_bool(OBJECT(first_cpu), "pmu", NULL);
qdev_prop_set_uint32(gicdev, "num-cpu", ms->smp.cpus);
qdev_prop_set_uint32(gicdev, "num-irq",
@@ -360,6 +374,16 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
qdev_get_gpio_in(cpudev, ARM_CPU_VIRQ));
sysbus_connect_irq(gicsbd, i + 3 * ms->smp.cpus,
qdev_get_gpio_in(cpudev, ARM_CPU_VFIQ));
+
+ if (kvm_enabled()) {
+ if (pmu) {
+ assert(arm_feature(&s->cpu[i].env, ARM_FEATURE_PMU));
+ if (kvm_irqchip_in_kernel()) {
+ kvm_arm_pmu_set_irq(&s->cpu[i], VIRTUAL_PMU_IRQ);
+ }
+ kvm_arm_pmu_init(&s->cpu[i]);
+ }
+ }
}
}
diff --git a/hw/arm/imx8mp-evk.c b/hw/arm/imx8mp-evk.c
index fc880a1d44b..3ddcf1af5ac 100644
--- a/hw/arm/imx8mp-evk.c
+++ b/hw/arm/imx8mp-evk.c
@@ -13,6 +13,7 @@
#include "hw/arm/machines-qom.h"
#include "hw/boards.h"
#include "hw/qdev-properties.h"
+#include "system/kvm.h"
#include "system/qtest.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
@@ -94,12 +95,22 @@ static void imx8mp_evk_init(MachineState *machine)
}
}
+static const char *imx8mp_evk_get_default_cpu_type(const MachineState *ms)
+{
+ if (kvm_enabled()) {
+ return ARM_CPU_TYPE_NAME("host");
+ }
+
+ return ARM_CPU_TYPE_NAME("cortex-a53");
+}
+
static void imx8mp_evk_machine_init(MachineClass *mc)
{
mc->desc = "NXP i.MX 8M Plus EVK Board";
mc->init = imx8mp_evk_init;
mc->max_cpus = FSL_IMX8MP_NUM_CPUS;
mc->default_ram_id = "imx8mp-evk.ram";
+ mc->get_default_cpu_type = imx8mp_evk_get_default_cpu_type;
}
DEFINE_MACHINE_AARCH64("imx8mp-evk", imx8mp_evk_machine_init)
diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
index b44b85f4361..0cdeb60f1f2 100644
--- a/hw/arm/Kconfig
+++ b/hw/arm/Kconfig
@@ -622,7 +622,8 @@ config FSL_IMX8MP
config FSL_IMX8MP_EVK
bool
default y
- depends on TCG && AARCH64
+ depends on AARCH64
+ depends on TCG || KVM
select FSL_IMX8MP
config ARM_SMMUV3
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PULL 2/3] hw/arm/imx8mp-evk: Fix guest time in KVM mode
2025-11-03 15:46 [PULL 0/3] target-arm queue Peter Maydell
2025-11-03 15:46 ` [PULL 1/3] hw/arm/imx8mp-evk: Add KVM support Peter Maydell
@ 2025-11-03 15:46 ` Peter Maydell
2025-11-03 15:47 ` [PULL 3/3] docs/devel/testing/fuzzing: Note that you can get qtest to read from a file Peter Maydell
2025-11-05 7:53 ` [PULL 0/3] target-arm queue Richard Henderson
3 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2025-11-03 15:46 UTC (permalink / raw)
To: qemu-devel
From: Bernhard Beschow <shentey@gmail.com>
The imx8mp DTB hardcodes the clock frequency of the system counter to 8MHz.
In KVM mode, the host CPU is used whose system counter runs at a different
frequency, resulting in the guest clock running slower or faster. Fix this
by not hardcoding the clock frequency which makes the Linux driver read
the real clock frequency from the register.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-id: 20251101120130.236721-3-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/imx8mp-evk.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/hw/arm/imx8mp-evk.c b/hw/arm/imx8mp-evk.c
index 3ddcf1af5ac..44e06019670 100644
--- a/hw/arm/imx8mp-evk.c
+++ b/hw/arm/imx8mp-evk.c
@@ -44,6 +44,15 @@ static void imx8mp_evk_modify_dtb(const struct arm_boot_info *info, void *fdt)
fdt_nop_property(fdt, offset, "cpu-idle-states");
offset = fdt_node_offset_by_compatible(fdt, offset, "arm,cortex-a53");
}
+
+ if (kvm_enabled()) {
+ /* Use system counter frequency from host CPU to fix time in guest */
+ offset = fdt_node_offset_by_compatible(fdt, -1, "arm,armv8-timer");
+ while (offset >= 0) {
+ fdt_nop_property(fdt, offset, "clock-frequency");
+ offset = fdt_node_offset_by_compatible(fdt, offset, "arm,armv8-timer");
+ }
+ }
}
static void imx8mp_evk_init(MachineState *machine)
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PULL 3/3] docs/devel/testing/fuzzing: Note that you can get qtest to read from a file
2025-11-03 15:46 [PULL 0/3] target-arm queue Peter Maydell
2025-11-03 15:46 ` [PULL 1/3] hw/arm/imx8mp-evk: Add KVM support Peter Maydell
2025-11-03 15:46 ` [PULL 2/3] hw/arm/imx8mp-evk: Fix guest time in KVM mode Peter Maydell
@ 2025-11-03 15:47 ` Peter Maydell
2025-11-05 7:53 ` [PULL 0/3] target-arm queue Richard Henderson
3 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2025-11-03 15:47 UTC (permalink / raw)
To: qemu-devel
It is possible to get qtest to read fuzzer reproducers from a file
rather than directly from stdio; this is useful when you want to run
QEMU under gdb to debug the failure. Document how to do this, which
was previously only written down in the commit message for
5b18a6bf44b9 ("chardev: Allow setting file chardev input file on the
command line").
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-id: 20251028165236.3327658-1-peter.maydell@linaro.org
---
docs/devel/testing/fuzzing.rst | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/docs/devel/testing/fuzzing.rst b/docs/devel/testing/fuzzing.rst
index c3ac084311b..c43f815f320 100644
--- a/docs/devel/testing/fuzzing.rst
+++ b/docs/devel/testing/fuzzing.rst
@@ -263,6 +263,15 @@ generic-fuzz target.
- Report the bug and send a patch with the C reproducer upstream
+QEMU can also read the reproducer directly from a file rather than
+from standard input::
+
+ $QEMU_PATH $QEMU_ARGS -qtest chardev:repro \
+ -chardev file,id=repro,path=/dev/null,input-path=/tmp/reproducer
+
+This is useful if you want to run QEMU under a debugger to investigate
+the failure.
+
Implementation Details / Fuzzer Lifecycle
-----------------------------------------
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PULL 0/3] target-arm queue
2025-11-03 15:46 [PULL 0/3] target-arm queue Peter Maydell
` (2 preceding siblings ...)
2025-11-03 15:47 ` [PULL 3/3] docs/devel/testing/fuzzing: Note that you can get qtest to read from a file Peter Maydell
@ 2025-11-05 7:53 ` Richard Henderson
3 siblings, 0 replies; 12+ messages in thread
From: Richard Henderson @ 2025-11-05 7:53 UTC (permalink / raw)
To: qemu-devel
On 11/3/25 16:46, Peter Maydell wrote:
> One last small target-arm pullreq for before softfreeze.
>
> thanks
> -- PMM
>
> The following changes since commit 53b41bb78950912ba2d9809eef6b45e4df30c647:
>
> Merge tag 'pull-target-arm-20251031' ofhttps://gitlab.com/pm215/qemu into staging (2025-11-01 10:52:48 +0100)
>
> are available in the Git repository at:
>
> https://gitlab.com/pm215/qemu.git tags/pull-target-arm-20251103
>
> for you to fetch changes up to 5848d2c3a6c4cc1b37234db462b1b36bc0a18bf4:
>
> docs/devel/testing/fuzzing: Note that you can get qtest to read from a file (2025-11-03 14:16:53 +0000)
>
> ----------------------------------------------------------------
> target-arm queue:
> * allow KVM accelerator on imx8mp-evk
> * docs/devel/testing/fuzzing: Note that you can get qtest to read from a file
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/10.2 as appropriate.
r~
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2025-11-05 7:54 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-03 15:46 [PULL 0/3] target-arm queue Peter Maydell
2025-11-03 15:46 ` [PULL 1/3] hw/arm/imx8mp-evk: Add KVM support Peter Maydell
2025-11-03 15:46 ` [PULL 2/3] hw/arm/imx8mp-evk: Fix guest time in KVM mode Peter Maydell
2025-11-03 15:47 ` [PULL 3/3] docs/devel/testing/fuzzing: Note that you can get qtest to read from a file Peter Maydell
2025-11-05 7:53 ` [PULL 0/3] target-arm queue Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
2022-08-01 15:36 Peter Maydell
2022-08-01 20:54 ` Richard Henderson
2021-04-13 12:07 Peter Maydell
2021-04-13 20:04 ` Peter Maydell
2019-11-11 13:58 Peter Maydell
2019-11-11 16:54 ` Peter Maydell
2019-11-12 6:46 ` no-reply
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).