Re: [Qemu-devel] [PATCH 0/2] Pointer properties and device_add

2013-12-02 Thread Marcel Apfelbaum
On Sun, 2013-12-01 at 16:14 +0100, Andreas Färber wrote: Am 01.12.2013 14:13, schrieb Marcel Apfelbaum: On Fri, 2013-11-29 at 10:43 +0100, arm...@redhat.com wrote: From: Markus Armbruster arm...@redhat.com Pointer properties can be set only by code, not by device_add. A device with a

Re: [Qemu-devel] [PATCH 0/2] Pointer properties and device_add

2013-12-02 Thread Marcel Apfelbaum
On Mon, 2013-12-02 at 08:30 +0100, Markus Armbruster wrote: Andreas Färber afaer...@suse.de writes: Am 01.12.2013 14:13, schrieb Marcel Apfelbaum: On Fri, 2013-11-29 at 10:43 +0100, arm...@redhat.com wrote: From: Markus Armbruster arm...@redhat.com Pointer properties can be set only

Re: [Qemu-devel] [PATCH 06/17] migration-local: add send_pipefd()

2013-12-02 Thread Lei Li
On 11/29/2013 07:14 PM, Daniel P. Berrange wrote: On Fri, Nov 29, 2013 at 06:06:13PM +0800, Lei Li wrote: This patch adds send_pipefd() to pass the pipe file descriptor to destination process. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration-local.c | 46

[Qemu-devel] [PATCH] adlib: fix patching of port I/O addresses

2013-12-02 Thread Paolo Bonzini
Commit 2b21fb5 (adlib: sort offsets in portio registration, 2013-08-14) fixed the offsets in adlib_portio_list, but forgot the matching indices in adlib_realizefn. Reported at http://virtuallyfun.superglobalmegacorp.com/?p=3616 by neozeed. Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

Re: [Qemu-devel] [PATCH 0/17 v4] Localhost migration with side channel for ram

2013-12-02 Thread Lei Li
On 11/29/2013 06:26 PM, Paolo Bonzini wrote: Il 29/11/2013 11:06, Lei Li ha scritto: This patch series tries to introduce a mechanism using side channel pipe for RAM via SCM_RIGHTS with unix domain socket protocol migration. This side channel is used for the page flipping by vmsplice, which is

[Qemu-devel] [PATCH 02/17] migration: add migrate_unix_page_flipping()

2013-12-02 Thread Lei Li
Add migrate_unix_page_flipping() to check if MIGRATION_CAPABILITY_X_UNIX_PAGE_FLIPPING is enabled. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- include/migration/migration.h |3 +++ migration.c |9 + 2 files

[Qemu-devel] [PATCH 01/17] QAPI: introduce migration capability x_unix_page_flipping

2013-12-02 Thread Lei Li
Introduce x_unix_page_flipping to MigrationCapability for localhost migration. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qapi-schema.json | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH 04/17] migration-local: add QEMUFileLocal with socket based QEMUFile

2013-12-02 Thread Lei Li
This patch adds QEMUFileLocal with copy of socket based QEMUFile, will be used as the basis code for Unix socket protocol migration and page flipping migration. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- Makefile.target |1 + migration-local.c | 123

[Qemu-devel] [PATCH 0/17 v5] Localhost migration with side channel for ram

2013-12-02 Thread Lei Li
This patch series tries to introduce a mechanism using side channel pipe for RAM via SCM_RIGHTS with unix domain socket protocol migration. This side channel is used for the page flipping by vmsplice, which is the internal mechanism for localhost migration that we are trying to add to QEMU. The

[Qemu-devel] [PATCH 05/17] migration-local: introduce qemu_fopen_socket_local()

2013-12-02 Thread Lei Li
Add qemu_fopen_socket_local() to open QEMUFileLocal introduced earlier. It will create a pipe in write mode if unix_page_flipping is enabled, adjust qemu_local_close() to close pipe as well. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- include/migration/qemu-file.h |2 +

[Qemu-devel] [PATCH 03/17] qmp-command.hx: add missing docs for migration capabilites

2013-12-02 Thread Lei Li
Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qmp-commands.hx |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index fba15cd..0df08c0 100644 --- a/qmp-commands.hx +++

[Qemu-devel] [PATCH 06/17] migration-local: add send_pipefd()

2013-12-02 Thread Lei Li
This patch adds send_pipefd() to pass the pipe file descriptor to destination process. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration-local.c | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/migration-local.c

[Qemu-devel] [PATCH 08/17] migration-local: override save_page for page transmit

2013-12-02 Thread Lei Li
This patch implements save_page callback for the outside of page flipping. It will write the address of the page on the Unix socket and flip the page data on pipe by vmsplice(). Every page address would have a header flag RAM_SAVE_FLAG_HOOK, which will trigger the load hook to receive it in

[Qemu-devel] [PATCH 09/17] savevm: adjust ram_control_save_page for page flipping

2013-12-02 Thread Lei Li
As callback save_page will always be opened by qemu_fopen_socket_local(), and without unix_page_flipping it will return RAM_SAVE_CONTROL_NOT_SUPP, it leads to a wrong qemu_file_set_error() based on the current logic. So this patch adds RAM_SAVE_CONTROL_NOT_SUPP to the check. Reviewed-by: Paolo

[Qemu-devel] [PATCH 12/17] migration-local: override hook_ram_load

2013-12-02 Thread Lei Li
Override hook_ram_load to receive the pipe file descriptor passed by source process and page address which will be extracted to vmsplice the page data from pipe. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration-local.c | 59 + 1

[Qemu-devel] [PATCH 07/17] save_page: replace block_offset with a MemoryRegion

2013-12-02 Thread Lei Li
This patch exports MemoryRegion to save_page hook, replacing argument ram_addr_t block_offset with a MemoryRegion suggested by Paolo Bonzini. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- arch_init.c |4 ++-- include/migration/migration.h |2 +-

[Qemu-devel] [PATCH 14/17] add new RunState RUN_STATE_MEMORY_STALE

2013-12-02 Thread Lei Li
Introduce new RunState RUN_STATE_MEMORY_STALE and add it to runstate_needs_reset(). Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qapi-schema.json |7 +-- vl.c | 13 - 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json

[Qemu-devel] [PATCH 17/17] hmp: better format for info migrate_capabilities

2013-12-02 Thread Lei Li
As there might be more capabilities introduced, better to display it in lines. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- hmp.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hmp.c b/hmp.c index 32ee285..dcfa2f9

[Qemu-devel] [PATCH 15/17] migration-unix: page flipping support on unix outgoing

2013-12-02 Thread Lei Li
Add page flipping support on unix outgoing part by stopping VM with the new RunState RUN_STATE_MEMORY_STALE before invoking migration if unix_page_flipping enabled. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration-unix.c | 11 +++ 1 files changed, 11 insertions(+), 0

[Qemu-devel] [PATCH 16/17] migration: adjust migration_thread() process for page flipping

2013-12-02 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index e012cd4..7e0ec33 100644 --- a/migration.c +++ b/migration.c @@ -582,7 +582,7 @@ static void *migration_thread(void *opaque)

[Qemu-devel] debugging TARGET_HAS_PRECISE_SMC

2013-12-02 Thread Anna Melekhova
Dear Sirs, Please could you advice me a technique to debug an erroneous self-code modification handling? Installing a guest Windows 7 x64 in qemu w/o KVM causes BSOD. I've found out that forcing EndOfBlock after each XOR instruction in Zero Page Thread code + disabled TARGET_HAS_PRECISE_SMC

Re: [Qemu-devel] [PATCH v2 3/4] i440fx-test: generate temporary firmware blob

2013-12-02 Thread Markus Armbruster
Laszlo Ersek ler...@redhat.com writes: On 11/29/13 14:57, Markus Armbruster wrote: Laszlo Ersek ler...@redhat.com writes: The blob is 64K in size and contains 0x00..0xFF repeatedly. The client code added to main() wouldn't make much sense in the long term. It helps with debugging and it

[Qemu-devel] [PATCH 10/17] add unix_msgfd_lookup() to callback get_buffer

2013-12-02 Thread Lei Li
The control message for exchange of pipe file descriptor should be received by recvmsg, and it might be eaten to stream file by qemu_recv() when receiving by two callbacks. So this patch adds unix_msgfd_lookup() to callback get_buffer as the only one receiver, where the pipe file descriptor would

Re: [Qemu-devel] [PATCH 06/17] migration-local: add send_pipefd()

2013-12-02 Thread Daniel P. Berrange
On Mon, Dec 02, 2013 at 05:19:06PM +0800, Lei Li wrote: This patch adds send_pipefd() to pass the pipe file descriptor to destination process. Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- migration-local.c | 46 ++ 1 files changed, 46

Re: [Qemu-devel] Are there any IOMMU emulation in QEMU for x86 platform

2013-12-02 Thread Knut Omang
On Wed, 2013-11-20 at 00:01 +, Jiang, Yunhong wrote: -Original Message- From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo Bonzini Sent: Tuesday, November 19, 2013 1:14 AM To: Jiang, Yunhong Cc: qemu-devel@nongnu.org; da...@gibson.dropbear.id.au;

[Qemu-devel] [PATCH 11/17] add argument ram_addr_t to hook_ram_load

2013-12-02 Thread Lei Li
Adds argument ram_addr_t to hook_ram_load, and replaces QEMURamHookFunc with QEMURamLoadHookFunc for it. With this new argument, it will allow cut almost half of the data transferred on the Unix socket using by page flipping migraton. Signed-off-by: Lei Li li...@linux.vnet.ibm.com ---

[Qemu-devel] [PATCH] intel-hda: fix position buffer

2013-12-02 Thread Gerd Hoffmann
Fix position buffer updates to use the correct stream offset. Without this patch both IN (record) and OUT (playback) streams will update the IN buffer positions. The linux kernel notices and complains: hda-intel: Invalid position buffer, using LPIB read method instead. The bug may also lead

Re: [Qemu-devel] [PATCH] adlib: fix patching of port I/O addresses

2013-12-02 Thread Gerd Hoffmann
On Mo, 2013-12-02 at 10:16 +0100, Paolo Bonzini wrote: Commit 2b21fb5 (adlib: sort offsets in portio registration, 2013-08-14) fixed the offsets in adlib_portio_list, but forgot the matching indices in adlib_realizefn. Reported at http://virtuallyfun.superglobalmegacorp.com/?p=3616 by

[Qemu-devel] [PATCH] spice: flip streaming video mode to off by default

2013-12-02 Thread Gerd Hoffmann
Video streaming detection heuristics in spice-server have problems keeping modern desktop animations (as done by gnome shell) and real video playback apart. This leads to jpeg compression artefacts on your desktop, due to spice using mjpeg to send what it thinks is a video stream. Turn off video

Re: [Qemu-devel] [PULL 23/41] qapi: Change BlockDirtyInfo to list

2013-12-02 Thread Kevin Wolf
Am 30.11.2013 um 21:38 hat Eric Blake geschrieben: On 11/29/2013 09:45 AM, Kevin Wolf wrote: From: Fam Zheng f...@redhat.com We have multiple dirty bitmaps in BDS now, switch QAPI to allow query it (BlockInfo.dirty_bitmaps), and also drop old BlockInfo.dirty. +++

Re: [Qemu-devel] [PATCHv2 00/14] Spice block device, ready-to-go patches

2013-12-02 Thread Gerd Hoffmann
On So, 2013-12-01 at 22:23 +0100, Marc-André Lureau wrote: Hi, This patch series is a split-off from the Spice block device RFC. http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02024.html It should include only non-controversial or simple patches. The most important change is the

Re: [Qemu-devel] [PATCHv2 00/14] Spice block device, ready-to-go patches

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 11:36, Gerd Hoffmann ha scritto: On So, 2013-12-01 at 22:23 +0100, Marc-André Lureau wrote: Hi, This patch series is a split-off from the Spice block device RFC. http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02024.html It should include only non-controversial or

[Qemu-devel] [PATCH] add pc-{i440fx,q35}-2.0 machine types

2013-12-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/i386/pc_piix.c | 14 -- hw/i386/pc_q35.c | 11 ++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 2111f01..9329f04 100644 --- a/hw/i386/pc_piix.c +++

Re: [Qemu-devel] [PATCH arm-devs v4 0/4] A9 global timer + mpcore trivials

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:34, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Hi Peter, Another spin of the ARM MPCore global timer work. Patches 1 2 are some trivial cleanup to MPCore I did along the way. Thanks, applied all to target-arm.next. -- PMM

Re: [Qemu-devel] [PATCH arm-devs v1 03/13] net/cadence_gem: Don't assert against 0 buffer address

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:10, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This has no real hardware analog. Leave the error message in is as it is almost certainly a guest error, but fallthrough to the expected behaviour. Maybe we should qemu_log_mask(LOG_GUEST_ERROR, ...) then?

Re: [Qemu-devel] [PATCH arm-devs v1 01/13] net/cadence_gem: Implement mac level loopback mode

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:09, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Cadence GEM has a MAC level loopback mode. Implement. Use the same basic operation as the already implemented PHY loopback. Reviewed-by: Peter Maydell peter.mayd...@linaro.org -- PMM

Re: [Qemu-devel] [PATCH arm-devs v1 02/13] net/cadence_gem: Update DMA rx descriptors as we process them

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:09, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: From: Edgar E. Iglesias edgar.igles...@xilinx.com We were updating the ownership bit of all descriptors if packets get split and written through several descriptors. Signed-off-by: Edgar E. Iglesias

Re: [Qemu-devel] [PATCH arm-devs v1 05/13] net/cadence_gem: Prefetch rx descriptors ASAP

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:11, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: The real hardware prefetches rx buffer descriptors ASAP and potentially throws relevant interrupts following the fetch even in the absence of a recieved packet. Reported-by: Deepika Dhamija deep...@xilinx.com

Re: [Qemu-devel] [PATCH arm-devs v1 06/13] net/cadence_gem: Implement RX descriptor match mode flags

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:12, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: The various Rx packet address matching mode flags were not being set in the rx descriptor. Implement. -#define GEM_RX_REJECT 1 -#define GEM_RX_ACCEPT 0 +#define GEM_RX_REJECT (-1) +#define

Re: [Qemu-devel] [PATCH arm-devs v1 07/13] net/cadence_gem: Implement SAR match bit in rx desc

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:12, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Bit 27 of the RX buffer desc word 1 should be set when the packet was accepted due to specific address register match. Implement. This feature is absent from the Xilinx documentation (UG585) but the behaviour is

Re: [Qemu-devel] [PATCH arm-devs v1 09/13] net/cadence_gem: Fix rx multi-fragment packets

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:14, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Bytes_to_copy was being updated before its final use where it advances the rx buffer pointer. This was causing total mayhem, where packet data for any subsequent fragments was being fetched from the wrong place.

[Qemu-devel] [PATCH 3/8] roms: update seabios submodule to latest master

2013-12-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- roms/seabios | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/seabios b/roms/seabios index ece025f..6233543 16 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit

[Qemu-devel] [PATCH 5/8] roms: enable seabios cross builds

2013-12-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- roms/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roms/Makefile b/roms/Makefile index fc716c1..1e04669 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -73,9 +73,11 @@ build-seabios-config-%: config.% mkdir -p

[Qemu-devel] [PATCH 2/8] add firmware to machine options

2013-12-02 Thread Gerd Hoffmann
This patch adds firmware to the machine options. -bios file becomes a shortcut for -machine firmware=file. Advantage is that the firmware can be specified via config file as -machine is parsed using QemuOpts and it is also possible to use different defaults for different machine types (via

[Qemu-devel] [PATCH 4/8] roms: build two seabios binaries

2013-12-02 Thread Gerd Hoffmann
Adding xhci support to seabios made it jump over the 128k line. Changing the bios size breaks migration, so we have to keep a 128k seabios binary for old machine types. New machine types can use a large 256k bios which should be big enougth for a while. This patch updates the seabios build

[Qemu-devel] [PATCH 8/8] pc: switch 2.0 machine types to large seabios binary

2013-12-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/i386/pc_piix.c | 4 +++- hw/i386/pc_q35.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 9329f04..ab56285 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -339,7

[Qemu-devel] [PATCH 0/8] seabios update

2013-12-02 Thread Gerd Hoffmann
Hi, SeaBIOS update patch series. A bit more complicated than just update submodule and binaries this time as seabios doesn't fit into 256k any more. So we have to go build seabios twice, one stripped down version for old machine types and one full-featured for 2.0. Also qemu needs some

Re: [Qemu-devel] [PATCH arm-devs v4 3/4] hw/timer: Introduce ARM A9 Global Timer.

2013-12-02 Thread Andreas Färber
Am 02.12.2013 08:36, schrieb Peter Crosthwaite: The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. The timer is shared but each CPU has a private independent comparator and interrupt. Based on version contributed by Francois LEGAL. Signed-off-by: François LEGAL

Re: [Qemu-devel] [PATCH arm-devs v1 10/13] net/cadence_gem: Fix small packet FCS stripping

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:14, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: The minimum packet size is 64, however this is before FCS stripping occurs. So when FCS stripping the minimum packet size is 60. Fix. Reported-by: Deepika Dhamija deep...@xilinx.com Signed-off-by: Peter

Re: [Qemu-devel] [PATCH arm-devs v1 12/13] net/cadence_gem: Improve can_receive debug printfery

2013-12-02 Thread Peter Maydell
On 2 December 2013 07:15, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Currently this just floods indicating that can_receive has been called by the net framework. Instead, save the result of the most recent can_recieve callback as state and only print a message if the result changes

Re: [Qemu-devel] [PATCH arm-devs v4 3/4] hw/timer: Introduce ARM A9 Global Timer.

2013-12-02 Thread Peter Maydell
On 2 December 2013 12:28, Andreas Färber afaer...@suse.de wrote: Am 02.12.2013 08:36, schrieb Peter Crosthwaite: The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. The timer is shared but each CPU has a private independent comparator and interrupt. +dc-no_user = 1;

Re: [Qemu-devel] [PATCHv2 00/14] Spice block device, ready-to-go patches

2013-12-02 Thread Stefan Hajnoczi
On Mon, Dec 02, 2013 at 11:36:09AM +0100, Gerd Hoffmann wrote: On So, 2013-12-01 at 22:23 +0100, Marc-André Lureau wrote: Hi, This patch series is a split-off from the Spice block device RFC. http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02024.html It should include only

Re: [Qemu-devel] [PATCH arm-devs v4 3/4] hw/timer: Introduce ARM A9 Global Timer.

2013-12-02 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 2 December 2013 12:28, Andreas Färber afaer...@suse.de wrote: Am 02.12.2013 08:36, schrieb Peter Crosthwaite: The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. The timer is shared but each CPU has a private independent

Re: [Qemu-devel] [PATCH v2] block: Close backing file early in bdrv_img_create

2013-12-02 Thread Stefan Hajnoczi
On Mon, Dec 02, 2013 at 11:37:36AM +0800, Wenchao Xia wrote: 于 2013/11/30 4:41, Max Reitz 写道: Leaving the backing file open although it is not needed anymore can cause problems if it is opened through a block driver which allows exclusive access only and if the create function of the block

Re: [Qemu-devel] [PATCH arm-devs v4 3/4] hw/timer: Introduce ARM A9 Global Timer.

2013-12-02 Thread Peter Maydell
On 2 December 2013 12:28, Andreas Färber afaer...@suse.de wrote: Am 02.12.2013 08:36, schrieb Peter Crosthwaite: The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. Preferred ARM terminology here I think is all cores in the processor. (core: one processing unit, something

Re: [Qemu-devel] [PATCH arm-devs v4 4/4] cpu/a9mpcore: Add Global Timer

2013-12-02 Thread Andreas Färber
Hi, A general observation... Am 02.12.2013 08:37, schrieb Peter Crosthwaite: diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index a38464b..c09358c 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.c @@ -30,6 +30,9 @@ static void a9mp_priv_initfn(Object *obj)

Re: [Qemu-devel] [PATCH arm-devs v4 4/4] cpu/a9mpcore: Add Global Timer

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 14:08, Andreas Färber ha scritto: +object_initialize(s-gtimer, sizeof(s-gtimer), TYPE_A9_GTIMER); +qdev_set_parent_bus(DEVICE(s-gtimer), sysbus_get_default()); + object_initialize(s-mptimer, sizeof(s-mptimer), TYPE_ARM_MPTIMER);

Re: [Qemu-devel] [PATCH] vmdk: Fix creating big description file

2013-12-02 Thread Stefan Hajnoczi
On Mon, Dec 02, 2013 at 11:01:20AM +0800, Fam Zheng wrote: The buffer for description file was 4096 which only covers a few hundred of extents. This changes the buffer to dynamic allocated with g_strdup_printf in order to support bigger cases. Signed-off-by: Fam Zheng f...@redhat.com ---

Re: [Qemu-devel] [PATCH] exec: separate sections and nodes per address space

2013-12-02 Thread Michael S. Tsirkin
On Sun, Dec 01, 2013 at 02:02:23PM +0200, Marcel Apfelbaum wrote: Every address space has its own nodes and sections, but it uses the same global arrays of nodes/section. This limits the number of devices that can be attached to the guest to 20-30 devices. It happens because: - The

Re: [Qemu-devel] [PATCH v9 08/11] linux-headers: Update from mainline

2013-12-02 Thread Peter Maydell
On 22 November 2013 17:17, Peter Maydell peter.mayd...@linaro.org wrote: Update Linux KVM headers from mainline commit 5d6e63323fe779. Accidentally missed the leading char off the commit hash, it should be: a5d6e63323fe779. Will fix commit message when I queue these on target-arm.next. thanks

Re: [Qemu-devel] [PATCH v9 00/11] target-arm: mach virt and -cpu host support

2013-12-02 Thread Peter Maydell
On 22 November 2013 17:17, Peter Maydell peter.mayd...@linaro.org wrote: This patchset combines the 'virt' machine definition and -cpu host support patchsets I've posted previous versions of. I think these are now ready to go in once 1.8 opens up; review appreciated. I'm applying this series

Re: [Qemu-devel] [PATCH arm-devs v4 4/4] cpu/a9mpcore: Add Global Timer

2013-12-02 Thread Andreas Färber
Am 02.12.2013 14:21, schrieb Paolo Bonzini: Il 02/12/2013 14:08, Andreas Färber ha scritto: +object_initialize(s-gtimer, sizeof(s-gtimer), TYPE_A9_GTIMER); +qdev_set_parent_bus(DEVICE(s-gtimer), sysbus_get_default()); + object_initialize(s-mptimer, sizeof(s-mptimer),

Re: [Qemu-devel] [RFC][PATCH] qemu-img: add support for skipping zeroes in input during convert

2013-12-02 Thread Stefan Hajnoczi
On Fri, Nov 22, 2013 at 03:48:30PM +0100, Peter Lieven wrote: -/* If the output image is being created as a copy on write image, - assume that sectors which are unallocated in the input image - are present in both the output's and input's base images (no

Re: [Qemu-devel] [RFC][PATCH] qemu-img: add support for skipping zeroes in input during convert

2013-12-02 Thread Peter Lieven
Hi Stefan, please have a look at [PATCHv2 1.8 0/9] qemu-img convert optimizations This one here is obsolete. Peter Am 02.12.2013 um 15:13 schrieb Stefan Hajnoczi stefa...@redhat.com: On Fri, Nov 22, 2013 at 03:48:30PM +0100, Peter Lieven wrote: -/* If the output image is being

Re: [Qemu-devel] [PATCH 3/5] osdep: add qemu_set_tty_echo()

2013-12-02 Thread Stefan Hajnoczi
On Fri, Nov 29, 2013 at 11:13:41AM +0100, Kevin Wolf wrote: Am 29.11.2013 um 11:04 hat Kevin Wolf geschrieben: Am 14.11.2013 um 11:54 hat Stefan Hajnoczi geschrieben: Using stdin with readline.c requires disabling echo and line buffering. Add a portable wrapper to set the terminal

Re: [Qemu-devel] [PATCH] memory.c: bugfix - ref counting mismatch in memory_region_find

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 15:20, Marcel Apfelbaum ha scritto: 'address_space_get_flatview' gets a reference to a FlatView. If the flatview lookup fails, the code returns without unreferencing the view. Cc: qemu-sta...@nongnu.org Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- memory.c | 1

[Qemu-devel] [PATCH 0/4] speedup memory dispatch

2013-12-02 Thread Paolo Bonzini
This avoids useless masking and shifting when a single call to the MemoryRegion ops will do. It cuts 30 cycles off the common case of memory dispatch (out of ~150). Paolo Bonzini (4): memory: cache min/max_access_size memory: streamline common case for memory dispatch memory: hoist

Re: [Qemu-devel] [PATCH 1/8] add pc-{i440fx,q35}-2.0 machine types

2013-12-02 Thread Igor Mammedov
On Mon, 2 Dec 2013 13:24:36 +0100 Gerd Hoffmann kra...@redhat.com wrote: why 2.0, are we jumping from 1.7 strait to 2.0? Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/i386/pc_piix.c | 14 -- hw/i386/pc_q35.c | 11 ++- 2 files changed, 22 insertions(+), 3

[Qemu-devel] [PATCH 1/4] memory: cache min/max_access_size

2013-12-02 Thread Paolo Bonzini
This will simplify the code in the next patch. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/exec/memory.h | 2 ++ memory.c | 27 +++ 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/include/exec/memory.h

[Qemu-devel] [PATCH 4/4] memory: small tweaks

2013-12-02 Thread Paolo Bonzini
Make adjust_endianness inline, and do not use a ctz instruction when a shift will do. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- memory.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/memory.c b/memory.c index 495e693..d3b0dce 100644 ---

[Qemu-devel] [PATCH 2/4] memory: streamline common case for memory dispatch

2013-12-02 Thread Paolo Bonzini
In the common case where there is no combining or splitting, access_with_adjusted_size is adding a lot of overhead. Call the MMIO ops directly in that case. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- memory.c | 68 1

[Qemu-devel] [PATCH 3/4] memory: hoist coalesced MMIO flush

2013-12-02 Thread Paolo Bonzini
No need to flush the coalesced MMIO buffer multiple times when combining multiple accesses into one. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- memory.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/memory.c b/memory.c index 1ade19c..495e693 100644

Re: [Qemu-devel] [PATCH 1/8] add pc-{i440fx,q35}-2.0 machine types

2013-12-02 Thread Gerd Hoffmann
On Mo, 2013-12-02 at 15:30 +0100, Igor Mammedov wrote: On Mon, 2 Dec 2013 13:24:36 +0100 Gerd Hoffmann kra...@redhat.com wrote: why 2.0, are we jumping from 1.7 strait to 2.0? Looks like this is the plan ... nilsson kraxel ~/projects/qemu# git show master commit

Re: [Qemu-devel] [PATCH] spice: flip streaming video mode to off by default

2013-12-02 Thread Alon Levy
On 12/02/2013 12:27 PM, Gerd Hoffmann wrote: Video streaming detection heuristics in spice-server have problems keeping modern desktop animations (as done by gnome shell) and real video playback apart. This leads to jpeg compression artefacts on your desktop, due to spice using mjpeg to send

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 AES instructions

2013-12-02 Thread Peter Maydell
On 6 November 2013 14:21, Ard Biesheuvel ard.biesheu...@linaro.org wrote: This adds support for the AESE/AESD/AESMC/AESIMC instructions that are available on some v8 implementations of Aarch32. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org Hi; thanks for this patch. I have a few

Re: [Qemu-devel] [RFC] Incremental live backup with in memory dirty bitmap

2013-12-02 Thread Stefan Hajnoczi
On Mon, Nov 25, 2013 at 05:59:12PM +0800, Fam Zheng wrote: This is an idea about allowing online incremental backup of block device, with drive-backup and (proposed here) in-memory block dirty bitmap: 1. We enable a dirty bitmap on a block device, at the start point of write tracking:

Re: [Qemu-devel] sparc64 with openbios-sparc64

2013-12-02 Thread Mark Cave-Ayland
On 26/11/13 22:05, Mahmood Naderan wrote: On Tuesday, November 26, 2013 4:51 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote: Hello, Is there any news on emulating sparc64 machine with openbios-sparc64 on a x86_64 host machine? I followed some posts regarding this from 2010 however didn't

Re: [Qemu-devel] [PATCHv2 00/14] Spice block device, ready-to-go patches

2013-12-02 Thread Stefan Hajnoczi
On Sun, Dec 01, 2013 at 10:23:33PM +0100, Marc-André Lureau wrote: This patch series is a split-off from the Spice block device RFC. http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02024.html It should include only non-controversial or simple patches. The most important change is the

[Qemu-devel] [PATCH 1/2] target-i386: fix cpuid leaf 0x0d

2013-12-02 Thread Liu, Jinsong
From 57751d87392d7ee9df5698bc83b356de654453ef Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 04:17:50 +0800 Subject: [PATCH 1/2] target-i386: fix cpuid leaf 0x0d Fix cpuid leaf 0x0d which incorrectly parsed eax and ebx. However, before this patch the CPUID

[Qemu-devel] [PATCH 2/2] target-i386: Intel MPX

2013-12-02 Thread Liu, Jinsong
From 1a199d68265ffeb0234530f29d92a00a5edeff75 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 05:08:19 +0800 Subject: [PATCH 2/2] target-i386: Intel MPX Add some MPX related definiation, and hardcode sizes and offsets of xsave features 3 and 4.

[Qemu-devel] [PATCH 1/4] X86: Intel MPX definiation

2013-12-02 Thread Liu, Jinsong
From fbfa537f690eca139a96c6b2636ab5130bf57716 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Fri, 29 Nov 2013 01:27:00 +0800 Subject: [PATCH 1/4] X86: Intel MPX definiation Signed-off-by: Xudong Hao xudong@intel.com Signed-off-by: Liu Jinsong jinsong@intel.com ---

[Qemu-devel] [PATCH 2/4] KVM/X86: Fix xsave cpuid exposing bug

2013-12-02 Thread Liu, Jinsong
From 4a2eb0a8467b4f278e59d2df209a1bc03349d088 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 06:28:20 +0800 Subject: [PATCH 2/4] KVM/X86: Fix xsave cpuid exposing bug EBX of cpuid(0xD, 0) is dynamic per XCR0 features enable/disable. Bit 63 of XCR0 is

[Qemu-devel] [PATCH 3/4] KVM/X86: Intel MPX vmx and msr handle

2013-12-02 Thread Liu, Jinsong
From e9ba40b3d1820b8ab31431c73226ee3ed485edd1 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 07:02:27 +0800 Subject: [PATCH 3/4] KVM/X86: Intel MPX vmx and msr handle Signed-off-by: Xudong Hao xudong@intel.com Signed-off-by: Liu Jinsong

[Qemu-devel] [PATCH 4/4] KVM/X86: Enable Intel MPX for guest

2013-12-02 Thread Liu, Jinsong
From 62553aebb7b72f1203fefc59dd4d8969e4216ddb Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 07:34:32 +0800 Subject: [PATCH 4/4] KVM/X86: Enable Intel MPX for guest Signed-off-by: Xudong Hao xudong@intel.com Signed-off-by: Liu Jinsong

Re: [Qemu-devel] [Qemu-trivial] [PATCH] virtio-net: fix the indent

2013-12-02 Thread Michael Tokarev
Thanks, applied to the trivial patches queue. /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: remove (max_cpus 255) check from smp_parse

2013-12-02 Thread Michael Tokarev
25.11.2013 07:39, Alexey Kardashevskiy wrote: Since modern POWER7/POWER8 chips can have more that 256 CPU threads (2000 actually), remove this check from smp_parse. The CPUs number is still checked against machine-max_cpus and this check should be enough not to break other archs. [] -if

Re: [Qemu-devel] [Qemu-trivial] [PATCH] libcacard/cac: Remove unused statement (value stored is never read)

2013-12-02 Thread Michael Tokarev
18.11.2013 01:11, Stefan Weil wrote: Warning from ccc-analyzer: libcacard/cac.c:192:13: warning: Value stored to 'ret' is never read ret = VCARD_DONE; ^ ~~ Here 'ret' is assigned a value inside of a switch statement and also after that switch

Re: [Qemu-devel] [Qemu-trivial] [PATCH] libcacard/vcard_emul_nss: Remove unused statement (value stored is never read)

2013-12-02 Thread Michael Tokarev
18.11.2013 01:12, Stefan Weil wrote: Warning from ccc-analyzer: libcacard/vcard_emul_nss.c:937:9: warning: Value stored to 'cert_count' is never read cert_count = options-vreader[i].cert_count; ^~~ Applied to trivial patches, thank

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] Don't crash on keyboard input with no handler

2013-12-02 Thread Michael Tokarev
20.11.2013 00:01, Don Koch wrote: Prevent a call to put_kbd if null. On shutdown of some OSes, the keyboard handler goes away before the system is down. If a key is typed during this window, qemu crashes. Thanks, applied to the trivial patches queue. /mjt

Re: [Qemu-devel] [PATCH 2/2] target-i386: Intel MPX

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 17:42, Liu, Jinsong ha scritto: From 1a199d68265ffeb0234530f29d92a00a5edeff75 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 05:08:19 +0800 Subject: [PATCH 2/2] target-i386: Intel MPX Add some MPX related definiation, and hardcode sizes

Re: [Qemu-devel] [PATCH 1/2] target-i386: fix cpuid leaf 0x0d

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 17:41, Liu, Jinsong ha scritto: From 57751d87392d7ee9df5698bc83b356de654453ef Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Tue, 3 Dec 2013 04:17:50 +0800 Subject: [PATCH 1/2] target-i386: fix cpuid leaf 0x0d Fix cpuid leaf 0x0d which incorrectly

Re: [Qemu-devel] [PATCH 1/4] X86: Intel MPX definiation

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 17:43, Liu, Jinsong ha scritto: From fbfa537f690eca139a96c6b2636ab5130bf57716 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Fri, 29 Nov 2013 01:27:00 +0800 Subject: [PATCH 1/4] X86: Intel MPX definiation Signed-off-by: Xudong Hao xudong@intel.com

Re: [Qemu-devel] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2013-12-02 Thread Nathan Whitehorn
Any news on this? FreeBSD is unbootable from CDROM devices in QEMU/pseries without this patch. -Nathan On 10/18/13 07:33, Nathan Whitehorn wrote: Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the well-known LUN for REPORT_LUNS commands. This is required to implement the SAM

Re: [Qemu-devel] [PATCHv4] qdev: Validate hex properties

2013-12-02 Thread Eric Blake
On 11/28/2013 11:48 PM, Hannes Reinecke wrote: strtoul(l) might overflow, in which case it'll return '-1' and set the appropriate error code. So update the calls to strtoul(l) when parsing hex properties to avoid silent overflows. And we should be using an intermediate variable to avoid

Re: [Qemu-devel] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2013-12-02 Thread Paolo Bonzini
Il 02/12/2013 18:51, Nathan Whitehorn ha scritto: Any news on this? FreeBSD is unbootable from CDROM devices in QEMU/pseries without this patch. -Nathan Acked-by: Paolo Bonzini pbonz...@redhat.com Alex, can you pick it up?

Re: [Qemu-devel] [RFC PATCH 11/15] input: mouse: add graphic_rotate support

2013-12-02 Thread John Baboval
I'm not sure this is correct. Generally when the display gets rotated, the input device coordinates do not, and the in-guest code handles the math. On 11/28/2013 09:30 AM, Gerd Hoffmann wrote: Transform absolute mouse events according to graphic_rotate. Legacy input code does it for both

Re: [Qemu-devel] [RFC PATCH 12/15] input: mouse: add qemu_input_is_absolute()

2013-12-02 Thread John Baboval
Perhaps this should just return the mask instead of a boolean? It would be nice at some point to handle a USB HID style device that can send both relative and absolute events, for example. Though perhaps that would be better as future work, since this is a nice drop-in replacement for the old

Re: [Qemu-devel] [RFC PATCH 03/15] input: define event types using qapi

2013-12-02 Thread Eric Blake
On 11/28/2013 07:29 AM, Gerd Hoffmann wrote: Define input event types, using qapi. So we get nicely autogenerated types for our input events. And when it comes to qmp support some day things will be alot easier. Types are modeled after the linux input layer. There are separate event

[Qemu-devel] [Bug 1256826] [NEW] INT instruction bug in WindowsXP

2013-12-02 Thread Jackend
Public bug reported: This bug is in -no-kvm mode. In windowsXP at IDT entry 28 is Task gate when application use INT 2 or INT 8 it will cause blue screen in XP. I found it should cause #GP not generate hw interrupt. also I check this bug with -enable-kvm and works correctly. ** Affects: qemu

Re: [Qemu-devel] [PATCH 4/4] tpm: Provide libtpms software TPM backend

2013-12-02 Thread Stefan Berger
On 12/02/2013 09:16 AM, Corey Bryant wrote: Stefan, do you know if this is the same code that was used to build our bios.bin? Probably similar, but forward-ported to a more recent version.

  1   2   >