Re: [Qemu-devel] [PATCH] s390: Move hw files to hw/s390x

2013-01-25 Thread Christian Borntraeger
On 25/01/13 01:18, Alexander Graf wrote: This moves all files only used by s390 system emulation to hw/s390x. Signed-off-by: Alexander Graf ag...@suse.de makes sense Acked-by: Christian Borntraeger borntrae...@de.ibm.com --- hw/s390x/Makefile.objs |2 -- hw/{ =

[Qemu-devel] [PATCH for-1.4?] i2c: Drop I2C_SLAVE_FROM_QDEV() macro

2013-01-25 Thread Andreas Färber
It is not being used in hot paths and is obsoleted by I2C_SLAVE() QOM cast macro. Clean it up using a scripted conversion, so that it doesn't get used in new code. Some of its callers were combining it with FROM_I2C_SLAVE() macro, which is equally obsolete but needs to be replaced in a

[Qemu-devel] [PATCH] add fd limitations for avoiding a buffer overflow

2013-01-25 Thread Amos Kong
FD_SET() and FD_CLR() are used to add and remove one descriptor from a set, the 'fd' should be less than FD_SETSIZE. Glibc will give a warning and crash the qemu when we set a fd (1024) to a set. # qemu -device virtio-net-pci,netdev=macvtap_netdev,mac=92:ff:8a:11:fe:57 -netdev

Re: [Qemu-devel] [PATCH] PPC: Move ppc specific hw emulation to hw/ppc

2013-01-25 Thread Andreas Färber
Am 25.01.2013 02:12, schrieb Alexander Graf: diff --git a/MAINTAINERS b/MAINTAINERS index 35c260d..3664dc8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS [...] New World M: Alexander Graf ag...@suse.de L: qemu-...@nongnu.org S: Maintained -F: hw/ppc_newworld.c -F: hw/unin_pci.c -F:

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-25 Thread Dietmar Maurer
Thanks for declaration, one more question: 3) will have a big image file, will you back up it or just leave it there, not backup for internal snapshot? Sorry, I do not understand that question. Why will I have a 'a big image file', and what do you mean by 'backup' exactly? To

[Qemu-devel] [PATCH v2 06/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTMAC110 is a high quality 10/100 Ethernet controller with DMA function. It includes an AHB wrapper, DMA engine, on-chip memories (TX FIFO and RX FIFO), MAC, and MII or RMII interface. The FTMAC110 is an Ethernet controller that provides AHB master

[Qemu-devel] [PATCH v2 04/20] arm: add Faraday FTDMAC020 AHB DMA support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday FTDMAC020 is designed to enhance the system performance and reduce the processor-interrupt generation. The system efficiency is improved by employing the high-speed data transfers between the system and device. The DMA controller provides

[Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday A360/A369 EVB is a Faraday platform main board used for the Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. This main board provides a fully verified microprocessor platform, ATA-II, OTG 2.0 and USB 2.0

[Qemu-devel] [PATCH v2 03/20] arm: add Faraday FTAPBBRG020 APB DMA support

2013-01-25 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 v2 15/20] arm: add Faraday FTWDT010 watchdog timer support

2013-01-25 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 v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSDC010 functions as the master in an SD memory card interface. It controls the communication between the AHB/APB bus and the SD card. Its core supports the SD bus of the SD/SDIO operations and the MMC bus of the MMC operation as well.

[Qemu-devel] [PATCH v2 19/20] arm: add Faraday FTKBC010 support for A369

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Faraday keyboard/mouse controller (FTKBC010) is compliant with the IBM PS/2 interface. The interface uses the bidirectional clock and data lines to perform the half-duplex synchronous serial interface. It also provides the configurable scan matrix for

Re: [Qemu-devel] [PATCH V3 07/11] block: export function bdrv_find_snapshot()

2013-01-25 Thread Markus Armbruster
Eric Blake ebl...@redhat.com writes: On 01/15/2013 03:24 AM, Wenchao Xia wrote: +int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info, + const char *name) +if (!strcmp(sn-id_str, name) || !strcmp(sn-name, name)) { This code comparison

[Qemu-devel] [PATCH v2 07/20] arm: add Faraday FTI2C010 I2C controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTI2C010 allows the host processor to serve as a master or slave in the I2C bus. Data are transmitted to and received from the I2C bus via a buffered interface. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/fti2c010.c | 205

[Qemu-devel] [PATCH v2 09/20] arm: add Faraday FTNANDC021 nand flash controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTNANDC021 NAND flash host controller allows the users to access the NAND flash memory simply by reading or writing into the registers. It provides the hardware-based NAND host controller so that data can be transferred in the high speed mode. The

[Qemu-devel] [PATCH v2 08/20] arm: add Faraday FTLCDC200 LCD controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTLCDC200 is an LCD controller that is compliant with the AMBA 2.0. It is a reusable soft-IP block and provides all the necessary control signals for a variety of TFT/CSTN/STN LCD panels. It was designed for portable electronics, including Personal

[Qemu-devel] [PATCH v2 12/20] arm: add Faraday FTSSP010 multi-function controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSSP010 is a synchronous serial port interface that allows the host processor to serve as a master or a slave. Various devices can be connected to this controller by using the serial protocol. It supports the TI Synchronous Serial Port (SSP), the

[Qemu-devel] [PATCH v2 18/20] arm: add Faraday FTINTC020 interrupt controller

2013-01-25 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 v2 20/20] arm: add generic ROM model for Faraday SoC platforms

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Since the NAND and SPI flash memories do not support random access, so most of the systems which use such memory as main storages usually has some bootstrap code stored inside the embedded ROM of its SoC, and the bootstrap code is responsible for SDRAM

Re: [Qemu-devel] [PATCH] add fd limitations for avoiding a buffer overflow

2013-01-25 Thread Laszlo Ersek
On 01/25/13 09:14, Amos Kong wrote: FD_SET() and FD_CLR() are used to add and remove one descriptor from a set, the 'fd' should be less than FD_SETSIZE. Glibc will give a warning and crash the qemu when we set a fd (1024) to a set. # qemu -device

[Qemu-devel] [PATCH v2 16/20] arm: add Faraday FTTMR010 timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTMR010 provides three independent sets of sub-timers. Each sub-timer can use either the internal system clock (PCLK) or the external clock (EXTCLK) for clock counting. Two match registers are provided for each sub-timer, whenever the value of the

Re: [Qemu-devel] [BUG, RFC] block/vmdk.c: File name with space fails to open

2013-01-25 Thread Markus Armbruster
Philipp Hahn h...@univention.de writes: Hello, I tried to open a twoGbMaxExtentSparse VMDK file, which uses spaces in its own and for the referenced file names. This breaks in line 646 of block/vmdk.c because %511s stops at the first space and thus fname is incomplete: ret =

Re: [Qemu-devel] [PATCH] add fd limitations for avoiding a buffer overflow

2013-01-25 Thread Jason Wang
On 01/25/2013 04:14 PM, Amos Kong wrote: FD_SET() and FD_CLR() are used to add and remove one descriptor from a set, the 'fd' should be less than FD_SETSIZE. Glibc will give a warning and crash the qemu when we set a fd (1024) to a set. # qemu -device

Re: [Qemu-devel] [PATCH] add fd limitations for avoiding a buffer overflow

2013-01-25 Thread Markus Armbruster
Laszlo Ersek ler...@redhat.com writes: On 01/25/13 09:14, Amos Kong wrote: FD_SET() and FD_CLR() are used to add and remove one descriptor from a set, the 'fd' should be less than FD_SETSIZE. Glibc will give a warning and crash the qemu when we set a fd (1024) to a set. # qemu -device

Re: [Qemu-devel] [PATCH v2 02/20] arm: add Faraday FUSBH200 EHCI controller

2013-01-25 Thread Andreas Färber
Am 25.01.2013 09:19, schrieb Kuo-Jung Su: From: Kuo-Jung Su dant...@faraday-tech.com Faraday FUSBH200 is a one-port host controller for USB 2.0, which is fully compliant with the USB 2.0 specification and the Enhanced Host Controller Interface (EHCI) specification. This host controller

[Qemu-devel] [PATCH v2 05/20] arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTGMAC100 is a high-quality Ethernet controller with DMA function. It includes the AHB wrapper, DMA engine, on-chip memories (TX FIFO and RX FIFO), MAC, and MII/GMII interfaces. The FTGMAC100 is an Ethernet controller that provides AHB master

Re: [Qemu-devel] [PATCH] vnc: Clean up vncws_send_handshake_response()

2013-01-25 Thread Tim Hardeck
Hi Markus, thanks for your input. On Wed, 2013-01-23 at 18:16 +0100, Markus Armbruster wrote: Use appropriate types, drop superfluous casts, use sizeof, don't exploit that this particular call of gnutls_fingerprint() doesn't change its last argument. your patch does work fine but if we

Re: [Qemu-devel] [RFC v5 0/8] QEMU: Support KVM on ARM

2013-01-25 Thread Paolo Bonzini
Il 24/01/2013 16:43, Peter Maydell ha scritto: Round 5 of the QEMU patches to support KVM for ARM on Cortex-A15 hardware. It's intended for use with the kernel tree at git://github.com/virtualopensystems/linux-kvm-arm.git kvm-arm-v17-vgic-timers Still RFC pending the kernel patches

Re: [Qemu-devel] [PATCH v2 02/20] arm: add Faraday FUSBH200 EHCI controller

2013-01-25 Thread Gerd Hoffmann
Hi, +static uint64_t +ehci_faraday_read(void *ptr, hwaddr addr, unsigned size) +{ +hwaddr off = 0x34 + addr; + +switch (off) { +case 0x34: /* fusbh200: EOF/Async. Sleep Timer Register */ +return 0x0041; +case 0x40: /* fusbh200: Bus Monitor Control/Status

[Qemu-devel] [PATCH v2 02/20] arm: add Faraday FUSBH200 EHCI controller

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Faraday FUSBH200 is a one-port host controller for USB 2.0, which is fully compliant with the USB 2.0 specification and the Enhanced Host Controller Interface (EHCI) specification. This host controller supports the HS/FS/LS transactions,

[Qemu-devel] [PATCH v2 14/20] arm: add Faraday FTRTC011 RTC timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTRTC011 is a flexible, small-area, and low-power Real Time Clock (RTC). It accepts two clock sources: APB bus clock (PCLK) and 32.768 kHz clock. When the system enters the sleep mode, the PCLK clock will be gated by the system while RTC will keep on

[Qemu-devel] [PATCH v2 17/20] arm: add Faraday FTPWMTMR010 timer support

2013-01-25 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. Each timer can use either the internal system clock (The PCLK of APB) or external clock. These timers can be used to generate internal interrupts to the CPU. They can also be

Re: [Qemu-devel] [PATCH] build: remove *.lo, *.a, *.la files from all subdirectories on make clean

2013-01-25 Thread Paolo Bonzini
Il 15/01/2013 09:49, Paolo Bonzini ha scritto: .lo files in stubs/, util/ and libcacard/ were not cleaned. Fix this. Cc: Blue Swirl blauwir...@gmail.com Reported-by: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile | 6 +++--- 1 file

Re: [Qemu-devel] [PATCH] Makefile: remove *.lo files when make clean

2013-01-25 Thread Paolo Bonzini
Il 25/01/2013 06:25, liguang ha scritto: remove *.lo files, they will bring errors during build after a make clean, e.g. make clean make lt LINK libcacard.la gcc: stubs/.libs/arch-query-cpu-def.o: No such file or directory gcc: stubs/.libs/clock-warp.o: No such file or directory gcc:

Re: [Qemu-devel] [PATCH for 1.4 0/4] Simplify Makefile.objs some more

2013-01-25 Thread Paolo Bonzini
Il 19/01/2013 11:06, Paolo Bonzini ha scritto: This small series makes some more simplifications to Makefile.objs, removing two more variables: universal-obj-y and extra-obj-y, all unified into common-obj-y. It also removes what remains of user-obj-y, unifying that into common-obj-y as well.

[Qemu-devel] [PATCH v2 11/20] arm: add Faraday FTTSC010 touchscreen controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTSC010 provides controlling signals to handle ADC conversion and panel driver. The control signal is base on Faraday 12-bit ADC IP of FXADC140HC0H_TPANEL, which is a 12-bit SAR ADC with 8-to-1 multiplexer, IPGA and panel driver. The ADC provides

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-25 Thread Wenchao Xia
于 2013-1-24 17:47, Stefan Hajnoczi 写道: Case 3: * What does blank data mean? Besides that the use case makes sense. Will remove the words. * When discussing this use case in the past it was suggested that the guest doesn't need to be paused during the LVM snapshot. Instead

Re: [Qemu-devel] [BUG, RFC] block/vmdk.c: File name with space fails to open

2013-01-25 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 05:29:27PM +0100, Philipp Hahn wrote: Hello, I tried to open a twoGbMaxExtentSparse VMDK file, which uses spaces in its own and for the referenced file names. This breaks in line 646 of block/vmdk.c because %511s stops at the first space and thus fname is

Re: [Qemu-devel] [PATCH v2 00/12] qdev: correct reference counting

2013-01-25 Thread Paolo Bonzini
Il 21/01/2013 13:30, Paolo Bonzini ha scritto: This series makes the ref_count field of device and bus objects actually match the number of references that the objects have. Once this is done, the question how do I delete an object? has a simple answer: use object_unparent if the object is

[Qemu-devel] [PATCH v2 00/20] Add Faraday A36x SoC platform support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com These patches introduce Faraday A36x SoC platform support. Faraday provides ARMv4/ARMv5TE compatible solutions, and focus on ASIC design service. Here are some public documents for you reference.

Re: [Qemu-devel] [PATCH v2 00/12] qdev: correct reference counting

2013-01-25 Thread Andreas Färber
Am 25.01.2013 10:10, schrieb Paolo Bonzini: Il 21/01/2013 13:30, Paolo Bonzini ha scritto: This series makes the ref_count field of device and bus objects actually match the number of references that the objects have. Once this is done, the question how do I delete an object? has a simple

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-25 Thread Andreas Färber
Am 25.01.2013 09:19, schrieb Kuo-Jung Su: From: Kuo-Jung Su dant...@faraday-tech.com The Faraday A360/A369 EVB is a Faraday platform main board used for the Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. This main board provides a fully verified

Re: [Qemu-devel] [PATCH] vnc: Clean up vncws_send_handshake_response()

2013-01-25 Thread Markus Armbruster
Tim Hardeck thard...@suse.de writes: Hi Markus, thanks for your input. On Wed, 2013-01-23 at 18:16 +0100, Markus Armbruster wrote: Use appropriate types, drop superfluous casts, use sizeof, don't exploit that this particular call of gnutls_fingerprint() doesn't change its last argument.

Re: [Qemu-devel] [PATCH for 1.4 0/4] Simplify Makefile.objs some more

2013-01-25 Thread Andreas Färber
Am 25.01.2013 10:11, schrieb Paolo Bonzini: Il 19/01/2013 11:06, Paolo Bonzini ha scritto: This small series makes some more simplifications to Makefile.objs, removing two more variables: universal-obj-y and extra-obj-y, all unified into common-obj-y. It also removes what remains of

Re: [Qemu-devel] [PATCH] Makefile: remove *.lo files when make clean

2013-01-25 Thread li guang
在 2013-01-25五的 10:10 +0100,Paolo Bonzini写道: Il 25/01/2013 06:25, liguang ha scritto: remove *.lo files, they will bring errors during build after a make clean, e.g. make clean make lt LINK libcacard.la gcc: stubs/.libs/arch-query-cpu-def.o: No such file or directory gcc:

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-25 Thread Wenchao Xia
于 2013-1-25 16:19, Dietmar Maurer 写道: Thanks for declaration, one more question: 3) will have a big image file, will you back up it or just leave it there, not backup for internal snapshot? Sorry, I do not understand that question. Why will I have a 'a big image file', and what do you

[Qemu-devel] [PATCH v2 13/20] arm: add Faraday FTSPI020 spi flash controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSPI020 is primariy designed for high-speed spi flash support. It supports double data rate and fast-read dual/quad for spi flash. It use one AHB slave port and one SPI interface controller to execute the SPI Flash command. Moreover, it also

Re: [Qemu-devel] [PATCH] block: Create proper size file for disk mirror

2013-01-25 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 10:00:40AM -0800, Vishvananda Ishaya wrote: The qmp monitor command to mirror a disk was passing -1 for size along with the disk's backing file. This size of the resulting disk is the size of the backing file, which is incorrect if the disk has been resized. Therefore

[Qemu-devel] [PATCH v2] vnc: Clean up vncws_send_handshake_response()

2013-01-25 Thread Markus Armbruster
Use appropriate types, drop superfluous casts, use sizeof, don't exploit that this particular call of gnutls_fingerprint() doesn't change its last argument. Signed-off-by: Markus Armbruster arm...@redhat.com --- ui/vnc-ws.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff

Re: [Qemu-devel] [PATCH v2] hw/wm8731: add WM8731 codec support

2013-01-25 Thread Andreas Färber
Am 25.01.2013 08:16, schrieb 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

Re: [Qemu-devel] [RFC] qemu snapshot enchancement

2013-01-25 Thread Dietmar Maurer
Note: The proposed backup patches (already sent to the list) make backups without creating internal/external snapshot. Consistency is guaranteed by using COW. I guess this can be implemented, or may already exist in 3rd party components, such as LVM2. We used LVM to provide snapshots

Re: [Qemu-devel] [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/

2013-01-25 Thread Andreas Färber
Am 24.01.2013 10:03, schrieb Andreas Färber: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/cuda.c |2 +- hw/grackle_pci.c |2 +- hw/heathrow_pic.c |2 +- hw/ide/macio.c

Re: [Qemu-devel] [PATCH] block: Create proper size file for disk mirror

2013-01-25 Thread Kevin Wolf
Am 24.01.2013 19:00, schrieb Vishvananda Ishaya: The qmp monitor command to mirror a disk was passing -1 for size along with the disk's backing file. This size of the resulting disk is the size of the backing file, which is incorrect if the disk has been resized. Therefore we should always

Re: [Qemu-devel] [PATCH] build: remove *.lo, *.a, *.la files from all subdirectories on make clean

2013-01-25 Thread Michal Privoznik
On 15.01.2013 09:49, Paolo Bonzini wrote: .lo files in stubs/, util/ and libcacard/ were not cleaned. Fix this. Cc: Blue Swirl blauwir...@gmail.com Reported-by: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile | 6 +++--- 1 file changed,

Re: [Qemu-devel] [PATCH][TRIVIAL] vl: coding style cleanups

2013-01-25 Thread Andreas Färber
Hi, Am 25.01.2013 00:04, schrieb Jesse Larrew: Reformat the option parsing code in main() and various supporting functions to conform to the QEMU coding style. Signed-off-by: Jesse Larrew jlar...@linux.vnet.ibm.com --- vl.c | 476

Re: [Qemu-devel] [PATCH][TRIVIAL] vl: coding style cleanups

2013-01-25 Thread Alexander Graf
Am 25.01.2013 um 10:47 schrieb Andreas Färber afaer...@suse.de: Hi, Am 25.01.2013 00:04, schrieb Jesse Larrew: Reformat the option parsing code in main() and various supporting functions to conform to the QEMU coding style. Signed-off-by: Jesse Larrew jlar...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [PATCH for 1.4 0/4] Simplify Makefile.objs some more

2013-01-25 Thread Paolo Bonzini
Il 25/01/2013 10:23, Andreas Färber ha scritto: As far as I understood, Andreas did not have any objections on the contents of this patch, which doesn't make things any better or worse from his point of view. I didn't receive a patch to fix cpu.c yet so I'll do that on my own. Paolo,

Re: [Qemu-devel] [PATCH][TRIVIAL] vl: coding style cleanups

2013-01-25 Thread Andreas Färber
Am 25.01.2013 10:56, schrieb Alexander Graf: Am 25.01.2013 um 10:47 schrieb Andreas Färber afaer...@suse.de: Am 25.01.2013 00:04, schrieb Jesse Larrew: Reformat the option parsing code in main() and various supporting functions to conform to the QEMU coding style. Signed-off-by: Jesse

Re: [Qemu-devel] [RFC 3/3] virtio-balloon: add auto-ballooning support

2013-01-25 Thread Amit Shah
On (Mon) 14 Jan 2013 [09:58:30], Luiz Capitulino wrote: On Sat, 12 Jan 2013 02:02:32 +0530 Amit Shah amit.s...@redhat.com wrote: Hi Luiz, On (Tue) 18 Dec 2012 [18:16:55], Luiz Capitulino wrote: The auto-ballooning feature automatically performs balloon inflate or deflate based on

Re: [Qemu-devel] [PATCH v2 00/12] qdev: correct reference counting

2013-01-25 Thread Paolo Bonzini
Il 25/01/2013 10:21, Andreas Färber ha scritto: Ping. I believe I was still waiting for an explanation why this qbus_init() function must be exposed rather than one _new() and one _initialize() function... Not getting feedback on that, I was already considering sending you an alternative

Re: [Qemu-devel] [PATCH for 1.4 0/4] Simplify Makefile.objs some more

2013-01-25 Thread Andreas Färber
Am 25.01.2013 11:08, schrieb Paolo Bonzini: Il 25/01/2013 10:23, Andreas Färber ha scritto: As far as I understood, Andreas did not have any objections on the contents of this patch, which doesn't make things any better or worse from his point of view. I didn't receive a patch to fix cpu.c

Re: [Qemu-devel] [PATCH v2 00/12] qdev: correct reference counting

2013-01-25 Thread Andreas Färber
Am 25.01.2013 11:25, schrieb Paolo Bonzini: Il 25/01/2013 10:21, Andreas Färber ha scritto: Ping. I believe I was still waiting for an explanation why this qbus_init() function must be exposed rather than one _new() and one _initialize() function... Not getting feedback on that, I was

Re: [Qemu-devel] [PATCH v2] target-arm: add Faraday ARMv5TE processors support

2013-01-25 Thread Peter Maydell
On 25 January 2013 07:18, Kuo-Jung Su dant...@gmail.com wrote: From: Kuo-Jung Su dant...@faraday-tech.com Faraday processors are a series of ARMv4/ARMv5TE clone. * ARMv4 series (FA526, FA626). All of them are now out-of-date, so I have no plan for them. * ARMv5TE series (FA606TE,

Re: [Qemu-devel] [PATCH] s390: Move hw files to hw/s390x

2013-01-25 Thread Peter Maydell
On 25 January 2013 00:18, Alexander Graf ag...@suse.de wrote: This moves all files only used by s390 system emulation to hw/s390x. This only makes sense if our plan is to rearrange the hw/ source files for all targets -- are we going to? Do files for arch-specific kvm devices go in hw/kvm/ or

Re: [Qemu-devel] [PATCH v2 00/12] qdev: correct reference counting

2013-01-25 Thread Paolo Bonzini
Il 25/01/2013 11:33, Andreas Färber ha scritto: Am 25.01.2013 11:25, schrieb Paolo Bonzini: Il 25/01/2013 10:21, Andreas Färber ha scritto: Ping. I believe I was still waiting for an explanation why this qbus_init() function must be exposed rather than one _new() and one _initialize()

Re: [Qemu-devel] [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/

2013-01-25 Thread Peter Maydell
On 24 January 2013 09:03, Andreas Färber afaer...@suse.de wrote: [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/ ...so why is a big code movement patch 1.4 material? I would prefer us to wait for 1.5, and then we have a reasonable chance of saying release goal for 1.5 is to have moved

[Qemu-devel] [PATCH V2 00/20] Multiqueue virtio-net

2013-01-25 Thread Jason Wang
Hello all: This seires is an update of last version of multiqueue virtio-net support. This series tries to brings multiqueue support to virtio-net through a multiqueue support tap backend and multiple vhost threads. To support this, multiqueue nic support were added to qemu. This is done by

[Qemu-devel] [PATCH V2 01/20] net: introduce qemu_get_queue()

2013-01-25 Thread Jason Wang
To support multiqueue, the patch introduce a helper qemu_get_queue() which is used to get the NetClientState of a device. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/cadence_gem.c|9 +++-- hw/dp8393x.c

[Qemu-devel] [PATCH V2 07/20] net: multiqueue support

2013-01-25 Thread Jason Wang
This patch adds basic multiqueue support for qemu. The idea is simple, an array of NetClientStates were introduced in NICState, parse_netdev() were extended to find and match all NetClientStates belongs to the backend and place their pointers in NICConf. Then qemu_new_nic can setup a N:N mapping

[Qemu-devel] [PATCH V2 13/20] tap: multiqueue support

2013-01-25 Thread Jason Wang
Recently, linux support multiqueue tap which could let userspace call TUNSETIFF for a signle device many times to create multiple file descriptors as independent queues. User could also enable/disabe a specific queue through TUNSETQUEUE. The patch adds the generic infrastructure to create

[Qemu-devel] [PATCH V2 15/20] virtio: introduce virtio_del_queue()

2013-01-25 Thread Jason Wang
Some device (such as virtio-net) needs the ability to destroy or re-order the virtqueues, this patch adds a helper to do this. Signed-off-by: Jason Wang jasowang --- hw/virtio.c |9 + hw/virtio.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c

[Qemu-devel] [PATCH V2 14/20] vhost: multiqueue support

2013-01-25 Thread Jason Wang
This patch lets vhost support multiqueue. The idea is simple, just launching multiple threads of vhost and let each of vhost thread processing a subset of the virtqueues of the device. After this change each emulated device can have multiple vhost threads as its backend. To do this, a virtqueue

[Qemu-devel] [PATCH V2 19/20] virtio-net: migration support for multiqueue

2013-01-25 Thread Jason Wang
This patch add migration support for multiqueue virtio-net. Instead of bumping the version, we conditionally send the info of multiqueue only when the device support more than one queue to maintain the backward compatibility. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio-net.c |

[Qemu-devel] [PATCH V2 20/20] virtio-net: compat multiqueue support

2013-01-25 Thread Jason Wang
Disable multiqueue support for pre 1.4. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/pc_piix.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 0a6923d..7bc3563 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -297,6 +297,10 @@

Re: [Qemu-devel] [PATCH] s390: Move hw files to hw/s390x

2013-01-25 Thread Alexander Graf
Am 25.01.2013 um 11:40 schrieb Peter Maydell peter.mayd...@linaro.org: On 25 January 2013 00:18, Alexander Graf ag...@suse.de wrote: This moves all files only used by s390 system emulation to hw/s390x. This only makes sense if our plan is to rearrange the hw/ source files for all targets

Re: [Qemu-devel] [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/

2013-01-25 Thread Alexander Graf
Am 25.01.2013 um 11:43 schrieb Peter Maydell peter.mayd...@linaro.org: On 24 January 2013 09:03, Andreas Färber afaer...@suse.de wrote: [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/ ...so why is a big code movement patch 1.4 material? I would prefer us to wait for 1.5, and

Re: [Qemu-devel] [Openstack][Sheepdog][Libvirt][Qemu]Add a new block storage driver by Libvirt/Qemu way for Openstack

2013-01-25 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:04 PM, MORITA Kazutaka morita.kazut...@gmail.com wrote: [...] If you do the above work, I think you can use your file system with OpenStack. But I suggest doing them step by step. If your file system is not supported in QEMU, I think libvirt won't support it. If

[Qemu-devel] [PATCH V2 18/20] virtio-net: multiqueue support

2013-01-25 Thread Jason Wang
This patch implements both userspace and vhost support for multiple queue virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of VirtIONetQueue to VirtIONet. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio-net.c | 317

Re: [Qemu-devel] [PATCH] s390: Move hw files to hw/s390x

2013-01-25 Thread Paolo Bonzini
Il 25/01/2013 11:40, Peter Maydell ha scritto: On 25 January 2013 00:18, Alexander Graf ag...@suse.de wrote: This moves all files only used by s390 system emulation to hw/s390x. This only makes sense if our plan is to rearrange the hw/ source files for all targets -- are we going to? Do

[Qemu-devel] [PATCH V2 04/20] net: introduce qemu_find_net_clients_except()

2013-01-25 Thread Jason Wang
In multiqueue, all NetClientState that belongs to the same netdev or nic has the same id. So this patches introduces an helper qemu_find_net_clients_except() which finds all NetClientState with the same id. This will be used by multiqueue networking. Signed-off-by: Jason Wang jasow...@redhat.com

Re: [Qemu-devel] [PATCH for-1.4 v4 01/12] ppc: Move Mac machines to hw/ppc/

2013-01-25 Thread Alexander Graf
On 25.01.2013, at 10:36, Andreas Färber wrote: Am 24.01.2013 10:03, schrieb Andreas Färber: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/cuda.c |2 +- hw/grackle_pci.c |2 +- hw/heathrow_pic.c |

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/6] target-ppc: Synchronize more SPRs to KVM using ONE_REG interface

2013-01-25 Thread Alexander Graf
On 25.01.2013, at 03:39, David Gibson wrote: On Thu, Jan 24, 2013 at 05:32:42PM +0100, Alexander Graf wrote: On 24.01.2013, at 04:20, David Gibson wrote: There are currently a batch of occasionally used SPRs whose state we do not synchronize with KVM. This might be a problem for

Re: [Qemu-devel] [RFC 1/3] qtest: Prepare hypercall support

2013-01-25 Thread Alexander Graf
On 23.01.2013, at 11:01, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- include/sysemu/qtest.h |2 ++ qtest.c| 26 ++ stubs/Makefile.objs|1 + stubs/qtest.c | 12 tests/libqtest.c |

[Qemu-devel] [PATCH V2 09/20] tap: factor out common tap initialization

2013-01-25 Thread Jason Wang
This patch factors out the common initialization of tap into a new helper net_init_tap_one(). This will be used by multiqueue tap patches. Signed-off-by: Jason Wang jasow...@redhat.com --- net/tap.c | 130 ++--- 1 files changed, 73

Re: [Qemu-devel] [PATCH for-1.4] s390-virtio: Check for NULL device in reset hypercall

2013-01-25 Thread Alexander Graf
On 23.01.2013, at 10:24, Andreas Färber wrote: s390_virtio_bus_find_mem() may return a NULL VirtIOS390Device. If called with, e.g., args[0] == 0, this leads to a segfault. Fix this by adding error handling as done for other hypercalls. Present since baf0b55a9e57b909b1f8b0f732c0b10242867418

[Qemu-devel] [PATCH V2 05/20] net: introduce qemu_net_client_setup()

2013-01-25 Thread Jason Wang
This patch separates the setup of NetClientState from its allocation, this will allow allocating an arrays of NetClientState and does the initialization one by one which is what multiqueue needs. Signed-off-by: Jason Wang jasow...@redhat.com --- net/net.c | 29 +++-- 1

Re: [Qemu-devel] [PATCH 1/8] fw_cfg: Replace debug prints by tracepoints

2013-01-25 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 11:46:28AM +0100, Peter Lieven wrote: Am 24.01.2013 um 11:41 schrieb Andreas Färber afaer...@suse.de: Am 24.01.2013 11:32, schrieb Markus Armbruster: Peter Lieven p...@dlhnet.de writes: Latest git doesn't compile with this patch: hw/fw_cfg.c: In function

[Qemu-devel] [PATCH V2 16/20] virtio: add a queue_index to VirtQueue

2013-01-25 Thread Jason Wang
Add a queue_index to VirtQueue and a helper to fetch it, this could be used by multiqueue supported device. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio.c |8 hw/virtio.h |1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c

[Qemu-devel] [PATCH V2 10/20] tap: add Linux multiqueue support

2013-01-25 Thread Jason Wang
This patch add basic multiqueue support for Linux. When multiqueue is needed, we will first check whether kernel support multiqueue tap before creating more queues. Two new functions tap_fd_enable() and tap_fd_disable() were introduced to enable and disable a specific queue. Since the multiqueue

[Qemu-devel] [PATCH V2 12/20] tap: introduce a helper to get the name of an interface

2013-01-25 Thread Jason Wang
This patch introduces a helper tap_get_ifname() to get the device name of tap device. This is needed when ifname is unspecified in the command line and qemu were asked to create tap device by itself. In this situation, the name were allocated by kernel, so if multiqueue is asked, we need to fetch

[Qemu-devel] [PATCH V2 17/20] virtio-net: separate virtqueue from VirtIONet

2013-01-25 Thread Jason Wang
To support multiqueue virtio-net, the first step is to separate the virtqueue related fields from VirtIONet to a new structure VirtIONetQueue. The following patches will add an array of VirtIONetQueue to VirtIONet based on this patch. Signed-off-by: Jason Wang jasow...@redhat.com ---

Re: [Qemu-devel] [PATCH v3 12/12] qom: remove object_delete

2013-01-25 Thread Andreas Färber
Am 25.01.2013 12:47, schrieb Paolo Bonzini: This is now unused. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/qom/object.h | 17 ++--- qom/object.c | 7 --- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/include/qom/object.h

[Qemu-devel] [PATCH V2 08/20] tap: import linux multiqueue constants

2013-01-25 Thread Jason Wang
Import multiqueue constants from if_tun.h from 3.8-rc3. A new ifr flag IFF_MULTI_QUEUE were introduced to create a multiqueue backend by calling TUNSETIFF with the this flag and with the same interface name many times. A new ioctl TUNSETQUEUE were introduced. When doing this ioctl with

[Qemu-devel] [PATCH V2 11/20] tap: support enabling or disabling a queue

2013-01-25 Thread Jason Wang
This patch introduce a new bit - enabled in TAPState which tracks whether a specific queue/fd is enabled. The tap/fd is enabled during initialization and could be enabled/disabled by tap_enalbe() and tap_disable() which calls platform specific helpers to do the real work. Polling of a tap fd can

Re: [Qemu-devel] [PATCH v3 01/12] qdev: remove duplication between qbus_create and qbus_create_inplace

2013-01-25 Thread Andreas Färber
Am 25.01.2013 12:46, schrieb Paolo Bonzini: Move the common part to qbus_realize. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Acked-by: Andreas Färber afaer...@suse.de Thanks, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild,

[Qemu-devel] [PATCH v3 11/12] cpu: do not use object_delete

2013-01-25 Thread Paolo Bonzini
CPUs are never added to the composition tree, so delete is achieved simply by removing the last references to them. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- linux-user/syscall.c| 2 +- target-i386/helper.c| 4 ++-- target-ppc/translate_init.c | 2 +-

[Qemu-devel] [PATCH v3 01/12] qdev: remove duplication between qbus_create and qbus_create_inplace

2013-01-25 Thread Paolo Bonzini
Move the common part to qbus_realize. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/qdev.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 9761016..59dce62 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -390,14 +390,16 @@

Re: [Qemu-devel] [PATCH v3 02/12] pci: use qbus_create in pci_bus_new

2013-01-25 Thread Andreas Färber
Am 25.01.2013 12:46, schrieb Paolo Bonzini: Remove knowledge of QOM innards. The common part of pci_bus_new and pci_bus_new_inplace is moved to a new function pci_bus_init. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/pci/pci.c | 21 +++-- 1 file changed, 15

[Qemu-devel] [PATCH V2 06/20] net: introduce NetClientState destructor

2013-01-25 Thread Jason Wang
To allow allocating an array of NetClientState and free it once, this patch introduces destructor of NetClientState. Which could do type specific free, which could be used by multiqueue to free the array once. Signed-off-by: Jason Wang jasow...@redhat.com --- include/net/net.h |2 ++

Re: [Qemu-devel] [PATCH v3 03/12] qom: preserve object while unparenting it

2013-01-25 Thread Andreas Färber
Am 25.01.2013 12:46, schrieb Paolo Bonzini: Avoid that the object disappears after it's deleted from the QOM composition tree, in case that was the only reference to it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Thought I had already added Acked-by: Andreas Färber afaer...@suse.de

  1   2   3   4   >