[Qemu-devel] [PATCH v7 00/24] hw/arm: add Faraday A369 SoC platform support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com These patches introduce Faraday A369 SoC platform support. Here are some public documents for your reference. http://www.faraday-tech.com/html/documentation/index.html The partial version of faraday cpu datasheet with only the CP15 and MPU description

[Qemu-devel] [PATCH v7 03/24] hw/arm: add FTINTC020 interrupt controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTINTC020 interrupt controller supports both FIQ and IRQ signals to the microprocessor. It can handle up to 64 configurable IRQ sources and 64 FIQ sources. The output signals to the microprocessor can be configured as level-high/low active or

[Qemu-devel] [PATCH v7 02/24] hw/arm: add Faraday a369 SoC platform support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday A369 EVB is a Faraday SoC platform evalution board used for Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |3 +

[Qemu-devel] [PATCH v7 11/24] hw/arm: add FTAPBBRG020 APB DMA support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTAPBBRG020 supports the DMA functions for the AHB-to-AHB, AHB-to-APB, APB-to-AHB, and APB-to-APB transactions. The DMA engine can support up to 4 DMA channels (A, B, C, and D) and 15 handshaking channels. A DMA channel granted by the arbiter block

[Qemu-devel] [PATCH v7 01/24] target-arm: add Faraday ARMv5TE processors support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com This patch includes the single core support to FA606TE, FA626TE, FA616TE and FA726TE with CP15 Faraday extensions (AUX and I/D-Scratchpad). Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- target-arm/cpu.c | 52

[Qemu-devel] [PATCH v7 05/24] hw/arm: add FTDDRII030 DDRII controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTDDRII030 is a DDRII SDRAM controller which is responsible for SDRAM initialization. In QEMU we emulate only the SDRAM enable function. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 +

[Qemu-devel] [PATCH v7 09/24] tests: add QTest for FTRTC011

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTRTC011 QEMU model is implemented without calender functions. It acts in counter mode only, all the time timezone conversion relies on the c runtime library. (i.e. mktime(), localtime() ...etc) Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com

[Qemu-devel] [PATCH v7 13/24] hw/arm: add FTI2C010 I2C controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTI2C010 is a simple I2C master controller. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |6 ++ hw/arm/fti2c010.c | 216

[Qemu-devel] [PATCH v7 04/24] hw/arm: add FTAHBC020 AHB controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com It's used to perform AHB remap and QEMU RAM initialization when the SDRAM is initialized before AHB remap process activated. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c | 10

[Qemu-devel] [PATCH v7 10/24] hw/arm: add FTDMAC020 AHB DMA support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday FTDMAC020 provides eight configurable channels for the memory-to-memory, memory-to-peripheral, peripheral-to-peripheral, and peripheral-to-memory transfers. Each DMA channel supports chain transfer and can be programmed to one of the 16

[Qemu-devel] [PATCH v7 06/24] hw/arm: add FTPWMTMR010 timer support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTPWMTMR010 is an APB device which provides up to 8 independent timers. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c | 10 ++ hw/arm/ftpwmtmr010.c | 264

[Qemu-devel] [PATCH v7 15/24] hw: add WM8731 audio codec support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Wolfson WM8731 is a simple audio codec for embedded systems. It has 2 input and 1 output ports: ** Input ** 1. Linue-In 2. Microphone ** Output ** 1. Headphone out BTW it's based on hw/wm8750.c with 16-bit I2S support by default.

[Qemu-devel] [PATCH v7 07/24] hw/arm: add FTWDT010 watchdog timer support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTWDT010 is used to prevent system from infinite loop while software gets trapped in the deadlock. Under the normal operation, users should restart FTWDT010 at the regular intervals before counter counts down to 0. If the counter does reach 0,

[Qemu-devel] [PATCH v7 22/24] hw/arm: add FTMAC110 10/100Mbps ethernet support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTMAC110 is an Ethernet controller that provides AHB master capability and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. Its DMA controller handles all data transfers between system memory and on-chip memories. It supports

[Qemu-devel] [PATCH v7 14/24] hw: add AudioCodecClass for wm87xx audio class abstration.

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/Makefile.objs |1 + hw/arm/spitz.c |9 +++-- hw/arm/z2.c|9 +++-- hw/audio_codec.c | 81 +++

[Qemu-devel] [PATCH v7 08/24] hw/arm: add FTRTC011 RTC timer support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com It provides separate second, minute, hour, and day counters. The second counter is toggled each second, the minute counter is toggled each minute, the hour counter is toggled each hour, and the day counter is toggled each day. The FTRTC011 provides a

[Qemu-devel] [PATCH v7 17/24] qemu/bitops.h: add the bit ordering reversal functions

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- include/qemu/bitops.h | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index

[Qemu-devel] [PATCH v7 24/24] hw/arm: add FTSPI020 SPI flash controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSPI020 is an integrated SPI Flash controller which supports up to 4 flash chips. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c | 16 +++ hw/arm/ftspi020.c | 340

[Qemu-devel] [PATCH v7 16/24] hw/arm: add FTSSP010 multi-function controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSSP010 is a multi-function synchronous serial port interface controller which supports SSP, SPI, I2S, AC97 and SPDIF. Only I2S and SPI protocol have been implemented in this patch. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com ---

[Qemu-devel] [PATCH v7 18/24] hw/arm: add FTGMAC100 1Gbps ethernet support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTGMAC100 Ethernet controller has a DMA engine which handles all data transfers between the system memory and on-chip memories. Its DMA engine supports both 16-bits and 32-bits alignment, and thus make it possible to support zero-copy transfer at

[Qemu-devel] [PATCH v7 21/24] hw/arm: add FTSDC010 MMC/SD controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSDC010 is a simple MMC/SD host controller and many of its registers are similar to Arm PrimeCell PL181. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |7 +

[Qemu-devel] [PATCH v7 19/24] hw/arm: add FTLCDC200 LCD controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTLCDC200 Color LCD controller performs translation of pixel-coded data into the required formats and timings to drive a variety of single/dual mono and color LCDs. Depending on the LCD type and mode, the unpacked data can represent: 1. an actual

[Qemu-devel] [PATCH v7 23/24] hw/arm: add FTTMR010 timer support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTMR010 provides three independent sets of sub-timers. Two match registers are provided for each sub-timer, whenever the value of the match registers equals any one value of the sub-timers, the timer interrupt will be immediately triggered. And it

[Qemu-devel] [PATCH v7 20/24] hw/arm: add FTTSC010 touchscreen controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTSC010 provides two operation modes to sample the analog input voltage. 1. The manual operation mode needs to program and control the panel drivers by software step-by-step for the x-y position measurement. 2. The auto-scan mode

[Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-12 Thread Asias He
This is on top of Paolo and Nick's work. Current status: Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled. Rebased to latest qemu.org/master Change details are in commit log. TODO: Make seabios happy. Paolo Bonzini (2): virtio-scsi: create VirtIOSCSICommon

[Qemu-devel] [PATCH V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-12 Thread Asias He
From: Paolo Bonzini pbonz...@redhat.com The WWPN specified in configfs is passed to -device vhost-scsi-pci. The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is not available from the QEMU command-line. Instead, I hardcode it to zero. Changes in V2: - Add backend guest masking

[Qemu-devel] [PATCH V2 WIP 1/2] virtio-scsi: create VirtIOSCSICommon

2013-03-12 Thread Asias He
From: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-scsi.c | 199 +-- hw/virtio-scsi.h | 127 include/qemu/osdep.h | 4 ++ 3 files changed, 180

Re: [Qemu-devel] [PATCH v2 00/27] Modernize tcg/ppc64

2013-03-12 Thread Richard Henderson
Ping. On 2013-03-04 16:32, Richard Henderson wrote: Additional patches since V1: * Handle constant inputs for some compound logicals * Implement add2/sub2_i64 * Implement mulu2/muls2_i64 Otherwise unchanged, but rebased vs 26135ead80fa1fd13e95c162dacfd06f2ba82981. Tree available at:

[Qemu-devel] [PATCH v7 12/24] hw/arm: add FTNANDC021 nand flash controller support

2013-03-12 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTNANDC021 is an integrated NAND flash controller which re-pack the NAND flash command set with a shorter built-in opcode. It also provides a register base interface for user to easily access the underlying NAND flash chips, and also supports HW ECC.

[Qemu-devel] [PATCH v2 0/9] tcg-arm improvements

2013-03-12 Thread Richard Henderson
Changes v1-v2: * Use more helper functions to handle K and N constraints. * Improve add2/sub2. * Improve epilogues, as suggested in the previous thread. * Fix a typo in the name of the deposit helper. * Implement division for cortex-a15. r~ Richard Henderson (9): tcg-arm: Use bic

[Qemu-devel] [PATCH v2 1/9] tcg-arm: Use bic to implement and with constant

2013-03-12 Thread Richard Henderson
This greatly improves the code we can produce for deposit without armv7 support. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 52 ++-- tcg/arm/tcg-target.h | 2 -- 2 files changed, 42 insertions(+), 12 deletions(-)

[Qemu-devel] [PATCH v2 2/9] tcg-arm: Handle negated constant arguments to and/sub

2013-03-12 Thread Richard Henderson
This greatly improves code generation for addition of small negative constants. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 41 +++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/tcg/arm/tcg-target.c

[Qemu-devel] [PATCH v2 5/9] tcg-arm: Handle constant arguments to add2/sub2

2013-03-12 Thread Richard Henderson
We get to re-use the _rIN and _rIK subroutines to handle the various combinations of add vs sub. Fold the 21 into the opcode enum values so that we can explicitly add TO_CPSR as desired. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 106

[Qemu-devel] [PATCH v2 3/9] tcg-arm: Allow constant first argument to sub

2013-03-12 Thread Richard Henderson
This allows the generation of RSB instructions. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index f470caa..7475142 100644 ---

[Qemu-devel] [PATCH v2 6/9] tcg-arm: Improve constant generation

2013-03-12 Thread Richard Henderson
Try fully rotated arguments to mov and mvn before trying movt or full decomposition. Begin decomposition with mvn when it looks like it'll help. Examples include -:mov r9, #0x0fa0 -:orr r9, r9, #0x000ee000 -:orr r9, r9, #0x0ff0 -:orr r9, r9,

[Qemu-devel] [PATCH v2 4/9] tcg-arm: Use tcg_out_dat_rIN for compares

2013-03-12 Thread Richard Henderson
This allows us to emit CMN instructions. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 7475142..3152798

[Qemu-devel] [PATCH v2 7/9] tcg-arm: Fold epilogue into INDEX_op_exit_tb

2013-03-12 Thread Richard Henderson
The epilogue on ARM is one pop instruction, that pops the return address into PC. Avoid the jump to jump for this case. Use the standard movi32 routine for loading the return value if it's easy. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 25

[Qemu-devel] [PATCH v2 8/9] tcg-arm: Implement deposit for armv7

2013-03-12 Thread Richard Henderson
We have BFI and BFC available for implementing it. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 36 tcg/arm/tcg-target.h | 5 - 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/tcg/arm/tcg-target.c

Re: [Qemu-devel] [RFC] Proposal for hw/ split

2013-03-12 Thread Richard Henderson
On 2013-03-11 04:17, Paolo Bonzini wrote: == hw/pci == hw/alpha_typhoon.c hw/pci/host-typhoon.c Why wouldn't this go into hw/alpha/, really? r~

[Qemu-devel] [PATCH v2 9/9] tcg-arm: Implement division instructions

2013-03-12 Thread Richard Henderson
An armv7 extension implements division, present on Cortex A15. Signed-off-by: Richard Henderson r...@twiddle.net --- disas/arm.c | 4 tcg/arm/tcg-target.c | 36 tcg/arm/tcg-target.h | 7 ++- 3 files changed, 46 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH v2 0/2] sheepdog: don't sleep in coroutine context

2013-03-12 Thread MORITA Kazutaka
This patch prevents the sheepdog driver from sleeping in coroutine context long time. The first patch makes the driver use a non-blocking socket and the second one fixes a bug that yielded coroutines aren't entered. Changes from v2: - add a patch to use non-blocking fd - add explanation why it

[Qemu-devel] [PATCH v2 1/2] sheepdog: use non-blocking fd in coroutine context

2013-03-12 Thread MORITA Kazutaka
Using a blocking socket in the coroutine context reduces the chance of switching to other work. This patch makes the sheepdog driver use a non-blocking fd always. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 6 ++ 1 file changed, 2 insertions(+), 4

[Qemu-devel] [PATCH v2 2/2] sheepdog: set io_flush handler in do_co_req

2013-03-12 Thread MORITA Kazutaka
If an io_flush handler is not set, qemu_aio_wait doesn't invoke callbacks. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index

[Qemu-devel] [PATCH] bitops: unroll while loop in find_next_bit().

2013-03-12 Thread Peter Lieven
this patch adopts the loop unrolling idea of bitmap_is_zero() to speed up the skipping of large areas with zeros in find_next_bit(). this routine is extensively used to find dirty pages in live migration. testing only the find_next_bit performance on a zeroed bitfield the loop onrolling

Re: [Qemu-devel] [RFC] Proposal for hw/ split

2013-03-12 Thread Paolo Bonzini
Il 12/03/2013 07:48, Richard Henderson ha scritto: On 2013-03-11 04:17, Paolo Bonzini wrote: == hw/pci == hw/alpha_typhoon.c hw/pci/host-typhoon.c Why wouldn't this go into hw/alpha/, really? Sure. I think the Alpha-specific interrupt delivery parts should be

Re: [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths

2013-03-12 Thread KONRAD Frédéric
On 01/03/2013 14:33, Paolo Bonzini wrote: Done with this script: cd hw for i in `find . -name '*.h' | sed 's/^..//'`; do echo '\,^#.*include.*[]'$i'[], s,'$i',hw/,' done | sed -i -f - `find . -type f` This is so that paths remain valid as files are moved. Instead, files in hw/dataplane are

Re: [Qemu-devel] [PATCH V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-12 Thread Stefan Hajnoczi
On Tue, Mar 12, 2013 at 02:29:42PM +0800, Asias He wrote: diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 39c1966..4a97ca1 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c These changes break the build for non-Linux hosts. Please introduce a CONFIG_VHOST_SCSI and #ifdef appropriate

Re: [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths

2013-03-12 Thread Paolo Bonzini
Il 12/03/2013 09:19, KONRAD Frédéric ha scritto: On 01/03/2013 14:33, Paolo Bonzini wrote: Done with this script: cd hw for i in `find . -name '*.h' | sed 's/^..//'`; do echo '\,^#.*include.*[]'$i'[], s,'$i',hw/,' done | sed -i -f - `find . -type f` This is so that paths remain valid

Re: [Qemu-devel] [PATCH 09/18] hw: include hw header files with full paths

2013-03-12 Thread KONRAD Frédéric
On 12/03/2013 09:19, KONRAD Frédéric wrote: On 01/03/2013 14:33, Paolo Bonzini wrote: Done with this script: cd hw for i in `find . -name '*.h' | sed 's/^..//'`; do echo '\,^#.*include.*[]'$i'[], s,'$i',hw/,' done | sed -i -f - `find . -type f` This is so that paths remain valid as files

Re: [Qemu-devel] [RFC] find_next_bit optimizations

2013-03-12 Thread Stefan Hajnoczi
On Mon, Mar 11, 2013 at 02:44:03PM +0100, Peter Lieven wrote: I ever since had a few VMs which are very hard to migrate because of a lot of memory I/O. I found that finding the next dirty bit seemed to be one of the culprits (apart from removing locking which Paolo is working on). I have

[Qemu-devel] [PATCH v4] virtio: make virtio device's structures public.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Andreas Färber afaer...@suse.de Changes V4 - V3: * Rebased on current git.

Re: [Qemu-devel] [PATCH V2 07/10] snapshot: qmp use new internal API for external snapshot transaction

2013-03-12 Thread Wenchao Xia
于 2013-1-15 15:03, Wenchao Xia 写道: 于 2013-1-14 18:06, Stefan Hajnoczi 写道: On Mon, Jan 14, 2013 at 10:56:30AM +0800, Wenchao Xia wrote: 于 2013-1-11 17:12, Stefan Hajnoczi 写道: On Fri, Jan 11, 2013 at 02:22:28PM +0800, Wenchao Xia wrote: 于 2013-1-10 20:41, Stefan Hajnoczi 写道: On Thu, Jan 10,

Re: [Qemu-devel] [RFC] find_next_bit optimizations

2013-03-12 Thread Peter Lieven
Am 12.03.2013 um 09:35 schrieb Stefan Hajnoczi stefa...@gmail.com: On Mon, Mar 11, 2013 at 02:44:03PM +0100, Peter Lieven wrote: I ever since had a few VMs which are very hard to migrate because of a lot of memory I/O. I found that finding the next dirty bit seemed to be one of the culprits

Re: [Qemu-devel] [PATCH 0/3] *** make netlayer re-entrant ***

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:06, liu ping fan ha scritto: From what I gathered from the other thread, the path forward was to replace the global iohandler list that we currently use to drive NetClient events and replace it with a GSource and GMainContext, rather than relying on AioContexts. Not

Re: [Qemu-devel] [PATCH v2 5/5] net: make netclient re-entrant with refcnt

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:53, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com With refcnt, NetClientState's caller can run agaist reclaimer. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- hw/qdev-properties-system.c | 14 + include/net/net.h

Re: [Qemu-devel] [PATCH v2 1/5] net: spread hub on AioContexts

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:53, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Forward packet to other hub ports by their AioContext. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- hw/qdev-properties-system.c |1 + include/block/aio.h |1 +

Re: [Qemu-devel] [PATCH v2 4/5] net: introduce lock to protect NetClientState's peer's access

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:53, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Introduce nc-send_lock, it shield off the race of nc-peer's reader and deleter. With it, after deleter finish, no new qemu_send_packet_xx() can reach -send_queue, so no new reference(packet-sender)

[Qemu-devel] [PATCH 01/19] chardev: add support for qapi-based chardev initialization

2013-03-12 Thread Gerd Hoffmann
This patch add support for a new way to initialize chardev devices. Instead of calling a initialization function with a QemuOpts we will now create a (qapi) ChardevBackend, optionally call a function to fill ChardevBackend from QemuOpts, then go create the chardev using the new qapi code path

[Qemu-devel] [PATCH 09/19] chardev: switch parallel init to qapi

2013-03-12 Thread Gerd Hoffmann
This patch switches over the parallel chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PULL v3 00/19] chardev: qapi conversion continued

2013-03-12 Thread Gerd Hoffmann
Hi, v3 of this series. Rebased to latest master, picked up a fix from Igor, fixed a tyops in the udp commit message. No changes in the actual code and in the qapi interface. The plumbing has changed quite a bit though as the chardev backend table has been replaced by a backend driver

[Qemu-devel] [PATCH 04/19] chardev: add msmouse support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'msmouse' support to qapi and also switches over the msmouse chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- backends/msmouse.c |4 ++-- include/char/char.h |3 +++ qapi-schema.json|3 ++- qemu-char.c |

[Qemu-devel] [PATCH 08/19] chardev: switch serial/tty init to qapi

2013-03-12 Thread Gerd Hoffmann
This patch switches over the serial chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 03/19] chardev: switch null init to qapi

2013-03-12 Thread Gerd Hoffmann
This patch switches over the 'null' chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 38890ed..2bf12cd 100644 ---

[Qemu-devel] [PATCH 02/19] chardev: add mux chardev support to qapi

2013-03-12 Thread Gerd Hoffmann
This adds mux chardev support to the qapi and also makes the qapi-based chardev creation path handle the mux=on option correctly. --- qapi-schema.json | 14 +- qemu-char.c | 35 --- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 06/19] chardev: switch file init to qapi

2013-03-12 Thread Gerd Hoffmann
This patch switches over the 'file' chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 43 +++ 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 05/19] chardev: add braille support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'braille' support to qapi and also switches over the braille chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- backends/baum.c |4 ++-- include/char/char.h |3 +++ qapi-schema.json|3 ++- qemu-char.c |

Re: [Qemu-devel] [PATCH v2 2/5] net: hub use lock to protect ports list

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:53, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- net/hub.c | 27 ++- 1 files changed, 26 insertions(+), 1 deletions(-) You are introducing three locks. Please

[Qemu-devel] [PATCH 11/19] chardev: add console support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'console' support to qapi and also switches over the console chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |3 ++- qemu-char.c |9 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff

Re: [Qemu-devel] [PULL v3 00/19] chardev: qapi conversion continued

2013-03-12 Thread Gerd Hoffmann
Hi, git://git.kraxel.org/qemu chardev.3 Pushed chardev.4 ... chardev: add vc support to qapi [fixup] vc ... with these two guys squashed. sorry for the trouble, Gerd

[Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-12 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 32 1 file changed, 32 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 7e8ecb3..0a2bb34 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -22,6

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-12 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 0a2bb34..e000324 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -140,6

[Qemu-devel] [PATCH 19/19] qemu-char.c: fix waiting for telnet connection message

2013-03-12 Thread Gerd Hoffmann
From: Igor Mitsyanko i.mitsya...@gmail.com Current colon position in waiting for telnet connection message template produces messages like: QEMU waiting for connection on: telnet::127.0.0.1,server After moving a colon to the right, we will get a correct messages like: QEMU waiting for

[Qemu-devel] [PATCH 0/2 v3] Add Windows support for time resync by qemu-ga

2013-03-12 Thread Lei Li
This patch series attempts to add Windows implementation for qemu-ga commands guest-get-time and guest-set-time. The previous thread about the interfaces introduced and the POSIX-specific command implementation has already been accepted, the reference link:

Re: [Qemu-devel] [RFC] qcow3 format in libvirt

2013-03-12 Thread Kevin Wolf
Am 11.03.2013 um 19:03 hat Ján Tomko geschrieben: On 03/04/2013 04:40 PM, Kevin Wolf wrote: Am 04.03.2013 um 16:19 hat Daniel P. Berrange geschrieben: On Mon, Mar 04, 2013 at 04:05:50PM +0100, Kevin Wolf wrote: I'm not talking about the QEMU cli, but about qcow2 as the format as defined

[Qemu-devel] [PATCH 15/19] [fixup] vc

2013-03-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index ef10200..a1c668f 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3713,6 +3713,9 @@ ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend

[Qemu-devel] [PATCH 14/19] chardev: add vc support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'vc' support to qapi and also switches over the vc chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/console.h |4 ++-- qapi-schema.json | 20 - ui/console.c | 61

[Qemu-devel] [PATCH 07/19] chardev: add stdio support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'stdio' support to qapi and also switches over the stdio chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json | 16 +++- qemu-char.c | 26 -- 2 files changed, 35

Re: [Qemu-devel] what versions of MacOSX do we want to support in qemu?

2013-03-12 Thread Peter Maydell
On 11 March 2013 22:15, Andreas Färber andreas.faer...@web.de wrote: Am 11.03.2013 19:14, schrieb Peter Maydell: Hi; I'm currently looking at fixing the warnings that qemu generates in MacOSX syslog regarding CPSGetCurrentProcess and CPSEnableForegroundOperation being deprecated. The new API

[Qemu-devel] [PATCH 16/19] chardev: add memory (ringbuf) support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'memory' support to qapi and also switches over the memory chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json | 14 +- qemu-char.c | 30 +++--- 2 files changed, 36

[Qemu-devel] [PATCH 17/19] chardev: add udp support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'udp' support to qapi. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/qemu/sockets.h |1 + qapi-schema.json | 16 +++- qemu-char.c| 44 ++-- util/qemu-sockets.c| 25

[Qemu-devel] [PATCH 18/19] Revert hmp: Disable chardev-add and chardev-remove

2013-03-12 Thread Gerd Hoffmann
This reverts commit 8a14952c9d2f5fa2b3caa6dc286b62ed5d26bca7. --- hmp-commands.hx | 63 +++ 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 69c707d..79bbcc6 100644 --- a/hmp-commands.hx

Re: [Qemu-devel] [RFC 0/8] block: Live backup prototype

2013-03-12 Thread Kevin Wolf
Am 10.03.2013 um 10:57 hat Dietmar Maurer geschrieben: The difference between this approach and Dietmar's series is that the backup archive format is implemented outside QEMU and runs as a separate program. This way, management tools like proxmox, oVirt, OpenStack, and others can

[Qemu-devel] [PATCH 13/19] chardev: add spice support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'spicevmc' and 'spiceport' support to qapi and also switches over the spice chardev initialization to the new qapi code path. --- include/ui/qemu-spice.h |7 -- qapi-schema.json| 26 +++- qemu-char.c |8 ++ spice-qemu-char.c

[Qemu-devel] [PATCH 10/19] chardev: switch pty init to qapi

2013-03-12 Thread Gerd Hoffmann
This patch switches over the pty chardev initialization to the new qapi code path. Bonus: Taking QemuOpts out of the loop allows some nice cleanups along the way. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 35 ++- 1 file changed, 10

[Qemu-devel] [PATCH v6 3/8] virtio-blk-pci: switch to new API.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-blk-pci is modified for the new API. The device virtio-blk-pci extends virtio-pci. It creates and connects a virtio-blk during the init. The properties are not changed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com ---

[Qemu-devel] [PATCH v6 1/8] virtio-blk: don't use pointer for configuration.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The configuration field must not be a pointer as it will be used for virtio-blk properties. So *blk is replaced by blk in VirtIOBlock structure. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 8

[Qemu-devel] [PATCH v6 2/8] virtio-blk: add the virtio-blk device.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 98 ++--- hw/virtio-blk.h | 28

Re: [Qemu-devel] [PATCH v2 0/2] sheepdog: don't sleep in coroutine context

2013-03-12 Thread Stefan Hajnoczi
On Tue, Mar 12, 2013 at 04:05:41PM +0900, MORITA Kazutaka wrote: This patch prevents the sheepdog driver from sleeping in coroutine context long time. The first patch makes the driver use a non-blocking socket and the second one fixes a bug that yielded coroutines aren't entered. Changes

[Qemu-devel] [PATCH v6 0/8] virtio-blk refactoring.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This is the next part of virtio-refactoring. Basically it creates virtio-blk device which extends virtio-device. Then a virtio-blk can be connected on a virtio-bus. virtio-blk-pci, virtio-blk-s390x, virtio-blk-ccw are created too, they extend

[Qemu-devel] [PATCH v6 4/8] virtio-blk-s390: switch to the new API.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-blk-s390 is modified for the new API. The device virtio-blk-s390 extends virtio-s390-device as before. It creates and connects a virtio-blk during the init. The properties are not modified. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH v6 7/8] virtio-blk: cleanup: QOM cast

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git

[Qemu-devel] [PATCH 12/19] chardev: add pipe support to qapi

2013-03-12 Thread Gerd Hoffmann
This patch adds 'pipe' support to qapi and also switches over the pipe chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |3 ++- qemu-char.c | 31 ++- 2 files changed, 24 insertions(+), 10

[Qemu-devel] [PATCH v6 8/8] virtio-blk: cleanup: remove qdev field.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio-blk.c

[Qemu-devel] [PATCH v6 5/8] virtio-blk-ccw switch to new API.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-ccw-s390 is modified for the new API. The device virtio-ccw-s390 extends virtio-ccw-device as before. It creates and connects a virtio-ccw during the init. The properties are not modified. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH v6 6/8] virtio-blk: cleanup: init and exit functions.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com As all virtio-blk-* are switched to the new API, we can remove the separate init/exit for the old API. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 85 ++---

Re: [Qemu-devel] [RFC V6 19/33] block: Add qcow2_dedup format and image creation code.

2013-03-12 Thread Stefan Hajnoczi
On Mon, Mar 11, 2013 at 04:20:03PM +0100, Benoît Canet wrote: +if (dedup) { +version = 3; +} Lazy refcounts don't force the version. It would be consistent to refrain from forcing the version too. I don't understand. Aren't the incompatible features bits

Re: [Qemu-devel] [PATCH V14 0/5] VMXNET3 paravirtual NIC device implementation

2013-03-12 Thread Stefan Hajnoczi
On Sat, Mar 09, 2013 at 11:21:01AM +0200, Dmitry Fleytman wrote: This set of patches implements VMWare VMXNET3 paravirtual NIC device. The device supports of all the device features including offload capabilties, VLANs and etc. The device is tested on different OSes: Fedora 15 Ubuntu

Re: [Qemu-devel] [PATCH v2] Add option to mlock qemu and guest memory

2013-03-12 Thread Paolo Bonzini
Il 14/02/2013 21:21, Satoru Moriya ha scritto: We have some plans to migrate legacy enterprise systems which require low latency (10 msec order) to kvm virtualized environment. In our usecase, the system runs with other untrusted guests and so locking memory which is used by the system is

Re: [Qemu-devel] [PATCH] fix qemu_get_cpu(), should return NULL if CPU not found

2013-03-12 Thread Andreas Färber
Am 07.03.2013 19:12, schrieb Igor Mammedov: commit 55e5c2850 breaks CPU not found return value, and returns CPU corresponding to the last non NULL env. Fix it by returning CPU only if env is not NULL, otherwise CPU is not found and function should return NULL. Signed-off-by: Igor Mammedov

[Qemu-devel] [PATCH 01/17] cpu: Fix qemu_get_cpu() to return NULL if CPU not found

2013-03-12 Thread Andreas Färber
From: Igor Mammedov imamm...@redhat.com Commit 55e5c2850 breaks CPU not found return value, and returns CPU corresponding to the last non NULL env. Fix it by returning CPU only if env is not NULL, otherwise CPU is not found and function should return NULL. Signed-off-by: Igor Mammedov

  1   2   3   4   >