Re: [Qemu-devel] [RFC v2 3/7] m48t59: register a QOM type for each nvram type we support

2013-04-27 Thread Artyom Tarasenko
On Sat, Apr 20, 2013 at 12:39 PM, Blue Swirl blauwir...@gmail.com wrote: On Sat, Apr 20, 2013 at 9:56 AM, Artyom Tarasenko atar4q...@gmail.com wrote: On Sat, Apr 20, 2013 at 11:34 AM, Blue Swirl blauwir...@gmail.com wrote: On Sun, Apr 14, 2013 at 9:41 PM, Artyom Tarasenko atar4q...@gmail.com

Re: [Qemu-devel] [RFC PATCH v5 05/14] net: port socket to GSource

2013-04-27 Thread liu ping fan
On Fri, Apr 26, 2013 at 5:48 PM, Stefan Hajnoczi stefa...@redhat.com wrote: On Fri, Apr 26, 2013 at 10:47:26AM +0800, Liu Ping Fan wrote: @@ -141,6 +134,59 @@ static ssize_t net_socket_receive_dgram(NetClientState *nc, const uint8_t *buf, return ret; } +static gushort

[Qemu-devel] [PATCH 0/2] sparc64: Fix NVRAM access mode

2013-04-27 Thread Artyom Tarasenko
The sun4u machines use a slightly different modification of the ISA Mostek chip. It has MMIO, 1968 as a base year and no IRQ line. Since it matches our m48t08, make keep PIO behavior for the 59 model and use MMIO for the 8 model. This series fixes recognising Mostek RTC in the Linux/sparc64

[Qemu-devel] [PATCH 1/2] m48t59: use mmio for the m48t08 model of the m48t59_isa card

2013-04-27 Thread Artyom Tarasenko
PrEP and SPARC machines use slightly different variations of a Mostek NVRAM chip. Since the SPARC variant is much closer to a m48t08 type, the model can be used to differentiate between the PIO and MMIO accesses. Signed-off-by: Artyom Tarasenko atar4q...@gmail.com --- hw/timer/m48t59.c | 38

[Qemu-devel] [PATCH 2/2] sparc64: Use the correct type of the Mostek NVRAM chip

2013-04-27 Thread Artyom Tarasenko
The sun4u machines use an ISA Mostek chip which has MMIO, uses 1968 as a base year and no IRQ line. So, use the m48t08. Please note that this patch has its OpenBIOS counterpart. Together they fix recognising NVRAM in the sun4u machine. Signed-off-by: Artyom Tarasenko atar4q...@gmail.com ---

Re: [Qemu-devel] [0/4] RFC: Preparations for VFIO and guest IOMMUs (v2)

2013-04-27 Thread David Gibson
On Fri, Apr 26, 2013 at 09:42:31AM -0600, Alex Williamson wrote: On Fri, 2013-04-26 at 16:02 +1000, David Gibson wrote: This patch series represents a second attempt at better integration of the vfio code with qemu's handling of guest IOMMUs. It is based on Paolo Bonzini's tree at

Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion

2013-04-27 Thread David Gibson
On Fri, Apr 26, 2013 at 03:40:30PM +0200, Paolo Bonzini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 26/04/2013 13:31, David Gibson ha scritto: You need to add this capability to VFIO's MemoryListener (either the one that's already there, or a new one), looking for IOMMU

Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic

2013-04-27 Thread Blue Swirl
On Fri, Apr 26, 2013 at 10:13 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 26/04/2013 19:46, Igor Mammedov ha scritto: But as the address can't be changed (yet), the entire patch could be simply: -kioapic-base_address = s-busdev.mmio[0].addr; +kioapic-base_address =

Re: [Qemu-devel] [PATCH 0/2] sparc64: Fix NVRAM access mode

2013-04-27 Thread Blue Swirl
On Sat, Apr 27, 2013 at 7:12 AM, Artyom Tarasenko atar4q...@gmail.com wrote: The sun4u machines use a slightly different modification of the ISA Mostek chip. It has MMIO, 1968 as a base year and no IRQ line. Since it matches our m48t08, make keep PIO behavior for the 59 model and use MMIO for

Re: [Qemu-devel] [PATCH 0/3] sparc64 fixes

2013-04-27 Thread Blue Swirl
Thanks, applied all. I fixed the indentation in 2/3 for apb_config_writel(). On Sat, Apr 27, 2013 at 5:55 AM, Artyom Tarasenko atar4q...@gmail.com wrote: Various fixes: On the real hardware IRQ lines of the PCI bus are not shared. In the previous QEMU implementation before this series, all PCI

[Qemu-devel] [PATCH 1.5 v5 0/5] fix win32 compilation

2013-04-27 Thread Paolo Bonzini
Here is a fix for the Win32 compilation problem that Blue reported, and another two nits I found while testing. After these patches, a cross libtool is not needed anymore to build on Win32. Paolo Bonzini (5): win32: add generic RC rules to rules.mak win32: move Makefile dependencies on

[Qemu-devel] [PATCH 1/5] win32: add generic RC rules to rules.mak

2013-04-27 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile | 2 -- rules.mak | 4 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8aca92f..58e3527 100644 --- a/Makefile +++ b/Makefile @@ -167,9 +167,7 @@ recurse-all: $(SUBDIR_RULES)

[Qemu-devel] [PATCH 2/5] win32: move Makefile dependencies on version-obj-y to rules.mak

2013-04-27 Thread Paolo Bonzini
This makes the test on $(LIBTOOL) work. Otherwise, LIBTOOL is /bin/false by the time the test is done. Fixes Win32 compilation without a working cross-libtool. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile | 3 +-- rules.mak | 3 +++ 2 files changed, 4 insertions(+), 2

[Qemu-devel] [PATCH 3/5] win32: generate console executable again

2013-04-27 Thread Paolo Bonzini
The -mwindows option is not anymore in LIBS at this point of the Makefile, it is only in libs_softmmu. Check the right variable. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.target

[Qemu-devel] [PATCH 5/5] win32: add readv/writev emulation

2013-04-27 Thread Paolo Bonzini
Commit e9d8fbf (qemu-file: do not use stdio for qemu_fdopen, 2013-03-27) introduced a usage of writev, which mingw32 does not have. Even though qemu_fdopen itself is not used on mingw32, the future-proof solution is to add an implementation of it. This is simple and similar to how we emulate

[Qemu-devel] [PATCH 4/5] add missing inclusions of config-host.h

2013-04-27 Thread Paolo Bonzini
The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but I prefer to be safer this close to hard feature freeze. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qga/channel-posix.c | 1 + tests/libi2c-omap.c | 1 +

Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic

2013-04-27 Thread Paolo Bonzini
Il 27/04/2013 12:09, Blue Swirl ha scritto: On Fri, Apr 26, 2013 at 10:13 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 26/04/2013 19:46, Igor Mammedov ha scritto: But as the address can't be changed (yet), the entire patch could be simply: -kioapic-base_address =

Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion

2013-04-27 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 27/04/2013 11:49, David Gibson ha scritto: There's no fundamental reason for VFIO to use multiple MemoryListeners. It could use one for all VFIO instances. Actually, there kind of is. Using a new listener for each new container means the

Re: [Qemu-devel] [PATCH 4/5] add missing inclusions of config-host.h

2013-04-27 Thread Peter Maydell
On 27 April 2013 12:48, Paolo Bonzini pbonz...@redhat.com wrote: The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but I prefer to be safer this close to hard feature freeze. Can't we just include config-host.h from osdep.h ? -- PMM

Re: [Qemu-devel] [PATCH 4/5] add missing inclusions of config-host.h

2013-04-27 Thread Paolo Bonzini
Il 27/04/2013 15:11, Peter Maydell ha scritto: On 27 April 2013 12:48, Paolo Bonzini pbonz...@redhat.com wrote: The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but I prefer to be safer this close to hard feature freeze. Can't

Re: [Qemu-devel] [PATCH 4/5] add missing inclusions of config-host.h

2013-04-27 Thread Peter Maydell
On 27 April 2013 14:14, Paolo Bonzini pbonz...@redhat.com wrote: Il 27/04/2013 15:11, Peter Maydell ha scritto: On 27 April 2013 12:48, Paolo Bonzini pbonz...@redhat.com wrote: The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but

Re: [Qemu-devel] [PATCH 0/2] sparc64: Fix NVRAM access mode

2013-04-27 Thread Artyom Tarasenko
On Sat, Apr 27, 2013 at 1:39 PM, Blue Swirl blauwir...@gmail.com wrote: On Sat, Apr 27, 2013 at 7:12 AM, Artyom Tarasenko atar4q...@gmail.com wrote: The sun4u machines use a slightly different modification of the ISA Mostek chip. It has MMIO, 1968 as a base year and no IRQ line. Since it

Re: [Qemu-devel] [PATCH 1/2] m48t59: use mmio for the m48t08 model of the m48t59_isa card

2013-04-27 Thread Andreas Färber
Am 27.04.2013 09:12, schrieb Artyom Tarasenko: PrEP and SPARC machines use slightly different variations of PReP :) a Mostek NVRAM chip. Since the SPARC variant is much closer to a m48t08 type, the model can be used to differentiate between the PIO and MMIO accesses. Signed-off-by: Artyom

Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id once CPU is realized

2013-04-27 Thread Andreas Färber
Am 26.04.2013 19:51, schrieb Igor Mammedov: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 7 +++ 1 file changed, 7 insertions(+) Thanks, applied to qom-cpu: https://github.com/afaerber/qemu-cpu/commits/qom-cpu

Re: [Qemu-devel] [PATCH 05/15] target-i386: introduce ICC bus/device/bridge

2013-04-27 Thread Andreas Färber
Am 25.04.2013 16:05, schrieb Igor Mammedov: Provides hotplug-able bus for APIC and CPU. * icc-bridge will serve as a parent for icc-bus and provide mmio mapping services to child icc-devices. * icc-device will replace SysBusDevice as a parent of APIC and IOAPIC devices.

Re: [Qemu-devel] [PATCH 1/2] m48t59: use mmio for the m48t08 model of the m48t59_isa card

2013-04-27 Thread Artyom Tarasenko
Hi Andreas, On Sat, Apr 27, 2013 at 5:16 PM, Andreas Färber afaer...@suse.de wrote: Am 27.04.2013 09:12, schrieb Artyom Tarasenko: PrEP and SPARC machines use slightly different variations of PReP :) Ops. :) a Mostek NVRAM chip. Since the SPARC variant is much closer to a m48t08 type, the

[Qemu-devel] [Bug 1173490] [NEW] virtio net adapter driver with kvm slow on winxp

2013-04-27 Thread shn
Public bug reported: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 12.04.1 LTS Release:12.04 Codename: precise #virsh version Compiled against library: libvirt 1.0.4 Using library: libvirt 1.0.4 Using API: QEMU 1.0.4 Running

[Qemu-devel] emulate hardware accelerators on qemu

2013-04-27 Thread Akshay Adiga
Hi all, I am trying to figure out, how to emulate a custom board for powerpc. It seems that some c file is required to be written which instantiates the constituents(Qobjects) of the board to be emulated using Qapi. Please correct me if I am wrong. Where in the source code , can i find examples

Re: [Qemu-devel] Git head build problem (popcountl vs. system headers)

2013-04-27 Thread Martin Husemann
On Thu, Apr 25, 2013 at 08:36:55PM +0200, Martin Husemann wrote: Ok, I can fix the namespace issue (which is real) easily. Turns out to be a bit harder: qemu does not define (as far as I can tell) any restricting macro (_POSIX_C_SOURCE or whatever). Should it? Martin

Re: [Qemu-devel] [PATCH 1/3] virtio-pci: properly validate address before accessing config

2013-04-27 Thread Michael S. Tsirkin
On Fri, Apr 26, 2013 at 04:27:55PM +0200, Petr Matousek wrote: On Fri, Apr 26, 2013 at 04:34:02PM +0800, Jason Wang wrote: There are several several issues in the current checking: - The check was based on the minus of unsigned values which can overflow - It was done after

Re: [Qemu-devel] [PATCH 1/3] virtio-pci: properly validate address before accessing config

2013-04-27 Thread Michael S. Tsirkin
On Fri, Apr 26, 2013 at 04:34:02PM +0800, Jason Wang wrote: There are several several issues in the current checking: - The check was based on the minus of unsigned values which can overflow - It was done after .{set|get}_config() which can lead crash when config_len is zero since

Re: [Qemu-devel] [PATCH] virtio-net: properly check the vhost status during status set

2013-04-27 Thread Michael S. Tsirkin
On Sat, Apr 27, 2013 at 01:11:16PM +0800, Jason Wang wrote: On 04/26/2013 08:26 PM, Michael S. Tsirkin wrote: On Fri, Apr 26, 2013 at 06:27:40PM +0800, Jason Wang wrote: Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost also when the peer's link is down. But

Re: [Qemu-devel] Target-agnostic virtio?

2013-04-27 Thread Artyom Tarasenko
On Wed, Apr 17, 2013 at 4:15 AM, Rob Landley r...@landley.net wrote: On 04/14/2013 04:38:23 AM, Artyom Tarasenko wrote: On Sat, Apr 13, 2013 at 7:03 PM, Rob Landley r...@landley.net wrote: On 03/26/2013 02:34:50 AM, Artyom Tarasenko wrote: On Tue, Mar 26, 2013 at 1:52 AM, Rob Landley

[Qemu-devel] [PATCH for-1.5 v2 01/20] applesmc: QOM'ify

2013-04-27 Thread Andreas Färber
Add a typedef for the state struct and rename from Status to State. Add type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/misc/applesmc.c | 33 +++-- 1 file changed, 19

[Qemu-devel] [PATCH for-1.5 v2 02/20] cirrus_vga: QOM'ify ISA Cirrus VGA

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/display/cirrus_vga.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/display/cirrus_vga.c

[Qemu-devel] [PATCH for-1.5 v2 04/20] i82374: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/dma/i82374.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index 835639d..f3d1924

[Qemu-devel] [PATCH for-1.5 v2 10/20] parallel: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/char/parallel.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/char/parallel.c b/hw/char/parallel.c index

[Qemu-devel] [PATCH for-1.5 v2 00/20] QOM realize for ISA, part 1

2013-04-27 Thread Andreas Färber
Hello, Here is my next batch of QOM realize patches. These mostly introduce QOM cast macros for ISADevice-derived types, so should hopefully be safe to apply for 1.5. The mc146818 patch is also queued on qom-cpu and reused for CPU hot-add. Available from:

[Qemu-devel] [PATCH for-1.5 v2 03/20] fdc: QOM'ify ISA floppy controller

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Reuse type constant for PC machine compatibility settings. Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de Cc: Markus Armbruster arm...@redhat.com --- hw/block/fdc.c | 21 -

[Qemu-devel] [PATCH for-1.5 v2 09/20] ne2000-isa: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/net/ne2000-isa.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index

[Qemu-devel] [PATCH for-1.5 v2 07/20] m48t59: QOM'ify ISA M48T59 NVRAM

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST() and container_of(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/timer/m48t59.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git

[Qemu-devel] [PATCH for-1.5 v2 11/20] pc: QOM'ify port 92

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/i386/pc.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 0d6e72b..29d2703

[Qemu-devel] [PATCH for-1.5 v2 15/20] serial: QOM'ify ISA serial

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/char/serial-isa.c | 11 +++ include/hw/char/serial.h | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH for-1.5 v2 05/20] i8259: QOM cleanups

2013-04-27 Thread Andreas Färber
Eliminate DO_UPCAST() for PICCommonState. Prepares for ISA realizefn. Also give the i8259_common type registration functions unique names while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/i386/kvm/i8259.c | 2 +- hw/intc/i8259.c | 16

[Qemu-devel] [PATCH for-1.5 v2 18/20] vmmouse: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST() and container_of(). Prepares for ISA realizefn. Remove reserved underscore from struct name while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/input/vmmouse.c | 14 +- 1 file changed, 9 insertions(+), 5

[Qemu-devel] [PATCH for-1.5 v2 06/20] ide: QOM'ify ISA IDE

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Add missing braces. Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ide/isa.c | 39 --- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git

[Qemu-devel] [PATCH for-1.5 v2 08/20] mc146818rtc: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/timer/mc146818rtc.c | 36 include/hw/timer/mc146818rtc.h | 2 ++ 2 files changed, 22 insertions(+), 16

[Qemu-devel] [PATCH for-1.5 v2 12/20] pckbd: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/input/pckbd.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index

[Qemu-devel] [PATCH for-1.5 v2 13/20] pcspk: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/pcspk.c | 9 ++--- include/hw/audio/pcspk.h | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH for-1.5 v2 16/20] sga: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro. Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/misc/sga.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/misc/sga.c b/hw/misc/sga.c index 5cf4b86..c842190 100644 --- a/hw/misc/sga.c +++

[Qemu-devel] [PATCH for-1.5 v2 17/20] vga-isa: QOM'ify ISA VGA

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST() and container_of(). Prepares for ISA realizefn. Unify function naming scheme while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/display/vga-isa.c | 29 + 1 file changed, 17 insertions(+),

[Qemu-devel] [PATCH for-1.5 v2 19/20] vmport: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Drop reserved underscore from struct name while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/misc/vmport.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH for-1.5 v2 20/20] wdt_ib700: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/watchdog/wdt_ib700.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/watchdog/wdt_ib700.c

[Qemu-devel] [PATCH for-1.5 v2 14/20] sb16: QOM'ify

2013-04-27 Thread Andreas Färber
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/sb16.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c index

[Qemu-devel] [RFC PATCH v2] Throttle-down guest when live migration does not converge.

2013-04-27 Thread Chegu Vinod
Busy enterprise workloads hosted on large sized VM's tend to dirty memory faster than the transfer rate achieved via live guest migration. Despite some good recent improvements ( using dedicated 10Gig NICs between hosts) the live migration does NOT converge. A few options that were

Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic

2013-04-27 Thread Blue Swirl
On Sat, Apr 27, 2013 at 12:12 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 27/04/2013 12:09, Blue Swirl ha scritto: On Fri, Apr 26, 2013 at 10:13 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 26/04/2013 19:46, Igor Mammedov ha scritto: But as the address can't be changed (yet), the entire

Re: [Qemu-devel] [PATCH 4/5] add missing inclusions of config-host.h

2013-04-27 Thread Paolo Bonzini
Il 27/04/2013 15:19, Peter Maydell ha scritto: The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but I prefer to be safer this close to hard feature freeze. Can't we just include config-host.h from osdep.h ? Yes, but that

[Qemu-devel] [PATCH prep for-1.5] prep: Add ELF support for -bios

2013-04-27 Thread Andreas Färber
This prepares for switching from OpenHack'Ware to OpenBIOS. Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/ppc/prep.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index cceab3e..9bb0119 100644 ---

Re: [Qemu-devel] [PATCH 07/15] target-i386: replace MSI_SPACE_SIZE with APIC_SPACE_SIZE

2013-04-27 Thread Andreas Färber
Am 25.04.2013 16:05, schrieb Igor Mammedov: ... and put APIC_SPACE_SIZE in public header so that it could be reused later elsewhere. Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Andreas Färber afaer...@suse.de --- hw/i386/kvm/apic.c |2 +- hw/intc/apic.c

Re: [Qemu-devel] [PATCH 08/15] target-i386: kvmvapic: make expilict dependency on sysbus.h

2013-04-27 Thread Andreas Färber
Am 25.04.2013 16:05, schrieb Igor Mammedov: Allows kvmvapic to compile if sysbus.h is removed from apic_internal.h, from which it is indirectly included. sysbus.h will be removed from apic_internal.h after converting APICs to ICCDevice. Signed-off-by: Igor Mammedov imamm...@redhat.com ---

[Qemu-devel] [PATCH] target-mips: fix calculation of overflow for SHLL.PH and SHLL.QB

2013-04-27 Thread Petar Jovanovic
From: Petar Jovanovic petar.jovano...@imgtec.com This change corrects and simplifies how discard is calculated for shift left logical vector instructions. It is used to detect overflow and set bit 22 in the DSPControl register. The existing tests (shll_ph.c, shll_qb.c) are extended with the

Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion

2013-04-27 Thread David Gibson
On Sat, Apr 27, 2013 at 02:17:54PM +0200, Paolo Bonzini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 27/04/2013 11:49, David Gibson ha scritto: There's no fundamental reason for VFIO to use multiple MemoryListeners. It could use one for all VFIO instances. Actually,

[Qemu-devel] about the usbredirect lib problem run under Windows

2013-04-27 Thread zhou link
Hans de Goede Gerd Hoffmann: theses days i try to migrate the usbredir lib to Windows the usbredir-0.6/usbredirserver/usbredirserver.c connect to qemu's redirect channel and spicec connect to the guest the usbredirserver works smooth in Linux, spicec show the usb disk works well.

[Qemu-devel] [PATCH v4 0/6] vmdk: zeroed-grain GTE support

2013-04-27 Thread Fam Zheng
Added support for zeroed-grain GTE to VMDK according to VMDK Spec 5.0[1]. [1] Virtual Disk Format 5.0 - VMware, http://www.vmware.com/support/developer/vddk/vmdk_50_technote.pdf?src=vmdk Changes since v3: - 5/6: Remove tmp - 6/6: Update L2 Cache Remove redundant assignment to

[Qemu-devel] [PATCH v4 6/6] vmdk: add bdrv_co_write_zeroes

2013-04-27 Thread Fam Zheng
Use special offset to write zeroes efficiently, when zeroed-grain GTE is available. If zero-write an allocated cluster, cluster is leaked because its offset pointer is overwritten by 0x1. Signed-off-by: Fam Zheng f...@redhat.com --- block/vmdk.c | 86

[Qemu-devel] [PATCH v4 5/6] vmdk: store fields of VmdkMetaData in cpu endian

2013-04-27 Thread Fam Zheng
Previously VmdkMetaData.offset is stored little endian while other fields are cpu endian. This changes offset to cpu endian and convert before writing to image. Signed-off-by: Fam Zheng f...@redhat.com --- block/vmdk.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff

[Qemu-devel] problem of the USB redir on Windows

2013-04-27 Thread zhou link
Hans de Goede Gerd Hoffmann: theses days i try to migrate the usbredir lib to Windows the usbredir-0.6/usbredirserver/usbredirserver.c connect to qemu's redirect channel and spicec connect to the guest. the usbredirserver works smooth in Linux, spicec show the usb disk works well.

Re: [Qemu-devel] [PATCH prep for-1.5] prep: Add ELF support for -bios

2013-04-27 Thread Hervé Poussineau
Andreas Färber a écrit : This prepares for switching from OpenHack'Ware to OpenBIOS. Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/ppc/prep.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) Acked-by: Hervé Poussineau hpous...@reactos.org