Skip to contentSkip to conversation

Status on ARM host cpu

Qemu-devel Steffen Liebergeld 4 participants 5 messages Nov 14, 2008 – Nov 17, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I am currently researching of whether or not it is feasible to port kqemu to the ARM platform. The website says qemu on ARM hosts is in "testing"-state. Does that still apply to the latest svn-Version?

Many thanks,
Steffen Liebergeld

#1 lore raw
Quoted 5 lines · Steffen Liebergeld

Hi,

I am currently researching of whether or not it is feasible to port kqemu to the ARM platform. The website says qemu on ARM hosts is in "testing"-state. Does that still apply to the latest svn-Version?

Should just about work, though you should expect bugs.

However I advise using KVM and not kqemu. KVM has already been merged to upstream kernels, and the chances of getting another hypervisor interface merged are approximately zero.

Paul

#2 lore raw

Hi Paul,

Quoted 7 lines · Paul Brook
Quoted 5 lines · Steffen Liebergeld

Hi,

I am currently researching of whether or not it is feasible to port kqemu to the ARM platform. The website says qemu on ARM hosts is in "testing"-state. Does that still apply to the latest svn-Version?

Quoted 5 lines

Should just about work, though you should expect bugs.

However I advise using KVM and not kqemu. KVM has already been merged to upstream kernels, and the chances of getting another hypervisor interface merged are approximately zero.

KVM is not an option for me (and is not available for the ARM-platform).

I plan to port kqemu for the ARM-platform. Do have any estimates, for how much work would be needed to adopt the kqemu-Interface of qemu (which is x86-centric) to ARM (ignoring the effort needed to port the kqemu-kernel-module)?

Many thanks,
Steffen

#3 lore raw
Quoted 9 lines · Steffen Liebergeld

Hi Paul,

Quoted 6 lines · Paul Brook
Quoted 5 lines · Steffen Liebergeld

Hi,

I am currently researching of whether or not it is feasible to port kqemu to the ARM platform. The website says qemu on ARM hosts is in "testing"-state. Does that still apply to the latest svn-Version?

Quoted 7 lines
Quoted 5 lines

Should just about work, though you should expect bugs.

However I advise using KVM and not kqemu. KVM has already been merged to upstream kernels, and the chances of getting another hypervisor interface merged are approximately zero.

KVM is not an option for me (and is not available for the ARM-platform).

(...so is KQEMU)

Quoted 4 lines

I plan to port kqemu for the ARM-platform. Do have any estimates, for how much work would be needed to adopt the kqemu-Interface of qemu (which is x86-centric) to ARM (ignoring the effort needed to port the kqemu-kernel-module)?

You should start with studying both KVM and KQEMU in more details. Before thinking about which interface to implement, first clarify what approach you actually need for ARM. I don't think that arch is as weird as x86. Virtualization-wise it will rather be close to PowerPC e.g. And for PowerPC (440) there is already kvm support...

But even if you had to implement a KQEMU-comparable VMM for ARM, you should definitely use KVM's interface and infrastructure (which goes beyond KQEMU). Rather extend it if that's required. Only that way your work would have a chance to become mainline and benefit from the ongoing development in KVM and QEMU. Believe us. :)

Jan

#4 lore raw
In reply to Steffen Liebergeld
Quoted 16 lines · Steffen Liebergeld

Hi Paul,

Quoted 7 lines · Paul Brook
Quoted 5 lines · Steffen Liebergeld

Hi,

I am currently researching of whether or not it is feasible to port kqemu to the ARM platform. The website says qemu on ARM hosts is in "testing"-state. Does that still apply to the latest svn-Version?

Quoted 5 lines

Should just about work, though you should expect bugs.

However I advise using KVM and not kqemu. KVM has already been merged to upstream kernels, and the chances of getting another hypervisor interface merged are approximately zero.

Quoted 6 lines

KVM is not an option for me (and is not available for the ARM-platform).

I plan to port kqemu for the ARM-platform. Do have any estimates, for how much work would be needed to adopt the kqemu-Interface of qemu (which is x86-centric) to ARM (ignoring the effort needed to port the kqemu-kernel-module)?

To expand on what Jan said, I've implemented KVM on PowerPC 440 core, which has no hardware virtualization support. I expect you're in the same situation on ARM.

Basically you execute most guest instructions natively in hardware, running in user mode. When the guest kernel attempts to perform a privileged operation, you trap to supervisor mode and emulate it. (Optionally, you can also patch the guest to prevent it from attempting that operation in the first place.)

This is very feasible given the KVM interface -- the 440 support is already working and merged upstream. I would strongly recommend working with KVM instead of kqemu, if for no other reason than KVM has a development community which can help you, and kqemu doesn't.

-Hollis