Skip to contentSkip to conversation

Syncing documentation vs. -help vs. qemu_options table v3

RFC PATCH In review Blue Swirl 7 participants 9 messages Mar 17, 2009 – Mar 21, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

RFC PATCH 1/1 Syncing documentation vs. -help vs. qemu_options table v3

Hi,

This version uses a C tool to parse the options file instead of Perl script. I also added HXCOMM for comment purposes.

Does this work on Windows?

#1 lore raw
Quoted 6 lines · Blue Swirl

Hi,

This version uses a C tool to parse the options file instead of Perl script. I also added HXCOMM for comment purposes.

Does this work on Windows?

I'm pretty sure it doesn't work in cross environments.

Paul

#2 lore raw
Quoted 8 lines · Paul Brook
Quoted 5 lines

This version uses a C tool to parse the options file instead of Perl script. I also added HXCOMM for comment purposes.

Does this work on Windows?

I'm pretty sure it doesn't work in cross environments.

Just have qemu-user run the thing.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
#3 lore raw
Quoted 9 lines · Avi Kivity
Quoted 6 lines · Paul Brook
Quoted 4 lines

This version uses a C tool to parse the options file instead of Perl script. I also added HXCOMM for comment purposes.

Does this work on Windows?

I'm pretty sure it doesn't work in cross environments.

Just have qemu-user run the thing.

That's not going to work for several reasons:
- You might not be building qemu-user.
- qemu-user only supports a very small subset of systems. e.g. it's no use for linux->windows cross builds, which I expect to be the most common case
- The necessary runtime libraries might not be installed. Even if they are, qemu probably doesn't know where to find them.

Paul

#4 lore raw
Quoted 10 lines · Paul Brook
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines

This version uses a C tool to parse the options file instead of Perl script. I also added HXCOMM for comment purposes.

Does this work on Windows?

I'm pretty sure it doesn't work in cross environments.

Just have qemu-user run the thing.

Quoted 7 lines

That's not going to work for several reasons:
- You might not be building qemu-user.
- qemu-user only supports a very small subset of systems. e.g. it's no use for linux->windows cross builds, which I expect to be the most common case
- The necessary runtime libraries might not be installed. Even if they are, qemu probably doesn't know where to find them.

That was not a serious suggestion.

Signature · 1 line
error compiling committee.c: too many arguments to function
#5 lore raw

[Qemu-devel] Random thought about qemu-user and Windows

In reply to Paul Brook
Quoted 3 lines · Paul Brook

- qemu-user only supports a very small subset of systems. e.g. it's no use for linux->windows cross builds, which I expect to be the most common case

Hmm... I wonder how much would be required to emulate just the Windows system calls (used by normal applications)? I.e. the same way qemu-user emulates the Linux and BSD system calls used by normal apps.

WINE does this, of course, but WINE is much bigger than that - it replaces all the Windows userspace libraries. That's much bigger than just kernel behaviour. I wonder how big the part needed just for Windows system calls would be.

-- Jamie

#6 lore raw

Re: [Qemu-devel] Random thought about qemu-user and Windows

Hi,

Quoted 5 lines · Jamie Lokier
Quoted 3 lines · Paul Brook

- qemu-user only supports a very small subset of systems. e.g. it's no use for linux->windows cross builds, which I expect to be the most common case

Quoted 8 lines

Hmm... I wonder how much would be required to emulate just the Windows system calls (used by normal applications)? I.e. the same way qemu-user emulates the Linux and BSD system calls used by normal apps.

WINE does this, of course, but WINE is much bigger than that - it replaces all the Windows userspace libraries. That's much bigger than just kernel behaviour. I wonder how big the part needed just for Windows system calls would be.

You would still need all the proprietary libraries, such as kernel32.dll, user32.dll, ...

I guess, though, that the Ring3k project comes pretty close to emulating your idea: http://ring3k.org/

Keep in mind, translating syscalls from one architecture to another architecture is non-trivial (I once discussed this with a Solaris kernel developer, and he convinced me that it is a big task).

Ciao,
Dscho

#7 lore raw

Re: [Qemu-devel] Random thought about qemu-user and Windows

In reply to Jamie Lokier
Quoted 8 lines · Jamie Lokier

Hmm... I wonder how much would be required to emulate just the Windows system calls (used by normal applications)? I.e. the same way qemu-user emulates the Linux and BSD system calls used by normal apps.

WINE does this, of course, but WINE is much bigger than that - it replaces all the Windows userspace libraries. That's much bigger than just kernel behaviour. I wonder how big the part needed just for Windows system calls would be.

Hmm, at some point in the future, I suppose it's possible that there could be a demand for something like FX!32 (which let you run i386 apps on NT for DEC Alpha)... x86 seems to be here to stay, though...

For most users, I suppose qemu+wine would (in theory) be want they want, although perhaps it'd be possible to run some code (e.g. wineserver?) directly on the host CPU, without any translation.

Signature · 1 line
Stuart Brady
#8 lore raw

Re: [Qemu-devel] Random thought about qemu-user and Windows

Am 20.03.2009 um 21:18 schrieb Stuart Brady:

Quoted 10 lines · Jamie Lokier
Quoted 8 lines

Hmm... I wonder how much would be required to emulate just the Windows system calls (used by normal applications)? I.e. the same way qemu-user emulates the Linux and BSD system calls used by normal apps.

WINE does this, of course, but WINE is much bigger than that - it replaces all the Windows userspace libraries. That's much bigger than just kernel behaviour. I wonder how big the part needed just for Windows system calls would be.

Quoted 7 lines

Hmm, at some point in the future, I suppose it's possible that there could be a demand for something like FX!32 (which let you run i386 apps on NT for DEC Alpha)... x86 seems to be here to stay, though...

For most users, I suppose qemu+wine would (in theory) be want they want, although perhaps it'd be possible to run some code (e.g. wineserver?) directly on the host CPU, without any translation.

Isn't that what ReactOS does when run through KVM, in a similar way to Haiku allowing to execute BeOS apps?

Andreas