Re: [Qemu-devel] [PATCH 3/5] exynos4210: add Exynos4210 i2c implementation

2012-03-06 Thread Igor Mitsyanko
On 03/06/2012 10:49 PM, Peter Maydell wrote: On 2 March 2012 11:35, Igor Mitsyanko wrote: Create 9 exynos4210 i2c interfaces. Signed-off-by: Igor Mitsyanko +#define EXYNOS4_I2C(obj) \ +OBJECT_CHECK(Exynos4210I2CState, (obj), TYPE_EXYNOS4_I2C) +#define EXYNOS4_I2C_SLAVE(obj)

Re: [Qemu-devel] How can I make serial console works

2012-03-06 Thread Andreas Färber
Hi, Am 07.03.2012 03:36, schrieb Zhi-zhou Zhang: > I am working on adding openrisc to qemu target. Till now I have done the > cpu part. I use it to run linux kernel. it can run to the end of linux > kernel. How do you know? :) > but there is no any message to the console.What should I do? > Does

[Qemu-devel] regarding qcow2metadata

2012-03-06 Thread PANKAJ RAWAT
Hi all *qemu-img create -f qcow2 -o preallocation=metadata guest 8G* The above command will alllocate all the 8GB to the diskimage. means *[root@t06 p]# ls -lh* *total 1.4M* *-rw-r--r-- 1 root root 8.1G Mar 7 12:43 guest* * * is there is any way to allocate metadata to half size or predefined si

[Qemu-devel] How to make serial console work

2012-03-06 Thread Zhi-zhou Zhang
Hi all, I am working on adding a new target. Till now I have completed the cpu part. I use it to run linux kernel. it can run to the end of linux kernel. but there is no any message to the console.What should I do? Does timer and pic must implement first? Should I implement a serial port? thank you

Re: [Qemu-devel] [PATCH v2 1/2] console: add hw_screen_dump_async

2012-03-06 Thread Gerd Hoffmann
Hi, >> qemu is hung at: >> main thread: >>#0 read > > Is qxl doing a blocking read? If so, that's a bug in qxl. It used to do that, with the latest spice pull it is gone[1]. And this fix is exactly what broke screendump. Spice does lazy rendering on the server side to avoid burning cp

Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks

2012-03-06 Thread Gerhard Wiesinger
Ping. Any comments? Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ On Sun, 4 Mar 2012, Gerhard Wiesinger wrote: Hello, Clean XP install cores with SCSI LSI 53C89A disk when copying files. Reproduceable. Driver used is sym_hi. Details are below. Tried also old versions 1.0, 0.15.1, co

Re: [Qemu-devel] RFC: rtl8139 improvements

2012-03-06 Thread Gerhard Wiesinger
Ping. Any comments? Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ On Mon, 5 Mar 2012, Gerhard Wiesinger wrote: Hello, I'm trying to implement better emulation and wider OS support for the rtl8139 card. Therefore I want to see the following testcases to be successful: * Testcases and

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/7] pseries: Add support for level interrupts to XICS

2012-03-06 Thread David Gibson
On Wed, Mar 07, 2012 at 12:30:40AM +0100, Alexander Graf wrote: > > On 28.02.2012, at 04:18, David Gibson wrote: > > > The pseries "xics" interrupt controller, like most interrupt > > controllers can support both message (i.e. edge sensitive) interrupts > > and level sensitive interrupts, but it

Re: [Qemu-devel] [PATCH] Change library from libiscsi to libiscsiclient to match library rename in libiscsi

2012-03-06 Thread ronnie sahlberg
Please ignore this patch. We do not need it. On Sat, Mar 3, 2012 at 8:40 PM, Michael Tokarev wrote: > On 03.03.2012 10:38, Ronnie Sahlberg wrote: >> Signed-off-by: Ronnie Sahlberg >> --- >>  configure |    4 ++-- >>  1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/configure

[Qemu-devel] [Bug 948675] [NEW] QEMU is crashing when called with "-vga none"

2012-03-06 Thread fidencio
Public bug reported: QEMU is crashing when called with "-vga none". This regression was inserted in e5ad936b0fd7dfd7fd7908be6f9f1ca88f63b96b. QEMU line: /home/fidencio/dev/bin/qemu-system-x86_64 -enable-kvm -m 1024 -kernel /home/fidencio/src/linux-2.6/arch/x86_64/boot/bzImage -append "root=nfs r

[Qemu-devel] [1/6 V2 PATCH] rtl8139: limit transmission buffer size in c+ mode

2012-03-06 Thread Jason Wang
The tx buffer would be re-allocated for tx descriptor with big size and without LS bit set, this would make guest driver could easily let qemu to allocate unlimited. In linux host, a glib failure were easy to be triggered: GLib-ERROR **: gmem.c:176: failed to allocate 18446744071562067968 bytes

Re: [Qemu-devel] [PATCH v2] deal with guest paniced event

2012-03-06 Thread Wen Congyang
At 03/07/2012 10:40 AM, Eric Blake Wrote: > On 03/06/2012 06:58 PM, Wen Congyang wrote: >> When the host knows the guest is paniced, it will set >> exit_reason to KVM_EXIT_GUEST_PANICED. So if qemu receive >> this exit_reason, we can send a event to tell management >> application that the guest is

Re: [Qemu-devel] [PATCH v2] deal with guest paniced event

2012-03-06 Thread Eric Blake
On 03/06/2012 06:58 PM, Wen Congyang wrote: > When the host knows the guest is paniced, it will set > exit_reason to KVM_EXIT_GUEST_PANICED. So if qemu receive > this exit_reason, we can send a event to tell management > application that the guest is paniced and set the guest > status to RUN_STATE_

[Qemu-devel] How can I make serial console works

2012-03-06 Thread Zhi-zhou Zhang
HI All, I am working on adding openrisc to qemu target. Till now I have done the cpu part. I use it to run linux kernel. it can run to the end of linux kernel. but there is no any message to the console.What should I do? Does timer and pic must implement first? Need I implement a serial port or jus

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-06 Thread Mike Christie
On 03/06/2012 07:51 PM, ronnie sahlberg wrote: > Hi Mike, > > Thanks! > > That would be great if you rename it to something less generic and > specific to libiscsi-utils. > That means I can continue using libiscsi as the name for my > multiplatform library. > > By the way, if the only user toda

[Qemu-devel] buildbot failure in qemu on block_openbsd_4.9

2012-03-06 Thread qemu
The Buildbot has detected a new failure on builder block_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_4.9/builds/148 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_openbsd49 Build

[Qemu-devel] [PATCH v2] deal with guest paniced event

2012-03-06 Thread Wen Congyang
When the host knows the guest is paniced, it will set exit_reason to KVM_EXIT_GUEST_PANICED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is paniced and set the guest status to RUN_STATE_PANICED. Signed-off-by: Wen Congyang --- kvm-all.c

[Qemu-devel] [PATCH 2/2 v2] kvm: set exit_reason to KVM_EXIT_GUEST_PANICED when guest paniced

2012-03-06 Thread Wen Congyang
This patch introduces new request bit KVM_REQ_GUEST_PANICED. If this bit is set, set vcpu's exit_reason to KVM_EXIT_GUEST_PANICED. And then the user space can know the guest paniced. Signed-off-by: Wen Congyang --- arch/x86/kvm/x86.c | 11 +++ include/linux/kvm.h |1 + i

[Qemu-devel] [PATCH 1/2 v2] kvm: notify host when guest paniced

2012-03-06 Thread Wen Congyang
The implementation is the same as xen: register panic notifier, and call hypercall when the guest is paniced. Signed-off-by: Wen Congyang --- arch/x86/kernel/kvm.c| 12 include/linux/kvm_para.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/x86/

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-06 Thread ronnie sahlberg
Hi Mike, Thanks! That would be great if you rename it to something less generic and specific to libiscsi-utils. That means I can continue using libiscsi as the name for my multiplatform library. By the way, if the only user today and in the future of the library in libiscsi-utils is anaconda, w

[Qemu-devel] [PATCH 0/2 v2] kvm: notify host when guest paniced

2012-03-06 Thread Wen Congyang
We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is crashed. If management app does not do auto dump, the guest's user can do dump by hand if

Re: [Qemu-devel] [PATCH v9 0/4] Zynq-7000 EPP platform model

2012-03-06 Thread John Linn
> -Original Message- > From: Edgar E. Iglesias [mailto:edgar.igles...@gmail.com] > Sent: Tuesday, March 06, 2012 5:25 PM > To: Peter A. G. Crosthwaite > Cc: qemu-devel@nongnu.org; p...@codesourcery.com; > peter.mayd...@linaro.org; Duy Le; John Linn; afaer...@suse.de; > john.willi...@petalog

Re: [Qemu-devel] [PATCH v9 0/4] Zynq-7000 EPP platform model

2012-03-06 Thread Edgar E. Iglesias
On Mon, Mar 05, 2012 at 02:39:09PM +1000, Peter A. G. Crosthwaite wrote: > This is a suite of Device models and a machine model for the Xilinx Zynq-7000 > Extensible Processing Platform: > > http://www.xilinx.com/products/silicon-devices/epp/zynq-7000/index.htm > > This is an ARM based platform

[Qemu-devel] [PATCH 6/6] api_piix4: Remove PCI_RMV_BASE write code

2012-03-06 Thread Alex Williamson
Achieves the same result with less code. Signed-off-by: Alex Williamson --- hw/acpi_piix4.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 4640e2e..3db0efd 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -532,11 +532,6

[Qemu-devel] [PATCH 5/6] acpi_piix4: Use pci_get/set_byte

2012-03-06 Thread Alex Williamson
Remove stray direct access Signed-off-by: Alex Williamson --- hw/acpi_piix4.c | 53 +++-- 1 files changed, 27 insertions(+), 26 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 7e766e5..4640e2e 100644 --- a/hw/acpi_piix4.c +++

[Qemu-devel] [PATCH 4/6] acpi_piix4: Track PCI hotplug status and allow non-ACPI remove path

2012-03-06 Thread Alex Williamson
When a guest probes a device, clear the "up" bit in the hotplug register. This allows us to enable a non-ACPI remove path for devices added, but never accessed by the guest. This is useful when a guest does not have ACPI PCI hotplug support to avoid losing devices to a guest. We also now individ

[Qemu-devel] [PATCH 3/6] pci: Add notifier for device probing

2012-03-06 Thread Alex Williamson
It's sometimes useful to know when the guest probes a device. For example, during PCI hotplug once the guest accesses the device, we can no longer remove it without guest permission. Add a notifier list that gets called when the vendor ID of a device is read. The PCI spec mandates that configura

[Qemu-devel] [PATCH 1/6] acpi_piix4: Disallow write to up/down PCI hotplug registers

2012-03-06 Thread Alex Williamson
These are never written. Signed-off-by: Alex Williamson --- hw/acpi_piix4.c | 45 + 1 files changed, 13 insertions(+), 32 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 30d37f9..5960b7f 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_

[Qemu-devel] [PATCH 2/6] acpi_piix4: Only allow writes to PCI hotplug eject register

2012-03-06 Thread Alex Williamson
This is never read. We can also derive bus from the write handler, which later makes this easier to call directly. Note that pciej_write was actually called with (PCIBus *)dev->bus, which is cast as a void* allowing us to pretend it's a BusState*. Fix this so we don't depend on the BusState loca

[Qemu-devel] [PATCH 0/6] PCI hotplug improvements

2012-03-06 Thread Alex Williamson
Here's a re-work of the patch that added _STA for the purpose of using it as an ack from the guest. Instead of that, add a notifier for device access. Once the guest reads from device config space, it owns it. Until that point, we can remove it directly. As pointed out by MST, this passes test

Re: [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t

2012-03-06 Thread Alexander Graf
On 05.03.2012, at 21:15, Stefan Weil wrote: > Commit 021ecd8b9db37927059f5d3234b51ed766706437 breaks the build for > PPC hosts because it uses uintptr_t without the necessary include file. > > uintptr_t is defined in stdint.h, so add this include. > > Cc: Alexander Graf > Signed-off-by: Stefan

Re: [Qemu-devel] [0/7] pseries and Power updates

2012-03-06 Thread Alexander Graf
On 28.02.2012, at 04:18, David Gibson wrote: > This series contains a number of bugfixes and enhancements for the > pseries machine, including a significant cleanup of the pseries PCI > code. > Thanks, applied 1-2, 4-6 to ppc-next. Alex

Re: [Qemu-devel] [PATCH 3/7] pseries: Add support for level interrupts to XICS

2012-03-06 Thread Alexander Graf
On 28.02.2012, at 04:18, David Gibson wrote: > The pseries "xics" interrupt controller, like most interrupt > controllers can support both message (i.e. edge sensitive) interrupts > and level sensitive interrupts, but it needs to know which are which. > > When I implemented the xics emulation fo

[Qemu-devel] [PATCH v3 8/9] net: split hostname and service by last colon

2012-03-06 Thread Amos Kong
IPv6 address contains colons, parse will be wrong. [2312::8274]:5200 Signed-off-by: Amos Kong --- net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index 2518e5f..d6ce1fa 100644 --- a/net.c +++ b/net.c @@ -84,7 +84,7 @@ static int get_str_sep(char

Re: [Qemu-devel] [PATCH] macio: Convert to qdev

2012-03-06 Thread Alexander Graf
On 27.01.2012, at 00:17, Andreas Färber wrote: > From: Anthony Liguori > > Signed-off-by: Anthony Liguori > > Split macio into two PCIDevices with declarative device ID, > macio-oldworld and macio-newworld. Drop is_oldworld state in favor > of two separate init functions and deferred creation

[Qemu-devel] [PATCH v3 9/9] net: support to include ipv6 address by brackets

2012-03-06 Thread Amos Kong
That method of representing an IPv6 address with a port is discouraged because of its ambiguity. Referencing to RFC5952, the recommended format is: [2312::8274]:5200 For IPv6 brackets must be mandatory if you require a port. test status: Successed listen side: qemu-kvm -incoming tcp:[2

[Qemu-devel] [PATCH v3 7/9] net: introduce parse_host_port_info()

2012-03-06 Thread Amos Kong
int parse_host_port(struct sockaddr_in *saddr, const char *str) Parsed address info will be restored into 'saddr', it only support ipv4. This function is used by net_socket_mcast_init() and net_socket_udp_init(). int parse_host_port_info(struct addrinfo *result, const char *str) Parsed address inf

[Qemu-devel] [PATCH v3 5/9] net: refector tcp_*_start functions

2012-03-06 Thread Amos Kong
There are some repeated code for tcp_server_start() and tcp_client_start(). Signed-off-by: Amos Kong --- net.c | 83 - 1 files changed, 46 insertions(+), 37 deletions(-) diff --git a/net.c b/net.c index 9afb0d1..b05c881 100644 --

[Qemu-devel] [PATCH v3 6/9] net: use getaddrinfo() in tcp_start_common

2012-03-06 Thread Amos Kong
Migrating with IPv6 address exists problem, gethostbyname()/inet_aton() could not translate IPv6 address/port simply, so use getaddrinfo() in tcp_start_common to translate network address and service. We can get an address list by getaddrinfo(). Userlevel IPv6 Programming Introduction: http://www.

[Qemu-devel] [PATCH v3 4/9] net: use tcp_client_start for tcp client creation

2012-03-06 Thread Amos Kong
Use tcp_client_start() in those two functions: tcp_start_outgoing_migration() net_socket_connect_init() Changes from v2: - return real error in net_socket_connect_init(), not always -1 Signed-off-by: Amos Kong --- migration-tcp.c | 39 +++ net/socket.c

[Qemu-devel] [PATCH v3 1/9] net: introduce tcp_server_start()

2012-03-06 Thread Amos Kong
Introduce tcp_server_start() by moving original code in tcp_start_incoming_migration(). Signed-off-by: Amos Kong --- net.c | 28 qemu_socket.h |2 ++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index c34474f..e90ff23 10

[Qemu-devel] [PATCH v3 3/9] net: introduce tcp_client_start()

2012-03-06 Thread Amos Kong
Introduce tcp_client_start() by moving original code in tcp_start_outgoing_migration(). Signed-off-by: Amos Kong --- net.c | 41 + qemu_socket.h |1 + 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index e90ff23

[Qemu-devel] [PATCH v3 2/9] net: use tcp_server_start() for tcp server creation

2012-03-06 Thread Amos Kong
Use tcp_server_start in those two functions: tcp_start_incoming_migration() net_socket_listen_init() Signed-off-by: Amos Kong --- migration-tcp.c | 21 + net/socket.c| 23 +++ 2 files changed, 8 insertions(+), 36 deletions(-) diff --git a/migrat

[Qemu-devel] [PATCH v3 0/9] support to migrate with IPv6 address

2012-03-06 Thread Amos Kong
Those patches make migration of IPv6 address work, old code only support to parse IPv4 address/port, use getaddrinfo() to get socket addresses infomation. Last two patches are about spliting IPv6 host/port. Changes from v1: - split different changes to small patches, it will be easier to review -

Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-06 Thread Reeted
On 03/06/12 13:59, Stefan Hajnoczi wrote: On Mon, Mar 5, 2012 at 4:44 PM, Martin Mailand wrote: Am 05.03.2012 17:35, schrieb Stefan Hajnoczi: 1. Test on i7 Laptop with Cpu governor "ondemand". v0.14.1 bw=63492KB/s iops=15873 bw=63221KB/s iops=15805 v1.0 bw=36696KB/s iops=9173 bw

Re: [Qemu-devel] [PATCH 1/3] coroutine: adding sigaltstack method (.c source)

2012-03-06 Thread Peter Maydell
On 14 February 2012 09:50, Paolo Bonzini wrote: > On 02/14/2012 10:24 AM, Stefan Hajnoczi wrote: >> >> setjmp() followed by return is usually bad.  We're relying on the fact >> that the return code path here does not clobber local variables 'self' >> and 'co'.  Can't we longjmp out back to the cor

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-06 Thread Mike Christie
On 03/06/2012 01:58 PM, Mike Christie wrote: > On 03/06/2012 06:19 AM, Hannes Reinecke wrote: >> On 03/06/2012 12:06 PM, ronnie sahlberg wrote: >>> Sorry about this. >>> >>> First, libiscsi is a really good name for a general purpose >>> multiplatform library, like libiscsi. >>> Second, a generic

Re: [Qemu-devel] [RFC PATCH 00/10] make qed and live migration usage safe

2012-03-06 Thread Benoît Canet
I'm resending you this one in private because your emails where missing in the first posting. Regards Benoît On Tue, Mar 6, 2012 at 6:32 PM, Benoît Canet wrote: > QED + live migration is an unsafe and disabled mix. > > This patchset make qed and live migration safe to use. > > The check of QED

Re: [Qemu-devel] QEMU desired libiscsi.so clashes with libiscsi.so from iscsi-initiator-utils

2012-03-06 Thread Mike Christie
On 03/06/2012 06:19 AM, Hannes Reinecke wrote: > On 03/06/2012 12:06 PM, ronnie sahlberg wrote: >> Sorry about this. >> >> First, libiscsi is a really good name for a general purpose >> multiplatform library, like libiscsi. >> Second, a generic name like this is a horribly poor idea for a single >

[Qemu-devel] [Bug 883136] Re: qemu on ARM hosts aborts on startup because makecontext() always fails

2012-03-06 Thread Peter Maydell
...and I think that backporting would be a bug against some other package, not qemu, so we can close this bug. ** Changed in: qemu-linaro Status: In Progress => Fix Committed ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a

[Qemu-devel] [Bug 883136] Re: qemu on ARM hosts aborts on startup because makecontext() always fails

2012-03-06 Thread Peter Maydell
http://comments.gmane.org/gmane.comp.lib.glibc.ports/1325 -- Michael's version of the makecontext patches has been committed to glibc-ports and should be available in glibc 2.16. Upstream qemu (and thus qemu-linaro) now have a version of the configure check which tests for __stub_makecontext, so

[Qemu-devel] [RFC PATCH 05/10] migration: inform the block layer of incoming live status

2012-03-06 Thread Benoît Canet
Signed-off-by: Benoit Canet --- migration.c |2 ++ vl.c|5 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 45af364..5ac31a3 100644 --- a/migration.c +++ b/migration.c @@ -76,6 +76,7 @@ int qemu_start_incoming_migration(const cha

[Qemu-devel] [RFC PATCH 03/10] block: add a function to clear incoming live migration

2012-03-06 Thread Benoît Canet
This function is to be called to inform the block layer that an incoming live migration has been canceled or has just finished. It will also clear all BDRV_O_INCOMING flags. Signed-off-by: Benoit Canet --- block.c | 13 + block.h |1 + 2 files changed, 14 insertions(+), 0 delet

Re: [Qemu-devel] [PATCH] [xtensa] Move helpers.h to helper.h

2012-03-06 Thread Max Filippov
> Provides a file naming scheme consistent with other targets. Thanks, applied to the xtensa tree. -- Max

[Qemu-devel] [PATCH v4 01/10] use QSIMPLEQ_FOREACH_SAFE when freeing list elements

2012-03-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- blockdev.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c index d78aa51..acdc72a 100644 --- a/blockdev.c +++ b/blockdev.c @@ -733,7 +733,7 @@ void qmp_blockdev_group_snapshot_sync(SnapshotDevList *dev_list,

[Qemu-devel] [PATCH v4 07/10] Add blkmirror block driver

2012-03-06 Thread Paolo Bonzini
From: Marcelo Tosatti Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti Signed-off-by: Federico Simoncelli Signed-off-by: Paolo Bonzini --- Makefile.objs |2 +- block/blkmirror.c | 239 + 2 files changed,

[Qemu-devel] [PATCH 0/3] Add new CPU models (v2)

2012-03-06 Thread Eduardo Habkost
This series add two new CPU models to Qemu: Intel SandyBridge and AMD Opteron_G4 (Bulldozer). Changes v1 -> v2: Fixed the Opteron_G4 model to actually have the ffxsr bit disabled, as documented in the patch description. Eduardo Habkost (3): add "tsc-deadline" flag name to feature_ecx table

[Qemu-devel] Qemu, libvirt, and CPU models

2012-03-06 Thread Eduardo Habkost
Hi, Sorry for the long message, but I didn't find a way to summarize the questions and issues and make it shorter. For people who don't know me: I have started to work recently on the Qemu CPU model code. I have been looking at how things work on libvirt+Qemu today w.r.t. CPU models, and I have s

[Qemu-devel] [PATCH v4 06/10] qmp: convert blockdev-snapshot-sync to a wrapper around transactions

2012-03-06 Thread Paolo Bonzini
Simplify the blockdev-snapshot-sync code and gain failsafe operation by turning it into a wrapper around the new transaction command. A new option is also added matching "mode". Signed-off-by: Paolo Bonzini --- blockdev.c | 85 ++--- hmp-c

[Qemu-devel] [PATCH 3/3] add Opteron_G4 CPU model (v2)

2012-03-06 Thread Eduardo Habkost
This patch addes a Bulldozer-based Opteron_G4 CPU model. This version has the ffxsr bit actually disabled, to match what was documented below. Thanks to Andre Przywara for spotting the bug. I am trying to be conservative with the new model, so I am enabling only features known to be useful to gue

[Qemu-devel] [RFC PATCH 08/10] qed: add bdrv_post_incoming_migration operation checking the image

2012-03-06 Thread Benoît Canet
The bs is closed on verification failure to avoid further corruptions. Signed-off-by: Benoit Canet --- block.h |1 + block/qed.c | 14 ++ migration.c |1 + 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/block.h b/block.h index 1323086..25b66f0 100644 --

Re: [Qemu-devel] [PATCH v2 1/1] gdbserver: Don't send a GDB syscall until the system CPU is stopped

2012-03-06 Thread Peter Maydell
Ping? Who commits gdbstub patches? -- PMM On 20 February 2012 16:18, Peter Maydell wrote: > On 17 February 2012 16:21, Meador Inge wrote: >> Fix an issue where the GDB server implementation was sending GDB syscall >> requests while the system CPU was still running.  Syscall requests must >> be

[Qemu-devel] [PATCH v4 05/10] add mode field to blockdev-snapshot-sync transaction item

2012-03-06 Thread Paolo Bonzini
The mode field lets a management application create the snapshot destination outside QEMU. Right now, the only modes are "existing" and "absolute-paths". Mirroring introduces "no-backing-file". In the future "relative-paths" could be implemented too. Signed-off-by: Paolo Bonzini --- blockdev.

[Qemu-devel] [PATCH v4 08/10] add mirroring to transaction

2012-03-06 Thread Paolo Bonzini
With it comes a new image creation mode, "no-backing-file", that can be used to stream an image so that the destination does not need the original image's backing file(s). Both bdrv_append and blkmirror will set the backing_hd on the target, even if the image is created without one, so that both s

Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible

2012-03-06 Thread Peter Maydell
2012/3/6 Lluís Vilanova : > Current code depends on variables defined in config-host.mak before it is > actually included. Reviewed-by: Peter Maydell -- PMM

[Qemu-devel] [RFC PATCH 00/10] make qed and live migration usage safe

2012-03-06 Thread Benoît Canet
QED + live migration is an unsafe and disabled mix. This patchset make qed and live migration safe to use. The check of QED images is delayed during the incoming migration. After the migration complete the QED images are checked. Benoît Canet (10): block: Add new BDRV_O_INCOMING flag to notice

[Qemu-devel] [RFC PATCH 07/10] qed: extract image checking into check_image_if_needed

2012-03-06 Thread Benoît Canet
Signed-off-by: Benoit Canet --- block/qed.c | 55 ++- 1 files changed, 34 insertions(+), 21 deletions(-) diff --git a/block/qed.c b/block/qed.c index a041d31..25558fc 100644 --- a/block/qed.c +++ b/block/qed.c @@ -367,6 +367,37 @@ static void

[Qemu-devel] [PATCH v4 09/10] add drive-mirror command and HMP equivalent

2012-03-06 Thread Paolo Bonzini
Since QMP transactions are supposed to take (pseudo) QMP commands, add a standalone drive-mirror command. The corresponding HMP command does not provide atomic snapshot+mirror, but it can still be used together with image streaming. Signed-off-by: Paolo Bonzini --- blockdev.c | 15 +

[Qemu-devel] [PATCH v4 02/10] fix format name for backing file

2012-03-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- blockdev.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index acdc72a..6ed7d61 100644 --- a/blockdev.c +++ b/blockdev.c @@ -800,7 +800,8 @@ void qmp_blockdev_group_snapshot_sync(SnapshotDevList *dev_list,

[Qemu-devel] [RFC PATCH 10/10] qed: remove incoming live migration blocker

2012-03-06 Thread Benoît Canet
Signed-off-by: Benoit Canet --- block/qed.c |9 - block/qed.h |2 -- 2 files changed, 0 insertions(+), 11 deletions(-) diff --git a/block/qed.c b/block/qed.c index 4bfda24..a7964f0 100644 --- a/block/qed.c +++ b/block/qed.c @@ -511,12 +511,6 @@ static int bdrv_qed_open(BlockDrive

[Qemu-devel] [PATCH v4 04/10] rename blockdev-group-snapshot-sync

2012-03-06 Thread Paolo Bonzini
We will add other kinds of operation. Prepare for this by adjusting the schema. Signed-off-by: Paolo Bonzini --- blockdev.c | 78 - qapi-schema.json | 42 ++-- qmp-commands.hx | 52 +++--

Re: [Qemu-devel] [PATCH 2/5] qom/object.c: rename type_class_init() to type_initialize()

2012-03-06 Thread Peter Maydell
On 2 March 2012 11:35, Igor Mitsyanko wrote: > Function name type_class_init() gave us a wrong impression of separation > of type's "class" and "object" entities initialization. Name type_initialize() > is more appropriate for type_class_init() function (considering what > operations > it perform

[Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible

2012-03-06 Thread Lluís Vilanova
Current code depends on variables defined in config-host.mak before it is actually included. Signed-off-by: Lluís Vilanova Cc: Anthony Liguori Cc: Paul Brook --- Makefile | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 49c775b..4

Re: [Qemu-devel] [PATCH 3/5] exynos4210: add Exynos4210 i2c implementation

2012-03-06 Thread Peter Maydell
On 2 March 2012 11:35, Igor Mitsyanko wrote: > Create 9 exynos4210 i2c interfaces. > > Signed-off-by: Igor Mitsyanko > +#define EXYNOS4_I2C(obj)                  \ > +OBJECT_CHECK(Exynos4210I2CState, (obj), TYPE_EXYNOS4_I2C) > +#define EXYNOS4_I2C_SLAVE(obj)            \ > +OBJECT_CHECK(Exynos42

[Qemu-devel] Excessive VGA/VNC updates causing emulation slowdown (was: [Qemu-ppc] TCG PPC performance regression?)

2012-03-06 Thread Mark Cave-Ayland
Hi all, I've been looking at trying to fix some outstanding OpenBIOS bug reports and come across a serious performance regression with regard to VGA/VNC updates on qemu-system-ppc. In particular, I've been looking at Any ideas gratefully received.Any ideas gratefully received.trying to create

[Qemu-devel] [PATCH v4 00/10] Mirrored block writes

2012-03-06 Thread Paolo Bonzini
v4 includes Federico's drive-reopen (patch 10) command, fixes another small bug in Jeff's code (patch 2), and tweaks the union handling for older compilers. v3 tested with the following scenarios, v4 only d/e: a) mirror only 1) create base.qcow2 and starat QEMU with it 2) Execute the following

[Qemu-devel] [RFC PATCH 04/10] block: rename *_invalidate_cache_* to *_post_incoming_migration_*

2012-03-06 Thread Benoît Canet
This patch will allow to do a post incoming live migration check on QED images and keep invalidating caches on qcow2 images. Signed-off-by: Benoit Canet --- block.c | 10 +- block.h |8 +--- block/qcow2.c |7 ++- block_int.h |4 ++-- migration.c |

[Qemu-devel] [PATCH] gdbstub: Do not kill target in system emulation mode

2012-03-06 Thread Jan Kiszka
Too many VM kittens were killed since 7d03f82f81. Another one just died under my fat fingers. When you quit a kgdb session, does the Linux kernel power off? Or when you terminate gdb attached to a hardware debugger, does your board vanish in space? No. So let's stop terminating QEMU when the gdbs

[Qemu-devel] [PATCH 2/3] add SandyBridge CPU model

2012-03-06 Thread Eduardo Habkost
This patches add the definition of a SandyBridge CPU model. Summary of differences: Flags present on actual hardware, but not on the added model definition: - pbe, tm, ht, ss, acpi, vme, xTPR, tm2, eist, smx: host-specific features, not exposed to guest. - ds, ds-cpl, dtes64, pdcm: emulation n

[Qemu-devel] [PATCH 1/3] add "tsc-deadline" flag name to feature_ecx table

2012-03-06 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- target-i386/cpuid.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index c2edb64..465ea15 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -50,7 +50,7 @@ static const char *ext_fea

[Qemu-devel] [PATCH v4 10/10] Add the drive-reopen command

2012-03-06 Thread Paolo Bonzini
From: Federico Simoncelli Signed-off-by: Federico Simoncelli Signed-off-by: Paolo Bonzini --- blockdev.c | 63 ++ hmp-commands.hx | 16 + hmp.c| 11 + hmp.h|1 + qapi-schema.json |

[Qemu-devel] [PATCH v4 03/10] qapi: complete implementation of unions

2012-03-06 Thread Paolo Bonzini
Reviewed-by: Luiz Capitulino Signed-off-by: Paolo Bonzini --- qapi-schema-test.json | 10 ++ scripts/qapi-types.py |6 ++ scripts/qapi-visit.py | 31 ++- test-qmp-input-visitor.c | 18 ++ test-qmp-output-visitor.c |

[Qemu-devel] [RFC PATCH 09/10] qed: honor BDRV_O_INCOMING for incoming live migration

2012-03-06 Thread Benoît Canet
>From original commit is Patchwork-id: 31108 by Stefan Hajnoczi "The QED image format includes a file header bit to mark images dirty. QED normally checks dirty images on open and fixes inconsistent metadata. This is undesirable during live migration since the dirty bit may be set if the source

[Qemu-devel] [RFC PATCH 06/10] block: open images with BDRV_O_INCOMING on incoming live migration

2012-03-06 Thread Benoît Canet
Open images with BDRV_O_INCOMING in order to inform block drivers that an incoming live migration is coming. Signed-off-by: Benoit Canet --- block.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index b0f0288..78287df 100644 --- a/block.c +++ b/blo

[Qemu-devel] [RFC PATCH 02/10] block: add a function to set incoming live migration

2012-03-06 Thread Benoît Canet
This function will help to inform the block layer that an incoming live migration is coming in order to make proper usage of the BDRV_O_INCOMING flag. Signed-off-by: Benoit Canet --- block.c |8 block.h |2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/block

[Qemu-devel] [RFC PATCH 01/10] block: Add new BDRV_O_INCOMING flag to notice incoming live migration

2012-03-06 Thread Benoît Canet
>From original patch with Patchwork-id: 31110 by Stefan Hajnoczi "Add a flag to indicate that incoming migration is pending and care needs to be taken for data consistency. Block drivers should not modify the image file before incoming migration is complete since the migration source host is sti

[Qemu-devel] qxl screendump: how and why it is broken

2012-03-06 Thread Alon Levy
..and why we got to this situation. (per Anthony's request, and if you'll excuse the puny attempt to write biblically, a new beginning) In the begining there was screendump. It was a synchronous monitor command. Libvirt said: I want a screendump. And qemu waited for the vga device to produce it.

Re: [Qemu-devel] [PATCH 2/3] add Opteron_G4 CPU model

2012-03-06 Thread Eduardo Habkost
On Mon, Feb 27, 2012 at 04:33:13PM -0300, Eduardo Habkost wrote: > - ffxsr: untested, so not enabled [...] > extfeature_edx: > Opteron_G3: lm rdtscp fxsr mmxnx pse36 pat cmov mca > pge mtrr syscall apic cx8 mce pae msr tsc pse de fpu > full: lm rdtscp pdpe1gb ff

Re: [Qemu-devel] [PATCH 3/3] virtio-blk: note optional features

2012-03-06 Thread Anthony Liguori
On 03/06/2012 11:12 AM, Paolo Bonzini wrote: Il 06/03/2012 18:03, Anthony Liguori ha scritto: I don't know how comfortable I feel about this. You can't just remove a feature in flight. The guest is going to behave differently in such a way that the host isn't expecting. Yes, it should fail gr

[Qemu-devel] Regression: more 0.12 regression (SeaBIOS related?)

2012-03-06 Thread Alain Ribière
Hello, I'm reacting a bit later but I have a trouble with an old DOS OS from Digital Research called Concurrent DOS. It worked fine till Qemu v0.11.1. I tried it with a lot of versions from 0.12.0 to 1.0.1 and it boot correctly. But after a key pressed, I can't use the keyboard any more. The sys

Re: [Qemu-devel] [PATCH 3/3] virtio-blk: note optional features

2012-03-06 Thread Paolo Bonzini
Il 06/03/2012 18:03, Anthony Liguori ha scritto: > I don't know how comfortable I feel about this. > > You can't just remove a feature in flight. The guest is going to behave > differently in such a way that the host isn't expecting. Yes, it should > fail gracefully, but nonetheless it will fail

Re: [Qemu-devel] [PATCH 3/3] virtio-blk: note optional features

2012-03-06 Thread Anthony Liguori
On 03/06/2012 06:22 AM, Paolo Bonzini wrote: The guest must already be prepared to see SG_IO support disappear from under its feet, for example if migration refers to a block device on the source and file-based storage on the destination; or more likely, if the source kernel allows (gasp) SG_IO o

Re: [Qemu-devel] [PATCH 1/2 v7] block: add-cow file format

2012-03-06 Thread Stefan Hajnoczi
On Thu, Mar 1, 2012 at 2:56 AM, Dong Xu Wang wrote: > diff --git a/block/add-cow-cache.c b/block/add-cow-cache.c > new file mode 100644 > index 000..6be02ff > --- /dev/null > +++ b/block/add-cow-cache.c > @@ -0,0 +1,171 @@ > +/* > + * Cache For QEMU ADD-COW Disk Format > + * > + * Copyright IB

Re: [Qemu-devel] [PATCH v2 1/2] console: add hw_screen_dump_async

2012-03-06 Thread Anthony Liguori
On 03/06/2012 10:26 AM, Alon Levy wrote: On Tue, Mar 06, 2012 at 10:16:42AM -0600, Anthony Liguori wrote: On 03/06/2012 09:56 AM, Alon Levy wrote: On Tue, Mar 06, 2012 at 07:51:29AM -0600, Anthony Liguori wrote: On 03/06/2012 07:16 AM, Alon Levy wrote: On Tue, Mar 06, 2012 at 09:24:27AM -0300

Re: [Qemu-devel] [PATCH v2 1/2] console: add hw_screen_dump_async

2012-03-06 Thread Alon Levy
On Tue, Mar 06, 2012 at 10:16:42AM -0600, Anthony Liguori wrote: > On 03/06/2012 09:56 AM, Alon Levy wrote: > >On Tue, Mar 06, 2012 at 07:51:29AM -0600, Anthony Liguori wrote: > >>On 03/06/2012 07:16 AM, Alon Levy wrote: > >>>On Tue, Mar 06, 2012 at 09:24:27AM -0300, Luiz Capitulino wrote: > On

Re: [Qemu-devel] [PATCH v2 1/2] console: add hw_screen_dump_async

2012-03-06 Thread Anthony Liguori
On 03/06/2012 09:56 AM, Alon Levy wrote: On Tue, Mar 06, 2012 at 07:51:29AM -0600, Anthony Liguori wrote: On 03/06/2012 07:16 AM, Alon Levy wrote: On Tue, Mar 06, 2012 at 09:24:27AM -0300, Luiz Capitulino wrote: On Tue, 06 Mar 2012 08:36:34 +0100 Gerd Hoffmann wrote: Hi, How would the

Re: [Qemu-devel] Configuring QEMU to translate x86 instructions to native ARM instructions

2012-03-06 Thread Peter Maydell
On 6 March 2012 16:09, Roger wrote: > I will try the --cross-prefix option.  I have a feeling this > will do it.  I know that the prologue is being initialized with > the i386 target backend > I'll also try the --cpu option recommended by the previous poster. Yes, this should force the host CPU

[Qemu-devel] [Bug 916720] Re: select fails on windows because a non-socket fd is in the rfds set

2012-03-06 Thread Michael Rolnik
it seems that g_main_context_default creates a semaphore which is added into rfds passed to glib_select_fill function, that's why select fails. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/916720 Ti

Re: [Qemu-devel] Configuring QEMU to translate x86 instructions to native ARM instructions

2012-03-06 Thread Roger
I'm using the QEMU sources from 0.15.1. I will try the --cross-prefix option. I have a feeling this will do it. I know that the prologue is being initialized with the i386 target backend because the debugger shows me the name of the file and it is tcg/i386/tcg-target.c. Further more, the cod

Re: [Qemu-devel] [PATCH v2 1/2] console: add hw_screen_dump_async

2012-03-06 Thread Alon Levy
On Tue, Mar 06, 2012 at 05:56:49PM +0200, Alon Levy wrote: > On Tue, Mar 06, 2012 at 07:51:29AM -0600, Anthony Liguori wrote: > > On 03/06/2012 07:16 AM, Alon Levy wrote: > > >On Tue, Mar 06, 2012 at 09:24:27AM -0300, Luiz Capitulino wrote: > > >>On Tue, 06 Mar 2012 08:36:34 +0100 > > >>Gerd Hoffma

  1   2   >