[Qemu-devel] [Bug 1312561] Re: libstdc++-6.dll is missing from your computer

2014-05-05 Thread Rupert Russell
Ok, so we need to wait for a recompiled version I guess. I did after your post get the dll from the mingw site, and that error went away, but then replaced by application failed with (0x07b) error. How much of the mingw package would we need to install to fix the problem if a recompiled versi

[Qemu-devel] [PATCH] qapi: Document optional arguments' backwards compatibility

2014-05-05 Thread Fam Zheng
Signed-off-by: Fam Zheng --- docs/qapi-code-gen.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index d78921f..d7b19ab 100644 --- a/docs/qapi-code-gen.txt +++ b/docs/qapi-code-gen.txt @@ -51,8 +51,10 @@ example of a com

Re: [Qemu-devel] [PATCH 9/9] tcg-s390: Don't force -march=z990

2014-05-05 Thread Christian Borntraeger
On 03/05/14 16:08, Richard Henderson wrote: > While we still require the LONG DISPLACEMENT facility, defaults > have moved on since then. Don't override the system compiler, > whose default may be set to z9-109 or later. > > Signed-off-by: Richard Henderson > --- > configure | 4 ++-- > 1 file

[Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Fam Zheng
.impl.valid should be .impl.unaligned and the description needs some fixes. .old_portio is removed since commit b40acf99b (ioport: Switch dispatching to memory core layer). Signed-off-by: Fam Zheng --- docs/memory.txt | 10 +- include/exec/memory.h | 2 +- 2 files changed, 6 inse

Re: [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Paolo Bonzini
Il 05/05/2014 09:53, Fam Zheng ha scritto: .impl.valid should be .impl.unaligned and the description needs some fixes. .old_portio is removed since commit b40acf99b (ioport: Switch dispatching to memory core layer). Signed-off-by: Fam Zheng --- docs/memory.txt | 10 +- include/e

Re: [Qemu-devel] [PATCH] i8259: don't abort when trying to use level sensitive irqs

2014-05-05 Thread Michael S. Tsirkin
On Sat, May 03, 2014 at 10:39:37PM +0200, Hervé Poussineau wrote: > Ping. > > Le 22/04/2014 23:00, Hervé Poussineau a écrit : > >This is a guest-triggerable error, as seen when using Xenix 2.3.4. > >Replace hw_error by LOG_UNIMPL, so that guests have at least a chance to > >continue. > > > >Signe

[Qemu-devel] [PATCH v3 0/4] little-endian dump for ppc64

2014-05-05 Thread Greg Kurz
Hi, Please find the latest patch set for dump-guest-memory to support little-endian ppc64 guest kernels. The only change since the last post is a better naming of the dump endian helpers. Since it affects patches 1 & 2, I resend the full serie, with Alex's Reviewed-by tags from the last review. C

[Qemu-devel] [PATCH v3 1/4] dump: Make DumpState and endian conversion routines available for arch-specific dump code

2014-05-05 Thread Greg Kurz
From: Bharata B Rao Make DumpState and endian conversion routines available for arch-specific dump code by moving into dump.h. DumpState will be needed by arch-specific dump code to access target endian information from DumpState->ArchDumpInfo. Also break the dependency of dump.h from stubs/dump.

[Qemu-devel] [PATCH v3 2/4] ppc64-dump: Support dump for little endian ppc64

2014-05-05 Thread Greg Kurz
From: Bharata B Rao Fix ppc64 arch specific dump code to work correctly for little endian guests. We introduce a NoteFuncArg type to avoid adding extra arguments to all note functions. Signed-off-by: Bharata B Rao [ rebased on top of current master branch, introduced NoteFuncArg, use new c

[Qemu-devel] [PATCH v3 3/4] target-ppc: ppc can be either endian

2014-05-05 Thread Greg Kurz
POWER7, POWER7+ and POWER8 families use the ILE bit of the LPCR special purpose register to decide the endianness to use when entering interrupt handlers. When running a Linux guest, this provides a hint on the endianness used by the kernel. From a QEMU point of view, the information is needed for

[Qemu-devel] [PATCH v2 4/4] ppc64 dump: Set the correct endianness in ELF dump header

2014-05-05 Thread Greg Kurz
From: Bharata B Rao Signed-off-by: Bharata B Rao [ use PowerPCCPUClass::interrupts_big_endian(), Greg Kurz ] Reviewed-by: Alexander Graf Signed-off-by: Greg Kurz --- No changes, resent in case it helps target-ppc/arch_dump.c | 12 1 file changed, 8 insertions(+), 4 deletio

Re: [Qemu-devel] [PATCH 16/22] sheepdog: implement .bdrv_detach/attach_aio_context()

2014-05-05 Thread Liu Yuan
On Thu, May 01, 2014 at 04:54:40PM +0200, Stefan Hajnoczi wrote: > Drop the assumption that we're using the main AioContext. Convert > qemu_aio_set_fd_handler() to aio_set_fd_handler() and qemu_aio_wait() to > aio_poll(). > > The .bdrv_detach/attach_aio_context() interfaces also need to be > impl

Re: [Qemu-devel] [PATCH v3 0/4] Add max-ram-below-4g (was Add pci_hole_min_size machine option)

2014-05-05 Thread Michael S. Tsirkin
On Tue, Apr 22, 2014 at 12:31:16PM -0400, Don Slutz wrote: > On 04/18/14 10:10, Andreas Färber wrote: > >Am 25.03.2014 10:08, schrieb Michael S. Tsirkin: > >>On Mon, Mar 24, 2014 at 07:55:32PM -0400, Don Slutz wrote: > >>>Changes v2 to v3: > >>> Stefano Stabellini: > >>> Acked-by #1 "xen-all:

Re: [Qemu-devel] [PATCH v2 1/2] qapi: Allow decimal values

2014-05-05 Thread Markus Armbruster
Eric Blake writes: > On 04/29/2014 03:44 AM, Fam Zheng wrote: >> This allows giving decimal constants in the schema as expr. >> >> Signed-off-by: Fam Zheng >> --- >> scripts/qapi.py | 15 +-- >> 1 file changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/scripts/qapi.py b/

Re: [Qemu-devel] [PATCH 07/22] gluster: use BlockDriverState's AioContext

2014-05-05 Thread Bharata B Rao
On Thu, May 01, 2014 at 04:54:31PM +0200, Stefan Hajnoczi wrote: > Drop the assumption that we're using the main AioContext. Use > aio_bh_new() instead of qemu_bh_new(). > > The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces > are not needed since no fd handlers, timers, or

[Qemu-devel] [RFC PATCH V4 0/6] PSCI v0.2 support for KVM ARM/ARM64

2014-05-05 Thread Pranavkumar Sawargaonkar
This patchset adds the QEMU side changes for providing PSCI v0.2 to VM. ChangeLog: V4: - Rebase this patch against v11 patchset for in-kernel PSCI v0.2 emulation (http://www.spinics.net/lists/kvm-arm/msg09182.html) - Used PSCI 0.2 DT bindings for linux kernel. (http://www.spinics.net/lists/arm

[Qemu-devel] [RFC PATCH V4 2/6] kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT

2014-05-05 Thread Pranavkumar Sawargaonkar
In-kernel PSCI v0.2 emulation of KVM ARM/ARM64 forwards SYSTEM_OFF and SYSTEM_RESET function calls to QEMU using KVM_EXIT_SYSTEM_EVENT exit reason. This patch updates kvm_cpu_exec() to handle KVM_SYSTEM_EVENT_SHUTDOWN and KVM_SYSTEM_EVENT_RESET system-level events from QEMU-side. Signed-off-by: P

[Qemu-devel] [RFC PATCH V4 1/6] linux-headers: Update KVM headers from linux-3.16-rc1

2014-05-05 Thread Pranavkumar Sawargaonkar
Syncup KVM related linux headers from linux-3.16-rc1 Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- linux-headers/asm-arm/kvm.h | 10 +++-- linux-headers/asm-arm64/kvm.h | 10 +++-- linux-headers/linux/kvm.h | 27 - linux-headers/linux/psci.h|

[Qemu-devel] [RFC PATCH V4 4/6] hw/arm/virt: Use PSCI v0.2 compatible when kernel supports it

2014-05-05 Thread Pranavkumar Sawargaonkar
If we have in-kernel emulation of PSCI v0.2 for KVM ARM/ARM64 then we enable PSCI v0.2 for each VCPU at the time of VCPU init hence we need to provide PSCI v0.2 compatible string via generated DTB. This patch updates generated DTB to have PSCI v0.2 compatible string when we have in-kernel emulatio

[Qemu-devel] [RFC PATCH V4 3/6] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible

2014-05-05 Thread Pranavkumar Sawargaonkar
Latest linux kernel supports in-kernel emulation of PSCI v0.2 but to enable it we need to select KVM_ARM_VCPU_PSCI_0_2 feature using KVM_ARM_VCPU_INIT ioctl. Also, we can use KVM_ARM_VCPU_PSCI_0_2 feature for VCPU only when linux kernel has KVM_CAP_ARM_PSCI_0_2 capability. This patch updates kvm_

[Qemu-devel] [RFC PATCH V4 5/6] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-05-05 Thread Pranavkumar Sawargaonkar
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- target-arm/kvm.c | 23 +

[Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64

2014-05-05 Thread Pranavkumar Sawargaonkar
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU using kvm_arm_vcpu_init() so that all registers of VCPU are set to their reset values by in-kernel KVM code. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- target-arm/kvm64.c |4 1 file changed, 4 ins

Re: [Qemu-devel] [PATCH V26 12/32] change block layer to support both QemuOpts and QEMUOptionParamter

2014-05-05 Thread Chun Yan Liu
>>> On 5/2/2014 at 06:09 AM, in message <20140501220948.GK29944@dorilex-lnv.MultilaserAP>, Leandro Dorileo wrote: > Chunyan, > > On Tue, Apr 29, 2014 at 05:08:21PM +0800, Chunyan Liu wrote: > > Change block layer to support both QemuOpts and QEMUOptionParameter. > > After this patch, it wi

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qmp: Report path ambiguity error.

2014-05-05 Thread Michael Tokarev
03.05.2014 12:38, Michael Tokarev wrote: [] > --- a/qmp.c > +++ b/qmp.c > @@ -200,7 +200,9 @@ ObjectPropertyInfoList *qmp_qom_list(const char *path, > Error **errp) > > obj = object_resolve_path(path, &ambiguous); > if (obj == NULL) { > -error_set(errp, QERR_DEVICE_NOT_FOUND, pa

[Qemu-devel] E1000 emulation in qemu and pci configuration space

2014-05-05 Thread Ayaz Akram
Does e1000's emulation in QEMU require that the guest set its base address register(pci configuration space register) or qemu has default value for its base address register?

Re: [Qemu-devel] [PATCH] migration: Increase default max_downtime from 30ms to 300ms

2014-05-05 Thread Alexey Kardashevskiy
On 04/30/2014 11:10 AM, Alexey Kardashevskiy wrote: > On 04/13/2014 12:38 AM, Alexey Kardashevskiy wrote: >> On 03/27/2014 08:01 PM, Markus Armbruster wrote: >>> Adding Juan. >> >> >> Ping? > > > Ping? > > Ping? >> >>> >>> Alexey Kardashevskiy writes: >>> The existing timeout is 30ms w

Re: [Qemu-devel] [PATCH 00/22] dataplane: use QEMU block layer

2014-05-05 Thread Christian Borntraeger
On 01/05/14 16:54, Stefan Hajnoczi wrote: > This patch series switches virtio-blk data-plane from a custom Linux AIO > request queue to the QEMU block layer. The previous "raw files only" > limitation is lifted. All image formats and protocols can now be used with > virtio-blk data-plane. Nice.

[Qemu-devel] [PATCH] readline: use g_strndup instead of open-coding it

2014-05-05 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- util/readline.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/readline.c b/util/readline.c index 8441be4..a3fd2cb 100644 --- a/util/readline.c +++ b/util/readline.c @@ -279,9 +279,7 @@ static void readline_completion(ReadLineStat

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qmp: Report path ambiguity error.

2014-05-05 Thread Andreas Färber
Am 05.05.2014 11:12, schrieb Michael Tokarev: > 03.05.2014 12:38, Michael Tokarev wrote: > [] >> --- a/qmp.c >> +++ b/qmp.c >> @@ -200,7 +200,9 @@ ObjectPropertyInfoList *qmp_qom_list(const char *path, >> Error **errp) >> >> obj = object_resolve_path(path, &ambiguous); >> if (obj == NULL

Re: [Qemu-devel] [PATCH 1/3] curl: Fix parsing of readahead option from filename

2014-05-05 Thread Kevin Wolf
Am 01.05.2014 um 10:56 hat Matthew Booth geschrieben: > On 30/04/14 16:16, Kevin Wolf wrote: > > Am 30.04.2014 um 16:20 hat Matthew Booth geschrieben: > >> curl_parse_filename wasn't removing the option string from the url, > >> resulting in a 404. > >> > >> This change is a essentially a rewrite o

Re: [Qemu-devel] [Qemu-trivial] [PATCH] readline: Sort completions before printing them.

2014-05-05 Thread Michael Tokarev
Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qmp: Report path ambiguity error.

2014-05-05 Thread Michael Tokarev
05.05.2014 13:26, Andreas Färber пишет: >> 03.05.2014 12:38, Michael Tokarev wrote: >>> +error_set(errp, >>> + ambiguous ? "Path '%s' is ambiguous" : >>> QERR_DEVICE_NOT_FOUND, >>> + path); >> I've applied this version. > > Please undo. error_set() unli

Re: [Qemu-devel] [PATCH] qcow2: Fix alloc_clusters_noref() overflow detection

2014-05-05 Thread Kevin Wolf
Am 04.05.2014 um 05:31 hat Max Reitz geschrieben: > If the very first allocation has a length of 0, the free_cluster_index > is still 0 after the for loop, which means that subtracting one from it > will underflow and signal an invalid range of clusters by returning > -EFBIG. However, there is no s

Re: [Qemu-devel] [PATCH] qmp: Report path ambiguity error.

2014-05-05 Thread Andreas Färber
Am 29.04.2014 00:46, schrieb Hani Benhabiles: > Signed-off-by: Hani Benhabiles > Suggested-by: Andreas Färber > --- > qmp.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/qmp.c b/qmp.c > index 74107be..0d49abf 100644 > --- a/qmp.c > +++ b/qmp.c > @@ -199,7 +199,10

Re: [Qemu-devel] [PATCH] readline: use g_strndup instead of open-coding it

2014-05-05 Thread Andreas Färber
Am 05.05.2014 11:25, schrieb Michael Tokarev: > Signed-off-by: Michael Tokarev > --- > util/readline.c |4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/util/readline.c b/util/readline.c > index 8441be4..a3fd2cb 100644 > --- a/util/readline.c > +++ b/util/readline.c

[Qemu-devel] [PATCH v3] qmp: report path ambiguity error

2014-05-05 Thread Michael Tokarev
Without this, ambiguous path is reported to the user as "not found", which is confusing at least. Signed-off-by: Michael Tokarev --- qmp.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qmp.c b/qmp.c index 74107be..37bd7dc 100644 --- a/qmp.c +++ b/qmp.c @@ -200,7 +20

Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid rusage struct

2014-05-05 Thread Petar Jovanovic
ping http://patchwork.ozlabs.org/patch/337703/ From: Petar Jovanovic [petar.jovano...@rt-rk.com] Sent: Tuesday, April 08, 2014 7:24 PM To: qemu-devel@nongnu.org Cc: Petar Jovanovic; riku.voi...@linaro.org Subject: [PATCH] linux-user: fix getrusage and wait

Re: [Qemu-devel] [PATCH v2 2/2] qapi: Allow setting default values for optional parameters

2014-05-05 Thread Markus Armbruster
Eric Blake writes: > On 04/29/2014 05:24 AM, Kevin Wolf wrote: >> Am 29.04.2014 um 11:44 hat Fam Zheng geschrieben: >>> In command definition, 'defaults' is now parsed as a dict of default >>> values. Only optional parameters will have effect in generated code. >>> >>> 'str' and 'int' are support

Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid rusage struct

2014-05-05 Thread Andreas Färber
Am 08.04.2014 19:24, schrieb Petar Jovanovic: > From: Petar Jovanovic > > Implementations of system calls getrusage and wait4 have not previously > handled correctly cases when incorrect address of struct rusage is > passed. > This change makes sure return values are correctly set for these cases

Re: [Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64

2014-05-05 Thread Andreas Färber
Am 05.05.2014 11:01, schrieb Pranavkumar Sawargaonkar: > To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU > using kvm_arm_vcpu_init() so that all registers of VCPU are set > to their reset values by in-kernel KVM code. > > Signed-off-by: Pranavkumar Sawargaonkar > Signed-off-by: Anu

Re: [Qemu-devel] [RFC PATCH V4 5/6] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-05-05 Thread Andreas Färber
Am 05.05.2014 11:00, schrieb Pranavkumar Sawargaonkar: > Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT > ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few > common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64. > > Signed-off-by: Pranavkumar Sawargaonk

Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid rusage struct

2014-05-05 Thread Petar Jovanovic
From: Andreas Färber [afaer...@suse.de] Sent: Monday, May 05, 2014 11:55 AM To: Petar Jovanovic; qemu-devel@nongnu.org Cc: riku.voi...@linaro.org; Petar Jovanovic Subject: Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid r

Re: [Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64

2014-05-05 Thread Paolo Bonzini
Il 05/05/2014 11:57, Andreas Färber ha scritto: Am 05.05.2014 11:01, schrieb Pranavkumar Sawargaonkar: To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU using kvm_arm_vcpu_init() so that all registers of VCPU are set to their reset values by in-kernel KVM code. Signed-off-by: Prana

Re: [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Peter Maydell
On 5 May 2014 08:53, Fam Zheng wrote: > .impl.valid should be .impl.unaligned and the description needs some > fixes. > > .old_portio is removed since commit b40acf99b (ioport: Switch > dispatching to memory core layer). I've already sent a patch for that part, which mjt has applied to the trivia

Re: [Qemu-devel] [RFC PATCH V4 5/6] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-05-05 Thread Peter Maydell
On 5 May 2014 10:00, Pranavkumar Sawargaonkar wrote: > Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT > ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few > common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64. > > Signed-off-by: Pranavkumar Sawargaonkar

Re: [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Fam Zheng
On Mon, 05/05 11:41, Peter Maydell wrote: > On 5 May 2014 08:53, Fam Zheng wrote: > > .impl.valid should be .impl.unaligned and the description needs some > > fixes. > > > > .old_portio is removed since commit b40acf99b (ioport: Switch > > dispatching to memory core layer). > > I've already sent

Re: [Qemu-devel] [PULL 0/7] smbios: make qemu generate smbios tables.

2014-05-05 Thread Gerd Hoffmann
Hi, > I'm afraid this doesn't compile: /me goes add a -m32 build to the test matrix. Hmm, looks like "make check" has issues on 32bit: CCtests/test-cutils.o /home/kraxel/projects/qemu/tests/test-cutils.c: In function ‘test_parse_uint_llong_max’: /home/kraxel/projects/qemu/tests/test-cut

[Qemu-devel] [PATCH v2 2/2] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Fam Zheng
.impl.valid should be .impl.unaligned and the description needs some fixes. Signed-off-by: Fam Zheng --- docs/memory.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index d5abc92..4c7bc43 100644 --- a/docs/memory.txt +++ b/docs/memor

[Qemu-devel] [PATCH v2 1/2] docs/memory.txt: Put one whitespace between sentences

2014-05-05 Thread Fam Zheng
In other words, whitespace changes only. Signed-off-by: Fam Zheng --- docs/memory.txt | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index d344879..d5abc92 100644 --- a/docs/memory.txt +++ b/docs/

[Qemu-devel] How to overclock guest timers?

2014-05-05 Thread Марк Коренберг
What I want - is to make all virtual clocks run faster. This means, for example, if I run command 'sleep 10' on the guest, and virtual clocks are 10 times overclocked, this command should take 1 real second. In other words, all timers should be 10 times faster, even timers that wait for IO in the g

Re: [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations

2014-05-05 Thread Paolo Bonzini
Il 05/05/2014 12:51, Fam Zheng ha scritto: On Mon, 05/05 11:41, Peter Maydell wrote: On 5 May 2014 08:53, Fam Zheng wrote: .impl.valid should be .impl.unaligned and the description needs some fixes. .old_portio is removed since commit b40acf99b (ioport: Switch dispatching to memory core layer

[Qemu-devel] [PATCH v2 0/2] docs/memory.txt: Fixes on whitespace and MMIO operations

2014-05-05 Thread Fam Zheng
Fam Zheng (2): docs/memory.txt: Put one whitespace between sentences docs/memory.txt: Fix document on MMIO operations docs/memory.txt | 47 --- 1 file changed, 24 insertions(+), 23 deletions(-) -- 1.9.2

Re: [Qemu-devel] [PATCH v3 2/4] ppc64-dump: Support dump for little endian ppc64

2014-05-05 Thread Alexander Graf
On 05/05/2014 10:05 AM, Greg Kurz wrote: From: Bharata B Rao Fix ppc64 arch specific dump code to work correctly for little endian guests. We introduce a NoteFuncArg type to avoid adding extra arguments to all note functions. Signed-off-by: Bharata B Rao [ rebased on top of current master br

Re: [Qemu-devel] [PATCH v2 0/2] docs/memory.txt: Fixes on whitespace and MMIO operations

2014-05-05 Thread Fam Zheng
On Mon, 05/05 18:59, Fam Zheng wrote: > > > Fam Zheng (2): > docs/memory.txt: Put one whitespace between sentences > docs/memory.txt: Fix document on MMIO operations Michael, this is based on Peter's [PATCH] docs/memory.txt: old_portio has gone, so don't mention it So you could apply on to

Re: [Qemu-devel] [PATCH v2 1/2] docs/memory.txt: Put one whitespace between sentences

2014-05-05 Thread Michael Tokarev
05.05.2014 14:59, Fam Zheng wrote: > In other words, whitespace changes only. > The memory API models the memory and I/O buses and controllers of a QEMU > -machine. It attempts to allow modelling of: > +machine. It attempts to allow modelling of: What's the point? In text form, it is quite oft

Re: [Qemu-devel] [PATCH v2 2/2] qapi: Allow setting default values for optional parameters

2014-05-05 Thread Markus Armbruster
Fam Zheng writes: > In command definition, 'defaults' is now parsed as a dict of default > values. Only optional parameters will have effect in generated code. > > 'str' and 'int' are supported. In generated code, 'str' will be > converted to g_strdup'ed string pointer, 'int' will be identically

Re: [Qemu-devel] [PATCH v2 0/2] docs/memory.txt: Fixes on whitespace and MMIO operations

2014-05-05 Thread Michael Tokarev
05.05.2014 15:05, Fam Zheng пишет: > On Mon, 05/05 18:59, Fam Zheng wrote: >> >> >> Fam Zheng (2): >> docs/memory.txt: Put one whitespace between sentences >> docs/memory.txt: Fix document on MMIO operations > > Michael, this is based on Peter's > > [PATCH] docs/memory.txt: old_portio has gon

Re: [Qemu-devel] [PATCH v3 0/4] little-endian dump for ppc64

2014-05-05 Thread Alexander Graf
On 05/05/2014 10:02 AM, Greg Kurz wrote: Hi, Please find the latest patch set for dump-guest-memory to support little-endian ppc64 guest kernels. The only change since the last post is a better naming of the dump endian helpers. Since it affects patches 1 & 2, I resend the full serie, with Alex'

[Qemu-devel] [PULL 02/10] usb: mtp: replace debug printfs with trace points

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 8 trace-events | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 8b44032..17df447 100644 --- a/hw/usb/dev-mtp.c ++

[Qemu-devel] [PULL 00/10] usb patch queue

2014-05-05 Thread Gerd Hoffmann
Hi, Here comes the next usb patch queue pull, featuring a bunch of mtp bugfixes and ohci live migration support. please pull, Gerd The following changes since commit fdaad4715ae9e998fd0595bedfb16fdaf0c68ccc: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140501' in

[Qemu-devel] [PULL 01/10] usb-ohci: Add vmstate descriptor

2014-05-05 Thread Gerd Hoffmann
From: Alexey Kardashevskiy This adds migration support for OHCI. This defines a descriptor for OHCIState. This changes some OHCIState field types to be migration compatible. This adds a descriptor for OHCIPort. This migrates the EOF timer if the USB was started at the time of migration. Cc: Ger

[Qemu-devel] [PULL 04/10] usb: mtp: fix version (is decimal not bcd)

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 063a426..dff2618 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -533,7 +533

[Qemu-devel] [PULL 06/10] usb: mtp: fix error path memory leak

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 775dc8d..45f9562 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -669,6 +669,7 @@ static M

[Qemu-devel] [PULL 09/10] usb: mtp: fix possible buffer overflow

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index b6eaeae..62428d8 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -998,6 +998,14 @@ s

[Qemu-devel] [PULL 08/10] usb: mtp: drop data-out hexdump

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index a30a886..b6eaeae 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -1011,8 +

[Qemu-devel] [PULL 03/10] usb: mtp: fix usb_mtp_add_u64

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 17df447..063a426 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -416,7

[Qemu-devel] [PULL 10/10] usb: mtp: reply INCOMPLETE_TRANSFER on read errors

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 62428d8..943f930 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -50,6 +5

[Qemu-devel] [PULL 07/10] usb: mtp: avoid empty description string

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 45f9562..a30a886 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -1046,7 +10

[Qemu-devel] [PULL 05/10] usb: mtp: fix serial (must be exact 32 chars)

2014-05-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Wu Reviewed-by: Stefan Hajnoczi --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index dff2618..775dc8d 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -548,7 +548

[Qemu-devel] [PULL v2 2/7] E820: Add interface for accessing e820 table

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" Add the following two functions: - e820_get_num_entries() - query the size of the e820 table - e820_get_entry() - grab an entry matching a given set of criteria This interface is currently necessary for creating type 19 (memory array mapped address) structures in sm

[Qemu-devel] [PULL v2 1/7] pc: add 2.1 machine type

2014-05-05 Thread Gerd Hoffmann
From: "Michael S. Tsirkin" At the moment, 2.1 and 2.0 machines are identical. As several people are working on incompatible changes to the PC machine, collaboration will be made easier by merging this place-holder. Signed-off-by: Michael S. Tsirkin Signed-off-by: Gerd Hoffmann --- hw/i386/pc_

[Qemu-devel] [PULL v2 0/7] smbios: make qemu generate smbios tables

2014-05-05 Thread Gerd Hoffmann
Hi, This patch series makes qemu generate smbios tables for 2.1 & newer machine types. Most patches are created by Gabriel L. Somlo. For the new machine type I've picked mst's patch though, so git should have an easier job sorting things in case the same thing comes in through another branch.

[Qemu-devel] [PULL v2 6/7] SMBIOS: Use bitmaps to prevent incompatible comand line options

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" Replace existing smbios_check_collision() functionality with a pair of bitmaps: have_binfile_bitmap and have_fields_bitmap. Bits corresponding to each smbios type are set by smbios_entry_add(), which also uses the bitmaps to ensure that binary blobs and field values are n

[Qemu-devel] [PULL v2 3/7] SMBIOS: Rename symbols to better reflect future use

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" Rename the following symbols: - smbios_set_type1_defaults() to the more general smbios_set_defaults(); - bool smbios_type1_defaults to the more general smbios_defaults; - smbios_get_table() to smbios_get_table_legacy(); This patch contains no functional changes.

Re: [Qemu-devel] [PATCH] migration: Increase default max_downtime from 30ms to 300ms

2014-05-05 Thread Juan Quintela
Alexey Kardashevskiy wrote: > On 04/13/2014 12:38 AM, Alexey Kardashevskiy wrote: >> On 03/27/2014 08:01 PM, Markus Armbruster wrote: >>> Adding Juan. >> >> >> Ping? Patch is OK for me. As sender says, with guests doing anything/bigger than 1GB RAM is basically implosible to get into the 30ms

[Qemu-devel] [PULL v2 4/7] SMBIOS: Update header file definitions

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" Add definitions for smbios entry point (anchor), and for type 2 (base board) structure which is required by some versions of OS X. Remove definition for type 20 (memory device mapped address) structure, which is no longer required as of smbios spec v2.5. Update all othe

Re: [Qemu-devel] [v4 PATCH 0/2] apic: bump emulated lapic version to 0x14

2014-05-05 Thread Alexander Graf
On 05/02/2014 08:02 PM, Gabriel L. Somlo wrote: I decided to split the patch into the boilerplate compat_props for v2.0 and older (1/2) and the actual lapic-version "payload" (2/2). The first (boilerplate) patch depends on another patch for which a pull request is already pending: http://lists.

Re: [Qemu-devel] [RFC PATCH V4 5/6] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-05-05 Thread Pranavkumar Sawargaonkar
Hi Peter, On 5 May 2014 16:14, Peter Maydell wrote: > On 5 May 2014 10:00, Pranavkumar Sawargaonkar wrote: >> Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT >> ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few >> common code lines from kvm_arch_init_vcpu() for

Re: [Qemu-devel] [PATCH 06/22] curl: implement .bdrv_detach/attach_aio_context()

2014-05-05 Thread Stefan Hajnoczi
On Sun, May 04, 2014 at 07:00:26PM +0800, Fam Zheng wrote: > On Thu, 05/01 16:54, Stefan Hajnoczi wrote: > > The curl block driver uses fd handlers, timers, and BHs. The fd > > handlers and timers are managed on behalf of libcurl, which controls > > them using callback functions that the block dri

[Qemu-devel] [PULL v2 7/7] SMBIOS: Build aggregate smbios tables and entry point

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" Build an aggregate set of smbios tables and an entry point structure. Insert tables and entry point into fw_cfg respectively under "etc/smbios/smbios-tables" and "etc/smbios/smbios-anchor". Machine types <= 2.0 will for now continue using field-by-field overrides to Sea

Re: [Qemu-devel] [PULL 7/8] gtk: Fix -serial vc

2014-05-05 Thread Gerd Hoffmann
Hi, > Looks better thanks to "gtk: zap scrolled_window" (monitor is properly > formatted again). But the whole queue spits this out on the terminal: > > (:13169): Gtk-CRITICAL **: IA__gtk_window_resize: assertion `width > > 0' failed > > (:13169): Gdk-CRITICAL **: IA__gdk_window_set_cursor: a

Re: [Qemu-devel] [PATCH v2 1/2] docs/memory.txt: Put one whitespace between sentences

2014-05-05 Thread Fam Zheng
On Mon, 05/05 15:05, Michael Tokarev wrote: > 05.05.2014 14:59, Fam Zheng wrote: > > In other words, whitespace changes only. > > > The memory API models the memory and I/O buses and controllers of a QEMU > > -machine. It attempts to allow modelling of: > > +machine. It attempts to allow modelli

Re: [Qemu-devel] [PULL 7/8] gtk: Fix -serial vc

2014-05-05 Thread Gerd Hoffmann
Hi, > >> Check out gerd's ui-gtk-next branch, there's a few extra patches related to > >> vte sizing that might fix it. > > > > Looks better thanks to "gtk: zap scrolled_window" (monitor is properly > > formatted again). > > ...err - no. The price of this patch is that the window is no longer

[Qemu-devel] [PULL v2 5/7] SMBIOS: Use macro to set smbios defaults

2014-05-05 Thread Gerd Hoffmann
From: "Gabriel L. Somlo" The function smbios_set_defaults() uses a repeating code pattern for each field. This patch replaces that pattern with a macro. This patch contains no functional changes. Signed-off-by: Gabriel Somlo Signed-off-by: Gerd Hoffmann --- hw/i386/smbios.c | 27

Re: [Qemu-devel] [PATCH 18/22] vmdk: implement .bdrv_detach/attach_aio_context()

2014-05-05 Thread Stefan Hajnoczi
On Sun, May 04, 2014 at 06:17:45PM +0800, Fam Zheng wrote: > On Thu, 05/01 16:54, Stefan Hajnoczi wrote: > > @@ -2118,6 +2139,8 @@ static BlockDriver bdrv_vmdk = { > > .bdrv_has_zero_init = vmdk_has_zero_init, > > .bdrv_get_specific_info = vmdk_get_specific_info, > >

Re: [Qemu-devel] [PATCH 19/22] dataplane: use the QEMU block layer for I/O

2014-05-05 Thread Stefan Hajnoczi
On Sun, May 04, 2014 at 07:51:40PM +0800, Fam Zheng wrote: > On Thu, 05/01 16:54, Stefan Hajnoczi wrote: > > +VirtIOBlockRequest *req = g_slice_new(VirtIOBlockRequest); > > Could be g_slice_new0, > > > +QEMUIOVector *qiov; > > +int nb_sectors; > > + > > +/* Fill in virtio block me

Re: [Qemu-devel] [PATCH 00/22] dataplane: use QEMU block layer

2014-05-05 Thread Stefan Hajnoczi
On Mon, May 05, 2014 at 11:17:44AM +0200, Christian Borntraeger wrote: > On 01/05/14 16:54, Stefan Hajnoczi wrote: > > This patch series switches virtio-blk data-plane from a custom Linux AIO > > request queue to the QEMU block layer. The previous "raw files only" > > limitation is lifted. All im

Re: [Qemu-devel] [PATCH 3/3] glib: add compat wrapper for GStaticMutex

2014-05-05 Thread Stefan Hajnoczi
On Fri, May 02, 2014 at 03:08:07PM +0400, Michael Tokarev wrote: > Stefan Hajnoczi: > > > Avoid duplicating ifdefs for the deprecated GStaticMutex API by > > introducing compat_g_static_mutex_*() in glib-compat.h. > > > > GStaticMutex users should use the compat API to avoid dealing with > > depre

Re: [Qemu-devel] [PATCH v2 0/8] x86: correctly implement soft reset

2014-05-05 Thread Michael S. Tsirkin
On Fri, May 02, 2014 at 04:33:14PM +0200, Paolo Bonzini wrote: > A repost of an old patch series, rebased and retested. Patches 3 to 5 > are new, everything else already carries a Reviewed-by. > > v1->v2: compile-tested on ARM (I also have had a /dev/kvm on my ARM board > for two hours no

Re: [Qemu-devel] [PATCH v2 8/8] x86: correctly implement soft reset

2014-05-05 Thread Michael S. Tsirkin
On Fri, May 02, 2014 at 04:33:22PM +0200, Paolo Bonzini wrote: > Do not do a hard reset for port 92h, keyboard controller, or cf9h soft reset. > These only reset the CPU. > > Reviewed-by: Anthony Liguori > Signed-off-by: Paolo Bonzini I note that we allow setting reset type in the same write wi

Re: [Qemu-devel] [PATCH 20/35] acpi: memory hotplug ACPI hardware implementation

2014-05-05 Thread Vasilis Liaskovitis
Hi, On Fri, Apr 04, 2014 at 03:36:45PM +0200, Igor Mammedov wrote: > - implements QEMU hardware part of memory hotplug protocol > described at "docs/specs/acpi_mem_hotplug.txt" > - handles only memory add notification event for now > [...] > + [0x4-0x7] OST event code reported by OSPM > +

Re: [Qemu-devel] [PATCH] qcow2: Fix alloc_clusters_noref() overflow detection

2014-05-05 Thread Stefan Hajnoczi
On Sun, May 04, 2014 at 05:31:40AM +0200, Max Reitz wrote: > If the very first allocation has a length of 0, the free_cluster_index > is still 0 after the for loop, which means that subtracting one from it > will underflow and signal an invalid range of clusters by returning > -EFBIG. However, ther

Re: [Qemu-devel] [PATCH] iotests: Use configured python

2014-05-05 Thread Stefan Hajnoczi
On Sat, May 03, 2014 at 04:47:08PM +0200, Max Reitz wrote: > @@ -56,22 +57,22 @@ for IMGOPTS in "compat=0.10" "compat=1.1"; do > echo === Create image with unknown header extension === > echo > _make_test_img 64M > -./qcow2.py "$TEST_IMG" add-header-ext 0x12345678 "This is a test

Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid rusage struct

2014-05-05 Thread Riku Voipio
Hi, Thanks, looks good and fixes getrusage02 ltp test. Added to the linux-user que: https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream Peter, do you prefer a new pull request for linux-user with this patch added on top, or is pulling the updated branc

Re: [Qemu-devel] [PATCH] linux-user: fix getrusage and wait4 failures with invalid rusage struct

2014-05-05 Thread Peter Maydell
On 5 May 2014 13:27, Riku Voipio wrote: > Hi, > > Thanks, looks good and fixes getrusage02 ltp test. > > Added to the linux-user que: > > https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream > > Peter, do you prefer a new pull request for linux-user with t

Re: [Qemu-devel] E1000 emulation in qemu and pci configuration space

2014-05-05 Thread Stefan Hajnoczi
On Mon, May 05, 2014 at 02:15:05PM +0500, Ayaz Akram wrote: > Does e1000's emulation in QEMU require that the guest set its base address > register(pci configuration space register) or qemu has default value for > its base address register? There is no default. Drivers for some operating systems

[Qemu-devel] [PULL v2 00/15] linux-user update

2014-05-05 Thread riku . voipio
From: Riku Voipio The following changes since commit fdaad4715ae9e998fd0595bedfb16fdaf0c68ccc: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140501' into staging (2014-05-02 11:32:00 +0100) are available in the git repository at: http://git.linaro.org/git/people/ri

Re: [Qemu-devel] [PATCH 00/22] dataplane: use QEMU block layer

2014-05-05 Thread Christian Borntraeger
On 05/05/14 14:05, Stefan Hajnoczi wrote: > On Mon, May 05, 2014 at 11:17:44AM +0200, Christian Borntraeger wrote: >> On 01/05/14 16:54, Stefan Hajnoczi wrote: >>> This patch series switches virtio-blk data-plane from a custom Linux AIO >>> request queue to the QEMU block layer. The previous "raw

Re: [Qemu-devel] [PULL v2 00/15] linux-user update

2014-05-05 Thread Peter Maydell
On 5 May 2014 13:34, wrote: > From: Riku Voipio > > The following changes since commit fdaad4715ae9e998fd0595bedfb16fdaf0c68ccc: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20140501' into staging (2014-05-02 > 11:32:00 +0100) > > are available in the git reposit

Re: [Qemu-devel] [PATCH] iotests: Use configured python

2014-05-05 Thread Peter Maydell
On 5 May 2014 13:26, Stefan Hajnoczi wrote: > On Sat, May 03, 2014 at 04:47:08PM +0200, Max Reitz wrote: >> @@ -56,22 +57,22 @@ for IMGOPTS in "compat=0.10" "compat=1.1"; do >> echo === Create image with unknown header extension === >> echo >> _make_test_img 64M >> -./qcow2.py "

  1   2   3   4   >