Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Jens Axboe
On Tue, Oct 04 2005, Troy Benjegerdes wrote: > What we want is to be able to have the guest OS request some DMA > I/O operation, and have qemu be able to use AIO so that the actual disk > hardware can dump the data directly in the pages the userspace process > on the guest OS ends up wanting it in,

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Jens Axboe
On Mon, Oct 03 2005, John Coiner wrote: > > > Jens Axboe wrote: > > Why not use aio for this instead, seems like a better fit than spawning > >a thread per block device? That would still require a thread for > >handling completions, but you could easily just use a single completion > >thread for

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Troy Benjegerdes
> > If you anyway plan on having Posix AIO support then go for the Posix AIO > interface. The performance reasons why Linux AIO exists is very unlikely > to be an issue to qemu as you need to be quite I/O intensive to see any > performance difference. Ideally, we should be able to use a Posix

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread octane indice
En réponse à "Jim C. Brown" <[EMAIL PROTECTED]> : > On Mon, Oct 03, 2005 at 05:55:58PM +0200, octane indice wrote: > > And what about a full IP connection beetween hosts? In order > > to simulate a real network to do nfs/smtp/http/smb and so on? > > > > I was thinking of a sort of a net-server whi

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread John Coiner
Why is there a posix async IO 'standard', but a different linux AIO standard? Linux has a Posix AIO library that sits on top of linux's native AIO: http://www.bullopensource.org/posix/ It's pretty new, version 0.6. We might not want qemu to depend on it, because most distros probably do

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Henrik Nordstrom
On Mon, 3 Oct 2005, Troy Benjegerdes wrote: Why is there a posix async IO 'standard', but a different linux AIO standard? Because the Posix AIO sucks quite badly both to implement and use. But all Linuxes I know of have a Posix AIO library. Some even have a Posix AIO library using Linux AIO.

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread John Coiner
Troy Benjegerdes wrote: I am also haveing trouble getting a fresh win2k install under qemu to actually be able to run windows update. I had to download and install Win2k SP4, then Win2k SP4 "Hotfixes," and also an IE6 upgrade, before windows update ran. -john

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Troy Benjegerdes
On Mon, Oct 03, 2005 at 03:58:40PM +0200, Jens Axboe wrote: > On Mon, Oct 03 2005, John Coiner wrote: > > > > Non-blocking disk IO now works for any type of disk image, not just > > "raw" format. There is no longer any format-specific code in the patch: > > > > http://people.brandeis.edu/~jcoine

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Troy Benjegerdes
On Mon, Oct 03, 2005 at 08:41:46AM -0400, John Coiner wrote: > > Magnus, > > I don't think the Windows 2000 install hack will ever be obsolete. > > The installer assumes that a hard disk will take nonzero time to read > some data. QEMU always services a read in zero-guest-time. (With the > non

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread John Coiner
Jens Axboe wrote: > Why not use aio for this instead, seems like a better fit than spawning a thread per block device? That would still require a thread for handling completions, but you could easily just use a single completion thread for all devices for this as it would not need to do any re

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 05:55:58PM +0200, octane indice wrote: > And what about a full IP connection beetween hosts? In order to > simulate a real network to do nfs/smtp/http/smb and so on? > > I was thinking of a sort of a net-server which handles the DHCP > process, the connection for going outs

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 08:29:13PM +0200, Fabrice Bellard wrote: > Hi, > > Sorry for the lack of comment. I mostly use the 'user-net' networking so > I never bothered much about TUN/TAP. > > What I can say is that the '-net xxx' option will be implemented to > solve the existing issues. My only

[Qemu-devel] qemu inside qemu troubles with FreeBSD 6.0beta4 guest

2005-10-03 Thread Juergen Lock
Hi! What worked with a 4.11 guest I couldnt get to work with a 6.0beta4 guest: running qemu inside qemu. without kqemu loaded in both the host and the guest qemu doesnt properly start up in the guest, top in the guest showing the cpu spending most of its time servicing interrupts (but none which

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread Henrik Nordstrom
On Mon, 3 Oct 2005, Christian MICHON wrote: I think you meant "guests" instead of "hosts". I second that. I would still like to use qemu to perform network simulations myself... This is done very nicely by VDE. Regards Henrik ___ Qemu-devel mailin

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
Christian MICHON a écrit : to do so, does that mean we would need to launch a 1st qemu instance which would contain the dhcp server, and next qemu instances would connect to it ? if so, 'qemu -server' and 'qemu -client -connect_to server' could be useful... As I understand and with what I know

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Christian MICHON
to do so, does that mean we would need to launch a 1st qemu instance which would contain the dhcp server, and next qemu instances would connect to it ? if so, 'qemu -server' and 'qemu -client -connect_to server' could be useful... On 10/3/05, Fabrice Bellard <[EMAIL PROTECTED]> wrote: > Hi, > >

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread Christian MICHON
I think you meant "guests" instead of "hosts". I second that. I would still like to use qemu to perform network simulations myself... On 10/3/05, octane indice <[EMAIL PROTECTED]> wrote: > And what about a full IP connection beetween hosts? In order to > simulate a real network to do nfs/smtp/http

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Fabrice Bellard
Thank you for the patch. I'll look at it ASAP. If there is no regression (in terms of bugs and performance) I will include it soon: I consider that non blocking I/O is now a critical feature in QEMU in order to get better performances. Fabrice. John Coiner wrote: Non-blocking disk IO now wo

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Fabrice Bellard
Hi, Sorry for the lack of comment. I mostly use the 'user-net' networking so I never bothered much about TUN/TAP. What I can say is that the '-net xxx' option will be implemented to solve the existing issues. My only concern is about ensuring backward compatibility (if no one needs it then i

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread Henrik Nordstrom
On Mon, 3 Oct 2005, octane indice wrote: And what about a full IP connection beetween hosts? In order to simulate a real network to do nfs/smtp/http/smb and so on? This is done with a TUN/TAP device, or via a VDE switch using TUN/TAP to connect to the host. Regards Henrik

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread octane indice
En réponse à "Jim C. Brown" <[EMAIL PROTECTED]> : > > Nearly? Oh come on... you know it ain't possible, period. > > What are you refering to? The ability of a single qemu to ping > thru slirp, > or the ability of multiple qemus to ping each other using > their guest ips? > > The former can be don

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 02:54:42PM +0200, Henrik Nordstrom wrote: > > On Sun, 2 Oct 2005, Jim C. Brown wrote: > >What it really boils down to is cleaning up the command line options for > >the > >network interface(s), which up to now have been added in a hackish, > >piece-wise > >manner. > > And

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 03:01:08PM +0200, Henrik Nordstrom wrote: > On Sun, 2 Oct 2005, Jean-Christian de Rivaz wrote: > >>In fact, if qemu supported both these things, then I don't see a reason > >>for > >>-tun-fd at all (except for something like VDE). > > > >Agree, and a -vde option will go for

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 03:07:02PM +0200, Henrik Nordstrom wrote: > On Sun, 2 Oct 2005, Jim C. Brown wrote: > Only objection is that for the tunfd case I would use > > -net tap,fd=10,macaddr=... > Since it doesn't have to be a tap device, how about this? -net socket,fd=10,macaddr=... > >

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Jens Axboe
On Mon, Oct 03 2005, John Coiner wrote: > > Non-blocking disk IO now works for any type of disk image, not just > "raw" format. There is no longer any format-specific code in the patch: > > http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html > > You might want this patch if: >

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
Henrik Nordstrom a écrit : On Sun, 2 Oct 2005, Jean-Christian de Rivaz wrote: It's already the case with at least my proposed patch. I have't tested the patch written by Henrik Nordstrom or Lars Munch but it's likly that there work the same way since this feature come from the Linux kernel tu

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
Henrik Nordstrom a écrit : On Mon, 3 Oct 2005, Jean-Christian de Rivaz wrote: The idea of the "-vde" option is to have in parameter the VDE socket (default to "/tmp/vde.ctl") an act like vde_plug so it don't need any other code to work. Just start a "vde_switch" and as many "qemu -vde" you wa

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
Henrik Nordstrom a écrit : The proposal by Fabrice looks better to me -net usernet,macaddr=00:11:a:0:2:19 -net tunfd=10,macaddr=00:11:a:0:1:19 this way the syntax can easily be extended with new options as needed, and the exact order of things is not important (you just specify the net param

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Henrik Nordstrom
On Mon, 3 Oct 2005, Jim C. Brown wrote: One potential issue is that the vde code is under the GPL, while qemu (at least the part that we're talking about) is under the BSD license. Not really. None of the VDE code is needed to connect to VDE. The protocol used for VDE connection management is

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Christian MICHON
I managed to make it work (qemu+non blocking IO on windows host), with a rough estimation of 10% speed increase at the early stage of windows setup. I expect more once windows installs itself in true multitasking mode. :) What you need to do is: - download pthreads-w32-2-6-0-release.tar.gz and com

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread John Coiner
Magnus, I don't think the Windows 2000 install hack will ever be obsolete. The installer assumes that a hard disk will take nonzero time to read some data. QEMU always services a read in zero-guest-time. (With the nonblocking IO patch, zero-guest-time reads still occur, when the requested da

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Henrik Nordstrom
On Sun, 2 Oct 2005, Jean-Christian de Rivaz wrote: It's already the case with at least my proposed patch. I have't tested the patch written by Henrik Nordstrom or Lars Munch but it's likly that there work the same way since this feature come from the Linux kernel tun code. Indeed. It is impos

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
Jim C. Brown a écrit : The idea of the "-vde" option is to have in parameter the VDE socket (default to "/tmp/vde.ctl") an act like vde_plug so it don't need any other code to work. Just start a "vde_switch" and as many "qemu -vde" you wants to create a complete virtual nework (1 switch and n

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Henrik Nordstrom
On Sun, 2 Oct 2005, Jim C. Brown wrote: vdeq works the way it does because the odds of getting a special "-vde-socket" option in qemu were moot. And perhaps so the author of VDE could have control over what options vdeq supported. (In the case of vdeq, its a clever hack: both tuntap devices and

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Henrik Nordstrom
On Sun, 2 Oct 2005, Jim C. Brown wrote: So while we're at it, we should redesign the interface for qemu. For each nic, we'd have -net type[,macaddr] where type is "tap" or "user" or "dummy" and the macaddr is an (optional) parameter that replaces -macaddr. Number of nics would depend on number o

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Henrik Nordstrom
On Mon, 3 Oct 2005, Jean-Christian de Rivaz wrote: The idea of the "-vde" option is to have in parameter the VDE socket (default to "/tmp/vde.ctl") an act like vde_plug so it don't need any other code to work. Just start a "vde_switch" and as many "qemu -vde" you wants to create a complete vir

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jim C. Brown
On Mon, Oct 03, 2005 at 11:46:57AM +0200, Jean-Christian de Rivaz wrote: > Ok for "-tuntap" long option. Can I propose "-t" for a short option ? > Makes sense. > The idea of the "-vde" option is to have in parameter the VDE socket > (default to "/tmp/vde.ctl") an act like vde_plug so it don't n

Re: [Qemu-devel] about DHCP server in qemu

2005-10-03 Thread octane indice
"Jim C. Brown" <[EMAIL PROTECTED]> : > > 1.1.1.1 is not a QEMU given IP. > > I know. I have no idea why that shows up. > tomsrtbt workaround if there is no DHCP server -- - Etes vous un consom'Acteur ? Toutes les saveurs équitables sont sur http:/

Re: [Qemu-devel] tun/tap networking: patch for existing tun

2005-10-03 Thread Jean-Christian de Rivaz
I'd argue that it should be "-tap" or "-tuntap" instead of "-tun", since using tun would confuse users who knew the distinction between tun devices and tap devices. Ok for "-tuntap" long option. Can I propose "-t" for a short option ? I'm not sure if a "-vde" option is necessary or a good id

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Elefterios Stamatogiannakis
With which pthreads library have you compiled it under windows? I've tried it with the one here: ftp://sources.redhat.com/pub/pthreads-win32/ but it didn't compile. teris. John Coiner wrote: Non-blocking disk IO now works for any type of disk image, not just "raw" format. There is no longe

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Magnus Damm
John, On 10/3/05, John Coiner <[EMAIL PROTECTED]> wrote: > > Non-blocking disk IO now works for any type of disk image, not just > "raw" format. There is no longer any format-specific code in the patch: > > http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html > > You might want this

[Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread John Coiner
Non-blocking disk IO now works for any type of disk image, not just "raw" format. There is no longer any format-specific code in the patch: http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html You might want this patch if: * you run a multitasking guest OS, * you access a dis