Skip to contentSkip to conversation

Illumos/SmarOS support

Qemu-devel Lee Essen 3 participants 3 messages Mar 15, 2012

lore
Share & tools
lore

Lee Essen

author
#0 lore raw

Resend from different email -- not sure what happened to my first 2 attempts!

Hi,

I've been working on getting the mainline qemu tree working on SmartOS (illumos), the current qemu support seems to be a branch of qemu-kvm and we've been having some problems getting spice working, so moving to the main qemu tree seemed sensible.

Anyway, couple of questions…

1. Are you happy to accept patches that enable this?
- There are a few build related things that don't work … assumption of sh being bash, missing -64 argument to dtrace etc.
- There are also some dtrace language problems with tracetool (no support for bool, and self being reserved.)
- More fundamentally some object linking issues with dtrace which I'll need some help to find the best way to resolve.
- Specific #ifdef CONFIG_SOLARIS/__sun__ stuff to support differences
- ultimately the support for vnic's … but I haven't even looked at that yet.

The current state is that it's working ok for Windows guests, and non-KVM for Linux, but kvm & linux seems to fail, hence question number 2.

2. The last thing that happens when I try to boot linux with kvm enabled is some apic mmio accesses, then it stops at a hlt instruction and never gets going again. Is there something I can enable to help debug this? Or has anyone else seen similar behaviour? I've run out of places to look.

Many thanks,

Lee.

#1 lore raw
Quoted 4 lines · Lee Essen

I've been working on getting the mainline qemu tree working on SmartOS (illumos), the current qemu support seems to be a branch of qemu-kvm and we've been having some problems getting spice working, so moving to the main qemu tree seemed sensible.

qemu-kvm.git is a fork of qemu.git. qemu-kvm.git periodically pulls in qemu.git updates, but patches are also sent back to mainline qemu.git so the delta between the two has been decreasing. Perhaps the two can merge soon.

Quoted 5 lines

Anyway, couple of questions…

1. Are you happy to accept patches that enable this?
- There are a few build related things that don't work … assumption of sh
being bash, missing -64 argument to dtrace etc.

Sounds good, but have you checked the Joyent qemu-kvm Illumos port to see what fixes they already have?

https://github.com/joyent/illumos-kvm-cmd

Quoted 2 lines

- There are also some dtrace language problems with tracetool (no support
for bool, and self being reserved.)

If there is a reserved keyword then we need to update ./trace-events to avoid using it, and we need to add a check to scripts/tracetool so that it refuses such trace event definitions. There was discussion about reserved keywords recently here:
http://patchwork.ozlabs.org/patch/146054/

Quoted 2 lines

- More fundamentally some object linking issues with dtrace which I'll need
some help to find the best way to resolve.

I think Joyent has already done this, they said they use QEMU tracing with DTrace as the backend.

Quoted 11 lines

- Specific #ifdef CONFIG_SOLARIS/__sun__ stuff to support differences
- ultimately the support for vnic's … but I haven't even looked at that
yet.

The current state is that it's working ok for Windows guests, and non-KVM
for Linux, but kvm & linux seems to fail, hence question number 2.

2. The last thing that happens when I try to boot linux with kvm enabled is some apic mmio accesses, then it stops at a hlt instruction and never gets going again. Is there something I can enable to help debug this? Or has anyone else seen similar behaviour? I've run out of places to look.

So you are using qemu.git/master with the IllumOS KVM port?

I think what you are trying to do makes sense - IllumOS as a host OS and QEMU platform should be actively involved in the upstream QEMU community. But you may want to first check the Joyent port to see what can easily be upstreamed and also try talking with them if you haven't already. I'm not sure why things aren't being pushed upstream but perhaps the process can be started.

Stefan

#2 lore raw
In reply to Lee Essen

Hi,

Am 15.03.2012 12:19, schrieb Lee Essen:

Quoted 5 lines

I've been working on getting the mainline qemu tree working on SmartOS (illumos), the current qemu support seems to be a branch of qemu-kvm and we've been having some problems getting spice working, so moving to the main qemu tree seemed sensible.

Anyway, couple of questions…

1. Are you happy to accept patches that enable this?

In the past I've kept QEMU running on OpenSolaris. Avi had one outstanding patch to fix C99 compilation, and I have some to start tackling builds without --disable-guest-agent on OpenIndiana in a local queue that I need to revisit. Never tested our DTrace support so far.

But sure, host support patches for qemu.git are welcome.

See http://wiki.qemu.org/Contribute/StartHere for info on expected style and workflows. Please cc me on patches.

Andreas