Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Qemu-aarch64 openSUSE Leap 42.3 source code

  1. #1

    Default Qemu-aarch64 openSUSE Leap 42.3 source code

    Hello.

    After installing qemu + libvirt via zypper on my raspberry pi 3 with openSUSE Leap 42.3, it works with KVM good.
    qemu-system-aarch64 -version says: "QEMU emulator version 2.9.1(openSUSE Leap 42.3")

    But if I try to rebuild qemu from source at:
    https://github.com/openSUSE/qemu/tree/opensuse-2.12
    (rebuilt version is "QEMU emulator version 2.12.0 (v1.2.0-38943-g69a3175c82)")
    I get error:
    Initialization of device arm_gic failed: KVM with user space irqchip only works when the host kernel supports KVM_CAP_ARM_USER_IRQ
    I've found this mailing list: https://lists.opensuse.org/opensuse-.../msg00022.html
    It says "but it only works with the Leap 42.3 QEMU version, as the patches weren't upstream".

    So my question is: is there a way to get source code of QEMU with these patches to build it?

  2. #2
    Join Date
    Sep 2012
    Posts
    7,105

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by antonyk View Post
    is there a way to get source code of QEMU with these patches to build it?
    https://build.opensuse.org/package/s...Leap:42.3/qemu

  3. #3

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Thanks.

    But I can't see here git repo url or smth, just patch files...

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Have you checked to see whether pre-compiled packages of QEMU 2.12 might already be available?
    I don't know if anything at the following link might work for you, there is the Virtualization repo and a few home repos

    https://software.opensuse.org/package/qemu-arm

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by tsu2 View Post
    Have you checked to see whether pre-compiled packages of QEMU 2.12 might already be available?
    I don't know if anything at the following link might work for you, there is the Virtualization repo and a few home repos

    https://software.opensuse.org/package/qemu-arm

    TSU
    Hello,

    The packages site says that only 2.9.1 is availiable for Leap 42.3.
    Anyway, my workflow can require some custom changes to qemu code in future. I can test on official 2.9, but it would be much better to be able to build it.

    It seems that for now the only way is manually adding the published patches to qemu code.

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by antonyk View Post
    Hello,

    The packages site says that only 2.9.1 is availiable for Leap 42.3.
    Anyway, my workflow can require some custom changes to qemu code in future. I can test on official 2.9, but it would be much better to be able to build it.

    It seems that for now the only way is manually adding the published patches to qemu code.
    No,
    That's only the default in the main repos.

    Under 42.3,
    Click on "experimental packages" and "communitypackages"
    You'll find repos exist with pre-compiled version 2.12

    I haven't looked further to see if those packages include source, but you should go to <those> repos to see how they built 2.12.
    If you are unable to read those repos or find they don't have what you need, post again.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by tsu2 View Post
    No,
    That's only the default in the main repos.

    Under 42.3,
    Click on "experimental packages" and "communitypackages"
    You'll find repos exist with pre-compiled version 2.12

    I haven't looked further to see if those packages include source, but you should go to <those> repos to see how they built 2.12.
    If you are unable to read those repos or find they don't have what you need, post again.

    TSU
    I've tried the source package from "Virtualization".
    After a long compilation it fails starting KVM with the same error:
    Initialization of device arm_gic failed: KVM with user space irqchip only works when the host kernel supports KVM_CAP_ARM_USER_IRQ
    Because full compilation on raspi takes a long time, I've inspected sources and patches of:
    openSUSE:Factory:RISCV:qemu - seems to have the same error; code around the point that throws described error is just the same.
    home:aevseev - seems not to contain needed changes;
    homegnd:Virtualization:qemu - seems not to contain needed changes;

    Though I can't figure out what patch fixed this error in official package. Maybe I'm messing up with configure script args, but none of them seem to be relevant to this error.
    Maybe in a couple of days I'll try to recompile openSUSE:Factory:RISCV:qemu, but I'm pretty sure the result will be the same.

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    You don't have to try to do all this on your own.
    Open a bug at https://bugzilla.opensuse.org and it'll hopefully be assigned to one of the maintainers with some inside knowledge.
    The error suggests that the problem might be fixed simply by enabling a kernel capability that has been disabled.
    I don't know the best way that should be addressed, I'd guess it's likely that perhaps a kernel maintainer might be able to do a quick lookup, flip a switch and something will be available for testing quickly.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by tsu2 View Post
    You don't have to try to do all this on your own.
    Open a bug at https://bugzilla.opensuse.org and it'll hopefully be assigned to one of the maintainers with some inside knowledge.
    The error suggests that the problem might be fixed simply by enabling a kernel capability that has been disabled.
    I don't know the best way that should be addressed, I'd guess it's likely that perhaps a kernel maintainer might be able to do a quick lookup, flip a switch and something will be available for testing quickly.

    TSU
    Thank you for your help.

    I've opened bug at https://bugzilla.opensuse.org/show_bug.cgi?id=1096078
    If it is rejected, maybe I'll try to figure out the needed patch by reversing openSUSE qemu binary.

  10. #10
    Join Date
    Sep 2012
    Posts
    7,105

    Default Re: Qemu-aarch64 openSUSE Leap 42.3 source code

    Quote Originally Posted by antonyk View Post
    If it is rejected
    So you complain on openSUSE bugzilla that upstream does not implement some feature. What do you expect openSUSE to do with this bug report? Why do not you request addition of this feature on QEMU bugzilla/mailing list/whatever they use to track code changes?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •