qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bernhard Beschow <shentey@gmail.com>
To: qemu-devel@nongnu.org
Cc: Bernhard Beschow <shentey@gmail.com>,
	qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: [PATCH v3 0/2] KVM Support for imx8mp-evk Machine
Date: Sat,  1 Nov 2025 13:01:28 +0100	[thread overview]
Message-ID: <20251101120130.236721-1-shentey@gmail.com> (raw)

This series adds KVM support to the imx8mp-evk machine, allowing it to run
guests with KVM acceleration. Inspiration was taken from the virt machine. This
required a device tree quirk for the guest clock to be kept in sync with the
host. Without this quirk the guest's clock would advance with factor <host
system counter> / 8Mhz.

Testing done:
* Run `make check`
* Run Buildroot image with TCG
* Run `qemu-system-aarch64 -M imx8mp-evk -accel kvm -smp 4` under
  `qemu-system-aarch64 -M virt,secure=on,virtualization=on,gic-version=4 \
  -cpu cortex-a72 -smp 4 -accel tcg` and `qemu-system-aarch64 -M imx8mp-evk \
  -accel tcg -smp 4". Observe that the `date` command reflects the host's date.

v3:
* Fix crash in qtest (Peter) by using cortex-a53 CPU when ms->cpu_type == NULL
* Apply Peter's style fixes in board documentation
* Apply Phil's R-b -- thanks!
* Rebase onto master

v2:
* Rebase onto master
* Mention various tradeoffs in the board documentation (Peter)
* Accommodate for single-binary (Peter, Pierrick) by having CPU defaults
* Add quirk to fix guest clock

Bernhard Beschow (2):
  hw/arm/imx8mp-evk: Add KVM support
  hw/arm/imx8mp-evk: Fix guest time in KVM mode

 docs/system/arm/imx8mp-evk.rst | 19 +++++++++++++++++++
 hw/arm/fsl-imx8mp.c            | 34 +++++++++++++++++++++++++++++-----
 hw/arm/imx8mp-evk.c            | 20 ++++++++++++++++++++
 hw/arm/Kconfig                 |  3 ++-
 4 files changed, 70 insertions(+), 6 deletions(-)

-- 
2.51.2



             reply	other threads:[~2025-11-01 12:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-01 12:01 Bernhard Beschow [this message]
2025-11-01 12:01 ` [PATCH v3 1/2] hw/arm/imx8mp-evk: Add KVM support Bernhard Beschow
2025-11-17 17:13   ` Cornelia Huck
2025-11-17 17:38     ` Peter Maydell
2025-11-18  9:49       ` Bernhard Beschow
2025-11-18 11:24         ` Philippe Mathieu-Daudé
2025-11-18 12:25           ` BALATON Zoltan
2025-11-18 12:31             ` Daniel P. Berrangé
2025-11-18 18:40           ` Bernhard Beschow
2025-11-18 10:31       ` Cornelia Huck
2025-11-18 10:45         ` Cornelia Huck
2025-11-01 12:01 ` [PATCH v3 2/2] hw/arm/imx8mp-evk: Fix guest time in KVM mode Bernhard Beschow
2025-11-03  8:55 ` [PATCH v3 0/2] KVM Support for imx8mp-evk Machine Bernhard Beschow
2025-11-03 15:47   ` Peter Maydell
2025-11-03 19:22     ` Bernhard Beschow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251101120130.236721-1-shentey@gmail.com \
    --to=shentey@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).