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

2013-03-25 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|2 +- hw/arm/ftplat_a369soc.c |6 ++ hw/fti2c010.c | 224 +++ hw/fti2c010.h | 74

[Qemu-devel] [PATCH 7/7] net: increase buffer size to accommodate Jumbo frame pkts

2013-03-25 Thread Stefan Hajnoczi
From: Scott Feldman Socket buffer sizes were hard-coded to 4K for VDE and socket netdevs. Bump this up to 68K (ala tap netdev) to handle maximum GSO packet size (64k) plus plenty of room for the ethernet and virtio_net headers. Originally, ran into this limitation when using -netdev UDP sockets

Re: [Qemu-devel] [PATCH 07/10] versatile_pci: Implement the correct PCI IRQ mapping

2013-03-25 Thread Michael S. Tsirkin
On Mon, Mar 25, 2013 at 12:17:39PM +, Peter Maydell wrote: > On 25 March 2013 12:12, Michael S. Tsirkin wrote: > > On Sun, Mar 24, 2013 at 11:32:37AM +, Peter Maydell wrote: > >> +return (PCI_SLOT(d->devfn) + irq_num - 2) % PCI_NUM_PINS; > > > > It seems this can be a bit shorter: > >

Re: [Qemu-devel] [PATCH] block/curl: Add support for Secure Shell (ssh/sftp) block device

2013-03-25 Thread Richard W.M. Jones
On Fri, Mar 22, 2013 at 01:04:55PM +, Richard W.M. Jones wrote: > I got it working with Curl, patch attached. > > However there are multiple issues (these are mainly notes for myself): > > (1) libcurl cannot read the size of the file. I had to hard-code > this. This is probably just a short

Re: [Qemu-devel] [Xen-devel] frequently ballooning results in qemu exit

2013-03-25 Thread Hanweidong
We fixed this issue by below patch which computed the correct size for test_bits(). qemu_get_ram_ptr() and qemu_safe_ram_ptr() will call xen_map_cache() with size is 0 if the requested address is in the RAM. Then xen_map_cache() will pass the size 0 to test_bits() for checking if the correspond

Re: [Qemu-devel] [PATCH 3/8] qemu-char: Add fe_open tracking

2013-03-25 Thread Anthony Liguori
Hans de Goede writes: > Add tracking of the fe_open state to struct CharDriverState. > > Signed-off-by: Hans de Goede > --- > include/char/char.h | 1 + > qemu-char.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/include/char/char.h b/include/char/char.h > index dd8f39a..3

Re: [Qemu-devel] [PATCH 4/8] qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers

2013-03-25 Thread Anthony Liguori
Hans de Goede writes: > Most frontends can't really determine if the guest actually has the frontend > side open. So lets automatically generate fe_open / fe_close as soon as a > frontend becomes ready (as signalled by calling qemu_chr_add_handlers) / > becomes non ready (as signalled by setting

Re: [Qemu-devel] [PATCH v2] gtk: Fix accelerator filtering

2013-03-25 Thread Anthony Liguori
Jan Kiszka writes: > On 2013-02-25 16:44, Jan Kiszka wrote: >> On 2013-02-25 16:39, Anthony Liguori wrote: >>> Jan Kiszka writes: >>> This is in fact very simply: When the input in grabbed, everything should be exclusively passed to the guest - except it has our magic CTRL-ALT mod

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Paolo Bonzini
> Maybe I should have explained the output more detailed. The percentages > are added. 35.8% in the second last column means that > 35.8% have a return value that is less than TARGET_PAGE_SIZE. > This was meant to illustrate at how many 64-bit chunks you have > to look to grab a certain percentage

Re: [Qemu-devel] [PATCH 3/8] qemu-char: Add fe_open tracking

2013-03-25 Thread Hans de Goede
Hi, On 03/25/2013 01:45 PM, Anthony Liguori wrote: Hans de Goede writes: Add tracking of the fe_open state to struct CharDriverState. Signed-off-by: Hans de Goede --- include/char/char.h | 1 + qemu-char.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/char/char.

Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy

2013-03-25 Thread Paolo Bonzini
- Messaggio originale - > Da: "Michael R. Hines" > A: "Orit Wasserman" > Cc: qemu-devel@nongnu.org, pbonz...@redhat.com, m...@redhat.com, "chegu > vinod" , > quint...@redhat.com > Inviato: Sabato, 23 marzo 2013 17:27:49 > Oggetto: Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_cop

Re: [Qemu-devel] [PATCH] block/curl: Add support for Secure Shell (ssh/sftp) block device

2013-03-25 Thread Stefan Hajnoczi
On Mon, Mar 25, 2013 at 1:32 PM, Richard W.M. Jones wrote: > On Fri, Mar 22, 2013 at 01:04:55PM +, Richard W.M. Jones wrote: >> I got it working with Curl, patch attached. >> >> However there are multiple issues (these are mainly notes for myself): >> >> (1) libcurl cannot read the size of the

Re: [Qemu-devel] [PATCH 4/8] qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers

2013-03-25 Thread Hans de Goede
Hi, On 03/25/2013 01:46 PM, Anthony Liguori wrote: Hans de Goede writes: Most frontends can't really determine if the guest actually has the frontend side open. So lets automatically generate fe_open / fe_close as soon as a frontend becomes ready (as signalled by calling qemu_chr_add_handlers

[Qemu-devel] [PATCH v7 2/2] hw/qdev: Abort rather than ignoring errors adding device properties

2013-03-25 Thread Peter Maydell
Instead of ignoring any errors that occur when adding properties to a new device in device_initfn(), check for them and abort if any occur. The most likely cause is accidentally adding a duplicate property, which is a programming error by the device author. Signed-off-by: Peter Maydell Reviewed-b

[Qemu-devel] [PATCH v7 1/2] qom: Detect attempts to add a property that already exists

2013-03-25 Thread Peter Maydell
Detect attempts to add a property to an object if one of that name already exists, and report them as errors. Signed-off-by: Peter Maydell Reviewed-by: Anthony Liguori Acked-by: Paolo Bonzini --- qom/object.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/q

[Qemu-devel] KVM call agenda for 2013-03-26

2013-03-25 Thread Juan Quintela
Hi Please send in any agenda topics you are interested in. Later, Juan.

[Qemu-devel] s390 tcg breakage

2013-03-25 Thread Alexander Graf
Hi Richard, I've finally gotten around to debug why TCG on s390 hosts breaks for me. The reason turned out to be quite simple. The broken TB ends with a goto_tb instruction: exit_tb $0x3fffb258010 which gets translated into: 0x9040: lgfi%r2,-81428464 0x9046: iihl%r2

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: force usage of a very high MAC address for the bridge

2013-03-25 Thread Corey Bryant
On 03/22/2013 06:09 PM, Paolo Bonzini wrote: Il 22/03/2013 22:37, Corey Bryant ha scritto: Is it desirable to change a mac address under the covers? This is the TAP mac address. It is unrelated to the guest's MAC address. It is a random link-local address, all this patch does is make it le

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Peter Lieven
Am 25.03.2013 um 14:02 schrieb Paolo Bonzini : >> Maybe I should have explained the output more detailed. The percentages >> are added. 35.8% in the second last column means that >> 35.8% have a return value that is less than TARGET_PAGE_SIZE. >> This was meant to illustrate at how many 64-bit ch

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: force usage of a very high MAC address for the bridge

2013-03-25 Thread Corey Bryant
On 03/22/2013 12:57 PM, Paolo Bonzini wrote: Linux uses the lowest enslaved MAC address as the MAC address of the bridge. Set MAC address to a high value so that it does not affect the MAC address of the bridge. Changing the MAC address of the bridge could cause a few seconds of network downt

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Peter Lieven
Am 25.03.2013 um 14:23 schrieb Peter Lieven : > > Am 25.03.2013 um 14:02 schrieb Paolo Bonzini : > >>> Maybe I should have explained the output more detailed. The percentages >>> are added. 35.8% in the second last column means that >>> 35.8% have a return value that is less than TARGET_PAGE_SI

Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores

2013-03-25 Thread Peter Lieven
On 18.03.2013 10:53, Michael S. Tsirkin wrote: Do you see all interrupts going to the same CPU? If yes is irqbalance in guest running? I had the same issue today. Problem is irqs are going to all vCPUs. If the smp_affinity is set to one CPU only performance is OK. irqbalance is running, but it

[Qemu-devel] [PATCH v4] hw/qdev-properties.c: Improve diagnostic for setting property after realize

2013-03-25 Thread Peter Maydell
Now we have error_setg() we can improve the error message emitted if you attempt to set a property of a device after the device is realized (the previous message was "permission denied" which was not very informative). Signed-off-by: Peter Maydell --- Another attempt at updating this patch (v3 Oc

[Qemu-devel] [PATCH v7 0/2] qdev: Detect duplicate device properties

2013-03-25 Thread Peter Maydell
Detect and abort on duplicate properties in a qdev Property array. This patchset actually dates back to October last year (and got reviewed then, hence Anthony's r-b tags) but it didn't get applied (maybe we were in codefreeze) and I forgot about it. Anyway, I've rebased it so here we are again.

Re: [Qemu-devel] [PATCH v2 0/2] configure: fix coroutine backend selection logic

2013-03-25 Thread Peter Maydell
Ping! thanks -- PMM On 14 March 2013 17:57, Peter Maydell wrote: > The main aim of this patchset is patch 2, which changes the coroutine > backend selection logic so that it goes 'ucontext -> sigaltstack' > rather than 'ucontext -> gthread', since the gthread backend is > broken. To do this prop

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Igor Mitsyanko
On 03/25/2013 02:37 PM, Gerd Hoffmann wrote: > >>Hi, >> >> [5425.580115] displaysurface_create_from surface=0x7ff315d3df40, >>> 800x600, bpp 16, bswap 0 [5425.580257] displaysurface_free >>> surface=0x7ff3158c33b0 >>> >> >> This is vga=0x314 >> >> Looks like we have some funky interaction betw

Re: [Qemu-devel] [PATCH 2/2] vl.c: throw an error if iscsi is not supported

2013-03-25 Thread Stefan Hajnoczi
On Thu, Mar 21, 2013 at 01:07:11PM +0100, Peter Lieven wrote: > this patch adds a check for qemu_find_opts("iscsi") returning > NULL instead of blindly passing the result to qemu_opts_parse(). > > Signed-off-by: Peter Lieven > --- > vl.c |9 ++--- > 1 file changed, 6 insertions(+), 3 del

Re: [Qemu-devel] [Bug 1156313] [NEW] X86-64 flags handling broken

2013-03-25 Thread Torbjorn Granlund
After the latest patch of Richard's, qemu-system-x86_64 now runs GNU/Linux properly. The denorm problem is gone, and there seem to be no (or at least much fewer) spurious segfaults. This ends a multi-month period of qemu-system-x86_64 instability. Still qemu-system-mips64, qemu-system-mips64el,

Re: [Qemu-devel] [Bug 1156313] [NEW] X86-64 flags handling broken

2013-03-25 Thread Peter Maydell
On 25 March 2013 14:06, Torbjorn Granlund wrote: > Still qemu-system-mips64, qemu-system-mips64el, and qemu-system-arm > give spurious errors. If you can provide a reasonably sized test case for qemu-system-arm I can investigate that one. thanks -- PMM

Re: [Qemu-devel] [PATCH 1/2] vl.c: call bdrv_init_with_whitelist() before cmdline parsing

2013-03-25 Thread Stefan Hajnoczi
On Thu, Mar 21, 2013 at 01:07:10PM +0100, Peter Lieven wrote: > commit 4d454574 "qemu-option: move standard option definitions > out of qemu-config.c" broke support for commandline option > groups that where registered during bdrv_init(). In particular > support for -iscsi options was broken since

Re: [Qemu-devel] [PATCH 2/2] vl.c: throw an error if iscsi is not supported

2013-03-25 Thread Peter Lieven
Am 25.03.2013 um 15:00 schrieb Stefan Hajnoczi : > On Thu, Mar 21, 2013 at 01:07:11PM +0100, Peter Lieven wrote: >> this patch adds a check for qemu_find_opts("iscsi") returning >> NULL instead of blindly passing the result to qemu_opts_parse(). >> >> Signed-off-by: Peter Lieven >> --- >> vl.c

Re: [Qemu-devel] [Bug 1158912] [NEW] QEMU Version 1.4.0 - SLIRP hangs VM

2013-03-25 Thread Stefan Hajnoczi
On Fri, Mar 22, 2013 at 05:51:14PM -, Kenneth Salerno wrote: > Public bug reported: > > (Note: problem is not present in version 1.3.0) Please run git-bisect(1) to identify the commit that introduced the bug. Information about git-bisect(1): http://git-scm.com/book/en/Git-Tools-Debugging-wit

[Qemu-devel] [Bug 1159605] Re: run command hangs using "-M none"

2013-03-25 Thread Andreas Färber
Shehbaz, you seem to be mixing up -m and -M. -M is a shorthand for -machine, whereas -m is the memory. Jiamswang, are you saying the second command gets fixed by adding a comma and the first by changing -M to -machine? That sounds more like a heisenbug (works sometimes, fails apparently randomly).

Re: [Qemu-devel] [PATCH 2/2] vl.c: throw an error if iscsi is not supported

2013-03-25 Thread Peter Maydell
On 25 March 2013 14:10, Peter Lieven wrote: > Am 25.03.2013 um 15:00 schrieb Stefan Hajnoczi : >> On Thu, Mar 21, 2013 at 01:07:11PM +0100, Peter Lieven wrote: >>> this patch adds a check for qemu_find_opts("iscsi") returning >>> NULL instead of blindly passing the result to qemu_opts_parse(). >>>

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Paolo Bonzini
Il 25/03/2013 14:32, Peter Lieven ha scritto: > > Am 25.03.2013 um 14:23 schrieb Peter Lieven : > >> >> Am 25.03.2013 um 14:02 schrieb Paolo Bonzini : >> Maybe I should have explained the output more detailed. The percentages are added. 35.8% in the second last column means that 35

Re: [Qemu-devel] [PATCH] block: Add support for Secure Shell (ssh) block device.

2013-03-25 Thread Kevin Wolf
Am 21.03.2013 um 14:38 hat Richard W.M. Jones geschrieben: > From: "Richard W.M. Jones" > > qemu-system-x86_64 -drive file=ssh://hostname/some/image > > QEMU will ssh into 'hostname' and open '/some/image' which is made > available as a standard block device. > > You can specify a username (s

[Qemu-devel] [PATCH] qmp: fix handling of boolean values in qmp-shell

2013-03-25 Thread Igor Mammedov
qmp-shell converts only integer arguments and the rest is assumed to be strings which are faithfully sent as quoted strings by json. But QEMU refuses to accept qmp command with boolean argument whose value is escaped as string. Fix it by special-casing true/false keywords and store value as corres

Re: [Qemu-devel] qemu-x86_64 on i386 host: SIGSEGV

2013-03-25 Thread Richard Henderson
On 03/24/2013 03:59 AM, Peter Maydell wrote: > PC is FF600400 so either we've messed it up already or this > is just "64 bit address space doesn't fit in a 32 bit one". This is probably the fallback vdso address. I've previously sent patches to the list (several times) to add a real vdso

Re: [Qemu-devel] kvm suspend performance

2013-03-25 Thread Eric Blake
On 03/23/2013 06:42 AM, Thomas Knauth wrote: > Hi Eric, > > thanks for the reply. This indeed solved my issue. Suspending is much > faster without the artificial throttle. > > On a related note: I'm curious about the baseline resume latency. It takes > about 5 seconds to resume an instance with a

Re: [Qemu-devel] [PATCH 4/8] qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers

2013-03-25 Thread Anthony Liguori
Hans de Goede writes: > Hi, > > On 03/25/2013 01:46 PM, Anthony Liguori wrote: >> Hans de Goede writes: >> >>> Most frontends can't really determine if the guest actually has the frontend >>> side open. So lets automatically generate fe_open / fe_close as soon as a >>> frontend becomes ready (as

Re: [Qemu-devel] [PATCH] block: Add support for Secure Shell (ssh) block device.

2013-03-25 Thread Richard W.M. Jones
On Mon, Mar 25, 2013 at 03:36:22PM +0100, Kevin Wolf wrote: > You don't have a bdrv_co_flush_to_disk, what does this mean? Is every > write immediately flushed to the disk, is the driver unsafe by design, > or is this just a missing implementation detail? Initially there is no .bdrv_co_flush_to_di

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Igor Mammedov
On Mon, 25 Mar 2013 10:39:36 +0100 Andreas Färber wrote: > Am 28.02.2013 03:12, schrieb H. Peter Anvin: > > From: "H. Peter Anvin" > > > > Add models for 486SX, and pre-CPUID versions of the 486 (DX & SX). > > Change the model number for the standard 486DX to a model which > > actually had CPUI

Re: [Qemu-devel] [PATCH] qmp: fix handling of boolean values in qmp-shell

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 15:48:46 +0100 Igor Mammedov wrote: > qmp-shell converts only integer arguments and the rest > is assumed to be strings which are faithfully sent as > quoted strings by json. But QEMU refuses to accept qmp > command with boolean argument whose value is escaped > as string. >

Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy

2013-03-25 Thread Michael R. Hines
Right, the header's not used - but, are we certain that put_buffer_copy() will *always* be used for RAM in the future? - Michael On 03/25/2013 09:05 AM, Paolo Bonzini wrote: - Messaggio originale - Da: "Michael R. Hines" A: "Orit Wasserman" Cc: qemu-devel@nongnu.org, pbonz...@redha

[Qemu-devel] [PATCH 11/12 v2] qmp: add cpu-set qmp command

2013-03-25 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- v2: * s/cpu_set/cpu-set/ * qmp doc style fix * use bool type instead of opencodding online/offline string suggested-by: Eric Blake changes are on WIP branch: https://github.com/imammedo/qemu/tree/cpu_set.WIP --- include/sysemu/sysemu.h |2 ++ qa

Re: [Qemu-devel] qemu-x86_64 on i386 host: SIGSEGV

2013-03-25 Thread Laurent Desnogues
On Mon, Mar 25, 2013 at 4:03 PM, Richard Henderson wrote: > On 03/24/2013 03:59 AM, Peter Maydell wrote: >> PC is FF600400 so either we've messed it up already or this >> is just "64 bit address space doesn't fit in a 32 bit one". > > This is probably the fallback vdso address. Yes, it lo

[Qemu-devel] [PATCH] glib: add a compatibility interface for g_timeout_add_seconds

2013-03-25 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- include/glib-compat.h | 27 +++ include/qemu-common.h | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 include/glib-compat.h diff --git a/include/glib-compat.h b/include/glib-compat.h new file mode 100644 ind

Re: [Qemu-devel] [PATCH 12/12] target-i386: implement CPU hot-add

2013-03-25 Thread Igor Mammedov
On Thu, 21 Mar 2013 20:46:57 -0600 Eric Blake wrote: > On 03/21/2013 08:28 AM, Igor Mammedov wrote: > > ... via do_cpu_hot_add() hook called by cpu_set QMP command, > > for x86 target. > > > > * add extra check that APIC ID is in allowed range > > > +if (x86_cpu_is_cpu_exist(qdev_get_machin

Re: [Qemu-devel] [PATCH] glib: add a compatibility interface for g_timeout_add_seconds

2013-03-25 Thread Peter Maydell
On 25 March 2013 15:24, Anthony Liguori wrote: > Signed-off-by: Anthony Liguori > +#if !GLIB_CHECK_VERSION(2, 14, 0) > +static inline guint g_timeout_add_seconds(guint interval, GSourceFunc > function, > + gpointer data) > +{ > +return g_timeout_add(i

Re: [Qemu-devel] [RFC PATCH 3/3] mc146818rtc: export the timezone information

2013-03-25 Thread H. Peter Anvin
On 03/25/2013 02:05 AM, Paolo Bonzini wrote: > > Interesting, do you have SeaBIOS and/or OVMF patches for this? > Not at this point. -hpa

Re: [Qemu-devel] [RFC PATCH 3/3] mc146818rtc: export the timezone information

2013-03-25 Thread Paolo Bonzini
> On 03/25/2013 02:05 AM, Paolo Bonzini wrote: > > Interesting, do you have SeaBIOS and/or OVMF patches for this? > > Not at this point. I guess you could repost 1 and 2 without the RFC tag, then. Paolo

Re: [Qemu-devel] [PATCH] Introduce query-cpu-max QMP command and cpu_max HMP counterpart

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 13:06:27 +0100 Michal Novotny wrote: > > On 03/21/2013 01:51 PM, Luiz Capitulino wrote: > > On Tue, 12 Mar 2013 17:03:31 +0100 > > Michal Novotny wrote: > > > >> This is the patch to introduce the query-cpu-max QMP command to get > >> the maximum number of CPUs supported by

Re: [Qemu-devel] [PATCH] Introduce query-cpu-max QMP command and cpu_max HMP counterpart

2013-03-25 Thread Michal Novotny
Resent now. it went to my inbox (added from SOB) so hopefully it went to you and list too (however list is too slow to verify now). Michal On 03/25/2013 04:52 PM, Luiz Capitulino wrote: > On Mon, 25 Mar 2013 13:06:27 +0100 > Michal Novotny wrote: > >> On 03/21/2013 01:51 PM, Luiz Capitulino wrot

Re: [Qemu-devel] [Bug 1156313] [NEW] X86-64 flags handling broken

2013-03-25 Thread Torbjorn Granlund
Peter Maydell writes: On 25 March 2013 14:06, Torbjorn Granlund wrote: > Still qemu-system-mips64, qemu-system-mips64el, and qemu-system-arm > give spurious errors. If you can provide a reasonably sized test case for qemu-system-arm I can investigate that one. I don't know how to

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 16:58:50 +0100 Michal Novotny wrote: > These commands return the maximum number of CPUs supported by the /These commands/This command > currently running emulator instance, as defined in its QEMUMachine > struct. > > Signed-off-by: Michal Novotny > --- > hmp-commands.hx

Re: [Qemu-devel] [PATCH 0/2 v7] Add Windows support for time resync by qemu-ga

2013-03-25 Thread mdroth
On Fri, Mar 15, 2013 at 05:29:03PM +0800, Lei Li wrote: > This patch series attempts to add Windows implementation > for qemu-ga commands guest-get-time and guest-set-time. Thanks, applied to qga branch. > > The previous thread about the interfaces introduced and > the POSIX-specific command im

Re: [Qemu-devel] [PATCH 0/2] documentation fixups for the qga schema

2013-03-25 Thread mdroth
On Fri, Mar 15, 2013 at 07:07:49PM +0100, Laszlo Ersek wrote: > Laszlo Ersek (2): > qga schema: mark optional GuestLogicalProcessor.can-offline with > #optional > qga schema: document generic QERR_UNSUPPORTED > > qga/qapi-schema.json | 18 +++--- > 1 files changed, 15 insert

Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy

2013-03-25 Thread Paolo Bonzini
> Right, the header's not used - but, are we certain that > put_buffer_copy() will *always* be used for RAM in the future? I think you should not make any assumption and proceed as if this series didn't exist. Paolo

Re: [Qemu-devel] [PATCH] qemu-ga: ga_get_fd_handle(): abort if fd_counter overflows

2013-03-25 Thread mdroth
On Fri, Mar 22, 2013 at 04:31:07PM -0400, Luiz Capitulino wrote: > Today we reset fd_counter if it wraps, but it's better to abort() > instead, as fd_counter should never reach INT64_MAX. > > Signed-off-by: Luiz Capitulino Thanks, applied to qga branch with s/resonable/reasonable/ typo fix. > -

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Michal Novotny
On 03/25/2013 05:13 PM, Luiz Capitulino wrote: > On Mon, 25 Mar 2013 16:58:50 +0100 > Michal Novotny wrote: > >> These commands return the maximum number of CPUs supported by the > /These commands/This command I meant both of them - both QMP (query-cpu-max) one HMP (cpu_max) one. > >> current

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 17:24:02 +0100 Michal Novotny wrote: > >> +void hmp_query_cpu_max(Monitor *mon, const QDict *qdict) > >> +{ > >> +int cpu_max; > >> +Error *errp = NULL; > >> + > >> +cpu_max = qmp_query_cpu_max(&errp); > >> +if (errp) { > >> +monitor_printf(mon, "%s\n",

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Michal Novotny
Version 3 sent to both you and list. Michal On 03/25/2013 05:27 PM, Luiz Capitulino wrote: > On Mon, 25 Mar 2013 17:24:02 +0100 > Michal Novotny wrote: > +void hmp_query_cpu_max(Monitor *mon, const QDict *qdict) +{ +int cpu_max; +Error *errp = NULL; + +c

[Qemu-devel] [PATCH 00/19] qcow2: Rework cluster allocation even more

2013-03-25 Thread Kevin Wolf
This is the start of the latest Delayed COW series. As there seem to be serious problems with the actual Delayed COW (which in fact exist today, but would become a bit easier to hit) and I don't have the time to complete this at the moment, here is another series with preparatory patches, for which

[Qemu-devel] [PATCH 02/19] qcow2: Remove bogus unlock of s->lock

2013-03-25 Thread Kevin Wolf
The unlock wakes up the next coroutine, but the currently running coroutine will lock it again before it yields, so this doesn't make a lot of sense. Signed-off-by: Kevin Wolf --- block/qcow2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 8ea696a..3f7e

[Qemu-devel] [PATCH 04/19] qcow2: Improve check for overlapping allocations

2013-03-25 Thread Kevin Wolf
The old code detected an overlapping allocation even when the allocations didn't actually overlap, but were only adjacent. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 2 +- tests/qemu-iotests/038.out | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/

[Qemu-devel] [PATCH 06/19] qcow2: Decouple cluster allocation from cluster reuse code

2013-03-25 Thread Kevin Wolf
This moves some code that prepares the allocation of new clusters to where the actual allocation happens. This is the minimum required to be able to move it to a separate function in the next patch. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 35 --- 1 f

[Qemu-devel] [PATCH 01/19] qcow2: Fix "total clusters" number in bdrv_check

2013-03-25 Thread Kevin Wolf
This should be based on the virtual disk size, not on the size of the image. Interesting observation: With some VM state stored in the image file, percentages higher than 100% are possible, even though snapshots themselves are ignored. This is a qcow2 bug to be fixed another day: The VM state shou

[Qemu-devel] [PATCH 03/19] qcow2: Handle dependencies earlier

2013-03-25 Thread Kevin Wolf
Handling overlapping allocations isn't just a detail of cluster allocation. It is rather one of three ways to get the host cluster offset for a write request: 1. If a request overlaps an in-flight allocations, the cluster offset can be taken from there (this is what handle_dependencies will evo

[Qemu-devel] [PATCH 11/19] qcow2: Clean up handle_alloc()

2013-03-25 Thread Kevin Wolf
Things can be simplified a bit now. No semantic changes. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 110 -- 1 file changed, 53 insertions(+), 57 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 457f162..2047

[Qemu-devel] [PATCH 07/19] qcow2: Factor out handle_alloc()

2013-03-25 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 240 +++--- trace-events | 1 + 2 files changed, 152 insertions(+), 89 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 9550927..454a30c 100644 --- a/block/qc

[Qemu-devel] [PATCH 13/19] qcow2: handle_copied(): Get rid of nb_clusters parameter

2013-03-25 Thread Kevin Wolf
handle_copied() uses its bytes parameter now to determine how many clusters it should try to find. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index

[Qemu-devel] [PATCH 17/19] qcow2: Allow requests with multiple l2metas

2013-03-25 Thread Kevin Wolf
Instead of expecting a single l2meta, have a list of them. This allows to still have a single I/O request for the guest data, even though multiple l2meta may be needed in order to describe both a COW overwrite and a new cluster allocation (typical sequential write case). Signed-off-by: Kevin Wolf

[Qemu-devel] [PATCH 10/19] qcow2: Finalise interface of handle_alloc()

2013-03-25 Thread Kevin Wolf
The interface works completely on a byte granularity now and duplicated parameters are removed. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 29 - block/qcow2.h | 5 + 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/block/qcow2-c

[Qemu-devel] [PATCH 08/19] qcow2: handle_alloc(): Get rid of nb_clusters parameter

2013-03-25 Thread Kevin Wolf
We already communicate the same information in *bytes. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 454a30c..009f62a 100644 --- a/block/qcow2-cluste

[Qemu-devel] [PATCH 16/19] qcow2: Use byte granularity in qcow2_alloc_cluster_offset()

2013-03-25 Thread Kevin Wolf
This gets rid of the nb_clusters and keep_clusters and the associated complicated calculations. Just advance the number of bytes that have been processed and everything is fine. This patch advances the variables even after the last operation even though they aren't used any more afterwards to make

[Qemu-devel] [PATCH 12/19] qcow2: Factor out handle_copied()

2013-03-25 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 133 +++--- trace-events | 1 + 2 files changed, 94 insertions(+), 40 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 2047468..4be43c3 100644 --- a/block/qco

[Qemu-devel] [PATCH 14/19] qcow2: handle_copied(): Get rid of keep_clusters parameter

2013-03-25 Thread Kevin Wolf
Now *bytes is used to return the length of the area that can be written to without performing an allocation or COW. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow

[Qemu-devel] [PATCH 15/19] qcow2: handle_copied(): Implement non-zero host_offset

2013-03-25 Thread Kevin Wolf
Look only for clusters that start at a given physical offset. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index c36b1e7..3588773 100644 --- a/bl

[Qemu-devel] [PATCH 18/19] qcow2: Move cluster gathering to a non-looping loop

2013-03-25 Thread Kevin Wolf
This patch is mainly to separate the indentation change from the semantic changes. All that really changes here is that everything moves into a while loop, all 'goto done' become 'break' and at the end of the loop a new 'break is inserted. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 13

[Qemu-devel] [PATCH 19/19] qcow2: Gather clusters in a looping loop

2013-03-25 Thread Kevin Wolf
Instead of just checking once in exactly this order if there are dependendies, non-COW clusters and new allocation, this starts looping around these. This way we can, for example, gather non-COW clusters after new allocations as long as the host cluster offsets stay contiguous. Once handle_depende

Re: [Qemu-devel] [PATCH] pcie: Enhance PCIe links

2013-03-25 Thread Alex Williamson
On Sun, 2013-03-24 at 11:14 +0200, Michael S. Tsirkin wrote: > On Fri, Mar 22, 2013 at 09:25:13AM -0600, Alex Williamson wrote: > > On Thu, 2013-03-21 at 18:56 +0200, Michael S. Tsirkin wrote: > > > On Tue, Mar 19, 2013 at 04:24:47PM -0600, Alex Williamson wrote: > > > > Enable PCIe devices to nego

[Qemu-devel] [PATCH 05/19] qcow2: Change handle_dependency to byte granularity

2013-03-25 Thread Kevin Wolf
This is a more precise description of what really constitutes a dependency. The behaviour doesn't change at this point because the COW area of the old request is still aligned to cluster boundaries and therefore an overlap is detected wheneven the requests touch any part of the same cluster. Signe

[Qemu-devel] [PATCH 09/19] qcow2: handle_alloc(): Get rid of keep_clusters parameter

2013-03-25 Thread Kevin Wolf
handle_alloc() is now called with the offset at which the actual new allocation starts instead of the offset at which the whole write request starts, part of which may already be processed. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 44 +++- blo

Re: [Qemu-devel] [Qemu-ppc] [RFC ppc-next PATCH 3/6] memory: add memory_region_to_address()

2013-03-25 Thread Scott Wood
On 03/23/2013 06:24:49 AM, Peter Maydell wrote: On 22 March 2013 22:05, Scott Wood wrote: > On 03/22/2013 08:08:57 AM, Peter Maydell wrote: >> The memory API flattens the tree of memory regions down into a flat >> view of the address space. These callbacks get called for the >> final flattened v

Re: [Qemu-devel] [PATCH v4] hw/qdev-properties.c: Improve diagnostic for setting property after realize

2013-03-25 Thread Igor Mitsyanko
On Mar 25, 2013 5:40 PM, "Peter Maydell" wrote: > > Now we have error_setg() we can improve the error message emitted if > you attempt to set a property of a device after the device is realized > (the previous message was "permission denied" which was not very > informative). > > Signed-off-by: Pe

Re: [Qemu-devel] [PATCH v3] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 17:31:33 +0100 Michal Novotny wrote: > These commands return the maximum number of CPUs supported by the > currently running emulator instance, as defined in its QEMUMachine > struct. I've applied this patch to the QMP tree, but with one change (see below). > > Signed-off-b

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread H. Peter Anvin
On 03/25/2013 08:15 AM, Igor Mammedov wrote: >> >> Such changes have been rejected in the past (e.g., n270 Atom). >> I personally wouldn't object to 486 changes, but I guess it should >> rather be handled via Igor's CPU static properties that I have in my >> review queue: The .model value would be

Re: [Qemu-devel] [PATCH 19/19] qcow2: Gather clusters in a looping loop

2013-03-25 Thread Kevin Wolf
Am 25.03.2013 um 18:30 hat Kevin Wolf geschrieben: > Instead of just checking once in exactly this order if there are > dependendies, non-COW clusters and new allocation, this starts looping > around these. This way we can, for example, gather non-COW clusters after > new allocations as long as the

Re: [Qemu-devel] [PATCH 01/19] qcow2: Fix "total clusters" number in bdrv_check

2013-03-25 Thread Eric Blake
On 03/25/2013 11:30 AM, Kevin Wolf wrote: > This should be based on the virtual disk size, not on the size of the > image. > > Interesting observation: With some VM state stored in the image file, > percentages higher than 100% are possible, even though snapshots > themselves are ignored. This is

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Eduardo Habkost
On Mon, Mar 25, 2013 at 04:15:15PM +0100, Igor Mammedov wrote: > On Mon, 25 Mar 2013 10:39:36 +0100 > Andreas Färber wrote: > > > Am 28.02.2013 03:12, schrieb H. Peter Anvin: > > > From: "H. Peter Anvin" > > > > > > Add models for 486SX, and pre-CPUID versions of the 486 (DX & SX). > > > Change

Re: [Qemu-devel] [PATCH 02/19] qcow2: Remove bogus unlock of s->lock

2013-03-25 Thread Eric Blake
On 03/25/2013 11:30 AM, Kevin Wolf wrote: > The unlock wakes up the next coroutine, but the currently running > coroutine will lock it again before it yields, so this doesn't make a > lot of sense. > > Signed-off-by: Kevin Wolf > --- > block/qcow2.c | 2 -- > 1 file changed, 2 deletions(-) Code

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Eduardo Habkost
On Mon, Mar 25, 2013 at 11:44:30AM -0700, H. Peter Anvin wrote: > On 03/25/2013 08:15 AM, Igor Mammedov wrote: > >> > >> Such changes have been rejected in the past (e.g., n270 Atom). > >> I personally wouldn't object to 486 changes, but I guess it should > >> rather be handled via Igor's CPU stati

Re: [Qemu-devel] [PATCH 04/19] qcow2: Improve check for overlapping allocations

2013-03-25 Thread Eric Blake
On 03/25/2013 11:30 AM, Kevin Wolf wrote: > The old code detected an overlapping allocation even when the > allocations didn't actually overlap, but were only adjacent. > > Signed-off-by: Kevin Wolf > --- > block/qcow2-cluster.c | 2 +- > tests/qemu-iotests/038.out | 10 +- > 2 fil

[Qemu-devel] [PATCH 0/2] Monitor: make output buffer dynamic

2013-03-25 Thread Luiz Capitulino
Hi, This series fixes an easy to reproduce assertion in the Monitor code. The second patch contains all the relevant details. Gerd, I'd like a reviewed-by from you before merging this. Luiz Capitulino (2): qstring: add qobject_get_length() Monitor: Make output buffer dynamic include/qapi/q

[Qemu-devel] [PATCH 1/2] qstring: add qobject_get_length()

2013-03-25 Thread Luiz Capitulino
Long overdue. Signed-off-by: Luiz Capitulino --- include/qapi/qmp/qstring.h | 1 + qobject/qstring.c | 8 2 files changed, 9 insertions(+) diff --git a/include/qapi/qmp/qstring.h b/include/qapi/qmp/qstring.h index 0e690f4..1bc3666 100644 --- a/include/qapi/qmp/qstring.h +++ b/

[Qemu-devel] [PATCH 2/2] Monitor: Make output buffer dynamic

2013-03-25 Thread Luiz Capitulino
Commit f628926bb423fa8a7e0b114511400ea9df38b76a changed monitor_flush() to retry on qemu_chr_fe_write() errors. However, the Monitor's output buffer can keep growing while the retry is not issued and this can cause the buffer to overflow. To reproduce this issue, just start qemu and type on the Mo

Re: [Qemu-devel] [PATCH 16/19] qcow2: Use byte granularity in qcow2_alloc_cluster_offset()

2013-03-25 Thread Kevin Wolf
Am 25.03.2013 um 18:30 hat Kevin Wolf geschrieben: > This gets rid of the nb_clusters and keep_clusters and the associated > complicated calculations. Just advance the number of bytes that have > been processed and everything is fine. > > This patch advances the variables even after the last opera

Re: [Qemu-devel] Abort in monitor_puts.

2013-03-25 Thread Gerd Hoffmann
Hi, >>> The previous version of monitor_flush() ignores errors, and everything >>> works, so doing the same thing here fixes the problem :) >> >> No, ignoring errors breaks qmp because the output isn't valid json any >> more when you cut off something ... > > What you mean "when you cut off"? W

Re: [Qemu-devel] [PATCH] glib: add a compatibility interface for g_timeout_add_seconds

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

Re: [Qemu-devel] [PATCH v3] gtk: Release modifier when graphic console loses keyboard focus

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

<    1   2   3   >