Skip to content

Add virtio endianness determination in KVM ARM/ARM64

Pranavkumar Sawargaonkar qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 2 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- Renamed arm_cpu_virtio_endianness() to arm_cpu_is_big_endian()
- Added check for current exception level so that endianness for el0 is determined by looking at sctlr EOE and for others from sctlr EE bit.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target-arm: KVM64: Get and Sync up guest register state like kvm32.target-arm/kvm64.c+12 -10 replies
2/2target-arm: Guest cpu endianness determination for virtio KVM ARM/ARM64target-arm/cpu.c target-arm/cpu.h+26 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPeter Maydell
1/2R-b
2/2

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH V3 0/2] Add virtio endianness determination in KVM ARM/ARM64

In KVM ARM/ARM64 one can run cross-endian guset with respect to host kernel. For virtio to work with this we need to make virtio code aware of guest's endianness.
This patchset adds the guest endianness determination for KVM ARM/ARM64 and related small fix in KVM ARM64.

V2->V3:
- Renamed arm_cpu_virtio_endianness() to arm_cpu_is_big_endian()
- Added check for current exception level so that endianness for el0 is determined by looking at sctlr EOE and for others from sctlr EE bit.

V1->V2:
- Change the patch to be used generically for both ARM and ARM64.
- Define TARGET_IS_BIENDIAN for target-arm
- Address the review comments received in v1.
- Rebased code on top of latest qemu code.

V1:
- First patch in this series.
- http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg03321.html

Pranavkumar Sawargaonkar (2):
target-arm: KVM64: Get and Sync up guest register state like kvm32.
target-arm: Guest cpu endianness determination for virtio KVM

    ARM/ARM64
 target-arm/cpu.c   | 24 ++++++++++++++++++++++++
 target-arm/cpu.h   |  2 ++
 target-arm/kvm64.c | 13 ++++++++++++-
 3 files changed, 38 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.1