All of lore.kernel.org
 help / color / mirror / Atom feed
* Hang with nVHE mode and SME
@ 2022-10-26 14:29 Vincent Donnefort
  2022-10-26 15:07 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Donnefort @ 2022-10-26 14:29 UTC (permalink / raw)
  To: kvmarm, maz, broonie; +Cc: catalin.marinas, will

Hi All,

I'm experiencing hangs when running a guest on a Qemu platform and a host
started with nVHE mode.

The hang occurs in 

  static void __activate_traps(struct kvm_vcpu *vcpu)
  {
      ...
      if (cpus_have_final_cap(ARM64_SME)) {
           // HANG !

No problem though with either VHE or if the host boots with arm64.nosme.

The host (and the guest) are 6.1-rc1. My Qemu is 7.1.

My Qemu setup:

     $ qemu-system-aarch64 \
      -M virt \
      -machine virtualization=true -machine virt,gic-version=3  \
      -cpu max,pauth=off -smp 1 -m 16384                 \
      -drive file=rootfs.ext4,if=none,format=raw,id=hd0 \
      -device virtio-blk-device,drive=hd0 \
      -object rng-random,filename=/dev/urandom,id=rng0 \
      -netdev user,id=eth0,hostfwd=tcp::8022-:22,hostfwd=tcp::1234-:1234 \
      -device virtio-net-pci,netdev=eth0                \
      -nographic \
      -kernel arm64/boot/Image -append "earlycon root=/dev/vda kvm-arm.mode=nvhe nokaslr" \

The guest is run with kvm-tools:

     $ lkvm run -p "break=mount arm64.nosme" -k ~/Image --force-pci

Is it a known issue?

--
Vincent

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-27 21:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 14:29 Hang with nVHE mode and SME Vincent Donnefort
2022-10-26 15:07 ` Mark Brown
2022-10-26 16:13   ` Marc Zyngier
2022-10-26 16:34     ` Mark Brown
2022-10-27  9:44       ` Peter Maydell
2022-10-27 12:01         ` Mark Brown
2022-10-27 21:16         ` Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.