Re: [Qemu-devel] [RFCv2 1/2] spapr: Remove unnecessary owner field from sPAPRDRConnector

2015-09-15 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15/09/2015 02:30, David Gibson wrote: >>> I think the comment is wrong or at least inaccurate; it only >>> applies to the external QOM interface. The patch is a good >>> idea, even though OBJECT(x)->y traditionally is not used >>> (instead you

Re: [Qemu-devel] [PATCH PULL v2 00/11] Extract TLS handling code from VNC server

2015-09-15 Thread Peter Maydell
On 15 September 2015 at 11:16, Daniel P. Berrange wrote: > The following changes since commit 007e620a7576e4ce2ea6955541e87d8ae8ed32ae: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2015-09-14 18:51:09 +0100) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH v16 00/35] TileGX basic instructions

2015-09-15 Thread Peter Maydell
On 14 September 2015 at 23:43, Richard Henderson wrote: > Incorporating review from v15, some of which was in v14 but > I somehow skipped over. > > Major changes are: > * revbit functions for host-utils.h > * implementation of atomic operations not split across two patches > * unsigned vecto

Re: [Qemu-devel] KVM call for agenda for 2015-09-15

2015-09-15 Thread Juan Quintela
Juan Quintela wrote: > Hi > > Please, send any topic that you are interested in covering. > > At the end of Monday I will send an email with the agenda or the > cancellation of the call, so hurry up. > > After discussions on the QEMU Summit, we are going to have always open a > KVM call where you

Re: [Qemu-devel] [PATCH v7 20/26] qapi: Make output visitor return qnull() instead of NULL

2015-09-15 Thread Daniel P. Berrange
On Mon, Sep 14, 2015 at 07:57:51PM +0200, Markus Armbruster wrote: > Before commit 1d10b44, it crashed. Since then, it returns NULL, with > a FIXME comment. The FIXME is valid: code that assumes QObject * > can't be null exists. I'm not aware of a way to feed this problematic > return value to c

Re: [Qemu-devel] [PATCH 4/5] migration: size_t'ify some of qemu-file

2015-09-15 Thread Amit Shah
On (Thu) 13 Aug 2015 [11:51:33], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > This is a start on using size_t more in qemu-file and friends; > it fixes up QEMUFilePutBufferFunc and QEMUFileGetBufferFunc > to take size_t lengths and return ssize_t return values (like re

Re: [Qemu-devel] [PATCH v7 21/26] qapi: Introduce a first class 'any' type

2015-09-15 Thread Daniel P. Berrange
On Mon, Sep 14, 2015 at 07:57:52PM +0200, Markus Armbruster wrote: > It's first class, because unlike '**', it actually works, i.e. doesn't > require 'gen': false. > > '**' will go away next. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > docs/qapi-code-gen.txt

Re: [Qemu-devel] [PATCH PULL v2 00/11] Extract TLS handling code from VNC server

2015-09-15 Thread Daniel P. Berrange
On Tue, Sep 15, 2015 at 12:23:39PM +0100, Peter Maydell wrote: > On 15 September 2015 at 11:16, Daniel P. Berrange wrote: > > The following changes since commit 007e620a7576e4ce2ea6955541e87d8ae8ed32ae: > > > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into > > staging (201

Re: [Qemu-devel] [PATCH v7 22/26] qom: Don't use 'gen': false for qom-get, qom-set, object-add

2015-09-15 Thread Daniel P. Berrange
On Mon, Sep 14, 2015 at 07:57:53PM +0200, Markus Armbruster wrote: > With the previous commit, the generated marshalers just work, and save > us a bit of handwritten code. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > include/monitor/monitor.h | 3 --- > qapi-schema.js

Re: [Qemu-devel] [PATCH 5/5] migration: qemu-file more size_t'ifying

2015-09-15 Thread Amit Shah
On (Thu) 13 Aug 2015 [11:51:34], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > This time convert the external functions: > qemu_get_buffer, qemu_peek_buffer > qemu_put_buffer and qemu_put_buffer_async > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Sh

Re: [Qemu-devel] [PATCH v7 23/26] qapi-schema: Fix up misleading specification of netdev_add

2015-09-15 Thread Daniel P. Berrange
On Mon, Sep 14, 2015 at 07:57:54PM +0200, Markus Armbruster wrote: > It doesn't take a 'props' argument, let alone one in the format > "NAME=VALUE,..." > > The bogus arguments specification doesn't matter due to 'gen': false. > Clean it up to be incomplete rather than wrong, and document the > inc

Re: [Qemu-devel] [PATCH v7 24/26] qapi: Pseudo-type '**' is now unused, drop it

2015-09-15 Thread Daniel P. Berrange
On Mon, Sep 14, 2015 at 07:57:55PM +0200, Markus Armbruster wrote: > 'gen': false needs to stay for now, because netdev_add is still using > it. > > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > docs/qapi-code-gen.txt| 18 ++ > scripts/qa

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-15 Thread Marc-André Lureau
Hi (added in CC people from the "libcacard: use the library?" thread) On Thu, Sep 10, 2015 at 7:47 PM, Jeremy White wrote: > On 08/30/2015 06:29 AM, marcandre.lur...@redhat.com wrote: >> From: Marc-André Lureau >> >> As previously discussed in the thread "libcacard: use the library?", >> make l

[Qemu-devel] [PULL 0/3] Net patches

2015-09-15 Thread Stefan Hajnoczi
The following changes since commit 2752e5bedb26fa0c7291f810f9f534b688b2f1d2: qapi: Fix cgen() for Python older than 2.7 (2015-09-14 18:02:59 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/net-pull-request for you to fetch changes up to 737d2b3c41d59eb

[Qemu-devel] [PULL 1/3] e1000: Avoid infinite loop in processing transmit descriptor (CVE-2015-6815)

2015-09-15 Thread Stefan Hajnoczi
From: P J P While processing transmit descriptors, it could lead to an infinite loop if 'bytes' was to become zero; Add a check to avoid it. [The guest can force 'bytes' to 0 by setting the hdr_len and mss descriptor fields to 0. --Stefan] Signed-off-by: P J P Signed-off-by: Stefan Hajnoczi R

[Qemu-devel] [PULL 2/3] net: add checks to validate ring buffer pointers(CVE-2015-5279)

2015-09-15 Thread Stefan Hajnoczi
From: P J P Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152) bytes to process network packets. While receiving packets via ne2000_receive() routine, a local 'index' variable could exceed the ring buffer size, which could lead to a memory buffer overflow. Added other checks at initialisation.

[Qemu-devel] [PULL 3/3] net: avoid infinite loop when receiving packets(CVE-2015-5278)

2015-09-15 Thread Stefan Hajnoczi
From: P J P Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152) bytes to process network packets. While receiving packets via ne2000_receive() routine, a local 'index' variable could exceed the ring buffer size, leading to an infinite loop situation. Reported-by: Qinghao Tang Signed-off-by: P

Re: [Qemu-devel] [PATCH v7 20/26] qapi: Make output visitor return qnull() instead of NULL

2015-09-15 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Mon, Sep 14, 2015 at 07:57:51PM +0200, Markus Armbruster wrote: >> Before commit 1d10b44, it crashed. Since then, it returns NULL, with >> a FIXME comment. The FIXME is valid: code that assumes QObject * >> can't be null exists. I'm not aware of a way to feed

Re: [Qemu-devel] [PATCH 17/17] target-openrisc: Implement lwa, swa

2015-09-15 Thread Bastian Koppelmann
On 09/03/2015 02:17 AM, Richard Henderson wrote: Signed-off-by: Richard Henderson --- linux-user/main.c | 45 target-openrisc/cpu.c | 1 + target-openrisc/cpu.h | 9 + target-openrisc/interrupt.c| 1 + tar

Re: [Qemu-devel] [PATCH v3 1/5] support nbd driver in blockdev-add

2015-09-15 Thread Eric Blake
On 09/14/2015 09:58 PM, Wen Congyang wrote: > On 09/15/2015 11:46 AM, Eric Blake wrote: >> On 09/14/2015 08:27 PM, Wen Congyang wrote: Building fails: GEN qmp-commands.h In file included from /work/src/qemu/qapi-schema.json:9: In file included from /work/src/qemu/qapi/block.

Re: [Qemu-devel] [PATCH 16/17] target-openrisc: Write back result before FPE exception

2015-09-15 Thread Bastian Koppelmann
On 09/03/2015 02:17 AM, Richard Henderson wrote: The architecture manual is unclear about this, but the or1ksim does writeback before the exception. This requires splitting the helpers in half, with the exception raised by the second. Signed-off-by: Richard Henderson --- target-openrisc/fp

Re: [Qemu-devel] [PULL 0/3] Net patches

2015-09-15 Thread Peter Maydell
On 15 September 2015 at 13:02, Stefan Hajnoczi wrote: > The following changes since commit 2752e5bedb26fa0c7291f810f9f534b688b2f1d2: > > qapi: Fix cgen() for Python older than 2.7 (2015-09-14 18:02:59 +0100) > > are available in the git repository at: > > git://github.com/stefanha/qemu.git tag

Re: [Qemu-devel] [PATCH v3 1/5] support nbd driver in blockdev-add

2015-09-15 Thread Eric Blake
On 09/15/2015 01:37 AM, Markus Armbruster wrote: > +# @filename: #optional unix or inet path. The format is: > +#unix: nbd+unix:///export?socket=path or > +# nbd:unix:path:exportname=export > +#inet: nbd[+tcp]://host[:port]/export or > +

Re: [Qemu-devel] [PATCH v7 00/11] Fix exceptions handling for MIPS, PowerPC, and i386

2015-09-15 Thread Leon Alrae
On 15/09/2015 11:58, Aurelien Jarno wrote: > On 2015-09-14 15:55, Richard Henderson wrote: >> On 07/10/2015 02:56 AM, Pavel Dovgalyuk wrote: >>> Pavel Dovgalyuk (11): >>> softmmu: add helper function to pass through retaddr >>> softmmu: remove now unused functions >>> cpu-exec: in

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-15 Thread Daniel P. Berrange
On Tue, Sep 15, 2015 at 01:50:15PM +0200, Marc-André Lureau wrote: > Hi > > (added in CC people from the "libcacard: use the library?" thread) > > On Thu, Sep 10, 2015 at 7:47 PM, Jeremy White wrote: > > On 08/30/2015 06:29 AM, marcandre.lur...@redhat.com wrote: > >> From: Marc-André Lureau > >

Re: [Qemu-devel] [PULL 21/29] xen/pt: Sync up the dev.config and data values.

2015-09-15 Thread Stefano Stabellini
On Tue, 15 Sep 2015, Konrad Rzeszutek Wilk wrote: > On Tue, Sep 15, 2015 at 11:07:02AM +0100, Stefano Stabellini wrote: > > CC Konrad > > > > On Mon, 14 Sep 2015, Paolo Bonzini wrote: > > > On 10/09/2015 19:15, Stefano Stabellini wrote: > > > > + > > > > +switch (reg->size) { > > > > +

[Qemu-devel] Could not boot a guest vm from kvm mode based on APM X-Gene Host and latest qemu

2015-09-15 Thread liang yan
Hello, All, I am trying to enable kvm for a guest vm on an APM X-Gene Host with latest qemu, but could not make it work. The host is APM X-Gene 8-core, Linux kernel is 4.1.0-rc7-1-arm64, Guest kernel is linux-3.16rc3 QEMU is latest version Host has these dmesg info [2.708259] kvm [1]: G

[Qemu-devel] [PATCH] watchdog: add support to emulate winbond w83627thf

2015-09-15 Thread Daniel Fahlgren
This patch adds support to emulate the watchdog functionality on the Winbond w83627thf chip. The other features of the chip are not emulated. It has been tested with Ubuntu 6.06, 14.04 and 15.04 as guests using the w83627hf_wdt module. Signed-off-by: Daniel Fahlgren --- default-configs/i386-soft

Re: [Qemu-devel] [PULL 21/29] xen/pt: Sync up the dev.config and data values.

2015-09-15 Thread Paolo Bonzini
On 15/09/2015 15:28, Stefano Stabellini wrote: > >> > 2). Send an follow up patch to change this to abort()? (and wherever else >> > I used >> > assert(..)? > Yes, that would be good. > > >> > 3). Wait till Paolo is done going through the patchset and then revisit >> > 1) or 2)? > I d

[Qemu-devel] [RFC PATCH] os-android: Add support to android platform, built by ndk-r10

2015-09-15 Thread Houcheng Lin
From: Houcheng This patch is to build qemu in android ndk tool-chain, and has been tested in both x86_64 and x86 android platform with hardware virtualization enabled. This patch is composed of three part: - configure scripts for android - OS dependent code for android - kernel hea

[Qemu-devel] About qemu-kvm branch

2015-09-15 Thread tseng gogo
Hi , Sorry in advance that I am not sure that if I ask this question here is appropriate. I am new to use KVM and want to do some research in qemu-kvm live migration. In my environment, I install centos 7.0 with rpm install qemu-kvm 1.5.3, but what I want to do research is the source code

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-15 Thread Peter Maydell
On 15 September 2015 at 14:28, Daniel P. Berrange wrote: > I agree that it could make sense to host libcacard.git on git.qemu.org > if we're going to continue to use qemu-devel and a QEMU-like workflow, > but equally don't see any problem with it being a totally standalone > project with its own i

Re: [Qemu-devel] [PATCH v2 4/5] acpi: arm: add fw_cfg device node to dsdt

2015-09-15 Thread Gabriel L. Somlo
On Tue, Sep 15, 2015 at 10:06:45AM +0800, Shannon Zhao wrote: > > > On 2015/9/14 22:57, Gabriel L. Somlo wrote: > > Add a fw_cfg device node to the ACPI DSDT. This is mostly > > informational, as the authoritative fw_cfg MMIO region(s) > > are listed in the Device Tree. However, since we are buil

Re: [Qemu-devel] [edk2] Windows does not support DataTableRegion at all [was: docs: describe QEMU's VMGenID design]

2015-09-15 Thread Moore, Robert
I can't speak to the MS interpreter, but the iASL compiler does indeed support DataTableRegion (as well as the ACPICA interpreter). It may be worth an experiment to build an AML table with the iASL compiler that contains a DataTableRegion, and try it out on Win. Also, newer versions of the MS A

Re: [Qemu-devel] [PULL 21/29] xen/pt: Sync up the dev.config and data values.

2015-09-15 Thread Konrad Rzeszutek Wilk
On Tue, Sep 15, 2015 at 11:07:02AM +0100, Stefano Stabellini wrote: > CC Konrad > > On Mon, 14 Sep 2015, Paolo Bonzini wrote: > > On 10/09/2015 19:15, Stefano Stabellini wrote: > > > + > > > +switch (reg->size) { > > > +case 1: rc = xen_host_pci_get_byte(&s->real_device, offset, >

Re: [Qemu-devel] [PATCH v3 1/5] support nbd driver in blockdev-add

2015-09-15 Thread Kevin Wolf
Am 15.09.2015 um 15:03 hat Eric Blake geschrieben: > On 09/15/2015 01:37 AM, Markus Armbruster wrote: > > > +# @filename: #optional unix or inet path. The format is: > > +#unix: nbd+unix:///export?socket=path or > > +# nbd:unix:path:exportname=export >

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-15 Thread Daniel P. Berrange
On Tue, Sep 15, 2015 at 03:37:55PM +0200, Paolo Bonzini wrote: > On 15/09/2015 15:28, Daniel P. Berrange wrote: > > I have looked through the new libcacard git repository you created > > from QEMU history, and reviewed the extra patches you added on top > > for the build system and it all looks san

Re: [Qemu-devel] [PATCH v2 4/5] acpi: arm: add fw_cfg device node to dsdt

2015-09-15 Thread Peter Maydell
On 15 September 2015 at 14:42, Gabriel L. Somlo wrote: > On Tue, Sep 15, 2015 at 10:06:45AM +0800, Shannon Zhao wrote: >> This looks fine to me. But from what you said, the kernel driver is not >> in upstream kernel yet, so this would be applied after the kernel patch >> applied in case of unexpec

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-15 Thread Paolo Bonzini
On 15/09/2015 15:28, Daniel P. Berrange wrote: > I have looked through the new libcacard git repository you created > from QEMU history, and reviewed the extra patches you added on top > for the build system and it all looks sane to me. So this this a > > Reviewed-by: Daniel P. Berrange > > for

Re: [Qemu-devel] [PULL 21/29] xen/pt: Sync up the dev.config and data values.

2015-09-15 Thread Konrad Rzeszutek Wilk
On Tue, Sep 15, 2015 at 02:28:51PM +0100, Stefano Stabellini wrote: > On Tue, 15 Sep 2015, Konrad Rzeszutek Wilk wrote: > > On Tue, Sep 15, 2015 at 11:07:02AM +0100, Stefano Stabellini wrote: > > > CC Konrad > > > > > > On Mon, 14 Sep 2015, Paolo Bonzini wrote: > > > > On 10/09/2015 19:15, Stefano

Re: [Qemu-devel] [PATCH v7 20/26] qapi: Make output visitor return qnull() instead of NULL

2015-09-15 Thread Eric Blake
On 09/15/2015 07:20 AM, Markus Armbruster wrote: >>> >>> However, the patch isn't quite right: it messes up the reference >>> counting. After about SIZE_MAX visits, the reference counter >>> overflows, failing the assertion in qnull_destroy_obj(). Because >>> that's many orders of magnitude more

Re: [Qemu-devel] [PATCH v7 13/26] qapi: Clean up after recent conversions to QAPISchemaVisitor

2015-09-15 Thread Eric Blake
On 09/15/2015 04:52 AM, Daniel P. Berrange wrote: > On Mon, Sep 14, 2015 at 07:57:44PM +0200, Markus Armbruster wrote: >> Generate just 'FOO' instead of 'struct FOO' when possible. >> >> Drop helper functions that are now unused. >> >> Make pep8 and pylint reasonably happy. >> >> Rename generate_FO

Re: [Qemu-devel] [PATCH v2 4/5] acpi: arm: add fw_cfg device node to dsdt

2015-09-15 Thread Gabriel L. Somlo
On Tue, Sep 15, 2015 at 02:51:31PM +0100, Peter Maydell wrote: > On 15 September 2015 at 14:42, Gabriel L. Somlo wrote: > > On Tue, Sep 15, 2015 at 10:06:45AM +0800, Shannon Zhao wrote: > >> This looks fine to me. But from what you said, the kernel driver is not > >> in upstream kernel yet, so thi

Re: [Qemu-devel] [PATCH PULL v2 01/11] qapi: allow override of default enum prefix naming

2015-09-15 Thread Eric Blake
On 09/15/2015 04:16 AM, Daniel P. Berrange wrote: > The camel_to_upper() method applies some heuristics to turn > a mixed case type name into an all-uppercase name. This is > used for example, to generate enum constant name prefixes. > > The heuristics don't also generate a satisfactory name > tho

Re: [Qemu-devel] [PULL 0/6] gtk: misc grab tweaks, locale fix.

2015-09-15 Thread Peter Maydell
8ed32ae: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2015-09-14 18:51:09 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-gtk-20150915-1 > > for you to fetch changes up to

Re: [Qemu-devel] [edk2] Windows does not support DataTableRegion at all [was: docs: describe QEMU's VMGenID design]

2015-09-15 Thread Laszlo Ersek
On 09/15/15 15:45, Moore, Robert wrote: > I can't speak to the MS interpreter, but the iASL compiler does > indeed support DataTableRegion Yes, that was the very first thing I tested. That was a prerequisite for writing the design doc (which contained ASL code). > (as well as the ACPICA interpret

Re: [Qemu-devel] [PATCH v2 2/2] hw/arm/virt-acpi-build: Add DBG2 table

2015-09-15 Thread Leif Lindholm
On Tue, Sep 15, 2015 at 09:20:40AM +0800, Shannon Zhao wrote: > > > On 2015/9/15 0:35, Andrew Jones wrote: > > On Sun, Sep 13, 2015 at 04:06:33PM +0100, Leif Lindholm wrote: > >> Add a DBG2 table, describing the pl011 UART. > >> > >> Signed-off-by: Leif Lindholm > >> --- > >> hw/arm/virt-acpi-b

[Qemu-devel] [PATCH PULL v3 11/11] ui: convert VNC server to use QCryptoTLSSession

2015-09-15 Thread Daniel P. Berrange
Switch VNC server over to using the QCryptoTLSSession object for the TLS session. This removes the direct use of gnutls from the VNC server code. It also removes most knowledge about TLS certificate handling from the VNC server code. This has the nice effect that all the CONFIG_VNC_TLS conditionals

[Qemu-devel] Updated Invitation: Dr Velano @ Wed Sep 16, 2015 17:50 - 18:50 (shlomopongr...@gmail.com)

2015-09-15 Thread shlomopongratz
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20150916T145000Z DTEND:20150916T155000Z DTSTAMP:20150915T144912Z ORGANIZER;CN=Shlomo Pongratz:mailto:shlomopongr...@gmail.com UID:mhfgd22vmap7kbtja2d8p70...@google.co

Re: [Qemu-devel] [PATCH v6 01/14] qapi: Add transaction support to block-dirty-bitmap operations

2015-09-15 Thread Eric Blake
On 09/15/2015 12:11 AM, Fam Zheng wrote: > From: John Snow > > This adds two qmp commands to transactions. > > block-dirty-bitmap-add allows you to create a bitmap simultaneously > alongside a new full backup to accomplish a clean synchronization > point. > > block-dirty-bitmap-clear allows you

[Qemu-devel] [PATCH PULL v3 09/11] crypto: introduce new module for handling TLS sessions

2015-09-15 Thread Daniel P. Berrange
Introduce a QCryptoTLSSession object that will encapsulate all the code for setting up and using a client/sever TLS session. This isolates the code which depends on the gnutls library, avoiding #ifdefs in the rest of the codebase, as well as facilitating any possible future port to other TLS librar

[Qemu-devel] [PATCH PULL v3 02/11] tests: remove repetition in unit test object deps

2015-09-15 Thread Daniel P. Berrange
Most of the unit tests have identical sets of object deps. For example all block unit tests need to depend on $(block-obj-y) libqemuutil.a libqemustub.a Currently each unit test repeats this list of test deps. This list of deps will grow as future patches add more modules to the build, so define

Re: [Qemu-devel] [PATCH PULL v2 00/11] Extract TLS handling code from VNC server

2015-09-15 Thread Daniel P. Berrange
On Tue, Sep 15, 2015 at 12:41:00PM +0100, Daniel P. Berrange wrote: > On Tue, Sep 15, 2015 at 12:23:39PM +0100, Peter Maydell wrote: > > On 15 September 2015 at 11:16, Daniel P. Berrange > > wrote: > > > The following changes since commit > > > 007e620a7576e4ce2ea6955541e87d8ae8ed32ae: > > > > >

[Qemu-devel] [PATCH v3 2/2] hw/arm/virt-acpi-build: Add DBG2 table

2015-09-15 Thread Leif Lindholm
Add a DBG2 table, describing the pl011 UART. Signed-off-by: Leif Lindholm --- hw/arm/virt-acpi-build.c | 88 +++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index 9088248..763d531 1

[Qemu-devel] [PATCH PULL v3 08/11] crypto: add sanity checking of TLS x509 credentials

2015-09-15 Thread Daniel P. Berrange
If the administrator incorrectly sets up their x509 certificates, the errors seen at runtime during connection attempts are very obscure and difficult to diagnose. This has been a particular problem for people using openssl to generate their certificates instead of the gnutls certtool, because the

[Qemu-devel] [PATCH PULL v3 00/11] Extract TLS handling code from VNC server

2015-09-15 Thread Daniel P. Berrange
The following changes since commit 007e620a7576e4ce2ea6955541e87d8ae8ed32ae: Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2015-09-14 18:51:09 +0100) are available in the git repository at: git://github.com/berrange/qemu.git tags/vnc-crypto-v9-for-upstream fo

[Qemu-devel] [PATCH PULL v3 03/11] crypto: move crypto objects out of libqemuutil.la

2015-09-15 Thread Daniel P. Berrange
Future patches will be adding more crypto related APIs which rely on QOM infrastructure. This creates a problem, because QOM relies on library constructors to register objects. When you have a file in a static .a library though which is only referenced by a constructor the linker is dumb and will d

Re: [Qemu-devel] [PATCH v6 11/14] block/backup: support block job transactions

2015-09-15 Thread Eric Blake
On 09/15/2015 12:11 AM, Fam Zheng wrote: > From: Stefan Hajnoczi > > Join the transaction when the 'transactional-cancel' QMP argument is > true. > > This ensures that the sync bitmap is not thrown away if another block > job in the transaction is cancelled or fails. This is critical so > incre

[Qemu-devel] [PATCH PULL v3 06/11] crypto: introduce new module for TLS anonymous credentials

2015-09-15 Thread Daniel P. Berrange
Introduce a QCryptoTLSCredsAnon class which is used to manage anonymous TLS credentials. Use of this class is generally discouraged since it does not offer strong security, but it is required for backwards compatibility with the current VNC server implementation. Simple example CLI configuration:

[Qemu-devel] [PATCH PULL v3 04/11] qom: allow QOM to be linked into tools binaries

2015-09-15 Thread Daniel P. Berrange
The qom objects are currently added to common-obj-y which is only linked into the system emulators. The later crypto patches will depend on QOM infrastructure and will also be used from tools binaries. Thus the QOM objects are moved into a new qom-obj-y variable which can be referenced when linking

[Qemu-devel] [PATCH PULL v3 10/11] ui: fix return type for VNC I/O functions to be ssize_t

2015-09-15 Thread Daniel P. Berrange
Various VNC server I/O functions return 'long' and then also pass this to a method accepting 'int'. All these should be ssize_t to match the signature of read/write APIs and thus avoid potential for integer truncation / wraparound. Signed-off-by: Daniel P. Berrange Reviewed-by: Eric Blake --- u

Re: [Qemu-devel] iotests failure of 128

2015-09-15 Thread Eric Blake
On 09/15/2015 12:03 AM, Fam Zheng wrote: > Since commit 934659c460d46c948cf348822fda1d38556ed9a4 (iotests: Do not > suppress > segfaults in bash tests), sudo in 128 complains about unknown command > "_qemu_io_wrapper", but I don't know how to fix that. Any idea? Ugg. That's because _qemu_io_wrapp

[Qemu-devel] [PATCH v3 0/2] ACPI/arm-virt: add DBG2

2015-09-15 Thread Leif Lindholm
The Debug Port Table 2 (DBG2) is mandated by the ARM Server Base Boot Requirements specification. Add the DBG2 table definitions, and set up an entry in the ARM virt machine for the pl011 UART. Changes since v2: - Typedef format cleanup. - Restructured to use progressive acpi_data_push() calls for

[Qemu-devel] [PATCH PULL v3 01/11] qapi: allow override of default enum prefix naming

2015-09-15 Thread Daniel P. Berrange
The camel_to_upper() method applies some heuristics to turn a mixed case type name into an all-uppercase name. This is used for example, to generate enum constant name prefixes. The heuristics don't also generate a satisfactory name though. eg { 'enum': 'QCryptoTLSCredsEndpoint', 'data': ['

[Qemu-devel] [PATCH v3 1/2] ACPI: Add definitions for the DBG2 table

2015-09-15 Thread Leif Lindholm
The DBG2 table can be considered a "companion" to SPCR - it points out debug consoles available in the system. Also update SPCR comments to reflect DBG2 is now described in this file, and update the supported SPCR specification revision (no functional change). Signed-off-by: Leif Lindholm --- i

Re: [Qemu-devel] [PATCH 3/7] net: remove NetLegacy struct

2015-09-15 Thread Eric Blake
On 09/07/2015 06:08 AM, Kővágó, Zoltán wrote: > NetLegacy is just Netdev with some extra fields (name, vlan) and an > optional id. This patch merges the two structs, and net_client_init1 > got some extra checks to make sure only accept valid -netdev command > lines. This is some extra work, but a

Re: [Qemu-devel] [PATCH 1/2] vhost-user: add multiple queue support

2015-09-15 Thread Eric Blake
On 09/15/2015 01:10 AM, Yuanhan Liu wrote: > From: Changchun Ouyang > > This patch is initially based a patch from Nikolay Nikolaev. Subject line confusion - this is titled 1/2, but in reply to a cover letter titled 0/7, and where there is also a 1/7 patch, and where the 6/7 looks similar to thi

[Qemu-devel] [PATCH PULL v3 05/11] crypto: introduce new base module for TLS credentials

2015-09-15 Thread Daniel P. Berrange
Introduce a QCryptoTLSCreds class to act as the base class for storing TLS credentials. This will be later subclassed to provide handling of anonymous and x509 credential types. The subclasses will be user creatable objects, so instances can be created & deleted via 'object-add' and 'object-del' QM

[Qemu-devel] [PATCH PULL v3 07/11] crypto: introduce new module for TLS x509 credentials

2015-09-15 Thread Daniel P. Berrange
Introduce a QCryptoTLSCredsX509 class which is used to manage x509 certificate TLS credentials. This will be the preferred credential type offering strong security characteristics Example CLI configuration: $QEMU -object tls-creds-x509,id=tls0,endpoint=server,\ dir=/path/to/creds/

Re: [Qemu-devel] [PATCH 6/7] vhost-user: add multiple queue support

2015-09-15 Thread Eric Blake
On 09/15/2015 01:10 AM, Yuanhan Liu wrote: > From: Changchun Ouyang > > This patch is initially based a patch from Nikolay Nikolaev. > > Here is the latest version for adding vhost-user multiple queue support, > by creating a nc and vhost_net pair for each queue. The phrase "Here is the latest

[Qemu-devel] [PULL 02/35] linux-user: Support tilegx architecture in linux-user

2015-09-15 Thread Richard Henderson
From: Chen Gang Add main working flow feature, system call processing feature, and elf64 tilegx binary loading feature, based on Linux kernel tilegx 64-bit implementation. [rth: Moved all of the implementation of atomic instructions to a later patch.] Signed-off-by: Chen Gang Reviewed-by: Pete

[Qemu-devel] [PULL 07/35] target-tilegx: Fix LDNA_ADD_IMM8_OPCODE_X1

2015-09-15 Thread Richard Henderson
An obvious typo in the mnemonic here. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/opcode_tilegx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-tilegx/opcode_tilegx.h b/target-tilegx/opcode_tilegx.h index 3b8bf4f..989436d 100644 ---

[Qemu-devel] [PULL 05/35] target-tilegx: Modify opcode_tilegx.h to fit QEMU usage

2015-09-15 Thread Richard Henderson
From: Chen Gang Use 'inline' instead of '__inline', and also use 'uint64_t' instead of "unsigned long long" Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- target-tilegx/opcode_tilegx.h | 220 +- 1

[Qemu-devel] [PULL 03/35] linux-user: Conditionalize syscalls which are not defined in tilegx

2015-09-15 Thread Richard Henderson
From: Chen Gang Some of architectures (e.g. tilegx), several syscall macros are not supported, so switch them. Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- linux-user/syscall.c | 50 +- 1

[Qemu-devel] [PULL 00/35] TileGX basic instructions

2015-09-15 Thread Richard Henderson
github.com/rth7680/qemu.git tags/pull-tile-20150915 for you to fetch changes up to 461aa6783eec27f209b026c6647fc7a83b2997cd: target-tilegx: Handle v1shl, v1shru, v1shrs (2015-09-15 07:45:34 -0700) TileGX basic in

[Qemu-devel] [PULL 08/35] target-tilegx: Add special register information from Tilera Corporation

2015-09-15 Thread Richard Henderson
From: Chen Gang The related copy is from Linux kernel "arch/tile/include/uapi/arch/ spr_def_64.h". Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- target-tilegx/spr_def_64.h | 216 + 1 file chan

[Qemu-devel] [PULL 23/35] target-tilegx: Handle comparison instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 39 +-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 9c95633..f2dd824 100644 --- a/target-

[Qemu-devel] [PULL 10/35] target-tilegx: Add several helpers for instructions translation

2015-09-15 Thread Richard Henderson
From: Chen Gang The related instructions are exception, cntlz, cnttz, shufflebytes. Reviewed-by: Peter Maydell Signed-off-by: Chen Gang Message-Id: [rth: Remove incorrect implementation of add_saturate.] Signed-off-by: Richard Henderson --- target-tilegx/helper.c | 70 ++

[Qemu-devel] [PULL 06/35] target-tilegx: Modify _SPECIAL_ opcodes

2015-09-15 Thread Richard Henderson
Both ADDX_SPECIAL_0_OPCODE_Y1 and ADD_SPECIAL_0_OPCODE_Y1 do not appear to be "special" in any way, except that they don't follow the normal naming convention using _RRR_. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/opcode_tilegx.h | 4 ++-- 1 file changed, 2 i

[Qemu-devel] [PULL 11/35] target-tilegx: Framework for decoding bundles

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 1145 + 1 file changed, 1145 insertions(+) create mode 100644 target-tilegx/translate.c diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c new

[Qemu-devel] [PULL 12/35] target-tilegx: Generate SEGV properly

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/main.c | 3 +++ target-tilegx/cpu.c | 5 - target-tilegx/cpu.h | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index 7ecb018..4b579c9 100644 --- a/linux-us

[Qemu-devel] [PULL 17/35] target-arm: Use new revbit functions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/helper-a64.c | 15 +-- target-arm/helper.c | 12 +--- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index 2c7a645..deb8dbe 100644

[Qemu-devel] [PULL 04/35] target-tilegx: Add opcode basic implementation from Tilera Corporation

2015-09-15 Thread Richard Henderson
From: Chen Gang It is copied from Linux kernel "arch/tile/include/uapi/arch/ opcode_tilegx.h". Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- target-tilegx/opcode_tilegx.h | 1406 + 1 file changed,

[Qemu-devel] [PULL 01/35] linux-user: tilegx: Add architecture related features

2015-09-15 Thread Richard Henderson
From: Chen Gang They are based on Linux kernel tilegx architecture for 64 bit binary, and also based on tilegx ABI reference document, and also reference from other targets implementations. Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson ---

[Qemu-devel] [PULL 13/35] target-tilegx: Add TILE-Gx building files

2015-09-15 Thread Richard Henderson
From: Chen Gang Add related configuration and make files for tilegx. The target can now build, though not run anything. Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- configure | 2 ++ default-configs/tilegx-l

[Qemu-devel] [PULL 18/35] target-tilegx: Handle most bit manipulation instructions

2015-09-15 Thread Richard Henderson
The crc instructions are omitted from this set. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/helper.c| 10 +++ target-tilegx/helper.h| 2 ++ target-tilegx/translate.c | 68 ++- 3 files changed, 79 insertio

[Qemu-devel] [PULL 34/35] target-tilegx: Handle v1shli, v1shrui

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 7719132..65b610e 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/tr

[Qemu-devel] [PULL 16/35] host-utils: Add revbit functions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- include/qemu/host-utils.h | 77 +++ 1 file changed, 77 insertions(+) diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h index 7d36ebf..3ef97d5 100644 --- a/include/qemu/ho

[Qemu-devel] [PULL 31/35] target-tilegx: Handle mtspr, mfspr

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 76 +-- 1 file changed, 73 insertions(+), 3 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 9b0d819..5819cc4 100644 --- a

[Qemu-devel] [PULL 09/35] target-tilegx: Add cpu basic features for linux-user

2015-09-15 Thread Richard Henderson
From: Chen Gang It implements minimized cpu features for linux-user. Signed-off-by: Chen Gang Reviewed-by: Peter Maydell Message-Id: Signed-off-by: Richard Henderson --- target-tilegx/cpu.c | 170 ++ target-tilegx/cpu.h | 175 +

[Qemu-devel] [PULL 24/35] target-tilegx: Implement system and memory management instructions

2015-09-15 Thread Richard Henderson
Most of which are either nops or exceptions. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 77 +-- 1 file changed, 54 insertions(+), 23 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/

[Qemu-devel] [PULL 27/35] target-tilegx: Handle conditional move instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index f15d0d0..31b6a6c 100644 --- a/target-tilegx/translate.c +++ b/target-t

[Qemu-devel] [PULL 29/35] target-tilegx: Handle mask instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 673b441..8b7c719 100644 --- a/target-tilegx/translate.c +++ b/targ

[Qemu-devel] [PULL 33/35] target-tilegx: Handle v4int_l/h

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 8 1 file changed, 8 insertions(+) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 7fb2ffb..7719132 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/translate.

[Qemu-devel] [PULL 22/35] target-tilegx: Handle conditional branch instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 51 +++ 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index c08a3a6..9c95633 100644 ---

[Qemu-devel] [PULL 20/35] target-tilegx: Handle post-increment load and store instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 94 +++ 1 file changed, 86 insertions(+), 8 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 246cc6a..7fe42e8 100644 --- a

[Qemu-devel] [PULL 32/35] target-tilegx: Handle atomic instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/main.c | 166 ++ target-tilegx/cpu.h | 4 +- target-tilegx/translate.c | 80 +- 3 files changed, 248 insertions(+), 2 deletions(-) diff --g

[Qemu-devel] [PULL 19/35] target-tilegx: Handle basic load and store instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 130 -- 1 file changed, 115 insertions(+), 15 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index e581fc5..246cc6a 100644 ---

[Qemu-devel] [PULL 25/35] target-tilegx: Handle bitfield instructions

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 168b4da..ba56a2e 100644 --- a/target-tilegx/t

[Qemu-devel] [PULL 14/35] target-tilegx: Handle simple logical operations

2015-09-15 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-tilegx/translate.c | 99 +-- 1 file changed, 96 insertions(+), 3 deletions(-) diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index 58289b7..68c7db2 100644 --- a

<    1   2   3   4   >