Re: [Qemu-devel] [PATCH COLO-Frame v18 00/34] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2016-08-16 Thread Changlong Xie
On 08/17/2016 12:05 PM, Zhi Yong Wu wrote: HI Can you update http://wiki.qemu.org/Features/COLO and block-replication.txt? Recently i had a try, but failed. By the way, I will update both of them later. QEMU was built based on https://github.com/coloft/qemu/commits/colo-v3.1-periodic-mode.

Re: [Qemu-devel] [PATCH v2 00/17] POWER9 TCG enablements - part4

2016-08-16 Thread Nikunj A Dadhania
David Gibson writes: > [ Unknown signature status ] > On Sat, Aug 13, 2016 at 12:04:26AM +0530, Nikunj A Dadhania wrote: >> 1) Consolidate Load/Store operations using tcg_gen_qemu_ld/st functions >> 2) This series contains 10 new instructions for POWER9 ISA3.0 >>

Re: [Qemu-devel] Libvirt add ftrace option

2016-08-16 Thread Gadre Nayan
Ok. so I will then shift to using system tap, Are the timestamps generated for events compatible with the ftrace timestamps? so that I can still merge the traces using TSC_OFFSET. Thanks, On Tue, Aug 16, 2016 at 8:05 PM, Daniel P. Berrange wrote: > On Tue, Aug 16, 2016 at

[Qemu-devel] 答复: Re: [PATCH] chardev: Add 'help' option to print all available chardev backend types

2016-08-16 Thread Lin Ma
>>> Marc-André Lureau 8/17/2016 1:25 上午 >>> >Hi > >On Tue, Aug 16, 2016 at 9:18 PM Lin Ma wrote: > >> Signed-off-by: Lin Ma >> --- >> qemu-char.c | 21 - >> qemu-options.hx | 3 +++ >> 2 files changed, 19

Re: [Qemu-devel] [PATCH v2 00/17] POWER9 TCG enablements - part4

2016-08-16 Thread David Gibson
On Sat, Aug 13, 2016 at 12:04:26AM +0530, Nikunj A Dadhania wrote: > 1) Consolidate Load/Store operations using tcg_gen_qemu_ld/st functions > 2) This series contains 10 new instructions for POWER9 ISA3.0 >Use newer qemu load/store tcg helpers and optimize stxvw4x and lxvw4x. > > Patches: >

[Qemu-devel] [PATCH v5] fpu: add mechanism to check for invalid long double formats

2016-08-16 Thread Andrew Dutcher
All operations that take a floatx80 as an operand need to have their inputs checked for malformed encodings. In all of these cases, use the function floatx80_invalid_encoding to perform the check. If an invalid operand is found, raise an invalid operation exception, and then return either NaN (for

Re: [Qemu-devel] [PATCH v4] fpu: add mechanism to check for invalid long double formats

2016-08-16 Thread Andrew Dutcher
Also- I'm having issues applying the new patch: @@ -5768,7 +5774,9 @@ int floatx80_lt(floatx80 a, floatx80 b, float_status *status) **/ int floatx80_unordered(floatx80 a, floatx80 b, float_status *status) { -if (

Re: [Qemu-devel] [RFC PATCH v2 2/2] utils: Add prefetch for Thunderx platform

2016-08-16 Thread Vijay Kilari
On Tue, Aug 16, 2016 at 11:32 PM, Richard Henderson wrote: > On 08/16/2016 05:02 AM, vijay.kil...@gmail.com wrote: >> >> +static inline void prefetch_vector_loop(const VECTYPE *p, int index) >> +{ >> +#if defined(__aarch64__) >> +if (is_thunderx_pass2_cpu()) { >> +/*

Re: [Qemu-devel] [PATCH v4] fpu: add mechanism to check for invalid long double formats

2016-08-16 Thread Andrew Dutcher
I explicitly left the check off the comparison operations because I misread the NaN check as something equivalent to the check I would be adding. I'll add it shortly. With regards to adding int32_indefinite, etc constants, I think I'll leave it as is -- I'd prefer to have *what* happens clear

Re: [Qemu-devel] [PATCH V3] hw/misc: Add simple measurement hardware

2016-08-16 Thread Matthew Garrett
On Fri, Aug 12, 2016 at 10:59 AM, Dr. David Alan Gilbert wrote: > * Matthew Garrett (mj...@coreos.com) wrote: >> In combination with work in SeaBIOS and the kernel, this permits a fully >> measured boot in a virtualised environment without the overhead of a full >> TPM

Re: [Qemu-devel] MTTCG status updates, benchmark results and KVM forum plans

2016-08-16 Thread Emilio G. Cota
On Tue, Aug 16, 2016 at 12:16:26 +0100, Alex Bennée wrote: > Emilio G. Cota writes: > > However, I'm finding issues that might not have to do with the > > patch itself. I had some time today to dig deeper -- turns out the issues *have* to do with my patch, see below. (And sorry

Re: [Qemu-devel] [PATCH 5/7] nios2: Add periodic timer emulation

2016-08-16 Thread Dmitry Osipenko
On 16.08.2016 22:46, Marek Vasut wrote: > On 08/16/2016 08:40 PM, Dmitry Osipenko wrote: >> On 16.08.2016 19:48, Marek Vasut wrote: >>> On 08/15/2016 01:39 PM, Dmitry Osipenko wrote: >>> >>> [...] >>> >> Also, ptimer now supports "on the fly mode switch": >> >>

Re: [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver

2016-08-16 Thread Neo Jia
On Tue, Aug 16, 2016 at 02:51:03PM -0600, Alex Williamson wrote: > On Tue, 16 Aug 2016 13:30:06 -0700 > Neo Jia wrote: > > > On Mon, Aug 15, 2016 at 04:47:41PM -0600, Alex Williamson wrote: > > > On Mon, 15 Aug 2016 12:59:08 -0700 > > > Neo Jia wrote: > > >

Re: [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver

2016-08-16 Thread Alex Williamson
On Mon, 15 Aug 2016 23:13:20 -0700 Neo Jia wrote: > On Tue, Aug 16, 2016 at 05:58:54AM +, Tian, Kevin wrote: > > > From: Neo Jia [mailto:c...@nvidia.com] > > > Sent: Tuesday, August 16, 2016 1:44 PM > > > > > > On Tue, Aug 16, 2016 at 04:52:30AM +, Tian, Kevin wrote:

Re: [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver

2016-08-16 Thread Alex Williamson
On Tue, 16 Aug 2016 13:30:06 -0700 Neo Jia wrote: > On Mon, Aug 15, 2016 at 04:47:41PM -0600, Alex Williamson wrote: > > On Mon, 15 Aug 2016 12:59:08 -0700 > > Neo Jia wrote: > > > > > > > > > > > > > > I'm not sure a comma separated list makes sense here,

[Qemu-devel] [ANNOUNCE] QEMU 2.7.0-rc3 is now available

2016-08-16 Thread Michael Roth
Hello, On behalf of the QEMU Team, I'd like to announce the availability of the fourth release candidate for the QEMU 2.7 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-2.7.0-rc3.tar.bz2 A note from the

Re: [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver

2016-08-16 Thread Neo Jia
On Mon, Aug 15, 2016 at 04:47:41PM -0600, Alex Williamson wrote: > On Mon, 15 Aug 2016 12:59:08 -0700 > Neo Jia wrote: > > > > > > > > > > > I'm not sure a comma separated list makes sense here, for both > > > > > simplicity in the kernel and more fine grained error reporting,

Re: [Qemu-devel] [PATCH 5/7] nios2: Add periodic timer emulation

2016-08-16 Thread Marek Vasut
On 08/16/2016 08:40 PM, Dmitry Osipenko wrote: > On 16.08.2016 19:48, Marek Vasut wrote: >> On 08/15/2016 01:39 PM, Dmitry Osipenko wrote: >> >> [...] >> > Also, ptimer now supports "on the fly mode switch": > >

Re: [Qemu-devel] [PATCH 6/7] nios2: Add Altera 10M50 GHRD emulation

2016-08-16 Thread Marek Vasut
On 08/16/2016 09:00 PM, Dmitry Osipenko wrote: > On 28.07.2016 15:27, Marek Vasut wrote: >> Add the Altera 10M50 Nios2 GHRD model. This allows emulating the >> 10M50 development kit with the Nios2 GHRD loaded in the FPGA. It >> is possible to boot Linux kernel and run userspace, thus far only >>

Re: [Qemu-devel] [PATCH 6/7] nios2: Add Altera 10M50 GHRD emulation

2016-08-16 Thread Dmitry Osipenko
On 28.07.2016 15:27, Marek Vasut wrote: > Add the Altera 10M50 Nios2 GHRD model. This allows emulating the > 10M50 development kit with the Nios2 GHRD loaded in the FPGA. It > is possible to boot Linux kernel and run userspace, thus far only > from initrd as storage support is not yet implemented.

Re: [Qemu-devel] [PATCH 5/7] nios2: Add periodic timer emulation

2016-08-16 Thread Dmitry Osipenko
On 16.08.2016 19:48, Marek Vasut wrote: > On 08/15/2016 01:39 PM, Dmitry Osipenko wrote: > > [...] > Also, ptimer now supports "on the fly mode switch": https://github.com/qemu/qemu/commit/869e92b5c392eb6b2c7b398b878c435442b8e9dd ptimer_run(t->ptimer, !(value &

Re: [Qemu-devel] [RFC PATCH v2 2/2] utils: Add prefetch for Thunderx platform

2016-08-16 Thread Richard Henderson
On 08/16/2016 05:02 AM, vijay.kil...@gmail.com wrote: +static inline void prefetch_vector_loop(const VECTYPE *p, int index) +{ +#if defined(__aarch64__) +if (is_thunderx_pass2_cpu()) { +/* Prefetch 4 cache lines ahead from index */ +VEC_PREFETCH(p, index +

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Laurent Vivier
Le 16/08/2016 à 19:31, Peter Maydell a écrit : > On 16 August 2016 at 18:28, Laurent Vivier wrote: >> >> >> Le 16/08/2016 à 18:51, Peter Maydell a écrit : >>> The best approach I can think of is to add something at the >>> top of syscall.c that does: >>> #if IFLA_BR_MAX < 9

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 18:28, Laurent Vivier wrote: > > > Le 16/08/2016 à 18:51, Peter Maydell a écrit : >> The best approach I can think of is to add something at the >> top of syscall.c that does: >> #if IFLA_BR_MAX < 9 >> #define IFLA_BR_GROUP_FWD_MASK 9 >> #endif >> #if

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Laurent Vivier
Le 16/08/2016 à 18:51, Peter Maydell a écrit : > On 16 August 2016 at 17:41, Laurent Vivier wrote: >> Le 16/08/2016 à 11:47, Michal Privoznik a écrit : >>> In c5dff280 we tried to make us understand netlink messages more. >>> So we've added a code that does some translation.

Re: [Qemu-devel] [PATCH] chardev: Add 'help' option to print all available chardev backend types

2016-08-16 Thread Marc-André Lureau
Hi On Tue, Aug 16, 2016 at 9:18 PM Lin Ma wrote: > Signed-off-by: Lin Ma > --- > qemu-char.c | 21 - > qemu-options.hx | 3 +++ > 2 files changed, 19 insertions(+), 5 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index

[Qemu-devel] [Bug 1613817] Re: x86: ret, lret and iret with noncanonical IP saves wrong IP on the exception stack

2016-08-16 Thread Vda-linux
# qemu-system-x86_64 --version QEMU emulator version 2.6.92(qemu-2.7.0-0.1.rc2.fc26), Copyright (c) 2003-2008 Fabrice Bellard Running it like this: qemu-system-x86_64 -no-reboot -kernel "$bzImage" -initrd initramfs.cpio -append "panic=1" (i.e. no KVM, no unusual options) -- You received this

[Qemu-devel] [PATCH] chardev: Add 'help' option to print all available chardev backend types

2016-08-16 Thread Lin Ma
Signed-off-by: Lin Ma --- qemu-char.c | 21 - qemu-options.hx | 3 +++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 8a0ab05..8a7aef3 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -39,6 +39,7 @@ #include

[Qemu-devel] [Bug 1613817] [NEW] x86: ret, lret and iret with noncanonical IP saves wrong IP on the exception stack

2016-08-16 Thread Vda-linux
Public bug reported: This test program: # compile with: gcc -nostartfiles -nostdlib _start: .globl _start mov %ss,%eax push%rax push%rsp pushf mov %cs,%eax push%rax

[Qemu-devel] [PATCH] object: Add 'help' option to print all available object backend types

2016-08-16 Thread Lin Ma
Signed-off-by: Lin Ma --- qemu-options.hx | 5 - qom/object_interfaces.c | 16 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index a71aaf8..c5f4a12 100644 --- a/qemu-options.hx +++ b/qemu-options.hx

[Qemu-devel] [Bug 1613133] Re: SLIRP code regression fails to build on OpenBSD

2016-08-16 Thread T. Huth
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1613133 Title: SLIRP code regression fails to build on OpenBSD Status in QEMU: Fix

[Qemu-devel] [PATCH] Fix memory leak in ide_register_restart_cb()

2016-08-16 Thread Ashijeet Acharya
Fix a memory leak in ide_register_restart_cb() in hw/ide/core.c and add idebus_unrealize() in hw/ide/qdev.c to have calls to qemu_del_vm_change_state_handler() to deal with the dangling change state handler during hot-unplugging ide devices which might lead to a crash. Signed-off-by: Ashijeet

Re: [Qemu-devel] [PATCH] Fix memory leak in ide_register_restart_cb()

2016-08-16 Thread John Snow
Can you please resend this not as a reply to this discussion thread? http://wiki.qemu.org/Contribute/SubmitAPatch Thank you, --js On 08/16/2016 09:55 AM, Ashijeet Acharya wrote: Fix a memory leak in ide_register_restart_cb() in hw/ide/core.c and add idebus_unrealize() in hw/ide/qdev.c to

Re: [Qemu-devel] [PATCH 5/7] nios2: Add periodic timer emulation

2016-08-16 Thread Marek Vasut
On 08/15/2016 01:39 PM, Dmitry Osipenko wrote: [...] >>> Also, ptimer now supports "on the fly mode switch": >>> >>> https://github.com/qemu/qemu/commit/869e92b5c392eb6b2c7b398b878c435442b8e9dd >>> >>> ptimer_run(t->ptimer, !(value & CONTROL_CONT)) could be used here and >>> "manual" >>> re-run

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Michal Privoznik
On 16.08.2016 18:51, Peter Maydell wrote: > On 16 August 2016 at 17:41, Laurent Vivier wrote: >> Le 16/08/2016 à 11:47, Michal Privoznik a écrit : >>> In c5dff280 we tried to make us understand netlink messages more. >>> So we've added a code that does some translation.

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 17:41, Laurent Vivier wrote: > Le 16/08/2016 à 11:47, Michal Privoznik a écrit : >> In c5dff280 we tried to make us understand netlink messages more. >> So we've added a code that does some translation. However, the >> code assumed linux-headers to be at

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Laurent Vivier
Le 16/08/2016 à 11:47, Michal Privoznik a écrit : > In c5dff280 we tried to make us understand netlink messages more. > So we've added a code that does some translation. However, the > code assumed linux-headers to be at least version 4.4 of it > because most of the symbols there (if not all of

[Qemu-devel] [PATCH v2 for 2.7] ui: fix refresh of VNC server surface

2016-08-16 Thread Daniel P. Berrange
In previous commit commit c7628bff4138ce906a3620d12e0820c1cf6c140d Author: Gerd Hoffmann Date: Fri Oct 30 12:10:09 2015 +0100 vnc: only alloc server surface with clients connected the VNC server was changed so that the 'vd->server' pixman image was only allocated

Re: [Qemu-devel] [PATCH for 2.7] ui: fix refresh of VNC server surface

2016-08-16 Thread Daniel P. Berrange
On Tue, Aug 16, 2016 at 05:21:22PM +0100, Daniel P. Berrange wrote: > In previous commit > > commit c7628bff4138ce906a3620d12e0820c1cf6c140d > Author: Gerd Hoffmann > Date: Fri Oct 30 12:10:09 2015 +0100 > > vnc: only alloc server surface with clients connected >

Re: [Qemu-devel] [PATCH for 2.7] ui: fix refresh of VNC server surface

2016-08-16 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Message-id: 1471364482-6649-1-git-send-email-berra...@redhat.com Subject: [Qemu-devel] [PATCH for 2.7] ui: fix refresh of VNC

Re: [Qemu-devel] [PATCH] qemu_opt_foreach: Fix crasher

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 16:17, Michal Privoznik wrote: > The solution is to teach qemu_opt_foreach() to take a shortcut if > @opts is NULL. > > Signed-off-by: Michal Privoznik > --- > > Even after this patch I'm still unable to attach vhost-user: > > {"id":

Re: [Qemu-devel] [PATCH v4 09/17] monitor: implement 'qmp_query_commands' without qmp_cmds

2016-08-16 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > One step towards getting rid of the static qmp_cmds table. > > Signed-off-by: Marc-André Lureau > Reviewed-by: Eric Blake > --- > monitor.c | 29

[Qemu-devel] [PATCH for 2.7] ui: fix refresh of VNC server surface

2016-08-16 Thread Daniel P. Berrange
In previous commit commit c7628bff4138ce906a3620d12e0820c1cf6c140d Author: Gerd Hoffmann Date: Fri Oct 30 12:10:09 2015 +0100 vnc: only alloc server surface with clients connected the VNC server was changed so that the 'vd->server' pixman image was only allocated

Re: [Qemu-devel] [PATCH] test-logging: don't hard-code paths in /tmp

2016-08-16 Thread Peter Maydell
On 15 August 2016 at 19:24, Sascha Silbe wrote: > Peter Maydell writes: >> On 15 July 2016 at 17:24, Sascha Silbe wrote: > [...] >>> +static void rmtree(gchar const *root) > [...] >> I don't really like spawning rm

Re: [Qemu-devel] [PATCH for-2.7] linux-user: Fix llseek with high bit of offset_low set

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 14:44, Riku Voipio wrote: > Hi, > > applied to linux-user-for upstream. Applied to master, thanks. -- PMM

Re: [Qemu-devel] [RFC PATCH v2 0/2] Live migration optimization for Thunderx platform

2016-08-16 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Message-id: 1471348968-4614-1-git-send-email-vijay.kil...@gmail.com Subject: [Qemu-devel] [RFC PATCH v2 0/2] Live migration optimization for Thunderx platform Type: series === TEST SCRIPT BEGIN ===

Re: [Qemu-devel] [PATCH] syscall.c: Fix build with older linux-headers

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 10:47, Michal Privoznik wrote: > In c5dff280 we tried to make us understand netlink messages more. > So we've added a code that does some translation. However, the > code assumed linux-headers to be at least version 4.4 of it > because most of the symbols

Re: [Qemu-devel] [PATCH v4 06/17] monitor: unregister conditional commands

2016-08-16 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> marcandre.lur...@redhat.com writes: >> >> > From: Marc-André Lureau >> > >> > The current monitor dispatch codes doesn't know commands that have been >> > filtered out during

Re: [Qemu-devel] [PATCH 2/2] Migration: Request lost pages (due to n/w failure) from source

2016-08-16 Thread Dr. David Alan Gilbert
* Md Haris Iqbal (haris.p...@gmail.com) wrote: > Signed-off-by: Md Haris Iqbal > --- > include/migration/migration.h | 7 +++ > migration/migration.c | 2 ++ > migration/ram.c | 35 +++ > migration/savevm.c

[Qemu-devel] [PATCH] qemu_opt_foreach: Fix crasher

2016-08-16 Thread Michal Privoznik
Program terminated with signal SIGSEGV, Segmentation fault. #0 0x55baf6ab4adc in qemu_opt_foreach (opts=0x0, func=0x55baf696b650 , opaque=0x7ffc51368c00, errp=0x7ffc51368e48) at util/qemu-option.c:617 617 QTAILQ_FOREACH(opt, >head, next) { [Current thread is 1 (Thread 0x7f1d4970bb40

Re: [Qemu-devel] [PATCH] qmp-commands.hx: remove outdated note

2016-08-16 Thread Peter Maydell
On 15 August 2016 at 08:48, Markus Armbruster wrote: > Doc fix, nominating for 2.7. > > Marc-André Lureau writes: > >> input-send-event is now stable since >> 6575ccddf4e7c2484bc14b10d5e89f57506c3953. >> >> Signed-off-by: Marc-André Lureau

Re: [Qemu-devel] [PATCH] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP

2016-08-16 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Message-id: 1471354850-5549-1-git-send-email-mich...@walle.cc Subject: [Qemu-devel] [PATCH] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP Type: series === TEST SCRIPT BEGIN === #!/bin/bash

Re: [Qemu-devel] [PATCH v4 06/17] monitor: unregister conditional commands

2016-08-16 Thread Marc-André Lureau
Hi - Original Message - > marcandre.lur...@redhat.com writes: > > > From: Marc-André Lureau > > > > The current monitor dispatch codes doesn't know commands that have been > > filtered out during qmp-commands.hx preprocessing. query-commands > > doesn't list

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Markus Armbruster
Peter Xu writes: > On Tue, Aug 16, 2016 at 08:19:08PM +0800, Fam Zheng wrote: >> On Tue, 08/16 20:17, Peter Xu wrote: >> > > Do we really need error_report_exit when we already have error_fatal? >> > >> > error_fatal is the name of a global var, not the function. >> >> I

Re: [Qemu-devel] [Patch v2 04/29] s390x/cpumodel: introduce CPU features

2016-08-16 Thread David Hildenbrand
> On 08/08/2016 05:32 PM, David Hildenbrand wrote: > > In general this this very good. Mostly bike shedding and naming. Thanks! > > > +/* indexed by feature number for easy lookup */ > > +static const S390FeatDef s390_features[] = { > > +FEAT_INIT("n3", S390_FEAT_TYPE_STFL, 0,

Re: [Qemu-devel] [Patch v2 04/29] s390x/cpumodel: introduce CPU features

2016-08-16 Thread Christian Borntraeger
On 08/08/2016 05:32 PM, David Hildenbrand wrote: In general this this very good. Mostly bike shedding and naming. > +/* indexed by feature number for easy lookup */ > +static const S390FeatDef s390_features[] = { > +FEAT_INIT("n3", S390_FEAT_TYPE_STFL, 0, "Instructions marked as n3"),

Re: [Qemu-devel] Libvirt add ftrace option

2016-08-16 Thread Daniel P. Berrange
On Tue, Aug 16, 2016 at 07:54:50PM +0530, Gadre Nayan wrote: > Hi, > > I have setup the merging of traces from Guest QEMU and Host using the > TSC_OFFSET. So I would like to work with ftrace backend of QEMU. So > how can I add this option in libvirt tools to enable ftrace backends > with my

Re: [Qemu-devel] Fix for CVE-2016-5403 causes crash on migration if memory stats are enabled

2016-08-16 Thread Stefan Hajnoczi
On Sun, Aug 14, 2016 at 10:40:48PM +0200, Gaudenz Steinlin wrote: > Gaudenz Steinlin writes: > > > Hi > > > > Stefan Hajnoczi writes: > > > >> [ Unknown signature status ] > >> On Thu, Aug 11, 2016 at 09:18:12AM +0200, Gaudenz Steinlin wrote: > >>> > >>>

Re: [Qemu-devel] [PATCH v4 06/17] monitor: unregister conditional commands

2016-08-16 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > The current monitor dispatch codes doesn't know commands that have been > filtered out during qmp-commands.hx preprocessing. query-commands > doesn't list them either. However, qapi generator doesn't

Re: [Qemu-devel] Libvirt add ftrace option

2016-08-16 Thread Gadre Nayan
Hi, I have setup the merging of traces from Guest QEMU and Host using the TSC_OFFSET. So I would like to work with ftrace backend of QEMU. So how can I add this option in libvirt tools to enable ftrace backends with my custom qemu source built using --enable-trace-backends=ftrace. I would have

Re: [Qemu-devel] a quesion

2016-08-16 Thread Michael Rolnik
thanks Peter. On Tue, Aug 16, 2016 at 5:07 PM, Peter Maydell wrote: > On 16 August 2016 at 14:53, Michael Rolnik wrote: > > 1. How to implement a device that has 4 registers in IO space e.g. AVR > > EEPROM? > > Since for your AVR target the IO space

Re: [Qemu-devel] [Qemu-block] [PATCH] block jobs: Improve error message for missing job ID

2016-08-16 Thread Jeff Cody
On Tue, Aug 16, 2016 at 04:02:10PM +0200, Kevin Wolf wrote: > If a block job is started with a node name rather than a device name and > no explicit job ID is passed, it was reported that '' isn't a > well-formed ID. Which is correct, but we can make the message a little > bit nicer. > >

Re: [Qemu-devel] [PATCH v2] iotest 055: refactor and speed up

2016-08-16 Thread Pavel Butsykin
On 09.08.2016 16:15, Vladimir Sementsov-Ogievskiy wrote: Source disk is created and filled with test data before each test case. Instead initialize it once for the whole unit. Test disk filling patterns are merged into one pattern. Also TestSetSpeed used different image_len for source and

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Fam Zheng
On Tue, 08/16 22:00, Peter Xu wrote: > On Tue, Aug 16, 2016 at 08:19:08PM +0800, Fam Zheng wrote: > > On Tue, 08/16 20:17, Peter Xu wrote: > > > > Do we really need error_report_exit when we already have error_fatal? > > > > > > error_fatal is the name of a global var, not the function. > > > >

Re: [Qemu-devel] [Qemu-block] [PATCH] block jobs: Improve error message for missing job ID

2016-08-16 Thread Alberto Garcia
On Tue 16 Aug 2016 04:02:10 PM CEST, Kevin Wolf wrote: > If a block job is started with a node name rather than a device name and > no explicit job ID is passed, it was reported that '' isn't a "it was" ? > well-formed ID. Which is correct, but we can make the message a little > bit nicer. > >

Re: [Qemu-devel] Libvirt add ftrace option

2016-08-16 Thread Daniel P. Berrange
On Tue, Aug 16, 2016 at 07:33:30PM +0530, Gadre Nayan wrote: > Hi, > > I am able to get traces from Guest kernel + QEMU + Host kernel using the > qemu -trace evetns=/tmp/events option > > My complete command line is: > /home/gnayan/QEMU-devel/qemu-ubuntu/qemu/x86_64-softmmu/qemu-system-x86_64 >

Re: [Qemu-devel] a quesion

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 14:53, Michael Rolnik wrote: > 1. How to implement a device that has 4 registers in IO space e.g. AVR > EEPROM? Since for your AVR target the IO space is just turned into accesses to physical memory, ie the inb/outb default case does something like this:

Re: [Qemu-devel] [PATCH v4 5/5] adb.c: add power key support

2016-08-16 Thread Programmingkid
On Aug 15, 2016, at 11:55 PM, David Gibson wrote: > On Mon, Aug 15, 2016 at 03:53:02PM -0400, Programmingkid wrote: >> >> On Aug 15, 2016, at 8:19 AM, David Gibson wrote: >> >>> On Fri, Aug 12, 2016 at 08:10:03PM -0400, John Arbuckle wrote: Add support for the power key.

[Qemu-devel] Libvirt add ftrace option

2016-08-16 Thread Gadre Nayan
Hi, I am able to get traces from Guest kernel + QEMU + Host kernel using the qemu -trace evetns=/tmp/events option My complete command line is: /home/gnayan/QEMU-devel/qemu-ubuntu/qemu/x86_64-softmmu/qemu-system-x86_64 -trace events=/home/gnayan/qemu_events -drive

[Qemu-devel] [PATCH] block jobs: Improve error message for missing job ID

2016-08-16 Thread Kevin Wolf
If a block job is started with a node name rather than a device name and no explicit job ID is passed, it was reported that '' isn't a well-formed ID. Which is correct, but we can make the message a little bit nicer. Signed-off-by: Kevin Wolf --- blockjob.c | 4 1 file

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Peter Xu
On Tue, Aug 16, 2016 at 08:19:08PM +0800, Fam Zheng wrote: > On Tue, 08/16 20:17, Peter Xu wrote: > > > Do we really need error_report_exit when we already have error_fatal? > > > > error_fatal is the name of a global var, not the function. > > I mean most error_report_exit(...) calls can be

Re: [Qemu-devel] [PATCH] Remove left shifts of negative signed integers

2016-08-16 Thread Peter Maydell
On 30 June 2016 at 21:15, Paolo Bonzini wrote: > GCC correctly puts this warning under -Wextra, and promises not to ever > make use of this facet of undefined behavior. The only correct patch > is the one that disables the warning for clang, and possibly adds > -fwrapv. In

[Qemu-devel] [PATCH] Fix memory leak in ide_register_restart_cb()

2016-08-16 Thread Ashijeet Acharya
Fix a memory leak in ide_register_restart_cb() in hw/ide/core.c and add idebus_unrealize() in hw/ide/qdev.c to have calls to qemu_del_vm_change_state_handler() to deal with the dangling change state handler during hot-unplugging ide devices which might lead to a crash. Signed-off-by: Ashijeet

Re: [Qemu-devel] [PATCH] linux-user: ppc64: set MSR_CM bit for BookE 2.06 MMU

2016-08-16 Thread Michael Walle
Am 2016-08-16 15:41, schrieb Riku Voipio: On Tue, Aug 16, 2016 at 03:32:56PM +0200, Michael Walle wrote: Am 2016-07-22 17:57, schrieb Alexander Graf: >On 07/22/2016 05:18 PM, Michael Walle wrote: >>64 bit user mode doesn't work for the e5500 core because the MSR_CM bit >>is >>not set which

[Qemu-devel] a quesion

2016-08-16 Thread Michael Rolnik
Hi all, 1. How to implement a device that has 4 registers in IO space e.g. AVR EEPROM? 2. what is a SoC container object? How? -- Best Regards, Michael Rolnik

Re: [Qemu-devel] [PATCH for-2.7] linux-user: Fix llseek with high bit of offset_low set

2016-08-16 Thread Riku Voipio
Hi, applied to linux-user-for upstream. Riku On Mon, Aug 15, 2016 at 10:41:35PM +0900, Chanho Park wrote: > It works perfectly. > Thanks. > > Tested-by: Chanho Park > > On Fri, Aug 12, 2016 at 2:59 AM, Peter Maydell > wrote: > > The llseek

Re: [Qemu-devel] [PATCH] linux-user: ppc64: set MSR_CM bit for BookE 2.06 MMU

2016-08-16 Thread Riku Voipio
On Tue, Aug 16, 2016 at 03:32:56PM +0200, Michael Walle wrote: > Am 2016-07-22 17:57, schrieb Alexander Graf: > >On 07/22/2016 05:18 PM, Michael Walle wrote: > >>64 bit user mode doesn't work for the e5500 core because the MSR_CM bit > >>is > >>not set which enables the 64 bit mode for this MMU

[Qemu-devel] [PATCH] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP

2016-08-16 Thread Michael Walle
Only the POWER[789] CPUs should have the ARCH_206 bit set. This is what the linux kernel does. I guess this was also the intention of commit 0e019746. We have to make sure all *206 bits are set. Signed-off-by: Michael Walle --- checkpatch.pl flags one warning, but I think this

Re: [Qemu-devel] [PATCH v4] fpu: add mechanism to check for invalid long double formats

2016-08-16 Thread Peter Maydell
On 15 August 2016 at 23:27, Andrew Dutcher wrote: > All operations that take a floatx80 as an operand need to have their > inputs checked for malformed encodings. In all of these cases, use the > function floatx80_invalid_encoding to perform the check. If an invalid >

Re: [Qemu-devel] [PATCH] linux-user: ppc64: set MSR_CM bit for BookE 2.06 MMU

2016-08-16 Thread Michael Walle
Am 2016-07-22 17:57, schrieb Alexander Graf: On 07/22/2016 05:18 PM, Michael Walle wrote: 64 bit user mode doesn't work for the e5500 core because the MSR_CM bit is not set which enables the 64 bit mode for this MMU model. Memory addresses are truncated to 32 bit, which results in "Invalid

Re: [Qemu-devel] [PATCH v24 01/12] unblock backup operations in backing file

2016-08-16 Thread Kashyap Chamarthy
[I erroneously gave a Tested-by to the next patch (02/12) in this series, instead of this one.] On Wed, Jul 27, 2016 at 03:01:42PM +0800, Changlong Xie wrote: > From: Wen Congyang > > Signed-off-by: Wen Congyang > Signed-off-by: Changlong Xie

Re: [Qemu-devel] [PATCH v24 02/12] Backup: clear all bitmap when doing block checkpoint

2016-08-16 Thread Kashyap Chamarthy
On Tue, Aug 16, 2016 at 02:55:41PM +0200, Kashyap Chamarthy wrote: > On Wed, Jul 27, 2016 at 03:01:43PM +0800, Changlong Xie wrote: > > From: Wen Congyang > > > > Signed-off-by: Wen Congyang > > Signed-off-by: Changlong Xie

Re: [Qemu-devel] [PATCH v24 02/12] Backup: clear all bitmap when doing block checkpoint

2016-08-16 Thread Kashyap Chamarthy
On Wed, Jul 27, 2016 at 03:01:43PM +0800, Changlong Xie wrote: > From: Wen Congyang > > Signed-off-by: Wen Congyang > Signed-off-by: Changlong Xie > Signed-off-by: Wang WeiWei > Signed-off-by:

Re: [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver

2016-08-16 Thread Alex Williamson
On Tue, 16 Aug 2016 04:52:30 + "Tian, Kevin" wrote: > > From: Neo Jia [mailto:c...@nvidia.com] > > Sent: Tuesday, August 16, 2016 12:17 PM > > > > On Tue, Aug 16, 2016 at 03:50:44AM +, Tian, Kevin wrote: > > > > From: Neo Jia [mailto:c...@nvidia.com] > > > >

Re: [Qemu-devel] [PATCH v5] docs: add cpu-hotplug.txt

2016-08-16 Thread Dou Liyang
Hi drew, At 08/16/2016 07:37 PM, Andrew Jones wrote: On Tue, Aug 16, 2016 at 03:54:26PM +0800, Dou Liyang wrote: This document describes how to use cpu hotplug in QEMU. Signed-off-by: Andrew Jones I didn't give my s-o-b for this patch. I'm not sure where you got that

Re: [Qemu-devel] [PATCH v4 05/17] monitor: register gen:false commands manually

2016-08-16 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > Since a few commands are using 'gen': false, they are not registered > automatically by the generator. Register manually instead. > > This is in preparation for removal of qapi 'middle' mode

Re: [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 12:57, Eduardo Habkost wrote: > The following changes since commit 1dc8a6695c731abb7461c637b2512c3670d82be4: > > char: fix waiting for TLS and telnet connection (2016-08-16 11:50:55 +0100) > > are available in the git repository at: > >

[Qemu-devel] [PATCH for-2.8 0/2] vhost-vsock: add vhost-vsock device

2016-08-16 Thread Stefan Hajnoczi
This patch series adds -device vhost-vsock,guest-cid= to QEMU. The vsock device is a host-guest communications device comparable to virtio-serial except it offers POSIX Sockets API semantics. It uses the vhost_vsock.ko Linux kernel module for AF_VSOCK socket communications. The kernel module

[Qemu-devel] [PATCH for-2.8 2/2] vhost-vsock: add virtio sockets device

2016-08-16 Thread Stefan Hajnoczi
Implement the new virtio sockets device for host<->guest communication using the Sockets API. Most of the work is done in a vhost kernel driver so that virtio-vsock can hook into the AF_VSOCK address family. The QEMU vhost-vsock device handles configuration and live migration while the rx/tx

[Qemu-devel] [PATCH for-2.8 1/2] linux-headers: add virtio vsock headers

2016-08-16 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- include/standard-headers/linux/virtio_ids.h | 1 + include/standard-headers/linux/virtio_vsock.h | 94 +++ linux-headers/linux/vhost.h | 5 ++ 3 files changed, 100 insertions(+) create mode

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Fam Zheng
On Tue, 08/16 20:17, Peter Xu wrote: > > Do we really need error_report_exit when we already have error_fatal? > > error_fatal is the name of a global var, not the function. I mean most error_report_exit(...) calls can be converted to error_setg(_fatal, ...). Fam

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Peter Xu
On Tue, Aug 16, 2016 at 07:53:51PM +0800, Fam Zheng wrote: > On Tue, 08/16 13:05, Markus Armbruster wrote: > > Peter Xu writes: > > > > > There are many places in current QEMU codes that needs to print some > > > error and then quit QEMU. Provide a macro for it. > > > > > >

[Qemu-devel] QEMU TCG issue when executing UEFI

2016-08-16 Thread Ard Biesheuvel
Hello all, I am hitting this strange issue when executing the UEFI firmware for QEMU mach-virt/AArch64. This only occurs when building the firmware with GCC5 in RELEASE mode, but the failure mode suggests that this may not be relevant. Running a aarch64-softmmu QEMU built from today's master, I

[Qemu-devel] [RFC PATCH v2 2/2] utils: Add prefetch for Thunderx platform

2016-08-16 Thread vijay . kilari
From: Vijaya Kumar K Thunderx pass2 chip requires explicit prefetch instruction to give prefetch hint. To speed up live migration on Thunderx platform, prefetch instruction is added in zero buffer check function. The below results show live migration time improvement

[Qemu-devel] [RFC PATCH v2 1/2] utils: Add helper to read arm MIDR_EL1 register

2016-08-16 Thread vijay . kilari
From: Vijaya Kumar K Add helper API to read MIDR_EL1 registers to fetch cpu identification information. This helps in adding errata's and architecture specific features. This is implemented only for arm architecture. Signed-off-by: Vijaya Kumar K

[Qemu-devel] [RFC PATCH v2 0/2] Live migration optimization for Thunderx platform

2016-08-16 Thread vijay . kilari
From: Vijaya Kumar K The CPU MIDR_EL1 register is exposed to userspace for arm64 with the below patch. https://lkml.org/lkml/2016/7/8/467 Thunderx platform requires explicit prefetch instruction to provide prefetch hint. Using MIDR_EL1 information, provided by above

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()

2016-08-16 Thread Fam Zheng
On Tue, 08/16 13:05, Markus Armbruster wrote: > Peter Xu writes: > > > There are many places in current QEMU codes that needs to print some > > error and then quit QEMU. Provide a macro for it. > > > > Also, one coccinelle script is added to convert existing cases to > >

[Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip

2016-08-16 Thread Eduardo Habkost
The kvm_pv_unhalt feature doesn't work if kernel_irqchip is disabled, so we need to report it as unsupported. Tested-by: Peter Xu Reviewed-by: Andrew Jones Signed-off-by: Eduardo Habkost --- target-i386/kvm.c | 7 +++ 1 file

[Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM

2016-08-16 Thread Eduardo Habkost
The following changes since commit 1dc8a6695c731abb7461c637b2512c3670d82be4: char: fix waiting for TLS and telnet connection (2016-08-16 11:50:55 +0100) are available in the git repository at: git://github.com/ehabkost/qemu.git tags/x86-pull-request for you to fetch changes up to

Re: [Qemu-devel] [PATCH for-2.7] slirp: Rename "struct arphdr" to "struct slirp_arphdr"

2016-08-16 Thread Peter Maydell
On 16 August 2016 at 05:03, Brad Smith wrote: > On 08/15/16 04:24, Thomas Huth wrote: >> >> struct arphdr is already used by the system headers on OpenBSD >> and thus QEMU does not compile here anymore. Fix it by renaming >> our struct to slirp_arphdr instead. >> >>

  1   2   >