public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm enable over cortex-a53?
@ 2014-06-02  9:09 Lei Wen
  2014-06-02  9:27 ` Marc Zyngier
  0 siblings, 1 reply; 7+ messages in thread
From: Lei Wen @ 2014-06-02  9:09 UTC (permalink / raw)
  To: Christoffer Dall, Marc Zyngier; +Cc: kvm, kvmarm

Hi,

I am current try to enable kvm over cortex-a53 over 3.10 kernel.
After some patches backporting, I manage to get the /dev/kvm showed
out, and build
pass for the kernel.

However while I try to use the lkvm to launch the guest, some error shows up:

  # lkvm run -k nfs/Image -m 256 -c 1 --name guest-143
  Warning: nfs/Image is not a bzImage. Trying to load it as a flat binary...
  Info: Loaded kernel to 0x100080000 (18072024 bytes)
  Info: Placing fdt at 0x10fe00000 - 0x10fffffff
  Info: virtio-mmio.devices=0x200@0x10000:36

  Info: virtio-mmio.devices=0x200@0x10200:37

  Info: virtio-mmio.devices=0x200@0x10400:39

Emulate result 0
KVM exit reason: 6 ("KVM_EXIT_MMIO")

 Registers:
 PC:    0xffffffc000091a3c
 PSTATE:    0x200002c5
 SP_EL1:    0xffffffc0010ebcb0
 LR:    0xffffffc000091a84

With further checking it seem that while it try to access the console
driver whose
base address is over 0xd4018000, but it failed to pass the checking by
arm_addr_in_ioport_region and arm_addr_in_virtio_mmio_region, thus panic_kvm
is invoked.

My question is whether ARM_IOPORT_AREA/ARM_MMIO_AREA/
ARM_AXI_AREA/ARM_MEMORY_AREA need to be reconfigured for different
SOCs?

While I try to hack those MACRO into some value to let 0xd4018000 checking
passed, but seems host kernel would hang after that, and if add debug message
in lkvm tool, I could see it endlessly calls mmio emulation.

Another finding is that  during the host kernel booting, I didn't see
hvc console is
registered, but I already enabled CONFIG_HVC_DRIVER and
CONFIG_VIRTIO_CONSOLE. Is there any other step needed to be done?


BTW, my lkvm tool is from:
https://github.com/virtualopensystems/linux-kvm-arm.git
with some modification to add cortex-a53 support.

Thanks,
Lei

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

end of thread, other threads:[~2014-06-05  9:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  9:09 kvm enable over cortex-a53? Lei Wen
2014-06-02  9:27 ` Marc Zyngier
2014-06-03  2:14   ` Lei Wen
2014-06-03  9:11     ` Marc Zyngier
2014-06-04  6:19       ` Lei Wen
2014-06-04  9:20         ` Marc Zyngier
2014-06-05  9:14           ` Lei Wen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox