Skip to contentSkip to conversation

QEMU extension

Qemu-devel G Portokalidis 5 participants 8 messages May 26, 2005 – Jun 1, 2005

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm writing concerning a possible use for qemu in a project related to network security.

I'm looking for an emulator where I could load an entire (recent) OS, like Linux 2.6 or Windows XP and run multiple, potentially CPU intensive, services (IIS, Apache, MySQL, etc).

For the needs of the project I need to be able to know every instruction executed by the guest OS, and run custom code whenever an instruction of particular interest appears (doesn't really matter whether it's C or x86, but preferably the first).

So my first question is whether we could run Linux 2.6 and most importantly Windows XP on qemu without stability issues. Second, does the current design of qemu allows me to implement the functionality described in the above paragraph.

The developed code will be released under GPL and could be later incorporated in qemu if it provides commonly desired functionality.

Finally, what's the performance of qemu compared with a PC (how many times slower)?

Cheers,
Georgios Portokalidis

- --
Georgios Portokalidis
Vrije Universiteit
FEW, Department of Computer Science
W&N, Room P471
De Boelelaan 1081a
1081 HV Amsterdam
+31(0)20-5987726

VU-disclaimer: www.vu.nl/e-maildisclaimer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkKV9X0ACgkQbZp0oqIQNPoi5wCeLqx4NWflCldTaOnywwp19+jG jWIAn3h2Kk0uCWS93IKP7pX33m+zj73q
=mjLO
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 9 lines · G Portokalidis

Hello,

I'm writing concerning a possible use for qemu in a project related to network security.

I'm looking for an emulator where I could load an entire (recent) OS, like Linux 2.6 or Windows XP and run multiple, potentially CPU intensive, services (IIS, Apache, MySQL, etc).

Quoted 7 lines

For the needs of the project I need to be able to know every instruction executed by the guest OS, and run custom code whenever an instruction of particular interest appears (doesn't really matter whether it's C or x86, but preferably the first).

So my first question is whether we could run Linux 2.6 and most importantly Windows XP on qemu without stability issues.

Linux works fine. For windows XP it seems to depend which windows version you're using. Some versions work ok, others don't.

Quoted 3 lines

Second, does
the current design of qemu allows me to implement the functionality described in the above paragraph.

You may be better using bochs. That has instrumentation hooks that should allow you do do what you want. boch is significantly slower that qemu, but if you're instrumenting a significant number of instructions it's going to be dog slow anyway.

Qemu already has infrastructure for a gdb ICE connection. You could probably hack that to do what you want.

Quoted 2 lines

Finally, what's the performance of qemu compared with a PC (how many times slower)?

It's generally 10-15x slower than the host.

Paul

#2 lore raw

Though with KQEMU (for Linux and FreeBSD hosts only), you can run x86-on-x86 emulation at native speed.

Signature · 1 line
Mike
#3 lore raw
Quoted 2 lines · Mike Swanson

Though with KQEMU (for Linux and FreeBSD hosts only), you can run x86-on-x86 emulation at native speed.

Which is entirely irrelevant because:
(a) You can't do the required instrumentation with a virtualization based solution like kqemu/qvm86.
(b) kqemu is a closed-source binary released under a proprietary licence, so wouldn't be usable in a GPL project.

Paul

#4 lore raw

Is kQemu closed source? I thought it was just not a GPL compatible license. Don't you have to build it with your qemu tree??

If you get the source code from a freely downloadable archive, then its most certainly not closed source...

Or maybe I'm totally confused and kQemu is binary-only. :-)

JP

Quoted 2 lines · Paul Brook

(b) kqemu is a closed-source binary released under a proprietary licence, so wouldn't be usable in a GPL project.

----
It's all fun and games 'til someone writes to a NULL pointer!

#5 lore raw

Well, it turns out I am totally confused. I checked online and -- lo and behold -- the kqemu tar is just an elf binary.... :-(

I stand corrected (by myself)

JP

Quoted 17 lines · John Davidorff Pell

Is kQemu closed source? I thought it was just not a GPL compatible license. Don't you have to build it with your qemu tree??

If you get the source code from a freely downloadable archive, then its most certainly not closed source...

Or maybe I'm totally confused and kQemu is binary-only. :-)

JP

Quoted 3 lines · Paul Brook

(b) kqemu is a closed-source binary released under a proprietary licence, so wouldn't be usable in a GPL project.

Quoted 9 lines

----
It's all fun and games 'til someone writes to a NULL pointer!

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

--
if (message.signature==FUNNY) steal(message.signature); else message=message->next;

#6 lore raw
In reply to John Davidorff Pell
Quoted 7 lines · John Davidorff Pell

Is kQemu closed source? I thought it was just not a GPL compatible license. Don't you have to build it with your qemu tree??

If you get the source code from a freely downloadable archive, then its most certainly not closed source...

Or maybe I'm totally confused and kQemu is binary-only. :-)

kqemu IS binary-only :
http://fabrice.bellard.free.fr/qemu/qemu-accel.html

Signature · 2 lines
Damien Thebault
public keys on http://pgp.mit.edu
#7 lore raw
In reply to Paul Brook

I think I'm gonna go ahead with Qemu. Bochs seems to be to slow for my purpose. I was wondering if you know which windows XP versions have been know to work? Also do you have any performance metrics on popular applications runing under qemu(ex. apache)? I guess it's in the usenix paper, but i can't download it.

George

Quoted 40 lines · Paul Brook
Quoted 9 lines · G Portokalidis

Hello,

I'm writing concerning a possible use for qemu in a project related to network security.

I'm looking for an emulator where I could load an entire (recent) OS, like Linux 2.6 or Windows XP and run multiple, potentially CPU intensive, services (IIS, Apache, MySQL, etc).

Quoted 7 lines

For the needs of the project I need to be able to know every instruction executed by the guest OS, and run custom code whenever an instruction of particular interest appears (doesn't really matter whether it's C or x86, but preferably the first).

So my first question is whether we could run Linux 2.6 and most importantly Windows XP on qemu without stability issues.

Linux works fine. For windows XP it seems to depend which windows version you're using. Some versions work ok, others don't.

Quoted 3 lines

Second, does
the current design of qemu allows me to implement the functionality described in the above paragraph.

You may be better using bochs. That has instrumentation hooks that should allow you do do what you want. boch is significantly slower that qemu, but if you're instrumenting a significant number of instructions it's going to be dog slow anyway.

Qemu already has infrastructure for a gdb ICE connection. You could probably hack that to do what you want.

Quoted 2 lines

Finally, what's the performance of qemu compared with a PC (how many times slower)?

It's generally 10-15x slower than the host.

Paul