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

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

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

2013-03-11 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 8/9] tcg-arm: Implement deposit for armv7

2013-03-11 Thread Richard Henderson
We have BFI and BFC available for implementing it. Signed-off-by: Richard Henderson --- 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 b/tcg/arm/tcg-target.c inde

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

2013-03-11 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 --- tcg/arm/tcg-target.c | 25 +++-- 1 file ch

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

2013-03-11 Thread Richard Henderson
This allows us to emit CMN instructions. Signed-off-by: Richard Henderson --- 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 100644 --- a/tcg/ar

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

2013-03-11 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, #0xf00

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

2013-03-11 Thread Richard Henderson
This allows the generation of RSB instructions. Signed-off-by: Richard Henderson --- 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 --- a/tcg/arm/tcg-target.c +++

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

2013-03-11 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 --- tcg/arm/tcg-target.c | 106 -

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

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

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

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

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

2013-03-11 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 v7 12/24] hw/arm: add FTNANDC021 nand flash controller support

2013-03-11 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 v2 00/27] Modernize tcg/ppc64

2013-03-11 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 V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-11 Thread Asias He
From: Paolo Bonzini 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 support (nab) -

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

2013-03-11 Thread Asias He
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 199 +-- hw/virtio-scsi.h | 127 include/qemu/osdep.h | 4 ++ 3 files changed, 180 insertions(+), 150 deletions(-) diff --git a/hw/

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

2013-03-11 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 v7 20/24] hw/arm: add FTTSC010 touchscreen controller support

2013-03-11 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 23/24] hw/arm: add FTTMR010 timer support

2013-03-11 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 v7 19/24] hw/arm: add FTLCDC200 LCD controller support

2013-03-11 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 v7 21/24] hw/arm: add FTSDC010 MMC/SD controller support

2013-03-11 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 | 358 ++

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

2013-03-11 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 v7 16/24] hw/arm: add FTSSP010 multi-function controller support

2013-03-11 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

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

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

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

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su Signed-off-by: Kuo-Jung Su --- 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 affcc96..64cbb04 100644 --- a/include/qemu/bitops.h

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

2013-03-11 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 v7 22/24] hw/arm: add FTMAC110 10/100Mbps ethernet support

2013-03-11 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 v7 14/24] hw: add AudioCodecClass for wm87xx audio class abstration.

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su Signed-off-by: Kuo-Jung Su --- hw/Makefile.objs |1 + hw/arm/spitz.c |9 +++-- hw/arm/z2.c|9 +++-- hw/audio_codec.c | 81 +++ hw/audio_codec.h | 56 ++

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

2013-03-11 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 v7 15/24] hw: add WM8731 audio codec support

2013-03-11 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 16-bit I2S support by default. Signed-off-by: Kuo-Jung Su ---

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

2013-03-11 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 | 264 + hw/arm/ftpwmtmr0

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

2013-03-11 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

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

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c | 10 +++ hw/arm/ftahbc020.c| 209 +

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

2013-03-11 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 | 216 + hw/arm/fti2c010.h | 71 +++

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

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- tests/Makefile|3 + tests/ftrtc0

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

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |9 +++ hw/arm/ftddrii030.c | 1

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

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- target-arm/cpu.c | 52 +++ target-arm/cpu.h |6 +++- target-arm

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

2013-03-11 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 v7 02/24] hw/arm: add Faraday a369 SoC platform support

2013-03-11 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 |3 + hw/arm/faraday.h | 59 hw/a

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

2013-03-11 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 v7 00/24] hw/arm: add Faraday A369 SoC platform support

2013-03-11 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 are available at my Goog

Re: [Qemu-devel] [with today's upstream git] Invoking QMP via telnet fails to start VNC

2013-03-11 Thread Kashyap Chamarthy
On Mon, Mar 11, 2013 at 2:51 PM, Markus Armbruster wrote: > Kashyap Chamarthy writes: > >> Heya, >> >> After building qemu, I tried to invoke QMP by via telnet: > > Exact version, please. Commit hash if you build from git. > >> Build: >> == >> #./configure --target-list=x86_64-softmmu -

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-11 Thread Wenchao Xia
于 2013-3-12 1:49, Eric Blake 写道: On 03/11/2013 05:23 AM, Wenchao Xia wrote: This patch adds block/snapshot.c and then moves the function there. It also fixes small code style errors reported by check script. Signed-off-by: Wenchao Xia --- block/Makefile.objs |1 + block/snapshot

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

2013-03-11 Thread Peter Crosthwaite
Hi Kuo-Jung, On Wed, Mar 6, 2013 at 5:27 PM, Kuo-Jung Su wrote: > 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 > l

Re: [Qemu-devel] [PATCH V7 1/5] runstate: introduce prelaunch-migrate state

2013-03-11 Thread Jason Wang
On 03/11/2013 10:31 PM, Jiri Denemark wrote: > On Thu, Mar 07, 2013 at 08:37:17 -0700, Eric Blake wrote: >> On 03/07/2013 01:23 AM, Jason Wang wrote: >>> Sometimes, we need track the state when guest is just about to start after >>> migration. There's not a accurate state available which do this ac

[Qemu-devel] [PATCH 4/6] savevm: Add VMSTATE_STRUCT_VARRAY_POINTER_UINT32

2013-03-11 Thread David Gibson
Currently the savevm code contains a VMSTATE_STRUCT_VARRAY_POINTER_INT32 helper (a variably sized array with the number of elements in an int32_t), but not VMSTATE_STRUCT_VARRAY_POINTER_UINT32 (... with the number of elements in a uint32_t). This patch (trivially) fixes the deficiency. Signed-off

[Qemu-devel] [PATCH 6/6] savevm: Implement VMS_DIVIDE flag

2013-03-11 Thread David Gibson
The vmstate infrastructure includes a VMS_MULTIPY flag, and associated VMSTATE_VBUFFER_MULTIPLY helper macro. These can be used to save a variably sized buffer where the size in bytes of the buffer isn't directly accessible as a structure field, but an element count from which the size can be deri

[Qemu-devel] [PATCH 1/6] savevm: Add VMSTATE_UINT64_EQUAL helpers

2013-03-11 Thread David Gibson
The savevm code already includes a number of *_EQUAL helpers which act as sanity checks verifying that the configuration of the saved state matches that of the machine we're loading into to work. Variants already exist for 8 bit 16 bit and 32 bit integers, but not 64 bit integers. This patch fill

[Qemu-devel] [PATCH 5/6] savevm: Fix bugs in the VMSTATE_VBUFFER_MULTIPLY definition

2013-03-11 Thread David Gibson
The VMSTATE_BUFFER_MULTIPLY macro is misnamed - it actually specifies a variably sized buffer with VMS_VBUFFER, so should be named VMSTATE_VBUFFER_MULTIPLY. This patch fixes this (the macro had no current users under either name). In addition, unlike the other VMSTATE_VBUFFER variants, this macro

[Qemu-devel] [PATCH 2/6] savevm: Add VMSTATE_UINTTL_EQUAL helper

2013-03-11 Thread David Gibson
This adds an _EQUAL VMSTATE helper for target_ulongs, defined in terms of VMSTATE_UINT32_EQUAL or VMSTATE_UINT64_EQUAL as appropriate. Signed-off-by: David Gibson --- hw/hw.h |6 ++ include/migration/vmstate.h |7 +-- 2 files changed, 11 insertions(+), 2 delet

[Qemu-devel] [PATCH 3/6] savevm: Add VMSTATE_FLOAT64 helpers

2013-03-11 Thread David Gibson
The current savevm code includes VMSTATE helpers for a number of commonly used data types, but not for the float64 type used by the internal floating point emulation code. This patch fixes the deficiency. Signed-off-by: David Gibson --- include/migration/vmstate.h | 15 +++ savevm

[Qemu-devel] [0/6] Simple extensions to VMStateDescription features

2013-03-11 Thread David Gibson
Jean, Anthony, This series contains a bunch of straightforward extensions to the suite of functions and macros for using in VMStateDescription structures. Mostly these fill fairly obvious gaps in the existing set, though the last adds genuinely new feature (but is still pretty simple). Obviously

[Qemu-devel] migrate cancel bug in latest qemu upstream

2013-03-11 Thread Amos Kong
#x27;vm0' -nodefaults -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130311-182651-kfslPrch,server,nowait -device isa-serial,chardev=serial_id_serial1 -chardev socket,id=seabioslog_id_20130311-182651-kfslPrch,path=/tmp/seabios-20130311-182651-kfslPrch,server,nowait -device isa-d

[Qemu-devel] [PATCH] Fix TAGS creation

2013-03-11 Thread David Gibson
Currently the Makefile creates TAGS for emacs with the command: find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags That works only if xargs ends up invoking etags just once. If xargs runs etags several times, as it will if there are enough files, then the later invocations will overwri

Re: [Qemu-devel] [PATCH 1/2] baum: fix build

2013-03-11 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 00/20] chardev flow control

2013-03-11 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL] seabios: update to 1.7.2.1

2013-03-11 Thread Anthony Liguori
Pulled. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL] virtio,vhost,pci,e1000

2013-03-11 Thread Anthony Liguori
Pulled. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH build-breaker] arm: fix compilation with CONFIG_FDT

2013-03-11 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH 8/9] qga: implement qmp_guest_get_vcpus() for Linux with sysfs

2013-03-11 Thread Michael Roth
From: Laszlo Ersek Signed-off-by: Laszlo Ersek Reviewed-by: Eric Blake Signed-off-by: Michael Roth --- qga/commands-posix.c | 146 +++--- 1 file changed, 140 insertions(+), 6 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c in

[Qemu-devel] [PATCH 7/9] qga: introduce guest-get-vcpus / guest-set-vcpus with stubs

2013-03-11 Thread Michael Roth
From: Laszlo Ersek Signed-off-by: Laszlo Ersek Reviewed-by: Eric Blake Signed-off-by: Michael Roth --- qga/commands-posix.c | 12 + qga/commands-win32.c | 12 + qga/qapi-schema.json | 72 ++ 3 files changed, 96 insertions(+

[Qemu-devel] [PATCH 6/9] qga: add guest-set-time command

2013-03-11 Thread Michael Roth
From: Lei Li Signed-off-by: Lei Li Reviewed-by: Eric Blake Reviewed-by: Michael Roth *added stub for w32 Signed-off-by: Michael Roth --- qga/commands-posix.c | 55 ++ qga/commands-win32.c |5 + qga/qapi-schema.json | 26 ++

[Qemu-devel] [PATCH 4/9] qemu-ga: use key-value store to avoid recycling fd handles after restart

2013-03-11 Thread Michael Roth
Hosts hold on to handles provided by guest-file-open for periods that can span beyond the life of the qemu-ga process that issued them. Since these are issued starting from 0 on every restart, we run the risk of issuing duplicate handles after restarts/reboots. As a result, users with a stale copy

[Qemu-devel] [PATCH 2/9] qemu-ga: fix confusing GAChannelMethod comparison

2013-03-11 Thread Michael Roth
From: Stefan Hajnoczi In commit 7868e26e5930f49ca942311885776b938dcf3b77 ("qemu-ga: add initial win32 support") support was added for qemu-ga on Windows using virtio-serial. Other channel methods (ISA serial and UNIX domain socket) are not supported on Windows. Signed-off-by: Stefan Hajnoczi S

[Qemu-devel] [PATCH 3/9] qemu-ga: make guest-sync-delimited available during fsfreeze

2013-03-11 Thread Michael Roth
We currently maintain a whitelist of commands that are safe during fsfreeze. During fsfreeze, we disable all commands that aren't part of that whitelist. guest-sync-delimited meets the criteria for being whitelisted, and is also required for qemu-ga clients that rely on guest-sync-delimited for re

[Qemu-devel] [PATCH 9/9] qga: implement qmp_guest_set_vcpus() for Linux with sysfs

2013-03-11 Thread Michael Roth
From: Laszlo Ersek Signed-off-by: Laszlo Ersek Reviewed-by: Eric Blake Signed-off-by: Michael Roth --- qga/commands-posix.c | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 17cedab..

[Qemu-devel] [PATCH 5/9] qga: add guest-get-time command

2013-03-11 Thread Michael Roth
From: Lei Li Signed-off-by: Lei Li Reviewed-by: Eric Blake Reviewed-by: Michael Roth *added stub for w32 Signed-off-by: Michael Roth --- qga/commands-posix.c | 16 qga/commands-win32.c |6 ++ qga/qapi-schema.json | 13 + 3 files changed, 35 insertio

[Qemu-devel] [PATCH 1/9] qga: cast to int for DWORD type

2013-03-11 Thread Michael Roth
From: Lei Li This patch fixes a compiler warning when cross-build: qga/service-win32.c: In function 'printf_win_error': qga/service-win32.c:32:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'DWORD' [-Wformat] Signed-off-by: Lei Li Sign

[Qemu-devel] [PULL 0/9] qemu-ga fixes and {get, set}-{time, vcpus} commands

2013-03-11 Thread Michael Roth
The following changes since commit fe3cc14fd83e0c8f376d849ccd0fc3433388442d: Merge remote-tracking branch 'quintela/migration.next' into staging (2013-03-11 08:30:34 -0500) are available in the git repository at: git://github.com/mdroth/qemu.git qga-pull-3-11-2013 for you to fetch changes

Re: [Qemu-devel] [PULL] linux-user updates

2013-03-11 Thread Anthony Liguori
Peter Maydell writes: > On 11 March 2013 19:27, wrote: >> From: Riku Voipio >> >> Hi, >> >> This is my patch queue for linux-user. Please pull. >> >> The following changes since commit fa3889162ff724d09eb6b6bd06ba54769100a77f: >> >> Merge remote-tracking branch 'origin/master' into staging (

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

2013-03-11 Thread Andreas Färber
Hi, 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 for doing this is TransformProcessType(), > which came in in Mac

[Qemu-devel] [PATCH] linux-headers: Update to v3.9-rc2

2013-03-11 Thread Alex Williamson
Unedited scripts/update-linux-headers.sh run against v3.9-rc2 tag Signed-off-by: Alex Williamson --- linux-headers/linux/vfio.h |9 + 1 file changed, 9 insertions(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index f787b72..e094121 100644 --- a/linux-header

Re: [Qemu-devel] [RFC] slirp: Adding IPv6 NDP autoconfiguration

2013-03-11 Thread Guillaume Subiron
I forgot to say, this patch is not rebased yet. Based on commit 7d2a929feba319c18603e324b1750830d6c8b7a1 Le Mon, Mar 11, 2013 at 07:26:17PM +0100, Guillaume Subiron claviotta : > Hi, > > We are developing IPv6 in Qemu -net user case, starting with ICMPv6 > NDP. > > With this patch, a Debian g

Re: [Qemu-devel] [PULL] linux-user updates

2013-03-11 Thread Peter Maydell
On 11 March 2013 19:27, wrote: > From: Riku Voipio > > Hi, > > This is my patch queue for linux-user. Please pull. > > The following changes since commit fa3889162ff724d09eb6b6bd06ba54769100a77f: > > Merge remote-tracking branch 'origin/master' into staging (2013-03-10 > 20:39:17 -0500) > > a

[Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-11 Thread Alex Williamson
When creating capabilities devices need to know what kind of bus they're on. If we're on an express bus without a parent_dev, then we're on the root complex and need to use integrated endpoints rather than standard endpoints. When we're on an express bus with a parent_dev we need to negotiate lin

Re: [Qemu-devel] [RFC PATCH RDMA support v3: 05/10] RDMA connection establishment (migration-rdma.c).

2013-03-11 Thread Michael R. Hines
Paolo, I just pulled your changes from master. Will get started on merging with all the new comments - Michael On 03/11/2013 09:41 AM, Paolo Bonzini wrote: Il 11/03/2013 05:33, michael.r.hines.mrhi...@linux.vnet.ibm.com ha scritto: From: "Michael R. Hines" Use 'migrate rdma:host:port' t

[Qemu-devel] [PATCH] linux-user: identify running binary in /proc/$$/exe

2013-03-11 Thread Andreas Schwab
Some applications like to test /proc/$$/exe (where $$ is the own pid) to find out who they are. Handle it like /proc/self/exe. Also, do the same handling in readlinkat. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 22 ++ 1 file changed, 18 insertions(+), 4 delet

Re: [Qemu-devel] [PATCH v4] qdev: DEVICE_DELETED event

2013-03-11 Thread Michael S. Tsirkin
On Mon, Mar 11, 2013 at 02:26:58PM -0500, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Fri, Mar 08, 2013 at 07:36:28AM -0600, Anthony Liguori wrote: > >> Markus Armbruster writes: > >> > >> > "Michael S. Tsirkin" writes: > >> > > >> >> On Thu, Mar 07, 2013 at 08:57:52PM +0100

[Qemu-devel] [PATCH 08/11] linux-user: make bogus negative iovec lengths fail EINVAL

2013-03-11 Thread riku . voipio
From: Peter Maydell If the guest passes us a bogus negative length for an iovec, fail EINVAL rather than proceeding blindly forward. This fixes some of the error cases tests for readv and writev in the LTP. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 06/11] linux-user: Add more sparc syscall numbers

2013-03-11 Thread riku . voipio
From: Dillon Amburgey Signed-off-by: Dillon Amburgey Signed-off-by: Riku Voipio --- linux-user/sparc/syscall_nr.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc/syscall_nr.h index 061711c..534e6e9 100644 --- a/linux-user/sparc/syscall_

[Qemu-devel] [PATCH 11/11] linux-user/syscall.c: Don't warn about unimplemented get_robust_list

2013-03-11 Thread riku . voipio
From: Peter Maydell The nature of the kernel ABI for the get_robust_list and set_robust_list syscalls means we cannot implement them in QEMU. Make get_robust_list silently return ENOSYS rather than using the default "print message and then fail ENOSYS" code path, in the same way we already do for

[Qemu-devel] [PATCH 09/11] linux-user: Implement sendfile and sendfile64

2013-03-11 Thread riku . voipio
From: Peter Maydell Implement the sendfile and sendfile64 syscalls. This implementation passes all the LTP test cases for these syscalls. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure| 17 linux-user/syscal

[Qemu-devel] [PATCH 07/11] linux-user: Fix layout of usage table to account for option text

2013-03-11 Thread riku . voipio
From: Peter Maydell The linux-user usage message attempts to line up the columns in its table by calculating the maximum width of any item in them. However for the 'Argument' column it was only accounting for the length of the option switch (eg "-d"), not the additional example text (eg "item[,..

[Qemu-devel] [PATCH 01/11] linux-user: Add Alpha socket constants

2013-03-11 Thread riku . voipio
From: Dillon Amburgey Without these, some networking programs will not work Signed-off-by: Dillon Amburgey Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/socket.h | 69 +++ 1 file changed, 69 insertions(+) diff --gi

[Qemu-devel] [PULL] linux-user updates

2013-03-11 Thread riku . voipio
From: Riku Voipio Hi, This is my patch queue for linux-user. Please pull. The following changes since commit fa3889162ff724d09eb6b6bd06ba54769100a77f: Merge remote-tracking branch 'origin/master' into staging (2013-03-10 20:39:17 -0500) are available in the git repository at: git://git.

[Qemu-devel] [PATCH 03/11] linux-user/syscall.c: handle FUTEX_WAIT_BITSET in do_futex

2013-03-11 Thread riku . voipio
From: John Rigby Upstream libc has recently changed to start using FUTEX_WAIT_BITSET instead of FUTEX_WAIT and this is causing do_futex to return -TARGET_ENOSYS. Pass bitset in val3 to sys_futex which will be ignored by kernel for the FUTEX_WAIT case. Signed-off-by: John Rigby Signed-off-by: R

[Qemu-devel] [PATCH 05/11] linux-user: Support setgroups syscall with no groups

2013-03-11 Thread riku . voipio
From: Dillon Amburgey Signed-off-by: Dillon Amburgey Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c7fcfc0..1729446

[Qemu-devel] [PATCH 10/11] linux-user: Implement accept4

2013-03-11 Thread riku . voipio
From: Peter Maydell Implement the accept4 syscall (which is identical to accept but has an additional flags argument). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/syscall.c | 39 +++ 1 file change

[Qemu-devel] [PATCH 04/11] linux-user: fix futex strace of FUTEX_CLOCK_REALTIME

2013-03-11 Thread riku . voipio
From: John Rigby Handle same as existing FUTEX_PRIVATE_FLAG. Signed-off-by: John Rigby Signed-off-by: Riku Voipio --- linux-user/strace.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/strace.c b/linux-user/strace.c index 9a18146..0fbae3c 100644 --- a/linux-user/strac

[Qemu-devel] [PATCH 02/11] linux-user: improve print_fcntl()

2013-03-11 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/strace.c | 97 +-- 1 file changed, 79 insertions(+), 18 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 4e91a6e..9a18146 100

Re: [Qemu-devel] [PATCH v4] qdev: DEVICE_DELETED event

2013-03-11 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Fri, Mar 08, 2013 at 07:36:28AM -0600, Anthony Liguori wrote: >> Markus Armbruster writes: >> >> > "Michael S. Tsirkin" writes: >> > >> >> On Thu, Mar 07, 2013 at 08:57:52PM +0100, Markus Armbruster wrote: >> >>> "Michael S. Tsirkin" writes: >> >>> >> >>> >

Re: [Qemu-devel] KVM call agenda for 2013-03-12

2013-03-11 Thread Juan Quintela
Juan Quintela wrote: > Hi > > Please send in any agenda topics you are interested in. Heads up!! I am just told that we are back at the Time Zone shuffling time. US and Canada has changed the to Time Saving this weekend, and then for almost everybody else the meeting is 1h sooner. For instance

[Qemu-devel] [RFC] slirp: Adding IPv6 NDP autoconfiguration

2013-03-11 Thread Guillaume Subiron
Hi, We are developing IPv6 in Qemu -net user case, starting with ICMPv6 NDP. With this patch, a Debian guest can perform autoconfiguration using NDP. We have added a full IPv6->ICMPv6->NDP stack starting from slirp_input and based on slirp IPv6 implementation. In the end, SLIRP responds to Rou

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

2013-03-11 Thread Peter Lieven
Am 11.03.2013 18:07, schrieb Paolo Bonzini: > Il 11/03/2013 18:06, ronnie sahlberg ha scritto: >> Even more efficient might be to do bitwise instead of logical or >> if (tmp | d1 | d2 | d3) { >> that should remove 3 of the 4 conditional jumps >> and should become 3 bitwise ors and one c

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

2013-03-11 Thread 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 for doing this is TransformProcessType(), which came in in MacOSX 10.3 apparently. Do we still need to support 10.2 and

[Qemu-devel] [PATCHv5 1/3] qdev: DEVICE_DELETED event

2013-03-11 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. Signed-off-by: Michael S. Tsirkin --- QMP/qmp-events.txt| 17 + hw/qdev.c | 6

[Qemu-devel] [PATCHv5 3/3] qmp: add path to device_deleted event

2013-03-11 Thread Michael S. Tsirkin
Add QOM path to device deleted event. It now becomes useful to report it for devices which don't have an ID assigned. Signed-off-by: Michael S. Tsirkin --- QMP/qmp-events.txt | 9 + hw/qdev.c | 11 --- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/QMP

[Qemu-devel] [PATCHv5 2/3] qom: pass original path to unparent method

2013-03-11 Thread Michael S. Tsirkin
We need to know the original path since unparenting loses this state. Signed-off-by: Michael S. Tsirkin --- hw/qdev.c| 4 ++-- include/qom/object.h | 3 ++- qom/object.c | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 393e8

[Qemu-devel] [PATCHv5 0/3] DEVICE_DELETED event

2013-03-11 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. First patch only adds the event for devices with ID, second path adds it for all devices and adds a path fields. Split th

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

2013-03-11 Thread Ján Tomko
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 in the spec (which just happens to sit in qe

[Qemu-devel] [PATCH 0/2 v3] [S390-KVM] Regsync: Allow selective runtime register synchronization

2013-03-11 Thread Jason J. Herne
Selective KVm Register synchronization work for S390. This is re-work of the patch set submitted here: https://lists.nongnu.org/archive/html/qemu-devel/2013-01/msg01631.html The selective runtime register sync code has been made S390 specific.

  1   2   3   >