Skip to content

target-arm: ARM64: Adding EL1 AARCH32 guest support

Greg Bellows qemu-devel 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest4 patches 0 repliesNew
  2. v74 patches 2 repliesSuperseded
  3. v64 patches 1 replySuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v54 patches3 repliesSuperseded
v44 patches9 repliesSuperseded
v34 patches12 repliesSuperseded
v24 patches6 repliesSuperseded
v15 patches20 repliesSuperseded

Changes in v8 from the cover letter

- Fix patch 4 dynamic_cast object

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target-arm: Add CPU property to disable AArch64target-arm/cpu.c target-arm/cpu64.c+43 -10 replies
2/4target-arm: Add feature parsing to virthw/arm/virt.c+17 -30 replies
3/4target-arm: Add 32/64-bit register synctarget-arm/cpu.h target-arm/helper-a64.c target-arm/helper.c +1 more+216 -80 replies
4/4target-arm: Add AArch32 guest support to KVM64target-arm/kvm64.c+33 -30 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [Qemu-devel] [PATCH v8 0/4] target-arm: ARM64: Adding EL1 AARCH32 guest support

Added support for running an AArch32 guest on a AArch64 KVM host. Support has only been added to the QEMU machvirt machine. The addition of CPU properties specifiable from the command line were added to allow disablement of AArch64 execution state hereby forcing EL1 to be AArch32. The new CPU command line property is "aarch64=on/off" that is specified as follows:

    aarch64-softmmu/qemu-system-aarch64 -M virt -cpu cortex-a57,aarch64=off ...

---

v7 -> v8
- Fix patch 4 dynamic_cast object

v6 -> v7
- Fix comment issues

v5 -> v6
- Reorder conditionals in 64_to_32 for readability.

v3 -> v4
- Move and fix sync functions to properly handle current EL/PL
- Replace use of strtok
- Add disablement of aarch64 option if KVM disabled
- Revert and update AArch64 check on vcpu init to not check for AARch64 feature but rather AArch64 family type.
- Relocate register sync on get
- add missing env->aarch64 refresh after pstate fetch

v2 -> v3
- Fix KVM64/AArch64 hang by conditionalizing register sync
- Conditionalize 64-bit interrupt handler setting of aarch64

v1 -> v2
- Replaced custom property parsing with use of generic CPU property parser
- Added CPU property registration
- Fixed mulitple property handling in virt.c
- Removed unnecessary kernel load changes

Greg Bellows (4):
target-arm: Add CPU property to disable AArch64
target-arm: Add feature parsing to virt
target-arm: Add 32/64-bit register sync
target-arm: Add AArch32 guest support to KVM64

 hw/arm/virt.c           |  20 ++++-
 target-arm/cpu.c        |   5 +-
 target-arm/cpu.h        |   2 +
 target-arm/cpu64.c      |  39 +++++++++
 target-arm/helper-a64.c |   5 +-
 target-arm/helper.c     | 211 ++++++++++++++++++++++++++++++++++++++++++++++++
 target-arm/kvm64.c      |  36 ++++++++-
 target-arm/op_helper.c  |   6 +-
 8 files changed, 309 insertions(+), 15 deletions(-)

--
1.8.3.2