[Bug 1872931] Re: enable riscv build

2020-04-21 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:4.2-3ubuntu6

---
qemu (1:4.2-3ubuntu6) focal; urgency=medium

  [ Christian Ehrhardt ]
  * enable riscv build (LP: #1872931)
[ changes picked from Debian ]
- enable support for riscv64 hosts
- only enable librbd on architectures where it is built
- ceph: do not list librados-dev as we only use librbd-dev and the latter
  depends on the former
- seccomp grew up, no need in versioned build-dep
- enable seccomp only on architectures where it can be built
  * d/p/ubuntu/lp-1872931-*: fix build on non KVM platforms
  * d/p/ubuntu/lp-1872945-*: fix riscv emulation errors that e.g. hung ssh
and clobbered doubles (LP: #1872945)

  [ William Grant ]
  * d/control-in: disable rbd support unavailable on riscv (LP: 1872931)

 -- Christian Ehrhardt   Wed, 15 Apr
2020 14:27:15 +0200

** Changed in: qemu (Ubuntu)
   Status: In Progress => Fix Released

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-20 Thread Christian Ehrhardt 
Together with Wgrant we cancelled the old upload and replaced it with
one that also fixes bug 1872945

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-20 Thread Christian Ehrhardt 
FYI: This was uploaded to focal-unapproved by Wgrant

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-18 Thread William Grant
Disabling virglrenderer on only some host archs is a bit more
complicated. I've opted to ignore the virglrenderer test failures on
riscv64, reenabled virglrenderer in qemu, and uploaded
virglrenderer/qemu/libvirt to focal-proposed.

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-17 Thread Christian Ehrhardt 
Fix by https://lists.gnu.org/archive/html/qemu-devel/2020-04/msg00872.html
new builds in the PPA

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-16 Thread Christian Ehrhardt 
[09:22]  cpaelzer: Ugh, I wonder if Linux 5.4 added partial KVM headers
[09:22]  My previous builds were against 5.3

I compared riscv headers in the last 5.3 in Focal
https://launchpad.net/ubuntu/+source/linux/5.3.0-25.27

But at least the official build had no riscv build yet
https://launchpad.net/ubuntu/eoan/+package/linux-libc-dev

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-16 Thread Christian Ehrhardt 
Comparing the two arches -dev packages this is what is missing:
Some of them might be intentional but kvm.h breaks this.

< /usr/include/arch-gnu/asm/a.out.h
9,10d7
< /usr/include/arch-gnu/asm/boot.h
< /usr/include/arch-gnu/asm/bootparam.h
13,14c10
< /usr/include/arch-gnu/asm/debugreg.h
< /usr/include/arch-gnu/asm/e820.h
---
> /usr/include/arch-gnu/asm/elf.h
17,18c13
< /usr/include/arch-gnu/asm/hw_breakpoint.h
< /usr/include/arch-gnu/asm/hwcap2.h
---
> /usr/include/arch-gnu/asm/hwcap.h
22,27d16
< /usr/include/arch-gnu/asm/ist.h
< /usr/include/arch-gnu/asm/kvm.h
< /usr/include/arch-gnu/asm/kvm_para.h
< /usr/include/arch-gnu/asm/kvm_perf.h
< /usr/include/arch-gnu/asm/ldt.h
< /usr/include/arch-gnu/asm/mce.h
30,31d18
< /usr/include/arch-gnu/asm/msr.h
< /usr/include/arch-gnu/asm/mtrr.h
36,41d22
< /usr/include/arch-gnu/asm/posix_types_32.h
< /usr/include/arch-gnu/asm/posix_types_64.h
< /usr/include/arch-gnu/asm/posix_types_x32.h
< /usr/include/arch-gnu/asm/prctl.h
< /usr/include/arch-gnu/asm/processor-flags.h
< /usr/include/arch-gnu/asm/ptrace-abi.h
48d28
< /usr/include/arch-gnu/asm/sigcontext32.h
55d34
< /usr/include/arch-gnu/asm/svm.h
62,67d40
< /usr/include/arch-gnu/asm/unistd_32.h
< /usr/include/arch-gnu/asm/unistd_64.h
< /usr/include/arch-gnu/asm/unistd_x32.h
< /usr/include/arch-gnu/asm/vm86.h
< /usr/include/arch-gnu/asm/vmx.h
< /usr/include/arch-gnu/asm/vsyscall.h
135d107
< /usr/include/linux/a.out.h
405,406d376
< /usr/include/linux/kvm.h
< /usr/include/linux/kvm_para.h

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-16 Thread Christian Ehrhardt 
qemu src has in ./linux-headers/linux/kvm.h
  #include 
  #include 
  #include 

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

[Bug 1872931] Re: enable riscv build

2020-04-16 Thread Christian Ehrhardt 
Last build has thrown a build error:

In file included from /<>/hw/s390x/s390-virtio-ccw.c:47:
/<>/linux-headers/linux/kvm.h:14:10: fatal error: asm/kvm.h: No 
such file or directory
   14 | #include 
  |  ^~~
compilation terminated.
make[2]: *** [/<>/rules.mak:69: hw/s390x/s390-virtio-ccw.o] Error 1

That actually should only build on s390x or on arch-indep.
Oh no that isn't the rom, that is the actual emulator.

Well, s390x isn't enabled in Debian therefore they don't see it yet.

 75 # qemu-system subpackages, from d/control   
 
 76 ifeq ($(VENDOR),UBUNTU) 
 
 77 sys_systems = arm mips ppc sparc x86 s390x  
 
 78 else
 
 79 sys_systems = arm mips ppc sparc x86
 
 80 endif  

>From https://launchpadlibrarian.net/474741304/buildlog_ubuntu-focal-
riscv64.qemu_1%3A4.2-3ubuntu6~ppa1_BUILDING.txt.gz

But I tried and this isn't just the s390x system build it seems to be
even the s390x tcg build runs into this. Maybe our kernel headers
differ?

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-15 Thread Christian Ehrhardt 
WIP in PPA https://launchpad.net/~ci-train-ppa-
service/+archive/ubuntu/4015/+packages

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-15 Thread Christian Ehrhardt 
[11:23]  wgrant: does enabling rsicv have a general FFe?
[11:23]  or do we need such processing for every change (I'd hope not)
[11:54]  It hasn't been suggested to me that an FFe was required for 
changes that were limited to riscv64.
[11:55]  I thought enabling another arch usually would fall under 
that category
[11:55]  wgrant: what is the immediate use case for this in 20.04 - 
will people really use it as a host?
[11:56]  cpaelzer: qemu-utils
[11:57]  qemu-img, etc.
[11:57]  And unblocking libvirt and its rdeps
[11:57]  libvirt is the fifth most common missing build dependency at 
present
[11:57]  xnox: to get a third opinion - do you happen to know if we'd 
need an FFe (or wait for 20.10) with that?
[12:06]  cpaelzer: hwe exception. We have standing exception for hardware 
enablement.
[12:06]  xnox: I know that for SRUs, are you saying this applies to 
FFe as well then?
[12:07]  cpaelzer: we need qemu-utils to build images. Ideally sooner 
than later.
[12:07]  well, ok under that banner I can work
[12:07]  thank you
[12:07]  cpaelzer: also applies to ffe.


** Changed in: qemu (Ubuntu)
   Status: New => In Progress

** Changed in: qemu (Ubuntu)
   Importance: Undecided => High

-- 
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

[Bug 1872931] Re: enable riscv build

2020-04-15 Thread Christian Ehrhardt 
Combined with the recent Debian changes into preliminary changeset, but
still discussing if that needs an Feature Freeze exception (or not need
to be in 20.04 at all and could be 20.10).

   * enable riscv build (LP: #1872931)  
  
 - enable support for riscv64 hosts 
  
 - only enable librbd on architectures where it is built
  
 - ceph: do not list librados-dev as we only use librbd-dev and the latter 
depends on the former
 - seccomp grew up, no need in versioned build-dep  
  
 - enable seccomp only on architectures where it can be built

-- 
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