[Qemu-devel] buildbot failure in qemu on xen41

2012-07-29 Thread qemu
The Buildbot has detected a new failure on builder xen41 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/xen41/builds/77 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: anthony_xen Build Reason: The Nightly scheduler

Re: [Qemu-devel] [PATCH 04/11] Add cache handling functions

2012-07-29 Thread Orit Wasserman
On 07/27/2012 12:51 AM, Eric Blake wrote: On 07/25/2012 08:50 AM, Orit Wasserman wrote: Add LRU page cache mechanism. The page are accessed by their address. Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman

Re: [Qemu-devel] [v1 Patch 1/10]Qemu: Enhance info block to display host cache setting

2012-07-29 Thread Supriya Kannery
On 07/11/2012 07:33 PM, Luiz Capitulino wrote: On Mon, 09 Jul 2012 16:43:40 +0200 Kevin Wolfkw...@redhat.com wrote: Am 15.06.2012 23:07, schrieb Eric Blake: On 06/15/2012 02:47 PM, Supriya Kannery wrote: Enhance info block to display hostcache setting for each block device. ## {

Re: [Qemu-devel] [PATCH 07/11] Add XBZRLE to ram_save_block and ram_save_live

2012-07-29 Thread Orit Wasserman
On 07/27/2012 01:20 AM, Eric Blake wrote: On 07/25/2012 08:50 AM, Orit Wasserman wrote: In the outgoing migration check to see if the page is cached and changed than send compressed page by using save_xbrle_page function. s/changed than/changed, then/ In the incoming migration check to

Re: [Qemu-devel] [v1 Patch 1/10]Qemu: Enhance info block to display host cache setting

2012-07-29 Thread Supriya Kannery
On 07/05/2012 10:08 PM, Jeff Cody wrote: On 06/15/2012 04:47 PM, Supriya Kannery wrote: Enhance info block to display hostcache setting for each block device. Example: (qemu) info block ide0-hd0: removable=0 file=../rhel6-32.raw ro=0 drv=raw encrypted=0 Enhanced to display hostcache setting:

Re: [Qemu-devel] [PATCH 09/11] Add migration accounting for normal and duplicate pages

2012-07-29 Thread Orit Wasserman
On 07/27/2012 01:41 AM, Eric Blake wrote: On 07/25/2012 08:50 AM, Orit Wasserman wrote: Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com

Re: [Qemu-devel] [v1 Patch 2/10]Qemu: Error classes for hostcache setting and data sync failures

2012-07-29 Thread Supriya Kannery
On 07/09/2012 08:17 PM, Kevin Wolf wrote: Am 15.06.2012 22:47, schrieb Supriya Kannery: New error classes defined for hostcache setting and data sync error Signed-off-by: Supriya Kannerysupri...@linux.vnet.ibm.com --- qerror.c |8 qerror.h |6 ++ 2 files changed, 14

Re: [Qemu-devel] [PATCH 10/11] Add XBZRLE statistics

2012-07-29 Thread Orit Wasserman
On 07/27/2012 01:48 AM, Eric Blake wrote: On 07/25/2012 08:50 AM, Orit Wasserman wrote: Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com

[Qemu-devel] buildbot failure in qemu on xen40

2012-07-29 Thread qemu
The Buildbot has detected a new failure on builder xen40 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/xen40/builds/78 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: anthony_xen Build Reason: The Nightly scheduler

Re: [Qemu-devel] [v1 Patch 3/10]Qemu: Cmd block_set_hostcache for dynamic cache change

2012-07-29 Thread Supriya Kannery
On 06/16/2012 03:26 AM, Eric Blake wrote: On 06/15/2012 02:47 PM, Supriya Kannery wrote: New command block_set_hostcache added for dynamically changing host pagecache setting of a block device. Usage: block_set_hostcachedevice option device = block device option = on/off Example:

Re: [Qemu-devel] [Bug-Report] KVM failed to support netbsd-based kernel!

2012-07-29 Thread Gleb Natapov
On Fri, Jul 27, 2012 at 12:44:20PM +0800, GaoYi wrote: Hi all, I am running a netbsd kernel in KVM, using Intel VT. However, the OS failed to start up with the following outputs: KVM internal error. Suberror: 1 emulation failure. EAX=0001EBX=ECX=0005

Re: [Qemu-devel] [v1 Patch 3/10]Qemu: Cmd block_set_hostcache for dynamic cache change

2012-07-29 Thread Supriya Kannery
On 07/11/2012 07:46 PM, Luiz Capitulino wrote: On Sat, 16 Jun 2012 02:17:30 +0530 Supriya Kannerysupri...@linux.vnet.ibm.com wrote: New command block_set_hostcache added for dynamically changing host pagecache setting of a block device. Usage: block_set_hostcachedevice option device

Re: [Qemu-devel] [PATCH] build: Fix linking failure for qemu-ga

2012-07-29 Thread Blue Swirl
Thanks, applied. On Sat, Jul 28, 2012 at 7:11 PM, riegama...@gmail.com wrote: From: Dunrong Huang riegama...@gmail.com This patch will fix the following linking failed: LINK qemu-ga gcc: error: qga/../qapi-generated/qga-qapi-types.o: No such file or directory gcc: error:

Re: [Qemu-devel] [PATCH] place qemu-sockets.c contributions since 2012-01-13 under GPLv2+

2012-07-29 Thread Blue Swirl
Thanks, applied. On Mon, Jul 9, 2012 at 9:08 AM, Paolo Bonzini pbonz...@redhat.com wrote: Past contributions since 2012-01-13 were only made by Red Hat people, so they are already available under GPLv2+. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qemu-sockets.c |3 +++ 1

Re: [Qemu-devel] [PATCH v2] x86: Fixed incorrect segment base address addition in 64-bits mode

2012-07-29 Thread Blue Swirl
Thanks, applied. On Mon, Jul 2, 2012 at 10:20 PM, Vitaly Chipounov vitaly.chipou...@epfl.ch wrote: According to the Intel manual Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3, 3.4.4 Segment Loading Instructions in IA-32e Mode: When in compatibility mode, FS and GS

[Qemu-devel] [PATCH 00/11] Migration next v7

2012-07-29 Thread Orit Wasserman
Those are the latest XBZRLE patches (part of the migration next branch). changes from v6: fix memory leak in cache_init. using size_t for cache_get_cache_pos. fix qapi-schema.json comments. fix other comments by Eric Blake. changes from v5: Add query-migrate-parameters that display the migration

[Qemu-devel] [PATCH 01/11] Add migration capabilities

2012-07-29 Thread Orit Wasserman
Add migration capabilities that can be queried by the management. The management can query the source QEMU and the destination QEMU in order to verify both support some migration capability (currently only XBZRLE). Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Juan Quintela

[Qemu-devel] [PATCH 03/11] Add XBZRLE documentation

2012-07-29 Thread Orit Wasserman
Signed-off-by: Orit Wasserman owass...@redhat.com --- docs/xbzrle.txt | 136 +++ 1 files changed, 136 insertions(+), 0 deletions(-) create mode 100644 docs/xbzrle.txt diff --git a/docs/xbzrle.txt b/docs/xbzrle.txt new file mode 100644 index

[Qemu-devel] [PATCH 09/11] Add migration accounting for normal and duplicate pages

2012-07-29 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com --- arch_init.c | 38

[Qemu-devel] [PATCH 08/11] Add migrate_set_cachesize command

2012-07-29 Thread Orit Wasserman
Change XBZRLE cache size in bytes (the size should be a power of 2, it will be rounded down to the nearest power of 2). If XBZRLE cache size is too small there will be many cache miss. Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by:

[Qemu-devel] Support for compiling devices as dynamic libraries

2012-07-29 Thread potworyk
All, I woudl like to make it possible to compile devices (hw/*) as shared libraries and load them dynamicaly. This would make it easier to develop emulators for new hardware. I am completly new to QEMU develpment so i would like to ask you guys, QEMU Architects if you have any idea how it could

[Qemu-devel] [PATCH] qxl/update_area_io: guest_bug on invalid parameters

2012-07-29 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- hw/qxl.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/qxl.c b/hw/qxl.c index 92e985b..5278541 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1405,6 +1405,18 @@ async_common: QXLCookie *cookie = NULL; QXLRect update

[Qemu-devel] [PATCH 11/11] Restart optimization on stage3 update version

2012-07-29 Thread Orit Wasserman
From: Juan Quintela quint...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com --- arch_init.c | 24 +++- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9833d54..21031d1 100644 --- a/arch_init.c +++ b/arch_init.c @@

[Qemu-devel] [PATCH 02/11] Add migrate_set_parameter and query-migrate-parameters

2012-07-29 Thread Orit Wasserman
The management can enable/disable a capability for the next migration by using migrate_set_parameter command. The management can query the current migration capabilities using query-migrate-parameters Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Juan Quintela

[Qemu-devel] [PATCH 05/11] Add uleb encoding/decoding functions

2012-07-29 Thread Orit Wasserman
Implement Unsigned Little Endian Base 128. Signed-off-by: Orit Wasserman owass...@redhat.com --- cutils.c | 33 + qemu-common.h |8 2 files changed, 41 insertions(+), 0 deletions(-) diff --git a/cutils.c b/cutils.c index b0bdd4b..700f943

Re: [Qemu-devel] Support for compiling devices as dynamic libraries

2012-07-29 Thread Blue Swirl
On Sun, Jul 29, 2012 at 9:46 AM, potworyk potwo...@gmail.com wrote: All, I woudl like to make it possible to compile devices (hw/*) as shared libraries and load them dynamicaly. This would make it easier to develop emulators for new hardware. I am completly new to QEMU develpment so i would

[Qemu-devel] [PATCH 10/11] Add XBZRLE statistics

2012-07-29 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com --- arch_init.c | 28

[Qemu-devel] [PATCH 06/11] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

2012-07-29 Thread Orit Wasserman
For performance we are encoding long word at a time. For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp(): using ((lword - 0x0101010101010101) (~lword) 0x8080808080808080) test to find out if any byte in the long word is zero. Signed-off-by: Benoit Hudzia

[Qemu-devel] [PATCH 04/11] Add cache handling functions

2012-07-29 Thread Orit Wasserman
Add MRU page cache mechanism. The page are accessed by their address. Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com --- Makefile.objs

[Qemu-devel] [PATCH 07/11] Add XBZRLE to ram_save_block and ram_save_live

2012-07-29 Thread Orit Wasserman
In the outgoing migration check to see if the page is cached and changed, then send compressed page by using save_xbrle_page function. In the incoming migration check to see if RAM_SAVE_FLAG_XBZRLE is set and decompress the page (by using load_xbrle function). Signed-off-by: Benoit Hudzia

Re: [Qemu-devel] [PATCH 2/2] pc: remove DEBUG_BIOS define and QEMU exit I/O ports

2012-07-29 Thread Hervé Poussineau
Ping. Hervé Poussineau a écrit : Debug output ports (enabled by DEBUG_BIOS define) can be replaced by: -chardev stdio,id=debugcon,mux=on -device isa-debugcon,iobase=0x402,chardev=debugcon -device isa-debugcon,iobase=0x403,chardev=debugcon -device isa-debugcon,iobase=0x500,chardev=debugcon

Re: [Qemu-devel] [PATCH v4 14/18] pci: Tidy up PCI host bridges

2012-07-29 Thread Michael S. Tsirkin
On Thu, Jul 26, 2012 at 02:28:32PM +0200, Andreas Färber wrote: Uglify the parent field to enforce QOM-style access via casts. Don't just typedef PCIHostState, either use it directly or embed it. Signed-off-by: Andreas Färber afaer...@suse.de I already said I don't see the point of this

Re: [Qemu-devel] [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Michael S. Tsirkin
On Wed, Jul 25, 2012 at 02:10:48PM -0700, Nicholas A. Bellinger wrote: On Wed, 2012-07-25 at 16:10 +0300, Avi Kivity wrote: On 07/24/2012 11:45 PM, Nicholas A. Bellinger wrote: diff --git a/drivers/vhost/tcm_vhost.h b/drivers/vhost/tcm_vhost.h index e942df9..3d5378f 100644 ---

Re: [Qemu-devel] [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Michael S. Tsirkin
On Thu, Jul 26, 2012 at 01:15:26PM -0700, Nicholas A. Bellinger wrote: If there is a better way to handle ioctl compat I'd certainly like to hear about it. You basically don't touch exiting commands, always add new ones. For example if you want to simply stop some ioctl from working for old

Re: [Qemu-devel] [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-29 Thread Avi Kivity
On 07/26/2012 11:15 PM, Nicholas A. Bellinger wrote: Example..? If there is a better way to handle ioctl compat I'd certainly like to hear about it. r = ioctl(fd, KVM_CHECK_EXTENSION, KVM_CAP_ASSIGN_DEV_IRQ); if (r == -1) ... if (r) // ioctl(fd, KVM_ASSIGN_DEV_IRQ, ...) is

Re: [Qemu-devel] [PATCH V2 3/5] exec: Introduce helper to set dirty flags.

2012-07-29 Thread Avi Kivity
On 07/20/2012 05:34 PM, Anthony PERARD wrote: This new helper/hook is used in the next patch to add an extra call in a single place. Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- exec.c | 42 ++ 1 files changed, 14 insertions(+),

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO PCI driver for Qemu

2012-07-29 Thread Avi Kivity
On 07/26/2012 08:40 PM, Alex Williamson wrote: On Thu, 2012-07-26 at 19:34 +0300, Avi Kivity wrote: On 07/25/2012 08:03 PM, Alex Williamson wrote: +/* + * Resource setup + */ +static void vfio_unmap_bar(VFIODevice *vdev, int nr) +{ +VFIOBAR *bar = vdev-bars[nr]; +uint64_t

[Qemu-devel] [PATCH] Makefile: Remove generated hw/usb files in 'clean' target

2012-07-29 Thread Stefan Weil
Commit f1ae32a1ecda8aaff7a355c9030c0d8c363f3a70 moved the usb directory to hw, so the files which should be removed are now hw/usb/*.{d,o}. The new code removes these files and also any other generated *.o and *.d files in directories below hw. Signed-off-by: Stefan Weil s...@weilnetz.de ---

Re: [Qemu-devel] [PULL] pci,msi,virtio

2012-07-29 Thread Michael S. Tsirkin
On Mon, Jul 23, 2012 at 11:05:25AM -0600, Alex Williamson wrote: On Mon, 2012-07-23 at 11:39 -0500, Anthony Liguori wrote: Andreas Färber afaer...@suse.de writes: Am 19.07.2012 17:15, schrieb Michael S. Tsirkin: The following changes since commit

Re: [Qemu-devel] [PATCHv2] qemu: add .exrc

2012-07-29 Thread Michael S. Tsirkin
On Thu, Jul 19, 2012 at 05:48:32PM +0300, Michael S. Tsirkin wrote: I've been using this to get correct indenting with vim in qemu for a while, but it's a bit easier if we put the settings in the central place. Note that 1. you still need to enable 'exrc' and 'secure' options in your

Re: [Qemu-devel] [PULL] pci,msi,virtio

2012-07-29 Thread Michael S. Tsirkin
On Mon, Jul 23, 2012 at 11:39:17AM -0500, Anthony Liguori wrote: Andreas Färber afaer...@suse.de writes: Am 19.07.2012 17:15, schrieb Michael S. Tsirkin: The following changes since commit 80aa796bf38b7ef21daa42673b4711510c450d8a: pci_bridge_dev: fix error path in

Re: [Qemu-devel] [PULL] pci,msi,virtio

2012-07-29 Thread Michael S. Tsirkin
On Mon, Jul 23, 2012 at 06:09:57PM +0200, Andreas Färber wrote: Am 19.07.2012 17:15, schrieb Michael S. Tsirkin: The following changes since commit 80aa796bf38b7ef21daa42673b4711510c450d8a: pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-11 22:55:13 +0300) are

Re: [Qemu-devel] [BUG] BSOD on Win2003 Server when 64bit PCI resource is present

2012-07-29 Thread Paolo Bonzini
Il 26/07/2012 17:38, Alexey Korolev ha scritto: If I add any DBUG call in acpi-dst it will cause BSOD on win2003 (win2008 works fine) You can try inlining it (in practice this means adding simple Store(0x41, DBGB) here and there). Paolo

[Qemu-devel] [PULL resend] pci,msi,virtio

2012-07-29 Thread Michael S. Tsirkin
The following changes since commit 7162ab21fe8e82f924002951cd8e87f69358f8b5: x86: Fixed incorrect segment base address addition in 64-bits mode (2012-07-29 08:45:57 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony for you

[Qemu-devel] [PATCH] SCSI update to the correct sense code for media removal prevention

2012-07-29 Thread Ronnie Sahlberg
List, Paolo Please find a trivial patch that changes the sense code for errors when trying, and failing, to eject media using the START_STOP_UNIT command when the medium is locked down by a previous PREVENT_ALLOW_MEDIUM_REMOVAL command. MMC Annex F lists MEDIUM_REMOVAL_PREVENTED as the

[Qemu-devel] [PATCH] SCSI: Update the sense code for PREVENT REMOVAL errors

2012-07-29 Thread Ronnie Sahlberg
Change the sense codes for failures to eject a device that is locked by PREVENT_ALLOW_MEDIUM_REMOVAL from the generic MEDIA_LOAD_OR_EJECT_FAILED to the more specific MEDIUM_REMOVAL_PREVENTED. The second sense code is more accurate, and is also listed in MMC annex F for the recommended sense codes

Re: [Qemu-devel] [PATCH v4 14/18] pci: Tidy up PCI host bridges

2012-07-29 Thread Andreas Färber
Am 29.07.2012 14:22, schrieb Michael S. Tsirkin: On Thu, Jul 26, 2012 at 02:28:32PM +0200, Andreas Färber wrote: Uglify the parent field to enforce QOM-style access via casts. Don't just typedef PCIHostState, either use it directly or embed it. Signed-off-by: Andreas Färber afaer...@suse.de

[Qemu-devel] APIC is missing with -cpu=pentium which is not architecturally true of x86

2012-07-29 Thread Bryan O'Donoghue
Greetings QEMUers. Love QEMU - use it every day. I have noticed a small architectural flaw with QEMU. When passing -cpu=pentium LAPIC is non functional (reads back all zeros). Technically Pentium (P54C and friends) could have an APIC (as could 486 as a matter of fact) - see the Intel

[Qemu-devel] [Bug 1030666] [NEW] gdb can't proceed after a breakpoint

2012-07-29 Thread Legorol
Public bug reported: Using qemu-1.0.1-windows.zip package from http://lassauge.free.fr/qemu/ Host: Windows 7 Ultimate 64-bit Guest: i386 system running MS-DOS 6.22 Launch command line: qemu-system-i386.exe -L Bios -fda DOS.vfd -fdb Data.vfd -gdb tcp:127.0.0.1:1234 Debbugers tried: gdb

[Qemu-devel] [Bug 1030666] Re: gdb can't proceed after a breakpoint

2012-07-29 Thread Legorol
** Description changed: - Using qemu-1.0.1-windows.zip package from http://lassauge.free.fr/qemu/ + Using qemu-1.1.0-windows.zip package from http://lassauge.free.fr/qemu/ Host: Windows 7 Ultimate 64-bit Guest: i386 system running MS-DOS 6.22 Launch command line: - qemu-system-i386.exe -L

[Qemu-devel] [PATCH] SCSI allow removable SBC disks

2012-07-29 Thread Ronnie Sahlberg
List, Paolo Please find a small patch that adds a new drive keyword removable. When used together with SCSI DISK devices, this makes the emulation support removable scsi disk. Example: -drive file=./scsi-disk.img,if=scsi,removable Emulation of SCSI DISK with removable media currently pass all

[Qemu-devel] [PATCH] SCSI/BLOCK: Allow (scsi) disks to be REMOVABLE

2012-07-29 Thread Ronnie Sahlberg
Add a new block device attribute : removable. Make all cdrom devices removable by default just like today but also allow (scsi) disk devices to become removable by a new -drive keyword : removable. Example -drive file=./scsi-disk.img,if=scsi,media=disk,removable Removable disks are currently

Re: [Qemu-devel] [PATCH v3 0/2] GlusterFS support in QEMU - v3

2012-07-29 Thread Bharata B Rao
On Wed, Jul 25, 2012 at 11:28:06AM +0530, Bharata B Rao wrote: Hi, This is the v3 of the patchset to support GlusterFS backend from QEMU. I am planning a v4 post to address a few minor cleanups suggested by Blue Swirl. I would like to know if there are any other comments or test scenarios