[Qemu-devel] Re: [PATCH 01/14] Introduce qemu_write_full()

2010-01-19 Thread Anthony Liguori
On 01/19/2010 06:04 PM, Juan Quintela wrote: Anthony Liguori wrote: On 01/19/2010 06:17 AM, Kirill A. Shutemov wrote: On Tue, Jan 19, 2010 at 2:11 PM, Juan Quintela wrote: "Kirill A. Shutemov" wrote: A variant of write(2) which handles partial write. Signed

Re: [Qemu-devel] Re: [PATCH 01/14] Introduce qemu_write_full()

2010-01-19 Thread Jamie Lokier
Anthony Liguori wrote: > >-write(posix_aio_state->wfd,&byte, sizeof(byte)); > >+ret = write(posix_aio_state->wfd,&byte, sizeof(byte)); > >+if (ret< 0&& errno != EAGAIN) > >+die("write()"); > > } > > > >if write() fails in a pipe in the signal handler, I am

Re: [Qemu-devel] [PATCH] Add definitions for current cpu models..

2010-01-19 Thread Jamie Lokier
Anthony Liguori wrote: > On 01/19/2010 02:03 PM, Chris Wright wrote: > >* Anthony Liguori (anth...@codemonkey.ws) wrote: > > > >>I'm very much against having -cpu Nehalem. The whole point of this is > >>to make things easier for a user and for most of the users I've > >>encountered, -cpu Nehale

Re: [Qemu-devel] Re: [PATCH v2 2/4] Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to

2010-01-19 Thread Jamie Lokier
Michael S. Tsirkin wrote: > On Mon, Jan 18, 2010 at 11:34:59AM +0100, Markus Armbruster wrote: > > BDRV_O_RDWR is a flag, just like BDRV_SNAPSHOT. We don't have > > BDRV_DONT_SNAPSHOT, either. > > Well, this just mirros the file access macros: we have RDONLY, WRONLY > and RDRW. I assume this simi

Re: [Qemu-devel] [PATCH v2 1/4] Make CDROM a read-only drive

2010-01-19 Thread Jamie Lokier
Naphtali Sprei wrote: > } > (void)bdrv_set_read_only(dinfo->bdrv, 1); > } > +/* > + * cdrom is read-only. Set it now, after above interface checking > + * since readonly attribute not explicitly required, so no error. > + */ > +if (media == MEDIA_CDROM) {

[Qemu-devel] Does anybody can explain how qemu do network simulation?

2010-01-19 Thread fan ni
Hi: Does anybody here have read the network simulation code in qemu and have a knowledge of how it works and connected to the host network? And how network tap works in qemu?

[Qemu-devel] Re: [PATCH 07/17] block/vvfat.c: fix warnings with _FORTIFY_SOURCE

2010-01-19 Thread Kirill A. Shutemov
On Wed, Jan 20, 2010 at 1:56 AM, Juan Quintela wrote: > From: Kirill A. Shutemov > > CC    block/vvfat.o > cc1: warnings being treated as errors > block/vvfat.c: In function 'commit_one_file': > block/vvfat.c:2259: error: ignoring return value of 'ftruncate', declared > with attribute warn_unuse

Re: [Qemu-devel] Re: [PATCH v2 2/4] Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to

2010-01-19 Thread Markus Armbruster
Jamie Lokier writes: > Michael S. Tsirkin wrote: >> On Mon, Jan 18, 2010 at 11:34:59AM +0100, Markus Armbruster wrote: >> > BDRV_O_RDWR is a flag, just like BDRV_SNAPSHOT. We don't have >> > BDRV_DONT_SNAPSHOT, either. >> >> Well, this just mirros the file access macros: we have RDONLY, WRONLY

Re: [Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-19 Thread Markus Armbruster
Luiz Capitulino writes: > On Mon, 18 Jan 2010 18:16:21 +0100 > Markus Armbruster wrote: [...] >> > +/** >> > + * do_pci_info(): PCI buses and devices information >> > + * >> > + * The returned QObject is a QList of all buses. Each bus is >> > + * represented by a QDict, which has a key with a QL

<    1   2