qemu src has in ./linux-headers/linux/kvm.h
  #include <linux/types.h>
  #include <linux/ioctl.h>
  #include <asm/kvm.h>

So does /usr/include/linux/kvm.h on Focal BTW.

There are two ways to resolve this:
- via system includes by /usr/include/x86_64-linux-gnu/asm/kvm.h
- via internal includes in qemu by ./linux-headers/asm-s390/kvm.h

The latter does not exist for riscv and also it is a "<>" include so it
should use the systems headers anyway right?

$ dpkg -S /usr/include/x86_64-linux-gnu/asm/kvm.h
linux-libc-dev:amd64: /usr/include/x86_64-linux-gnu/asm/kvm.h

In the build log I see
Get:8 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 
linux-libc-dev riscv64 5.4.0-24.28 [1037 kB]

That is from 
https://launchpad.net/ubuntu/focal/riscv64/linux-libc-dev/5.4.0-24.28
But that seems to not contain the kvm.h header:
  wget 
http://launchpadlibrarian.net/474114728/linux-libc-dev_5.4.0-24.28_riscv64.deb
  dpkg -x linux-libc-dev_5.4.0-24.28_riscv64.deb linux-libc-dev-riscv
  cd linux-libc-dev-riscv
  find . -name 'kvm.h'
  ... not existing in there ...

This is blocked on getting a kernels riscv kvm.h into place.
I'll ask wgrant if that is known/in-progress (or also quite likely if I'm just 
riscv-confused)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872931

Title:
  enable riscv build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1872931/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to