Re: [Qemu-devel] Issue With non-blocking IO patch

2005-10-17 Thread John Coiner
I can't reproduce this. Please check two things: 1. In block.c, the first two lines of the bdrv_cancel_nonblock_io function should read: if( bs-nbst.booted bs-nbst.state != STATE_IDLE ) { There was a bugfix here, in the most recent version of the patch, and if you didn't have

[Qemu-devel] Re: [patch] robust user-mode DHCP

2005-10-16 Thread John Coiner
John R. Hogerhuis wrote: I have no idea what 'frozen state' means in this context. Do you? I guess not, since I suppose as soon as you really knew you would be in a position to kill the fly with a fly swatter rather than running over it with your car :-). Not a criticism just a nudge... this

[Qemu-devel] [patch] robust user-mode networking

2005-10-12 Thread John Coiner
OK, maybe robust should read slightly less flimsy :) It'd be nice if these use cases worked, under user-mode networking: 1. The user disables and re-enables a network interface in windows. Instead of hanging, it should come back up. (Does anyone else have this issue?) 2. The host's DNS

[Qemu-devel] [patch] fix QEMU hang after hibernate

2005-10-09 Thread John Coiner
After I hibernate my x86 linux host machine (using the swsusp2 package) and resume, QEMU and guest hang. That is odd, because hibernation is transparent to all other user programs. Has anyone else noticed this? If so please try the patch. You know QEMU is doing something weird, for it to be

[Qemu-devel] [patch] make '-smb $HOME' work

2005-10-08 Thread John Coiner
The most common use case for the '-smb' option may be '-smb $HOME'. There is a problem with this case: Windows attempts to connect as user nobody. Smbd allows the connection -- unfortunately, it also maps the nobody accesses to the host's nobody account, so all write accesses fail. How are

Re: [Qemu-devel] [patch] make '-smb $HOME' work

2005-10-08 Thread John Coiner
Troy Benjegerdes wrote: Which smbd are you using? The one on debian sarge wants to have write access to some /var/run and /var/lib directories to coordinate locking. Because it gets run as a regular user, (and is not suid root), it winds up spitting out an error to the logfile and dying. It

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

2005-10-04 Thread John Coiner
Whoops. I had the mistaken belief that Qemu already used pthreads. So, the makefiles and configure script need to handle pthreads somehow (especially on windows.) Pthreads-w32 is refusing to 'make install' itself into standard lib and include directories. Unlike SDL, there is no

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

2005-10-04 Thread John Coiner
I had to download and install Win2k SP4, then Win2k SP4 Hotfixes, and also an IE6 upgrade, before windows update ran. Are you running with a tun/tap device, or -user-net ? I'm still unable to get windowsupdate to work. Getting it to work in vmware seems to work on the first try. I've been

[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 disk

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

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: [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 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

[Qemu-devel] [patch] Concurrent IO Support

2005-09-30 Thread John Coiner
Folks, Here's a patch which allows guest CPU cycles to run concurrent with IO syscalls: http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html It's actually two patches -- a patch which enables DMA support (the same one posted here a few days ago) and a second patch which