<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14452</bug_id>
          
          <creation_ts>2021-06-25 14:54:26 +0000</creation_ts>
          <short_desc>qemuarm64 (and likely others) don&apos;t boot in kvmtool</short_desc>
          <delta_ts>2026-05-28 14:29:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>3.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90764</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-06-25 14:54:26 +0000</bug_when>
    <thetext>Some people like to use lkvm instead of qemu, but our qemu kernels don&apos;t boot:

$ ~/Code/kvmtool/lkvm  run --disk core-image-sato-qemuarm64.ext4 --kernel Image --debug -c 4 -m 128
  # lkvm run -k Image -m 128 -c 4 --name guest-2181167
  Info: (arm/kvm.c) kvm__arch_load_kernel_image:116: Loaded kernel to 0x80000000 (19505664 bytes)
  Info: (arm/kvm.c) kvm__arch_load_kernel_image:132: Placing fdt at 0x87e00000 - 0x87ffffff
  Info: (virtio/mmio.c) virtio_mmio_init:325: virtio-mmio.devices=0x200@0x3000000:36
  Info: (virtio/mmio.c) virtio_mmio_init:325: virtio-mmio.devices=0x200@0x3000200:37
  Warning: IP header length is not 20 bytes
  Warning: IP header length is not 20 bytes

And then it hangs.

I&apos;m told that there are differences:

&quot;for the background: QEMU and kvmtool use a different virtual platform: they share the usage of virtio, but the memory map is different, and QEMU uses a PL011, while kvmtool emulates an 8250 UART. And there are other differences, but nothing exotic, so defconfig easily covers both&quot;

https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/tree/README lists most of the config options that kvmtool expects to work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>