Skip to contentSkip to conversation

Qemu and (Pacifica | Vanderpool)

Qemu-devel Dave Feustel 6 participants 10 messages Nov 6, 2005 – Nov 7, 2005

lore
Share & tools
lore
#0 lore raw

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

Thanks,
Dave Feustel

Signature · 4 lines
Tired of having to defend against Malware?
You know: trojans, viruses, SPYWARE, ADWARE, 
KEYLOGGERS, rootkits, worms and popups.
Then Switch to OpenBSD with a KDE desktop!!!
#1 lore raw

It really depends on Fabrice or another contributions from developers..

If Intel or AMD want to donate a machine with VanderPool/Pacificia to Fabrice, maybe he'll add it :)

Hetz

Quoted 17 lines · Dave Feustel

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

Thanks,
Dave Feustel
--
Tired of having to defend against Malware?
You know: trojans, viruses, SPYWARE, ADWARE,
KEYLOGGERS, rootkits, worms and popups.
Then Switch to OpenBSD with a KDE desktop!!!

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw
In reply to Dave Feustel
Quoted 3 lines · Dave Feustel

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

qemu is an emulator, not a virtualizer, so these extensions don't really help.

You may want to look at Xen (www.xensource.com), which already supports these.

Paul

#3 lore raw
Quoted 7 lines · Dave Feustel
Quoted 3 lines

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

qemu is an emulator, not a virtualizer, so these extensions don't really help.

They could be leveraged by kqemu one day...

/me thinks we'll see a rash of Linux kernel "hypervisor modules" when VTX / SVM hardware is available.

Cheers,
Mark

Quoted 10 lines

You may want to look at Xen (www.xensource.com), which already supports these.

Paul

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#4 lore raw
Quoted 10 lines · Mark Williamson
Quoted 4 lines

qemu is an emulator, not a virtualizer, so these extensions don't really help.

They could be leveraged by kqemu one day...

/me thinks we'll see a rash of Linux kernel "hypervisor modules" when VTX / SVM hardware is available.

Indeed. I've already started my own ;-) My initial guess is that the kqemu/qvm86 model would work quite well extended for VT/SVM.

That is, a kernel driver that provides a memory area that can be read-from/written-to in userspace, and then an ioctl interface that blocks while running code and returns when a sensitive instruction is hit. It probably makes sense to handle most of the stuff in kernel space (shadow paging and such) and just return to userspace for IO operations.

Regards,

Anthony Liguori

Quoted 26 lines

Cheers,
Mark

Quoted 12 lines

You may want to look at Xen (www.xensource.com), which already supports these.

Paul

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#5 lore raw
In reply to Paul Brook
Quoted 10 lines · Paul Brook
Quoted 3 lines · Dave Feustel

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

qemu is an emulator, not a virtualizer, so these extensions don't really help.

You may want to look at Xen (www.xensource.com), which already supports these.

Paul

I've been subscribed to several Xen mailing lists for about a year.
I got further in 1/2 hour with Qemu than with Xen during the past year. (This is probably due to the fact that Xen is, so far, for all practical purposes, a linux-only tool so far, so I can't run it with OpenBSD). Xen will probably become more useable with OpenBSD when Xen 3.0 arrives along with Pacifica-enabled AMD chips.

But back to Qemu. I have looked at the faq and the documentation, but I don't yet see how to load files from my file system to the disk image file used by qemu.

Also, I am interested in qemu-arm and qemu-ppc, both to run on x86 under OpenBSD if possible.

The keyboard mapping problem I reported in a previous post goes away when I invoke startx. The Xwindow programs all seem to get the correct keycodes.

Signature · 4 lines
Tired of having to defend against Malware?
You know: trojans, viruses, SPYWARE, ADWARE, 
KEYLOGGERS, rootkits, worms and popups.
Then Switch to OpenBSD with a KDE desktop!!!
#6 lore raw
In reply to Paul Brook
Quoted 12 lines · Paul Brook
Quoted 5 lines · Dave Feustel

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

qemu is an emulator, not a virtualizer, so these extensions don't really help.

Not quite.

qemu is technically a JIT. kqemu/qvm86 are virtualizers. Bochs is an actual emulator.

VT/SVM will definitely improve the performance of kqemu/qvm86. The only bottleneck left in QEMU would be the IO emulation. Since Xen uses the QEmu IO model any performance improvements for Xen IO emulation should be sharable with QEmu...

Quoted 3 lines

You may want to look at Xen (www.xensource.com), which already supports these.

Xen is a Type I VMM, QEmu is a Type II. They aren't interchangable.

The main difference between a Type I and a Type II VMM is that a Type I runs on bare metal (and has control of the entire platform) whereas a Type II VMM runs within an Operating System.

The "Analysis of the Intel Pentium's Abiliity to Support a Secure VMM" paper has a good discussion of the differences between the two (the original Popek/Goldberg paper is pretty dense).

Regards,

Anthony Liguori

Quoted 10 lines

Paul

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#7 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 4 lines

qemu is an emulator, not a virtualizer, so these extensions don't really help.

Not quite.

qemu is technically a JIT. kqemu/qvm86 are virtualizers. Bochs is an actual emulator.

VT/SVM won't help the JIT part of qemu. And kqemu/qvm86 are optional.

Quoted 1 line

VT/SVM will definitely improve the performance of kqemu/qvm86.

VT/SVM won't actually help them that much in the current case, assuming that my understanding is correct. They can only make the userland bits a little faster, and kqemu/qvm86 don't support running kernel code (where the real gains would be realized). The JIT still handles that, so there is still an emulated cpu.

They could be extended to take over both userland and kernel code easily though. (In which case the user space qemu would provide only the system emulation bits - there'd no longer be any emulation of the guest cpu). I believe that there are plans to extend kqemu to be able to do this at some point. But at that point I'd hesitate to call the combination "QEMU", since there would be nothing of the original qemu left (for the record this considered of the dynamic translator/JIT and the qemu-user code).

Quoted 6 lines
Quoted 4 lines

You may want to look at Xen (www.xensource.com), which already supports these.

Xen is a Type I VMM, QEmu is a Type II. They aren't interchangable.

Agreed. Of course, since Xen runs on the bare metal, one would expect that it would have better performance than qemu anyways (though if qemu's io model is used, that is not going to be true for the obvious reasons). If ease of installation is more important than performance, qemu is less invasive. I guess that can be considered a tradeoff.

I doubt qemu + kqemu/qvm86 is a pure Type II anyways, since it modifies the host operating system. And from my understanding of qvm86, the userland code is essentially run directly by qvm86 directly on the bare hardware, since the only parts of the host kernel that are involved are the parts that tell the kernel to leave that code alone. Modifying the accelerators so they handle running of all the guest code moves even farther away from this.

--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

#8 lore raw
Quoted 9 lines · Jim C. Brown
Quoted 3 lines

VT/SVM will definitely improve the performance of kqemu/qvm86.

VT/SVM won't actually help them that much in the current case, assuming that my understanding is correct. They can only make the userland bits a little faster, and kqemu/qvm86 don't support running kernel code (where the real gains would be realized).

VT/SVM allows you to run kernel code unmodified and without binary translation on bare metal.

Quoted 4 lines

They could be extended to take over both userland and kernel code easily though. (In which case the user space qemu would provide only the system emulation bits - there'd no longer be any emulation of the guest cpu).

Yup.

Quoted 7 lines

I believe that
there are plans to extend kqemu to be able to do this at some point. But at that point I'd hesitate to call the combination "QEMU", since there would be nothing of the original qemu left (for the record this considered of the dynamic translator/JIT and the qemu-user code).

kqemu would have to take advantage of VT/SVM to be able to run kernel code. There's an excellent paper (that I referenced in my previous note) that explains why this is the case.

Quoted 7 lines

Agreed. Of course, since Xen runs on the bare metal, one would expect that it would have better performance than qemu anyways (though if qemu's io model is used, that is not going to be true for the obvious reasons). If ease of installation is more important than performance, qemu is less invasive. I guess that can be considered a tradeoff.

Yeah, I think that's the basic trade-off.

Quoted 8 lines

I doubt qemu + kqemu/qvm86 is a pure Type II anyways, since it modifies the host operating system. And from my understanding of qvm86, the userland code is essentially run directly by qvm86 directly on the bare hardware, since the only parts of the host kernel that are involved are the parts that tell the kernel to leave that code alone. Modifying the accelerators so they handle running of all the guest code moves even farther away from this.

The original Popek/Goldberg paper puts a set of requirements on the host Operating System such that one can implement a Type II VMM. You can think of kqemu/qvm86 as extending the host operating system to satisfy the Type II requirements.

Regards,

Anthony Liguori

Quoted 6 lines

--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

#9 lore raw
In reply to Dave Feustel
Quoted 5 lines · Dave Feustel

Will Qemu be modified to take advantage of the hardware virtualization facilities incorporated in AMD's Pacifica and/or Intel's Vanderpool technogies?

Thanks,
Dave Feustel

qemu can't use these, since they dont help running PPC code on x86 or x86 code on a PPC or ARM code on an x86.

kqemu/qvm86 could. kqemu probably will at some point since it is Fabrice's intention to turn kqemu into something like VMware.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.