Skip to contentSkip to conversation

QEmu as a Device Software Optimization tool

Qemu-devel n schembr 4 participants 4 messages Jul 26, 2007 – Jul 28, 2007

lore
Share & tools
lore

n schembr

author
#0 lore raw

-snap-

Quoted 3 lines

Personally though I don't see much benefit to simple syntax config

files over C files, that are being used now.

Config files implies a self check process. A better question might be, has qemu grown to the point where an outsider is going to define a new platform?

Could an arm based cell phone manufacture use the config files to define the hardware for the emulator without a full port? Iphone anyone :)

Nicholas A. Schembri
state college pa usa

#1 lore raw

The embedded space contains a vast number of boards, often only different by what devices are use, where they are located, etc. Building a new version of qemu for each board would be burdensome. The hope would be that we could build a generic qemu (for an architecture family), say, ppc_generic, which then read an external file (which, in our case, will be generated from board description) and configure itself according to that. Further, by allowing devices to be loaded vi dlopen(), devices can be added after qemu has been built. This would also allow the developer to specify the exact location of the device, rather than having a list of IRQ's and base ports, etc.

For the embedded world, yes, "outsiders" are certainly going to want to define new platforms and more than likely, provide their own custom devices. They key is they do not need to muck with the real internals of qemu, just the part that picks the bits and pieces to use.

Oh, and if I am an outsider, then absolutely the answer is yes!, I already have had the need :-)

-Paul

Quoted 38 lines · n schembr

-snap-

Quoted 3 lines

Personally though I don't see much benefit to simple syntax config

files over C files, that are being used now.

Config files implies a self check process. A better question might be, has qemu grown to the point where an outsider is going to define a new platform?

Could an arm based cell phone manufacture use the config files to define the hardware for the emulator without a full port? Iphone anyone :)

Nicholas A. Schembri
state college pa usa

#3 lore raw
In reply to n schembr
Quoted 9 lines · n schembr

-snap-

Quoted 2 lines

Personally though I don't see much benefit to simple syntax config files over C files, that are being used now.

Config files implies a self check process. A better question might be, has qemu grown to the point where an outsider is going to define a new platform?

Absolutely. I've been using it to prototype firmware for a NUMA chipset. I've had to invent ugly command-line hacks for specifying the number of nodes, per-node consoles, etc. And I still need to use a debugger to override variable values in my init. code when I want to test "odd" cases which my hacks don't support. I could make good use of a generalized configuration file.

Brian

#2 lore raw
In reply to Paul Borman

Hello Paul,

Quoted 12 lines · you

The embedded space contains a vast number of boards, often only different by what devices are use, where they are located, etc. Building a new version of qemu for each board would be burdensome. The hope would be that we could build a generic qemu (for an architecture family), say, ppc_generic, which then read an external file (which, in our case, will be generated from board description) and configure itself according to that. Further, by allowing devices to be loaded vi dlopen(), devices can be added after qemu has been built. This would also allow the developer to specify the exact location of the device, rather than having a list of IRQ's and base ports, etc.

Quoted 4 lines

For the embedded world, yes, "outsiders" are certainly going to want to define new platforms and more than likely, provide their own custom devices. They key is they do not need to muck with the real internals of qemu, just the part that picks the bits and pieces to use.

Funnily, this is the same argumentation as I used more than
half-year ago when there was last big discussion on the need of flexible and generalized config file:
http://lists.gnu.org/archive/html/qemu-devel/2006-10/msg00249.html
Then, it received rather cool response, I actually don't remember any single vote for flexible/structural config and plugins. Well, I always thought that just a small time will be required for more wider audience to chime in and come back to this idea ;-).

Quoted 4 lines

Oh, and if I am an outsider, then absolutely the answer is yes!, I already have had the need :-)

-Paul

[]

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]