Re: [Qemu-devel] [PATCH] glib: Add compat wrapper for g_poll on old glib

2013-02-26 Thread Laurent Desnogues
On Tue, Feb 26, 2013 at 12:46 AM, Alexander Graf wrote: > Older glib doesn't implement g_poll(). Most notably the glib version in use > on SLE11 is on 2.18 which is hit by this. > > We do want to use g_poll() in the source however. So on older systems, just > wrap it with functions that do exist o

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/3] target-ppc: Synchronize VPA state with KVM

2013-02-26 Thread Alexander Graf
Am 26.02.2013 um 03:01 schrieb David Gibson : > On Mon, Feb 25, 2013 at 01:19:48PM +0100, Alexander Graf wrote: >> >> On 21.02.2013, at 03:41, David Gibson wrote: >> >>> For PAPR guests, KVM tracks the various areas registered with the >>> H_REGISTER_VPA hypercall. For full emulation, of cour

Re: [Qemu-devel] scp during migration with vhost fails

2013-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2013 at 02:41:03PM +0800, Jason Wang wrote: > On 02/25/2013 06:01 PM, Michael S. Tsirkin wrote: > > On Mon, Feb 25, 2013 at 02:11:44PM +0800, Jason Wang wrote: > >> On 02/25/2013 01:57 PM, Jason Wang wrote: > >>> On 02/24/2013 05:54 AM, Michael S. Tsirkin wrote: > On Sat, Feb 2

Re: [Qemu-devel] [RFC V8 00/13] Quorum block filter.

2013-02-26 Thread Stefan Hajnoczi
On Mon, Feb 25, 2013 at 05:10:09PM +0100, Benoît Canet wrote: > My customer no longer provide me financial support to write/maintain Quorum > because snapshots will be missing for a long time. Sorry to hear that, Benoît. > As you (Eric, Stefanha and Kevin) helped me to improve Quorum by spending

[Qemu-devel] [PATCH v4 00/23] Add Faraday A369 SoC platform support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su These patches introduce Faraday A36x SoC platform support. Here are some public documents for your reference. http://www.faraday-tech.com/html/documentation/index.html The pre-built images are also available at my Google Drive: https://docs.google.com/folder/d/0BwfiewvSmUgAX

[Qemu-devel] [PATCH v4 04/23] hw/arm: add Faraday FTAHBC020 support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su It's used to perform AHB remap and also QEMU RAM initialization when SDRAM is initialized before AHB remap process activated. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |3 + hw/arm/ftahbc020.c| 181 ++

[Qemu-devel] [PATCH v4 09/23] hw/arm: add Faraday FTDMAC020 AHB DMA support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 handshaking channels in the h

Re: [Qemu-devel] [Fwd: qemu tx stop in cloonix]

2013-02-26 Thread Stefan Hajnoczi
On Mon, Feb 25, 2013 at 11:38 PM, wrote: > I coded a socket-based cable between 2 vanilla kvm, here are the commands > to do: Please try: kvm \ -nodefaults \ -nographic \ -serial stdio \ -drive file=guest1,media=disk,if=virtio \ -netdev socket,id=socket0,connect=127.0.0.1:4

Re: [Qemu-devel] [PATCH] slirp: Properly initialize pollfds_idx of new sockets

2013-02-26 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 09:17:10PM +0100, Laszlo Ersek wrote: > On 02/22/13 20:51, Jan Kiszka wrote: > > Otherwise we may start processing sockets in slirp_pollfds_poll that > > were created past slirp_pollfds_fill. > > > > Signed-off-by: Jan Kiszka > > --- > > > > Not sure if this pattern also

Re: [Qemu-devel] [PATCH] slirp: Properly initialize pollfds_idx of new sockets

2013-02-26 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 08:51:27PM +0100, Jan Kiszka wrote: > Otherwise we may start processing sockets in slirp_pollfds_poll that > were created past slirp_pollfds_fill. > > Signed-off-by: Jan Kiszka > --- > > Not sure if this pattern also applies to other users besides slirp. > Worth checking

Re: [Qemu-devel] 'commit' error for 'all': No medium found

2013-02-26 Thread Kevin Wolf
Am 25.02.2013 um 16:01 hat Markus Armbruster geschrieben: > >> The behaviour then would be nop on no medium during commit all. But if > >> you specifically tried to just run commit() on a single device that > >> had no medium, you would receive ENOMEDIUM. That seems logical to me. > > > > I think,

[Qemu-devel] [PATCH v4 16/23] hw/arm: add Faraday FTSSP010 multi-function controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- hw/arm/Makefile.objs |1 + hw/arm/faraday.h

Re: [Qemu-devel] [PATCH] glib: Add compat wrapper for g_poll on old glib

2013-02-26 Thread Stefan Hajnoczi
On Tue, Feb 26, 2013 at 12:46:10AM +0100, Alexander Graf wrote: > Older glib doesn't implement g_poll(). Most notably the glib version in use > on SLE11 is on 2.18 which is hit by this. > > We do want to use g_poll() in the source however. So on older systems, just > wrap it with functions that do

Re: [Qemu-devel] [PATCH 1/9] chardev: add support for qapi-based chardev initialization

2013-02-26 Thread Gerd Hoffmann
Hi, > Have you tried using visit_type_ChardevBackend() with an OptsVisitor to > handle the option parsing? It's how -netdev options are parsed now, so > it should "just work" in theory. There is no 1:1 mapping between QemuOpts and ChardevBackend, so I don't think this is going to fly. cheers,

Re: [Qemu-devel] scp during migration with vhost fails

2013-02-26 Thread Jason Wang
On 02/26/2013 04:44 PM, Michael S. Tsirkin wrote: > On Tue, Feb 26, 2013 at 02:41:03PM +0800, Jason Wang wrote: >> On 02/25/2013 06:01 PM, Michael S. Tsirkin wrote: >>> On Mon, Feb 25, 2013 at 02:11:44PM +0800, Jason Wang wrote: On 02/25/2013 01:57 PM, Jason Wang wrote: > On 02/24/2013 05:

Re: [Qemu-devel] [PATCH] vl.c: Support multiple CPU ranges on -numa option

2013-02-26 Thread Markus Armbruster
Eduardo Habkost writes: > On Thu, Feb 21, 2013 at 09:23:22PM +0100, Markus Armbruster wrote: >> Eduardo Habkost writes: >> >> > This allows "," to be used a separator between each CPU range. Note >> > that commas inside key=value command-line options have to be escaped >> > using ",,", so the

[Qemu-devel] [PATCH v4 11/23] hw/nand.c: bug fix to BUSY/READY status bit

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su Status Register(SR): SR[6] behaves the same as R/B# pin SR[6] = 0 indicates the device is busy; SR[6] = 1 means the device is ready Some NAND flash controller (i.e. ftnandc021) relies on the SR[6] to determine if the NAND flash erase/program is success, and then report

Re: [Qemu-devel] [PATCH V2 2/4] grlib-apbuart: Add support of various flags

2013-02-26 Thread Fabien Chouteau
On 02/23/2013 06:13 PM, Andreas Färber wrote: > Am 19.02.2013 17:22, schrieb Fabien Chouteau: >> >> +static void grlib_apbuart_reset(DeviceState *d) >> +{ >> +UART *uart = container_of(d, UART, busdev.qdev); > > This is still wrong, please introduce a QOM cast macro for this device, > e.g., GRL

[Qemu-devel] [PATCH v4 08/23] hw/arm: add Faraday FTRTC011 RTC timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 programmable auto-alarm fun

[Qemu-devel] [PATCH v4 10/23] hw/arm: add Faraday FTAPBBRG020 APB DMA support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 is the only channel start

[Qemu-devel] [PATCH v4] doc: document -netdev hubport

2013-02-26 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- hmp-commands.hx | 2 +- qemu-options.hx | 11 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 64008a9..c204d31 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1169,7 +1169,7 @@ ETEXI

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

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su This patch includes the single core support to FA606TE, FA626TE, FA616TE, FA726TE and CP15 Faraday extensions (AUX and I/D-Scratchpad). Signed-off-by: Kuo-Jung Su --- target-arm/cpu.c | 52 +++ target-arm/cpu.h |6 +++- target-arm/hel

[Qemu-devel] [PATCHv2 for-1.4] vhost: memory sync fixes

2013-02-26 Thread Michael S. Tsirkin
This fixes two bugs related to memory sync during migration: - ram address calculation was missing the chunk address, so the wrong page was dirtied - one after last was used instead of the end address of a region, which might overflow to 0 and cause us to skip the region w

[Qemu-devel] [PATCH v4 23/23] hw/arm: add Faraday FTTMR010 timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 would also issue an interr

[Qemu-devel] [PATCH v4 17/23] hw/arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 both Linux and WINCE. It al

[Qemu-devel] [PATCH v4 22/23] hw/arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 half-word data transfer for

[Qemu-devel] [PATCH v4 13/23] hw/arm: add Faraday FTNANDC021 nand flash controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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. However the optional ha

Re: [Qemu-devel] [PATCH] pseries: Add compatible property to root of device tree

2013-02-26 Thread Erlon Cruz
I wonder if this can be related with the problem I found some time ago while installing SLES. http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00261.html Regards, Erlon On Tue, Feb 26, 2013 at 2:27 AM, David Gibson wrote: > Currently, for the pseries machine the device tree supplied by q

[Qemu-devel] [PATCH v4 03/23] hw/arm: add Faraday FTINTC020 interrupt controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 edge-rising/falling triggered.

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

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- hw/arm/Makefile.objs |4 + hw/arm/faraday.h | 65 + hw/

[Qemu-devel] [PATCH v4 20/23] hw/arm: add Faraday FTSDC010 MMC/SD controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |7 + hw/arm/ftsdc010.c | 355 ++

Re: [Qemu-devel] [PATCH v2] doc: document -netdev hubport

2013-02-26 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 10:54:47AM +0100, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Thu, Feb 21, 2013 at 03:17:51PM +0100, Markus Armbruster wrote: > >> Stefan Hajnoczi writes: > >> > >> > Signed-off-by: Stefan Hajnoczi > >> > --- > >> > qemu-options.hx | 11 ++- > >>

[Qemu-devel] [PATCH v4 15/23] hw: add WM8731 codec support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 16bit I2S support by default. Signed-off-by: Kuo-Jung Su --- d

[Qemu-devel] [PATCH v4 14/23] hw/arm: add Faraday FTI2C010 I2C controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTI2C010 is a simple I2C master controller. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |6 ++ hw/arm/fti2c010.c | 213 + hw/arm/fti2c010.h | 69 +++

[Qemu-devel] [PATCH v4 07/23] hw/arm: add Faraday FTWDT010 watchdog timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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, FTWDT010 will try to reset th

[Qemu-devel] [PATCH v4 18/23] hw/arm: add Faraday FTLCDC200 LCD controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 true display gray or col

[Qemu-devel] [PATCH v4 21/23] hw/arm: add Faraday FTSPI020 SPI flash controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSPI020 is an integrated SPI Flash controller which supports upto 4 flash chips. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c | 13 ++ hw/arm/faraday_a369_soc.c |4 + hw/arm/ftspi020.c | 333 +

[Qemu-devel] [PATCH v4 05/23] hw/arm: add Faraday FTDDRII030 support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTDDRII030 is a DDRII SDRAM controller which is responsible for SDRAM initialization. In QEMU we emualte only the SDRAM enable function. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |3 + hw/arm/ftddrii030.c | 163

[Qemu-devel] [PATCH v4 12/23] hw/nand.c: bug fix to erase operation

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The s->addr should be reset along with the s->addrlen, or it might have the previous address shifted to MSB, and causes problem to nand erase operation. Signed-off-by: Kuo-Jung Su --- hw/nand.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/nand.c b/hw/nand.c index

[Qemu-devel] [PATCH V7 00/14] add qmp/hmp interfaces for internal snapshot info

2013-02-26 Thread Wenchao Xia
This serial of patches does two things: merge some info code in qemu-img, and add following interfaces: 1) qmp: query-images 2) qmp: query-snapshots 3) hmp: show internal snapshot info on a single block device These patches follows the rule that use qmp to retieve information, hmp layer just do

[Qemu-devel] [PATCH V7 01/14] qemu-img: remove unused parameter in collect_image_info()

2013-02-26 Thread Wenchao Xia
Parameter *fmt was not used, so remove it. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- qemu-img.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 85d3740..9dab48f 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1186,8 +1186,7

[Qemu-devel] [PATCH V7 07/14] block: rename bdrv_query_info() to bdrv_query_block_info()

2013-02-26 Thread Wenchao Xia
Now that we have bdrv_query_image_info, rename this function to make it more obvious what it is doing. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- block.c |4 ++-- include/block/block.h |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bloc

[Qemu-devel] [PATCH V7 03/14] block: return bool for bdrv_can_snapshot()

2013-02-26 Thread Wenchao Xia
This function should return bool instead of int, just as bdrv_can_read_snapshot(). Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- block.c |8 include/block/block.h |2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c in

[Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c

2013-02-26 Thread Wenchao Xia
Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- block.c | 24 include/block/block.h |2 ++ savevm.c | 22 -- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/block.c b/block.c index 3976167..a9

[Qemu-devel] [PATCH V7 14/14] hmp: show snapshots on single block device

2013-02-26 Thread Wenchao Xia
This patch added the support of showing internal snapshots on an image in the backing chain of a block device in hmp layer, by calling a qmp function. Signed-off-by: Wenchao Xia --- hmp.c | 81 - monitor.c |6 ++-- 2 files c

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-26 Thread Markus Armbruster
Eduardo Habkost writes: > This allows ":" to be used a separator between each CPU range, so the > command-line may look like: > > -numa node,cpus=A-B:C-D > > Note that the following format, currently used by libvirt: > > -numa nodes,cpus=A-B,C-D > > will _not_ work, as "," is the option separ

Re: [Qemu-devel] 'commit' error for 'all': No medium found

2013-02-26 Thread Stefan Hajnoczi
On Mon, Feb 25, 2013 at 04:01:42PM +0100, Markus Armbruster wrote: > Jan Kiszka writes: > > > On 2013-02-25 15:37, Jeff Cody wrote: > >> On Mon, Feb 25, 2013 at 03:30:34PM +0100, Markus Armbruster wrote: > >>> Jan Kiszka writes: > >>> > On 2013-02-25 14:05, Jeff Cody wrote: > > On Sun,

[Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-26 Thread Wenchao Xia
Compared to bdrv_can_snapshot(), this function return whether bs* is ready to read snapshot info from instead of write. If yes, caller can then query snapshot information, but taking snapshot is not always possible for that *bs may be read only. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blak

Re: [Qemu-devel] [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Michael S. Tsirkin
On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: > Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw > devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. > > Signed-off-by: Cornelia Huck > --- > Documentation/virtual/kvm/api.txt | 8 > include/uapi

[Qemu-devel] [PATCH v4 19/23] hw/arm: add Faraday FTTSC010 touchscreen controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 provides a periodic sampling

[Qemu-devel] [PATCH V7 05/14] block: add snapshot info query function bdrv_query_snapshot_infolist()

2013-02-26 Thread Wenchao Xia
This patch add function bdrv_query_snapshot_infolist(), which will return snapshot info of an image in qmp object format. The implementation code are based on the code moved from qemu-img.c with modification to fit more for qmp based block layer API. To help filter out snapshot info not needed,

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Michael S. Tsirkin
On Mon, Feb 25, 2013 at 04:27:45PM +0100, Cornelia Huck wrote: > Here's the latest version of my patch series enabling ioeventfds > on s390, again against kvm-next. > > Patches 1 and 2 (cleaning up initialization and exporting the virtio-ccw > api) would make sense even independent of the ioeventf

[Qemu-devel] SocketAdress + udb

2013-02-26 Thread Gerd Hoffmann
Hi, > Gerd Hoffmann (9): > chardev: add support for qapi-based chardev initialization > chardev: add mux chardev support to qapi > chardev: switch null init to qapi > chardev: add msmouse support to qapi > chardev: add braille support to qapi > chardev: switch file init to qapi > c

[Qemu-devel] [PATCH v4 06/23] hw/arm: add Faraday FTPWMTMR010 timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTPWMTMR010 is an APB device which provides up to 8 independent timers. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c | 10 ++ hw/arm/ftpwmtmr010.c | 257 + hw/arm/ftpwmtmr0

Re: [Qemu-devel] [PATCH v4 21/23] hw/arm: add Faraday FTSPI020 SPI flash controller support

2013-02-26 Thread Peter Crosthwaite
Hi Kuo-Jung, On Tue, Feb 26, 2013 at 7:14 PM, Kuo-Jung Su wrote: > From: Kuo-Jung Su > > The FTSPI020 is an integrated SPI Flash controller > which supports upto 4 flash chips. > > Signed-off-by: Kuo-Jung Su > --- Please provide change logs below the line as per the patch submission process.

[Qemu-devel] [PULL] slirp: Urgent fix for QEMU lockup

2013-02-26 Thread Jan Kiszka
The following changes since commit 08f4a0f7ee899c32bac91114e859d2687cbcf1d7: target-ppc: Fix SUBFE carry (2013-02-25 14:32:36 -0600) are available in the git repository at: git://git.kiszka.org/qemu.git queues/slirp Jan Kiszka (1): slirp: Properly initialize pollfds_idx of new sockets

[Qemu-devel] [PATCH V7 08/14] qmp: add interface query-images.

2013-02-26 Thread Wenchao Xia
This mirror function will return all image info including snapshots, if specified backing image's info will also be returned. Now Qemu have both query-images and query-block interfaces. Signed-off-by: Wenchao Xia --- block.c | 83 +

Re: [Qemu-devel] [PATCH v4] doc: document -netdev hubport

2013-02-26 Thread Markus Armbruster
Stefan Hajnoczi writes: > Signed-off-by: Stefan Hajnoczi Reviewed-by: Markus Armbruster

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2013 at 01:04:21PM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 25, 2013 at 04:27:45PM +0100, Cornelia Huck wrote: > > Here's the latest version of my patch series enabling ioeventfds > > on s390, again against kvm-next. > > > > Patches 1 and 2 (cleaning up initialization and exp

[Qemu-devel] Working on IPv6 -net user support

2013-02-26 Thread Guillaume Subiron
Hi, I represent a group of french network students in master degree working on Qemu. Our tutor is Samuel Thibault. He asked us to come on this list. Our development project consists in implementing IPv6 support in Qemu in the -net user case. We will start with the ground features like NDP and UDP

[Qemu-devel] [PATCH V7 04/14] block: move collect_snapshots() and collect_image_info() to block.c

2013-02-26 Thread Wenchao Xia
Signed-off-by: Wenchao Xia --- block.c | 81 + include/block/block.h |4 ++ qemu-img.c| 81 - 3 files changed, 85 insertions(+), 81 deletions(-) diff --git a/block.c

Re: [Qemu-devel] [Fwd: qemu tx stop in cloonix]

2013-02-26 Thread Jan Kiszka
On 2013-02-26 10:21, Stefan Hajnoczi wrote: > On Mon, Feb 25, 2013 at 11:38 PM, wrote: >> I coded a socket-based cable between 2 vanilla kvm, here are the commands >> to do: > > Please try: > > kvm \ > -nodefaults \ > -nographic \ > -serial stdio \ > -drive file=guest1,media=di

[Qemu-devel] [PATCH V7 06/14] block: add image info query function bdrv_query_image_info()

2013-02-26 Thread Wenchao Xia
This patch add function bdrv_query_image_info(), which will return image info in qmp object format. The implementation code are based on the code moved from qemu-img.c, but use block layer function to get snapshot info. A check with bdrv_can_read_snapshot(), was done before collecting snapshot

[Qemu-devel] [PATCH V7 12/14] hmp: add function hmp_info_snapshots()

2013-02-26 Thread Wenchao Xia
This function will simply call qmp interface qmp_query_snapshots() added in last commit and then dump information in monitor console. Now snapshot info retrieving code in qemu and qemu-img are merged by calling same block layer function, and then they just translate the qmp object to strings in

Re: [Qemu-devel] Working on IPv6 -net user support

2013-02-26 Thread Jan Kiszka
On 2013-02-26 12:23, Guillaume Subiron wrote: > Hi, > > I represent a group of french network students in master degree > working on Qemu. Our tutor is Samuel Thibault. He asked us to come on > this list. > > Our development project consists in implementing IPv6 support in Qemu > in the -net user

Re: [Qemu-devel] Working on IPv6 -net user support

2013-02-26 Thread Samuel Thibault
Jan Kiszka, le Tue 26 Feb 2013 12:40:58 +0100, a écrit : > On 2013-02-26 12:23, Guillaume Subiron wrote: > > I represent a group of french network students in master degree > > working on Qemu. Our tutor is Samuel Thibault. He asked us to come on > > this list. > > > > Our development project cons

Re: [Qemu-devel] [PATCH v5] Enable kvm emulated watchdog

2013-02-26 Thread Alexander Graf
On 25.02.2013, at 05:16, Bharat Bhushan wrote: > Enable the KVM emulated watchdog if KVM supports (use the > capability enablement in watchdog handler). Also watchdog exit > (KVM_EXIT_WATCHDOG) handling is added. > Watchdog state machine is cleared whenever VM state changes to running. > This is

Re: [Qemu-devel] [PATCH v2] dataplane: remove EventPoll in favor of AioContext

2013-02-26 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 10:40:34AM +0100, Paolo Bonzini wrote: > During the review of the dataplane code, the EventPoll API morphed itself > (not concidentially) into something very very similar to an AioContext. > Thus, it is trivial to convert virtio-blk-dataplane to use AioContext, > and a first

Re: [Qemu-devel] [PATCH] pseries: Add compatible property to root of device tree

2013-02-26 Thread Alexander Graf
On 26.02.2013, at 11:15, Erlon Cruz wrote: > I wonder if this can be related with the problem I found some time ago while > installing SLES. > > http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00261.html Please don't top post. IIRC this is a TCG related issue that David also debugged.

[Qemu-devel] [PATCH V7 13/14] hmp: switch snapshot info function to qmp based one

2013-02-26 Thread Wenchao Xia
This patch using new added function in last commit which retrieve info from qmp for snapshot info. Signed-off-by: Wenchao Xia --- monitor.c |2 +- savevm.c | 64 - 2 files changed, 1 insertions(+), 65 deletions(-) diff --git a

[Qemu-devel] [PATCH V7 10/14] block: distinguish id and name in bdrv_find_snapshot()

2013-02-26 Thread Wenchao Xia
To make it clear about id and name in searching, the API was changed a bit to distinguish them. Caller can choose to search by id or name now. Searching will be done with higher priority of id. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- block.c | 43 +++

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Christian Borntraeger
On 26/02/13 12:18, Michael S. Tsirkin wrote: > On Tue, Feb 26, 2013 at 01:04:21PM +0200, Michael S. Tsirkin wrote: >> On Mon, Feb 25, 2013 at 04:27:45PM +0100, Cornelia Huck wrote: >>> Here's the latest version of my patch series enabling ioeventfds >>> on s390, again against kvm-next. >>> >>> Patc

Re: [Qemu-devel] [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 12:55:36 +0200 "Michael S. Tsirkin" wrote: > On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: > > Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw > > devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. > > > > Signed-off-by: Cornelia Huc

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Christian Borntraeger
On 26/02/13 12:04, Michael S. Tsirkin wrote: > On Mon, Feb 25, 2013 at 04:27:45PM +0100, Cornelia Huck wrote: >> Here's the latest version of my patch series enabling ioeventfds >> on s390, again against kvm-next. >> >> Patches 1 and 2 (cleaning up initialization and exporting the virtio-ccw >> api

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Add compatible property to root of device tree

2013-02-26 Thread David Gibson
On Tue, Feb 26, 2013 at 07:15:57AM -0300, Erlon Cruz wrote: > I wonder if this can be related with the problem I found some time ago > while installing SLES. > > http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00261.html Ah. No, it's not. I'm guessing you hit that problem running in ful

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Christian Borntraeger
On 26/02/13 12:18, Michael S. Tsirkin wrote: > virtio_ccw: pass a cookie value to kvm hypercall > > Lookups by channel/vq pair on host during virtio notifications might be > expensive. Interpret hypercall return value as a cookie which host can > use to do device lookups for the next notification

Re: [Qemu-devel] [PATCH] glib: Add compat wrapper for g_poll on old glib

2013-02-26 Thread Peter Crosthwaite
Thanks, Fixes build on my redhat machine. On Tue, Feb 26, 2013 at 9:46 AM, Alexander Graf wrote: > Older glib doesn't implement g_poll(). Most notably the glib version in use > on SLE11 is on 2.18 which is hit by this. > > We do want to use g_poll() in the source however. So on older systems, ju

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Add compatible property to root of device tree

2013-02-26 Thread Erlon Cruz
On Tue, Feb 26, 2013 at 8:24 AM, David Gibson wrote: > On Tue, Feb 26, 2013 at 07:15:57AM -0300, Erlon Cruz wrote: > > I wonder if this can be related with the problem I found some time ago > > while installing SLES. > > > > http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00261.html > > Ah

Re: [Qemu-devel] [PATCH] glib: Add compat wrapper for g_poll on old glib

2013-02-26 Thread Paolo Bonzini
Il 26/02/2013 00:46, Alexander Graf ha scritto: > Older glib doesn't implement g_poll(). Most notably the glib version in use > on SLE11 is on 2.18 which is hit by this. > > We do want to use g_poll() in the source however. So on older systems, just > wrap it with functions that do exist on older

[Qemu-devel] [PATCH V7 11/14] qmp: add interface query-snapshots

2013-02-26 Thread Wenchao Xia
This interface now return valid internal snapshots for whole vm. Note that filter use bdrv_can_read_snapshot() instead of bdrv_can_snapshot(), which should be the correct behavior in information retrieving funtion. Signed-off-by: Wenchao Xia --- block.c | 32 ++

Re: [Qemu-devel] [PATCH] libcacard: correct T0 historical bytes size

2013-02-26 Thread Marc-André Lureau
ping On Mon, Jan 14, 2013 at 5:18 PM, Marc-André Lureau wrote: > ping > > On Sun, Dec 2, 2012 at 10:00 PM, Marc-André Lureau > wrote: >> The VCARD_ATR_PREFIX macro adds a prefix of 6 characters only. >> >> pcsc_scan was complaining before the patch: >> >> + Historical bytes: 56 43 41 52 44 5F 4E

Re: [Qemu-devel] [PATCH v4 21/23] hw/arm: add Faraday FTSPI020 SPI flash controller support

2013-02-26 Thread Andreas Färber
Am 26.02.2013 12:08, schrieb Peter Crosthwaite: > On Tue, Feb 26, 2013 at 7:14 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTSPI020 is an integrated SPI Flash controller >> which supports upto 4 flash chips. "up to" >> >> Signed-off-by: Kuo-Jung Su >> --- > > Please provide change l

[Qemu-devel] QEMU Profiling

2013-02-26 Thread Евард Вадим
Hi list, Our team is now surveying various binary translation and emulation tools, and as part of this work we have to measure time spent in different parts of the process. More precisely, I'd like to make this work on x86_64-linux-user qemu without any accelerations. If article [1] is still releva

Re: [Qemu-devel] [PATCH] glib: Add compat wrapper for g_poll on old glib

2013-02-26 Thread Anthony Liguori
Paolo Bonzini writes: > Il 26/02/2013 00:46, Alexander Graf ha scritto: >> Older glib doesn't implement g_poll(). Most notably the glib version in use >> on SLE11 is on 2.18 which is hit by this. >> >> We do want to use g_poll() in the source however. So on older systems, just >> wrap it with fu

Re: [Qemu-devel] QEMU Profiling

2013-02-26 Thread Peter Maydell
On 26 February 2013 13:16, Евард Вадим wrote: > If article [1] is still relevant, No, Fabrice's 2005 paper is now of only historical interest; QEMU has changed substantially since then (most notably, dyngen has been eliminated; there are other differences too). -- PMM

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 13:13:39 +0100 Christian Borntraeger wrote: > On 26/02/13 12:18, Michael S. Tsirkin wrote: > > virtio_ccw: pass a cookie value to kvm hypercall > > > > Lookups by channel/vq pair on host during virtio notifications might be > > expensive. Interpret hypercall return value as

Re: [Qemu-devel] [PATCH v11 2/5] iovec checksum calculation fuction

2013-02-26 Thread Eduardo Habkost
On Mon, Feb 25, 2013 at 09:37:52PM +0100, Andreas Färber wrote: > Am 25.02.2013 21:11, schrieb Dmitry Fleytman: [...] > > diff --git a/include/net/checksum.h b/include/net/checksum.h > > index 3e7b93d..b1cf18a 100644 > > --- a/include/net/checksum.h > > +++ b/include/net/checksum.h > > @@ -19,6 +19

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2013 at 01:13:39PM +0100, Christian Borntraeger wrote: > On 26/02/13 12:18, Michael S. Tsirkin wrote: > > virtio_ccw: pass a cookie value to kvm hypercall > > > > Lookups by channel/vq pair on host during virtio notifications might be > > expensive. Interpret hypercall return valu

Re: [Qemu-devel] [PATCH] vl.c: Support multiple CPU ranges on -numa option

2013-02-26 Thread Eduardo Habkost
On Mon, Feb 25, 2013 at 10:04:07PM +0100, Andreas Färber wrote: > Am 21.02.2013 21:57, schrieb Eduardo Habkost: > > On Thu, Feb 21, 2013 at 09:23:22PM +0100, Markus Armbruster wrote: > >> Eduardo Habkost writes: > >> > >>> This allows "," to be used a separator between each CPU range. Note > >>>

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Christian Borntraeger
On 26/02/13 14:41, Michael S. Tsirkin wrote: >> So... >> Acked-by: Christian Borntraeger > > So let's apply the patch for 3.9 and Give us 1 or 2 days testing for regression and then this can go for 3.9. The host changes can then be deferred to a later point in time. > avoid caring about "old gu

[Qemu-devel] [PATCH] PATCH1 - infrastructure for Evaluate breakpoint condition on target.OPC_MAX_SIZE - size of translation buffer - was increased because condition translated bytecode should be execu

2013-02-26 Thread Anna Neiman
Signed-off-by: Anna Neiman --- exec.c | 16 - gdbstub.c | 57 ++- include/exec/cpu-all.h |1 + include/exec/cpu-defs.h | 20 + include/exec/exec-all.h |2 +- target-i386/helper.c

[Qemu-devel] [PATCH] PATCH2 - evaluate breakpoint condition on target - functionality core ( without usage yet ) - translate gdb bytecode to TCG code for add to the translation block

2013-02-26 Thread Anna Neiman
Signed-off-by: Anna Neiman --- Makefile.target |2 +- translate-gdbagent.c | 919 ++ translate-gdbagent.h | 55 +++ 3 files changed, 975 insertions(+), 1 deletion(-) create mode 100644 translate-gdbagent.c create mode 100644 translate

[Qemu-devel] [PATCH] PATCH3- evaluate breakpoint condition on target - dump bytecode of breakpoint condition in human readable format - for debug purposes

2013-02-26 Thread Anna Neiman
Signed-off-by: Anna Neiman --- gdbstub.c |5 + 1 file changed, 5 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index 814f596..e2dac86 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -42,6 +42,8 @@ #include "sysemu/kvm.h" #include "qemu/bitops.h" +#include "translate-gdbagent.h" + #ifn

[Qemu-devel] [PATCH] PATCH4 - evaluate breakpoint condition on target - final patch - call of translation gdb bytecode to TCG code, add translated breakpoint condition code to the translation block

2013-02-26 Thread Anna Neiman
Signed-off-by: Anna Neiman --- target-arm/translate.c | 43 ++- translate-all.c|3 +++ 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index f2f649d..140caa8 100644 --- a/target-

Re: [Qemu-devel] [PATCH] PATCH1 - infrastructure for Evaluate breakpoint condition on target.OPC_MAX_SIZE - size of translation buffer - was increased because condition translated bytecode should be e

2013-02-26 Thread Peter Maydell
On 26 February 2013 13:50, Anna Neiman wrote: > > Signed-off-by: Anna Neiman The formatting of your patches is still a mess (huge long subject, not properly threaded with a cover letter, etc) and you're still doing too much in one patch. Hint: "add missing include guards to header files" is pro

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2013 at 02:29:07PM +0100, Cornelia Huck wrote: > On Tue, 26 Feb 2013 13:13:39 +0100 > Christian Borntraeger wrote: > > > On 26/02/13 12:18, Michael S. Tsirkin wrote: > > > virtio_ccw: pass a cookie value to kvm hypercall > > > > > > Lookups by channel/vq pair on host during virti

Re: [Qemu-devel] [PATCH] PATCH1 - infrastructure for Evaluate breakpoint condition on target.OPC_MAX_SIZE - size of translation buffer - was increased because condition translated bytecode should be e

2013-02-26 Thread Neiman, Anna
Relating to size of patch - I divided it maximally, Relating to subject - thank for your note - I'll take it in account next time. -Original Message- From: Peter Maydell [mailto:peter.mayd...@linaro.org] Sent: Tuesday, February 26, 2013 3:54 PM To: Neiman, Anna Cc: qemu-devel@nongnu.org;

Re: [Qemu-devel] [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Michael S. Tsirkin
On Tue, Feb 26, 2013 at 02:48:38PM +0100, Christian Borntraeger wrote: > On 26/02/13 14:41, Michael S. Tsirkin wrote: > >> So... > >> Acked-by: Christian Borntraeger > > > > So let's apply the patch for 3.9 and > > Give us 1 or 2 days testing for regression and then this can go for 3.9. > The ho

Re: [Qemu-devel] [PATCH] vl.c: Support multiple CPU ranges on -numa option

2013-02-26 Thread Eduardo Habkost
On Tue, Feb 26, 2013 at 10:53:07AM +0100, Markus Armbruster wrote: > Eduardo Habkost writes: > > > On Thu, Feb 21, 2013 at 09:23:22PM +0100, Markus Armbruster wrote: > >> Eduardo Habkost writes: > >> > >> > This allows "," to be used a separator between each CPU range. Note > >> > that commas

Re: [Qemu-devel] [PATCH 1/9] chardev: add support for qapi-based chardev initialization

2013-02-26 Thread Paolo Bonzini
Il 26/02/2013 10:35, Gerd Hoffmann ha scritto: > >> > Have you tried using visit_type_ChardevBackend() with an OptsVisitor to >> > handle the option parsing? It's how -netdev options are parsed now, so >> > it should "just work" in theory. > There is no 1:1 mapping between QemuOpts and ChardevBack

  1   2   3   >