[Qemu-devel] Re: [PATCH 1/2] machine: package all init arguments into a QemuOpts

2010-06-04 Thread Anthony Liguori
On 06/04/2010 09:11 AM, Anthony Liguori wrote: This patch creates a QemuOpts structure and stores all of the machine init arguments in that structure. It introduces a temporary list of QemuOptDescs in vl.c such that the current common options can be validated. The long term vision is that that

Re: [Qemu-devel] Re: [PATCH 1/4] Add virtio disk identification support

2010-06-04 Thread Kevin Wolf
Am 03.06.2010 21:09, schrieb Anthony Liguori: > On 03/25/2010 12:32 AM, john cooper wrote: >> Add virtio-blk device id (s/n) support via virtio request. >> Remove artifacts of pci and ATA_IDENTIFY implementation >> relative to prior versions. >> >> Signed-off-by: john cooper >> --- >> >> diff --git

[Qemu-devel] [Bug 589315] Re: qemu: Improve error reporting when migration can't connect

2010-06-04 Thread Luiz Capitulino
** Changed in: qemu Status: New => Confirmed -- qemu: Improve error reporting when migration can't connect https://bugs.launchpad.net/bugs/589315 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Confirmed Bug desc

[Qemu-devel] [PATCH 2/3] add unregister_displaychangelistener

2010-06-04 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- console.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/console.h b/console.h index 3a80dca..a0da498 100644 --- a/console.h +++ b/console.h @@ -227,6 +227,11 @@ static inline void register_displaychangelistener(DisplayState *ds, Di

[Qemu-devel] [PATCH 3/3] Fix and simplify gui timer logic.

2010-06-04 Thread Gerd Hoffmann
Kill nographic timer. Have a global gui_timer instead. Have the gui timer enabled unconditionally. We need a timer running anyway for mmio flush, so the whole have-gui-timer-only-when-needed logic is pretty pointless. It also simplifies displaylisteners coming and going at runtime, we don't nee

[Qemu-devel] Re: [PATCH v2 2/2] vnc: threaded VNC server

2010-06-04 Thread Corentin Chary
On Fri, Jun 4, 2010 at 4:41 PM, Paolo Bonzini wrote: >> +    vnc_lock_queue(queue); >> +    if (QTAILQ_EMPTY(&queue->jobs)) { >> +        qemu_cond_wait(&queue->cond,&queue->mutex); >> +    } >> + >> +    /* If the queue is empty, it's an exit order */ >> +    if (QTAILQ_EMPTY(&queue->jobs)) { >>

Re: [Qemu-devel] [PATCH] qdev: Reject duplicate and anti-social device IDs

2010-06-04 Thread Markus Armbruster
Paul Brook writes: >> Also require IDs to start with a letter to provide for possible future >> extensions. > > I'd go further than that, and require that user specified IDs match > [A-Za-z][A-Za-z0-9_-]* I talked with Dan (cc'ed) to make sure we don't trample on existing libvirt usage without n

[Qemu-devel] [PATCH 1/3] QLIST-ify display change listeners.

2010-06-04 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- console.h | 72 +++ hw/xenfb.c |2 +- vl.c |9 ++- 3 files changed, 42 insertions(+), 41 deletions(-) diff --git a/console.h b/console.h index cac959f..3a80dca 100644 --- a/console.h ++

[Qemu-devel] [PATCH] target-i386: fix decoding of negative 4-byte displacements

2010-06-04 Thread Paolo Bonzini
Negative four byte displacements need to be sign-extended after c086b783eb7a578993d6d2ab62c4c2666800b63d. Do so. Signed-off-by: Paolo Bonzini --- There are quite a few other ldl's to audit after the patch (about 70 in target-*). Any volunteers? :-) target-i386/translate.c |

Re: [Qemu-devel] Re: [V9fs-developer] [PATCH] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-06-04 Thread Venkateswararao Jujjuri (JV)
Aneesh Kumar K. V wrote: > On Thu, 3 Jun 2010 18:29:02 +0530, Sripathi Kodi wrote: >> On Wed, 02 Jun 2010 19:49:24 +0530 >> "Aneesh Kumar K. V" wrote: >> >>> On Fri, 28 May 2010 16:08:43 +0530, Sripathi Kodi >>> wrote: From: M. Mohan Kumar SYNOPSIS size[4] Tgetat

[Qemu-devel] Re: [PATCH v2 2/2] vnc: threaded VNC server

2010-06-04 Thread Alexander Graf
On 04.06.2010, at 15:20, Corentin Chary wrote: > Implement a threaded VNC server using the producer-consumer model. > The main thread will push encoding jobs (a list a rectangles to update) > in a queue, and the VNC worker thread will consume that queue and send > framebuffer updates to the outpu

[Qemu-devel] Re: [PATCH v2 2/2] vnc: threaded VNC server

2010-06-04 Thread Corentin Chary
On Fri, Jun 4, 2010 at 3:25 PM, Alexander Graf wrote: > > On 04.06.2010, at 15:20, Corentin Chary wrote: > >> Implement a threaded VNC server using the producer-consumer model. >> The main thread will push encoding jobs (a list a rectangles to update) >> in a queue, and the VNC worker thread will

[Qemu-devel] Re: [PATCH v2 2/2] vnc: threaded VNC server

2010-06-04 Thread Paolo Bonzini
+vnc_lock_queue(queue); +if (QTAILQ_EMPTY(&queue->jobs)) { +qemu_cond_wait(&queue->cond,&queue->mutex); +} + +/* If the queue is empty, it's an exit order */ +if (QTAILQ_EMPTY(&queue->jobs)) { +vnc_unlock_queue(queue); +return -1; +} + +job = QTA

[Qemu-devel] Re: [PATCH v2 2/2] vnc: threaded VNC server

2010-06-04 Thread Paolo Bonzini
On 06/04/2010 04:55 PM, Corentin Chary wrote: Because it's not in a loop ? Like I said in the cover-letter (but this should probably be in a comment here) you can't use multiple worker on a single queue because of zlib streams. But if the issue is more a style issue than the actual implementation

Re: [Qemu-devel] [PATCH 10/16] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-04 Thread Richard Henderson
On 06/03/2010 11:47 PM, Jes Sorensen wrote: > On 06/03/10 22:58, Richard Henderson wrote: >> On 06/03/2010 09:48 AM, jes.soren...@redhat.com wrote: >>> +/* >>> + * Duplicate definition from vl.c to avoid messing up the entire build >>> + */ >>> +enum { >>> +#define DEF(option, opt_arg, opt_enum, op

Re: [Qemu-devel] [PATCH 11/17] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-04 Thread Richard Henderson
On 06/04/2010 06:24 AM, jes.soren...@redhat.com wrote: > --- > Makefile.objs |2 ++ > os-posix.c| 19 +++ > os-win32.c| 10 ++ > sysemu.h |1 + > vl.c | 19 +++ > 5 files changed, 35 insertions(+), 16 deletions(-) Looks l

Re: [Qemu-devel] [PATCH] qdev: Reject duplicate and anti-social device IDs

2010-06-04 Thread Paul Brook
> Paul Brook writes: > >> Also require IDs to start with a letter to provide for possible future > >> extensions. > > > > I'd go further than that, and require that user specified IDs match > > [A-Za-z][A-Za-z0-9_-]* > > I talked with Dan (cc'ed) to make sure we don't trample on existing > libvi

Re: [Qemu-devel] [PATCH 10/16] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-04 Thread Jes Sorensen
On 06/04/10 16:49, Richard Henderson wrote: > On 06/03/2010 11:47 PM, Jes Sorensen wrote: >> The problem is that it requires qemu-options.h to be included, which >> isn't included per default for all the files. If I put it into sysemu.h >> at least it's going to require making every .c file build w

[Qemu-devel] [PATCH] [V4] 9p: readdir implementation for 9p2000.L

2010-06-04 Thread Sripathi Kodi
This patch implements the kernel part of readdir() implementation for 9p2000.L Change from V3: Instead of inode, server now sends qids for each dirent SYNOPSIS size[4] Treaddir tag[2] fid[4] offset[8] count[4] size[4] Rreaddir tag[2] count[4] data[count] DESCRIPTION The

[Qemu-devel] Re: [PATCH 3/5] vnc: add lossless option

2010-06-04 Thread Anthony Liguori
On 06/04/2010 08:17 AM, Alexander Graf wrote: On 04.06.2010, at 15:18, Corentin Chary wrote: The lossless option can be used to force lossless compression by disabling all lossy encodings like gradient or jpeg. I think this should be reverse. Be lossless by default, but have a lossy

[Qemu-devel] [PATCH 11/17] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Introduce OS specific cmdline argument handling by calling os_parse_cmd_args() at the end of switch() statement. Move option enum to qemu-options.h and have it included from os-posix.c and os-win32.c in addition to vl.c. In addition move SMB argument to os-posix.c Signed-off-

[Qemu-devel] [PATCH] Fix and simplify gui timer logic.

2010-06-04 Thread Gerd Hoffmann
Kill nographic timer. Have a global gui_timer instead. Have the gui timer enabled unconditionally. We need a timer running anyway for mmio flush, so the whole have-gui-timer-only-when-needed logic is pretty pointless. It also simplifies displaylisteners coming and going at runtime, we don't nee

[Qemu-devel] [PATCH 03/17] Introduce os-win32.c and move polling functions from vl.c

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen This introduces os-win32.c. It is meant to carry win32 specific functions thata are not relevant for all of QEMU as well as win32 versions of various pieces like signal handling etc. Move win32 polling handler helper functions from vl.c to os-win32.c Signed-off-by: Jes Sorens

[Qemu-devel] Re: [PATCH 2/5] vnc: JPEG should be disabled if the client don't set tight quality

2010-06-04 Thread Anthony Liguori
On 06/04/2010 08:16 AM, Alexander Graf wrote: On 04.06.2010, at 15:18, Corentin Chary wrote: Disable JPEG compression by default and only enable it if the VNC client has sent the requested quality. Signed-off-by: Corentin Chary --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deleti

[Qemu-devel] Re: [PATCH 1/3] Add virtioblk_id tool to extract drive serial numbers

2010-06-04 Thread john cooper
Ryan Harper wrote: > * Kay Sievers [2010-06-03 15:06]: >> On Thu, Jun 3, 2010 at 22:01, Ryan Harper wrote: >>> * Kay Sievers [2010-06-03 14:53]: On Thu, Jun 3, 2010 at 21:07, Ryan Harper wrote: > Use the 'VBID' virtio-blk ioctl to extract drive serial numbers > to be used for build

[Qemu-devel] [PATCH 01/17] vl.c: Remove double include of netinet/in.h for Solaris

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen vl.c: netinet/in.h is already included once above for the Signed-off-by: Jes Sorensen --- vl.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 417554f..7c4298a 100644 --- a/vl.c +++ b/vl.c @@ -70,7 +70,6 @@ #include #include #i

Re: [Qemu-devel] [PATCH 00/10] target-mips: add microMIPS ASE support, v2

2010-06-04 Thread Nathan Froyd
On Mon, May 24, 2010 at 09:19:34AM -0700, Nathan Froyd wrote: > This patch series adds support for the microMIPS ASE. microMIPS is a > new ASE similar to MIPS16, but re-encodes the entire instruction set > into 16-bit and 32-bit instructions--in contrast to MIPS16, which > re-encodes only integer

[Qemu-devel] Re: RFC: blockdev_add & friends, brief rationale, QMP docs

2010-06-04 Thread Markus Armbruster
Kevin Wolf writes: > Am 04.06.2010 16:16, schrieb Markus Armbruster: >> Discussion with Christoph and Kevin uncovered yet another issue: >> protocols. I find it pretty confusing, but let me try to describe it >> anyway; Christoph and Kevin, please correct my errors. >> >> A host block device ha

[Qemu-devel] dyngen tool

2010-06-04 Thread maheen butt
i want to know how dyngen tool is incorporated in QEMU source code?? does mips folder in TCG directory do same work for MIPS 64??

[Qemu-devel] [PATCH v3 00/17] clean up vl.c code

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Hi, Ok third time lucky ... I hope! This fixes the missing git add on qemu-options.h as building for win32 using mingw (thanks Paolo!). The patches try to clean up the vl.c code by separating out OS specific code into OS specific files. Basically it is focused on moving thing

[Qemu-devel] [PATCH 10/17] Rename qemu-options.h to qemu-options.def

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Rename qemu-options.h to qemu-options.def as it is not a header file for general use and this leaves space for a proper qemu-options.h Signed-off-by: Jes Sorensen --- Makefile.objs |4 ++-- vl.c |6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) di

[Qemu-devel] [PATCH 12/17] Move runas handling from vl.c to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move code to handle runas, ie. change of user id of QEMU process to OS specific files and provide dummy stub for Win32. Signed-off-by: Jes Sorensen --- os-posix.c | 28 qemu-os-posix.h |1 + qemu-os-win32.h |1 + vl.c|

[Qemu-devel] [PATCH 07/17] Rename os_setup_signal_handling() to os_setup_early_signal_handling()

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Rename os_setup_signal_handling() to os_setup_early_signal_handling() Signed-off-by: Jes Sorensen --- os-posix.c |2 +- os-win32.c |2 +- sysemu.h |2 +- vl.c |2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/os-posix.c b/os-posix.

[Qemu-devel] [PATCH 13/17] Move chroot handling to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move chroot handling to OS specific files. Signed-off-by: Jes Sorensen --- os-posix.c | 19 +++ qemu-os-posix.h |1 + qemu-os-win32.h |1 + vl.c| 18 +- 4 files changed, 22 insertions(+), 17 deletions(-) diff --gi

[Qemu-devel] [PATCH 09/17] Move find_datadir to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen This moves the win32 and POSIX versions of find_datadir() to OS specific files, and removes some #ifdef clutter from vl.c Signed-off-by: Jes Sorensen --- os-posix.c | 64 +++ os-win32.c | 23 ++ sysemu.h |2 + vl.c

[Qemu-devel] [PATCH 03/17] Introduce os-win32.c and move polling functions from vl.c

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen This introduces os-win32.c. It is meant to carry win32 specific functions thata are not relevant for all of QEMU as well as win32 versions of various pieces like signal handling etc. Move win32 polling handler helper functions from vl.c to os-win32.c Signed-off-by: Jes Sorens

[Qemu-devel] [PATCH 16/17] Move line-buffering setup to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move line-buffering setup to OS specific files. Signed-off-by: Jes Sorensen --- os-posix.c |5 + qemu-os-posix.h |1 + qemu-os-win32.h |2 ++ vl.c|5 + 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/os-posix.c b/os-pos

[Qemu-devel] [PATCH 17/17] Move set_proc_name() to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move handling to change process name to POSIX specific files plus add a better error message to cover the case where the feature isn't supported. Signed-off-by: Jes Sorensen --- os-posix.c | 24 qemu-os-posix.h |1 + qemu-os-win32.h |1

[Qemu-devel] [PATCH 08/17] Move main signal handler setup to os specificfiles.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move main signal handler setup to os specific files. Signed-off-by: Jes Sorensen --- os-posix.c | 27 +++ qemu-os-posix.h |2 ++ qemu-os-win32.h |3 +++ vl.c| 33 + 4 files changed, 33 inser

[Qemu-devel] [PATCH 14/17] Move daemonize handling to OS specific files

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move daemonize handling from vl.c to OS specific files. Provide dummy stubs for Win32. Signed-off-by: Jes Sorensen --- os-posix.c | 102 os-win32.c |5 +++ qemu-os-posix.h |2 + qemu-os-win32.h |2 +

[Qemu-devel] [PATCH 01/17] vl.c: Remove double include of netinet/in.h for Solaris

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen vl.c: netinet/in.h is already included once above for in the generic POSIX section. Signed-off-by: Jes Sorensen --- vl.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 417554f..7c4298a 100644 --- a/vl.c +++ b/vl.c @@ -70,7 +70,6 @@

[Qemu-devel] [PATCH 05/17] Introduce os-posix.c and create os_setup_signal_handling()

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Introcuce os-posix.c and move posix specific signal handling there. Signed-off-by: Jes Sorensen --- Makefile.objs |1 + os-posix.c | 41 + qemu-os-posix.h |2 ++ vl.c|8 +--- 4 files changed, 45 ins

Re: [Qemu-devel] [PATCH] target-i386: fix decoding of negative 4-byte displacements

2010-06-04 Thread Richard Henderson
On 06/04/2010 07:27 AM, Paolo Bonzini wrote: > Negative four byte displacements need to be sign-extended after > c086b783eb7a578993d6d2ab62c4c2666800b63d. Do so. Acked-by: Richard Henderson > There are quite a few other ldl's to audit after the patch > (about 70 in target-*).

[Qemu-devel] Re: RFC: blockdev_add & friends, brief rationale, QMP docs

2010-06-04 Thread Kevin Wolf
Am 04.06.2010 17:53, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 04.06.2010 16:16, schrieb Markus Armbruster: >>> Our abstraction for formats is struct BlockDriver. >>> >>> Our abstraction for protocols is also struct BlockDriver. Except for >>> the special protocol "file", but that'

[Qemu-devel] [PATCH 11/27] ide: Split ide_init1() off ide_init2()

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/core.c | 32 +--- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index c3334b1..443ff10 100644 --- a/hw/ide/core.c +++ b/h

[Qemu-devel] [PATCH 11/17] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Introduce OS specific cmdline argument handling by calling os_parse_cmd_args() at the end of switch() statement. Move option enum to qemu-options.h and have it included from os-posix.c and os-win32.c in addition to vl.c. In addition move SMB argument to os-posix.c Signed-off-

[Qemu-devel] [PATCH 02/17] Create qemu-os-win32.h and move WIN32 specific declarations there

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Create qemu-os-win32.h for WIN32 specific declarations. Move polling handling declaration into this file from sysemu.h Signed-off-by: Jes Sorensen --- qemu-os-win32.h | 43 +++ sysemu.h| 17 + 2 files change

[Qemu-devel] [PATCH 04/27] Cleanup: virtio-blk.c: Be more consistent using BDRV_SECTOR_SIZE instead

2010-06-04 Thread Kevin Wolf
From: Jes Sorensen Clean up virtio-blk.c to be more consistent using BDRV_SECTOR_SIZE instead of hard coded 512 values. Signed-off-by: Jes Sorensen Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/virtio-blk.c b/hw

[Qemu-devel] [PATCH 15/27] qdev: Don't leak string property value on hot unplug

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster parse_string() qemu_strdup()s the property value. It is never freed. It needs to be freed along with the device. Otherwise, the value of scsi-disk property "ver" gets leaked when hot-unplugging the disk, for instance. Call new PropertyInfo method free() from qdev_free()

[Qemu-devel] [PATCH 06/17] Move win32 early signal handling setup to os_setup_signal_handling()

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move win32 early signal handling setup to os_setup_signal_handling() Signed-off-by: Jes Sorensen --- os-win32.c | 29 + qemu-os-posix.h |2 -- sysemu.h|2 ++ vl.c| 30 -- 4 files cha

[Qemu-devel] [PATCH 13/27] ide: Split non-qdev code off ide_init2()

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/cmd646.c |4 ++-- hw/ide/core.c | 30 ++ hw/ide/internal.h |5 +++-- hw/ide/isa.c|2 +- hw/ide/macio.c |2 +- hw/ide/microdrive.c

[Qemu-devel] [PATCH 17/27] ide: Fix info qtree for ide-drive.ver

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Show the actual default value instead of when the property has not been set. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/qdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index 5e5

[Qemu-devel] [PATCH 02/27] Cleanup: Be consistent and use BDRV_SECTOR_SIZE instead of 512

2010-06-04 Thread Kevin Wolf
From: Jes Sorensen Clean up block.c and use BDRV_SECTOR_SIZE rather than hard coded numbers (512) when referring to sector size throughout the code. Signed-off-by: Jes Sorensen Signed-off-by: Kevin Wolf --- block.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff -

[Qemu-devel] [PATCH 15/17] Make os_change_process_uid and os_change_root os-posix.c local

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen os_change_process_uid() and os_change_root() are now only called from os-posix.c, so no need to keep win32 stubs for them. Signed-off-by: Jes Sorensen --- os-posix.c |8 qemu-os-posix.h |2 -- qemu-os-win32.h |2 -- 3 files changed, 4 insertions(+),

[Qemu-devel] [PATCH 10/27] ide: Remove redundant IDEState member conf

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Commit 428c149b added IDEState member conf to let commit 0009baf1 find the BlockConf from there. It exists only for qdev drives, created via ide_drive_initfn(), not for drives created via ide_init2(). But for a qdev drive, we can just as well reach its IDEDevice, which c

[Qemu-devel] [PATCH 19/27] scsi: Fix info qtree for scsi-disk.ver

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Show the actual default value instead of when the property has not been set. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/scsi-disk.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c in

[Qemu-devel] [PATCH 12/27] ide: Change ide_init_drive() to require valid dinfo argument

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster IDEState members drive_serial_str and version are now left empty until an actual drive is connected. Before, they got a default value that was overwritten when a drive got connected. Doesn't matter, because they're used only while a drive is connected. Signed-off-by: Ma

[Qemu-devel] [PATCH 18/27] scsi: Turn drive serial into a qdev property scsi-disk.serial

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster It needs to be a qdev property, because it belongs to the drive's guest part. Bonus: info qtree now shows the serial number. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 17 + 1 files changed, 13 insertions(+), 4 de

[Qemu-devel] [PATCH 04/17] vl.c: Move host_main_loop_wait() to OS specific files.

2010-06-04 Thread Jes . Sorensen
From: Jes Sorensen Move host_main_loop_wait() to OS specific files. Create qemu-os-posix.h and provide empty inline for the POSIX case. Signed-off-by: Jes Sorensen --- os-win32.c | 43 +++ qemu-os-posix.h | 33 +

[Qemu-devel] [PATCH 16/27] ide: Turn drive serial into a qdev property ide-drive.serial

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster It needs to be a qdev property, because it belongs to the drive's guest part. Bonus: info qtree now shows the serial number. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/core.c | 11 ++- hw/ide/internal.h |4 +++- hw/ide/qdev

[Qemu-devel] [PATCH 06/27] blockdev: Belatedly remove MAX_DRIVES

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Unused since commit 751c6a17. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- sysemu.h |1 - vl.c |2 -- 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/sysemu.h b/sysemu.h index 879446a..063319c 100644 --- a/sysemu.h +++ b/sys

[Qemu-devel] [PATCH 07/27] blockdev: Belatedly remove driveopts

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Unused since commit 9dfd7c7a. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- sysemu.h |1 - vl.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/sysemu.h b/sysemu.h index 063319c..fd83b7d 100644 --- a/sysemu.h +++ b/syse

[Qemu-devel] [PATCH 01/27] Cleanup: bdrv_open() no need to shift total_size just to shift back.

2010-06-04 Thread Kevin Wolf
From: Jes Sorensen In bdrv_open() there is no need to shift total_size >> 9 just to multiply it by 512 again just a few lines later, since this is the only place the variable is used. Mask with BDRV_SECTOR_MASK to protect against case where we are passed a corrupted image. Signed-off-by: Jes So

Re: [Qemu-devel] [PATCH 00/10] target-mips: add microMIPS ASE support, v2

2010-06-04 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 08:51:12AM -0700, Nathan Froyd wrote: > On Mon, May 24, 2010 at 09:19:34AM -0700, Nathan Froyd wrote: > > This patch series adds support for the microMIPS ASE. microMIPS is a > > new ASE similar to MIPS16, but re-encodes the entire instruction set > > into 16-bit and 32-bit

[Qemu-devel] [PATCH 05/27] qemu-io: Fix error messages

2010-06-04 Thread Kevin Wolf
The truncate and getlength commands passed a negative error number to strerror. They also happen to be the two functions that are lacking a newline at the end of their error message. Signed-off-by: Kevin Wolf --- qemu-io.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] Re: [PATCH v3] savevm: Really verify if a drive supports snapshots

2010-06-04 Thread Kevin Wolf
Am 03.06.2010 21:52, schrieb Miguel Di Ciurcio Filho: > Both bdrv_can_snapshot() and bdrv_has_snapshot() does not work as advertized. > > First issue: Their names implies different porpouses, but they do the same > thing > and have exactly the same code. Maybe copied and pasted and forgotten? > b

[Qemu-devel] [PULL 00/27] Block patches

2010-06-04 Thread Kevin Wolf
The following changes since commit 358c360feb346dff8f911e2d1dbcdd6319393f1d: Anthony Liguori (1): Merge remote branch 'kwolf/for-anthony' into staging are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Jes Sorensen (4): Cleanup: bdrv_open() no n

[Qemu-devel] [PATCH 08/27] usb: Remove unused usb_device_add() parameter is_hotplug

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Unused since commit b3e461d3. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- vl.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 9283469..76a9b25 100644 --- a/vl.c +++ b/vl.c @@ -1315,7 +1315,7 @@ static

[Qemu-devel] [PATCH 21/27] block: Assume raw for drives without media

2010-06-04 Thread Kevin Wolf
qemu -cdrom /dev/cdrom with an empty CD-ROM drive doesn't work any more because we try to guess the format and when this fails (because there is no medium) we exit with an error message. This patch should restore the old behaviour by assuming raw format for such drives. Signed-off-by: Kevin Wolf

[Qemu-devel] [PATCH] qemu-iotests: qcow2 error path tests

2010-06-04 Thread Kevin Wolf
This adds test cases for qcow2 error paths (using blkdebug) Signed-off-by: Kevin Wolf --- 026 | 192 ++ 026.out | 558 +++ group |1 + 3 files changed, 751 insertions(+), 0 deletions(-) create mode 10075

[Qemu-devel] [PATCH 24/27] blockdev: Hide QEMUMachine from drive_init()

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster To pave the way for moving it out of vl.c. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/device-hotplug.c |2 +- hw/usb-msd.c|2 +- sysemu.h|3 ++- vl.c| 12 +--- 4 files changed, 9 insertion

[Qemu-devel] [PATCH 03/27] Cleanup: raw-posix.c: Be more consistent using BDRV_SECTOR_SIZE instead of 512

2010-06-04 Thread Kevin Wolf
From: Jes Sorensen Clean up raw-posix.c to be more consistent using BDRV_SECTOR_SIZE instead of hard coded 512 values. Signed-off-by: Jes Sorensen Signed-off-by: Kevin Wolf --- block/raw-posix.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/block

[Qemu-devel] [PATCH 09/27] ide: Remove useless IDEDeviceInfo members unit, drive

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/internal.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/ide/internal.h b/hw/ide/internal.h index 2efc784..b4554ce 100644 --- a/hw/ide/internal.h +++ b/hw/ide/internal.h

[Qemu-devel] option-rom (was cg14)

2010-06-04 Thread Artyom Tarasenko
>>> 2010/5/27 Bob Breuer : >>> +    /* DBRI (audio) */ >>> +    cpu_register_physical_memory_offset(0xEE0001000ULL, 0x1, bad_mem, >>> 0xE0001000); >> >> Please add a new DBRI device ;-). > > Or maybe just a field in hwdef + empty_slot? :-) Or actually don't bother at all. What is expected at

[Qemu-devel] [PATCH 23/27] block: call the snapshot handlers of the protocol drivers

2010-06-04 Thread Kevin Wolf
From: MORITA Kazutaka When snapshot handlers are not defined in the format driver, it is better to call the ones of the protocol driver. This enables us to implement snapshot support in the protocol driver. We need to call bdrv_close() and bdrv_open() handlers of the format driver before and af

Re: [Qemu-devel] [PATCH 02/10] target-mips: add microMIPS-specific bits to mips-defs.h

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > There's a new ASE_MICROMIPS instruction flag, and some extra CP0_Config3 > fields. The ISA and ISA_ON_EXC fields are specific to microMIPS. The > DSP2P is for version 2 of the DSP ASE. > > Signed-off-by: Nathan Froyd > --- > target-mips/cpu.h

Re: [Qemu-devel] [PATCH 03/10] target-mips: add enum constants for various invocations of FOP

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > +enum { > +OPC_ADD_S = FOP(0, FMT_S), Adding the enumeration is good. Naming the enumeration and using it in appropriate places is even better. > @@ -5937,8 +6031,8 @@ static void gen_farith (DisasContext *ctx, uint32_t op1, > enum { BINOP,

Re: [Qemu-devel] [PATCH 05/10] target-mips: small changes to use new FMT_ enums

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > Signed-off-by: Nathan Froyd > --- > target-mips/translate.c | 17 + > 1 files changed, 9 insertions(+), 8 deletions(-) Acked-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH v3 00/17] clean up vl.c code

2010-06-04 Thread Richard Henderson
On 06/04/2010 09:08 AM, jes.soren...@redhat.com wrote: > From: Jes Sorensen > > Hi, > > Ok third time lucky ... I hope! This fixes the missing git add on > qemu-options.h as building for win32 using mingw (thanks Paolo!). Acked-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH 03/10] target-mips: add enum constants for various invocations of FOP

2010-06-04 Thread Nathan Froyd
On Fri, Jun 04, 2010 at 10:45:32AM -0700, Richard Henderson wrote: > On 05/24/2010 09:19 AM, Nathan Froyd wrote: > > @@ -5937,8 +6031,8 @@ static void gen_farith (DisasContext *ctx, uint32_t > > op1, > > enum { BINOP, CMPOP, OTHEROP } optype = OTHEROP; > > uint32_t func = ctx->opcode & 0

Re: [Qemu-devel] [PATCH] hxtool: Fix line number reporting on SQMP/EQMP errors

2010-06-04 Thread Luiz Capitulino
On Wed, 02 Jun 2010 09:06:03 +0200 Jan Kiszka wrote: > From: Jan Kiszka > > Signed-off-by: Jan Kiszka Looks good. > --- > hxtool |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/hxtool b/hxtool > index d499dc0..7ca83ed 100644 > --- a/hxtool > +++ b/hxtool > @

[Qemu-devel] [PATCH 20/27] Fix error message in drive_init

2010-06-04 Thread Kevin Wolf
The real error is the return value of bdrv_open. errno might be overwritten or not even set to that value in the first place. Signed-off-by: Kevin Wolf --- vl.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 76a9b25..2769d1a 100644 --- a/vl.c +++

[Qemu-devel] [PATCH 25/27] qdev: Move declaration of qdev_init_bdrv() into qdev.h

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/pl181.c |1 - hw/qdev.h |2 ++ hw/ssi-sd.c |1 - sysemu.h|2 -- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pl181.c b/hw/pl181.c index 1924053..85cadc4 100644

[Qemu-devel] [PATCH 14/27] qdev: New qdev_prop_set_string()

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/qdev-properties.c |5 + hw/qdev.h|1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 9ffdba7..b6ee50f 100644 ---

Re: [Qemu-devel] [PATCH] monitor: allow device to be ejected if no disk is inserted

2010-06-04 Thread Luiz Capitulino
On Tue, 1 Jun 2010 19:12:19 -0300 Eduardo Habkost wrote: > I have no clue why the code had the is_inserted() check, as it doesn't matter > if there is a disk present at the host drive, when the user wants the virtual > device to be disconnected from the host device. Makes sense, although I have

[Qemu-devel] [PATCH 22/27] close all the block drivers before the qemu process exits

2010-06-04 Thread Kevin Wolf
From: MORITA Kazutaka This patch calls the close handler of the block driver before the qemu process exits. This is necessary because the sheepdog block driver releases the lock of VM images in the close handler. Signed-off-by: MORITA Kazutaka Signed-off-by: Kevin Wolf --- block.c |9 +++

Re: [Qemu-devel] [PATCH 04/10] target-mips: refactor {c, abs}.cond.fmt insns

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > +case FMT_D: > \ > +if (abs) > \ > +check_cop1x(ctx); >

[Qemu-devel] [PATCH 26/27] blockdev: Collect block device code in new blockdev.c

2010-06-04 Thread Kevin Wolf
From: Markus Armbruster Anything that moves hundreds of lines out of vl.c can't be all bad. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- Makefile.objs|2 +- blockdev.c | 600 ++ blockdev.h | 7

Re: [Qemu-devel] [PATCH 01/10] target-mips: break out [ls][wd]c1 and rdhwr insn generation

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > Signed-off-by: Nathan Froyd > --- > target-mips/translate.c | 106 > ++- > 1 files changed, 59 insertions(+), 47 deletions(-) Acked-by: Richard Henderson r~

[Qemu-devel] [PATCH 27/27] block: Fix serial number assignment

2010-06-04 Thread Kevin Wolf
From: Luiz Capitulino We should use 'dinfo->serial' length, 'serial' is a pointer, so the serial number length is currently limited to the pointer size. This fixes https://bugs.launchpad.net/qemu/+bug/584143 and is also valid for stable. Signed-off-by: Luiz Capitulino Signed-off-by: Kevin Wolf

[Qemu-devel] Re: [PATCH v3] savevm: Really verify if a drive supports snapshots

2010-06-04 Thread Miguel Di Ciurcio Filho
On Fri, Jun 4, 2010 at 2:28 PM, Kevin Wolf wrote: >> @@ -1674,12 +1659,26 @@ void do_savevm(Monitor *mon, const QDict *qdict) >>  #endif >>      const char *name = qdict_get_try_str(qdict, "name"); >> >> +    /* Verify if there is a device that doesn't support snapshots and is >> writable */ >> +

Re: [Qemu-devel] [PATCH 06/10] target-mips: add microMIPS ASE support

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > +int (*ldfun)(target_ulong); > + > +switch (mem_idx) > +{ > +case 0: ldfun = ldl_kernel; break; > +case 1: ldfun = ldl_super; break; > +default: > +case 2: ldfun = ldl_user; break; > +} This *should* now be a compile err

Re: [Qemu-devel] [PATCH 03/10] target-mips: add enum constants for various invocations of FOP

2010-06-04 Thread Richard Henderson
On 06/04/2010 10:50 AM, Nathan Froyd wrote: > What's the benefit from declaring op1 as 'enum fopcode' or similar? Debugging and self-documentation. r~

Re: [Qemu-devel] [PATCH 00/10] target-mips: add microMIPS ASE support, v2

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > This patch series adds support for the microMIPS ASE. microMIPS is a > new ASE similar to MIPS16, but re-encodes the entire instruction set > into 16-bit and 32-bit instructions--in contrast to MIPS16, which > re-encodes only integer instructions. The

Re: [Qemu-devel] [PATCH 08/10] target-mips: add microMIPS exception handler support

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > return bad_pc; > } > +static void set_hflags_for_handler (CPUState *env) > +{ Missing vertical space between functions. r~

Re: [Qemu-devel] [PATCH] Change 'query-version' to output broken down version string

2010-06-04 Thread Luiz Capitulino
On Wed, 2 Jun 2010 13:40:06 +0100 "Daniel P. Berrange" wrote: > A previous discussion brought up the fact that clients should > not have to parse version string from QMP, it should be given > to them pre-split. Right. > Change query-version output format from: > > { "qemu": "0.11.50", "pac

Re: [Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIPS

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > Signed-off-by: Nathan Froyd > --- > linux-user/main.c |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/linux-user/main.c b/linux-user/main.c > index 18b52c0..76d443b 100644 > --- a/linux-user/main.c > +++ b/linux-user/

Re: [Qemu-devel] [PATCH 07/10] target-mips: add microMIPS CPUs

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > Signed-off-by: Nathan Froyd > --- > target-mips/translate_init.c | 61 > ++ > 1 files changed, 61 insertions(+), 0 deletions(-) > Reviewed-by: Richard Henderson ... not that there's anything in here I coul

Re: [Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine

2010-06-04 Thread Richard Henderson
On 05/24/2010 09:19 AM, Nathan Froyd wrote: > Signed-off-by: Nathan Froyd > --- > hw/mips_mipssim.c |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c > index a747de5..cd6c2be 100644 > --- a/hw/mips_mipssim.c > +++ b/hw/mips_mip

Re: [Qemu-devel] [PATCH 06/10] target-mips: add microMIPS ASE support

2010-06-04 Thread Nathan Froyd
On Fri, Jun 04, 2010 at 11:30:38AM -0700, Richard Henderson wrote: > On 05/24/2010 09:19 AM, Nathan Froyd wrote: > > +int (*ldfun)(target_ulong); > > + > > +switch (mem_idx) > > +{ > > +case 0: ldfun = ldl_kernel; break; > > +case 1: ldfun = ldl_super; break; > > +default: >

<    1   2   3   >