Re: [Qemu-devel] [PATCH 0/3] hostmem-file: make option 'size' optional

2016-11-06 Thread Markus Armbruster
Haozhong Zhang writes: > This patch series is mostly the followup of patch 3 in > "[PATCH v2 0/3] Improve truncation behavior of memory-backend-file" [1][2]. > > For certain usages of memory-backend-file, users simply want to use > the entire backend file (specified by

Re: [Qemu-devel] [PATCH] docs/block-replication.txt: Introduce nbd qmp commands

2016-11-06 Thread Markus Armbruster
Changlong Xie writes: > Signed-off-by: Changlong Xie > --- > docs/block-replication.txt | 22 +- > 1 file changed, 17 insertions(+), 5 deletions(-) > > diff --git a/docs/block-replication.txt b/docs/block-replication.txt

Re: [Qemu-devel] [PATCH] s390x/kvm: fix run_on_cpu sigp conversions

2016-11-06 Thread Fam Zheng
On Fri, 11/04 10:06, Paolo Bonzini wrote: > > > On 02/11/2016 17:21, Cornelia Huck wrote: > > Commit 14e6fe12a ("*_run_on_cpu: introduce run_on_cpu_data type") > > attempted to convert all users of run_on_cpu to use the new > > run_on_cpu_data type. It missed to change the called sigp_*

[Qemu-devel] [Bug 1639322] Re: pasting into ppc64 serial console kills qemu

2016-11-06 Thread Thomas Huth
What user interface are you using? VNC? SDL? GTK? ** Tags added: ppc -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1639322 Title: pasting into ppc64 serial console kills qemu Status in QEMU:

Re: [Qemu-devel] alpha platform is missing files after initrd load

2016-11-06 Thread Dennis Luehring
Am 04.11.2016 um 22:08 schrieb Richard Henderson: No, it was less specific than that. Something like "unpacking failed: error". >And, apparently, it used to be handled with a panic() call, but then that >was deemed "policy", and downgraded to a KERN_EMERG message: Ouch. A silly decision,

[Qemu-devel] [PATCH v3 14/14] build-sys: add qapi doc generation targets

2016-11-06 Thread Marc-André Lureau
Generate and install the man and html version of QAPI documentation. Add it also to optional pdf/dvi/info targets. Also support plain-text targets docs/qemu-ga-ref.txt & docs/qemu-qmp-ref.txt. Signed-off-by: Marc-André Lureau --- Makefile | 56

Re: [Qemu-devel] alpha platform is missing files after initrd load

2016-11-06 Thread Dennis Luehring
Am 04.11.2016 um 20:40 schrieb Laszlo Ersek: I guess it is "possible to design a system which can recover from this", except noone seems to have bothered, since 2009. (Ditto for the proposed "panic-level=X" alternative.) I've now briefly considered posting a trivial kernel patch for this, but

[Qemu-devel] [PATCH v3 11/14] qapi: add qapi2texi script

2016-11-06 Thread Marc-André Lureau
As the name suggests, the qapi2texi script converts JSON QAPI description into a texi file suitable for different target formats (info/man/txt/pdf/html...). It parses the following kind of blocks: Free-form: ## # = Section # == Subsection # # Some text foo with *emphasis* # 1. with

[Qemu-devel] [PATCH v3 06/14] qapi: fix various symbols mismatch in documentation

2016-11-06 Thread Marc-André Lureau
There are various mismatch: - invalid symbols - section and member symbols mismatch - enum or union values vs 'type' The documentation parser catches all these cases. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 20 +---

[Qemu-devel] [PATCH v3 08/14] qapi: add missing colon-ending for section name

2016-11-06 Thread Marc-André Lureau
The documentation parser expects a section name to end with ':', otherwise the comment is treated as free-form text body. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 300 +-- qapi/block-core.json | 196

[Qemu-devel] [PATCH v3 12/14] texi2pod: learn quotation, deftp and deftypefn

2016-11-06 Thread Marc-André Lureau
Learn a few more markups used for API documentation. Signed-off-by: Marc-André Lureau --- scripts/texi2pod.pl | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl

[Qemu-devel] [PATCH v3 09/14] qapi: add some sections in docs

2016-11-06 Thread Marc-André Lureau
Add some more section title, and misc fixes. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 4 qapi/block-core.json | 6 -- qapi/block.json | 10 -- qapi/common.json | 6 -- qapi/crypto.json | 5 -

[Qemu-devel] [PATCH v3 10/14] docs: add master qapi texi files

2016-11-06 Thread Marc-André Lureau
The qapi2texi scripts generates a file to be included in a texi file. Add "QEMU QMP Reference Manual" and "QEMU Guest Agent Protocol Reference" master texi files. Move qmp-intro.txt into qemu-qmp-ref.texi, to widen its content on various installed target formats (man/txt/html/pdf/info..)

[Qemu-devel] [PATCH v3 04/14] qapi: fix schema symbol sections

2016-11-06 Thread Marc-André Lureau
According to docs/qapi-code-gen.txt, there needs to be '##' to start a and end a symbol section, that's also what the documentation parser expects. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 18 +- qapi/block-core.json | 1 +

[Qemu-devel] [PATCH v3 03/14] qga/schema: improve guest-set-vcpus Returns: section

2016-11-06 Thread Marc-André Lureau
The documentation parser finishes a section after an empty line. Fix the Returns: section of guest-set-vcpus, and itemize the possible return values. Signed-off-by: Marc-André Lureau --- qga/qapi-schema.json | 12 1 file changed, 4 insertions(+), 8

[Qemu-devel] [PATCH v3 05/14] qapi: fix missing symbol @prefix

2016-11-06 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- qapi-schema.json | 4 ++-- qapi/block-core.json | 4 ++-- qapi/crypto.json | 36 ++-- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json

[Qemu-devel] [PATCH v3 00/14] qapi doc generation (whole version, squashed)

2016-11-06 Thread Marc-André Lureau
Add a qapi2texi script to generate the documentation from the qapi schemas. The 13th patch in this series is a squashed version of the documentation move from qmp-commands.txt to the schemas. The whole version (not sent on the ML to avoid spamming) is in the following git branch:

[Qemu-devel] [PATCH v3 07/14] qapi: use one symbol per line

2016-11-06 Thread Marc-André Lureau
The documentation parser only handles a single symbol per line. Signed-off-by: Marc-André Lureau --- qapi/block-core.json | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index c64a48c..e1cc94a

[Qemu-devel] [PATCH v3 02/14] qga/schema: fix double-return in doc

2016-11-06 Thread Marc-André Lureau
guest-get-memory-block-info documentation should have only one "Returns:". Signed-off-by: Marc-André Lureau --- qga/qapi-schema.json | 1 - 1 file changed, 1 deletion(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index c21f308..758803a 100644 ---

[Qemu-devel] [PATCH v3 01/14] qapi: add missing 'bus' argument in device_add

2016-11-06 Thread Marc-André Lureau
'device_add' is incomplete for now, but 'bus' is a common argument for regarless of the device, and is present in documentation. Add it to the device_add schema definition. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 2 +- 1 file changed, 1 insertion(+),

[Qemu-devel] [PATCH V3 09/10] memory: handle alias in memory_region_is_iommu()

2016-11-06 Thread Jason Wang
Cc: Paolo Bonzini Acked-by: Paolo Bonzini Signed-off-by: Jason Wang --- include/exec/memory.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index e605de3..ab37499 100644 ---

[Qemu-devel] [PATCH V3 07/10] acpi: add ATSR for q35

2016-11-06 Thread Jason Wang
This patch provides ATSR which was a requirement for software that wants to enable ATS on endpoint devices behind a Root Port. This is done simply by setting ALL_PORTS which indicates all PCI-Express Root Ports support ATS transactions. Signed-off-by: Jason Wang ---

[Qemu-devel] [PATCH V3 10/10] vhost_net: device IOTLB support

2016-11-06 Thread Jason Wang
This patches implements Device IOTLB support for vhost kernel. This is done through: 1) switch to use dma helpers when map/unmap vrings from vhost codes 2) introduce a set of VhostOps to: - setting up device IOTLB request callback - processing device IOTLB request - processing device

[Qemu-devel] [PATCH V3 03/10] intel_iommu: allocate new key when creating new address space

2016-11-06 Thread Jason Wang
We use the pointer to stack for key for new address space, this will break hash table searching, fixing by g_malloc() a new key instead. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Richard Henderson Cc: Eduardo Habkost

[Qemu-devel] [PATCH V3 06/10] virtio-pci: address space translation service (ATS) support

2016-11-06 Thread Jason Wang
This patches enable the Address Translation Service support for virtio pci devices. This is needed for a guest visible Device IOTLB implementation and will be required by vhost device IOTLB API implementation for intel IOMMU. Cc: Michael S. Tsirkin Signed-off-by: Jason Wang

[Qemu-devel] [PATCH V3 04/10] exec: introduce address_space_get_iotlb_entry()

2016-11-06 Thread Jason Wang
This patch introduces a helper to query the iotlb entry for a possible iova. This will be used by later device IOTLB API to enable the capability for a dataplane (e.g vhost) to query the IOTLB. Cc: Paolo Bonzini Cc: Peter Crosthwaite Cc: Richard

[Qemu-devel] [PATCH V3 08/10] memory: handle alias for iommu notifier

2016-11-06 Thread Jason Wang
Cc: Paolo Bonzini Acked-by: Paolo Bonzini Signed-off-by: Jason Wang --- memory.c | 9 + 1 file changed, 9 insertions(+) diff --git a/memory.c b/memory.c index 33110e9..2bfc37f 100644 --- a/memory.c +++ b/memory.c @@

[Qemu-devel] [PATCH V3 02/10] intel_iommu: name vtd address space with devfn

2016-11-06 Thread Jason Wang
To avoid duplicated name and ease debugging. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Richard Henderson Cc: Eduardo Habkost Acked-by: Peter Xu Signed-off-by: Jason Wang

[Qemu-devel] [PATCH V3 05/10] intel_iommu: support device iotlb descriptor

2016-11-06 Thread Jason Wang
This patch enables device IOTLB support for intel iommu. The major work is to implement QI device IOTLB descriptor processing and notify the device through iommu notifier. Cc: Paolo Bonzini Cc: Richard Henderson Cc: Eduardo Habkost

[Qemu-devel] [PATCH V3 00/10] vhost device IOTLB support

2016-11-06 Thread Jason Wang
Hi all: As the userspace vitio driver became popular, more and more request were received for secure DMA environemt (DMAR). So this series tries to make DMAR works for virtio/vhost. The idea is let virtio/vhost co-work with userspace iommu implememtation. This is done through: - for virtio, when

[Qemu-devel] [PATCH V3 01/10] virtio: convert to use DMA api

2016-11-06 Thread Jason Wang
Currently, all virtio devices bypass IOMMU completely. This is because address_space_memory is assumed and used during DMA emulation. This patch converts the virtio core API to use DMA API. This idea is - introducing a new transport specific helper to query the dma address space. (only pci

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Alexey Kardashevskiy
On 07/11/16 17:36, Kirti Wankhede wrote: > > > On 11/7/2016 11:45 AM, Alexey Kardashevskiy wrote: >> On 07/11/16 14:59, Kirti Wankhede wrote: >>> >>> >>> On 11/7/2016 9:00 AM, Alexey Kardashevskiy wrote: On 05/11/16 08:10, Kirti Wankhede wrote: > > ... > > > Patch series tested

Re: [Qemu-devel] [PATCH v11 01/22] vfio: Mediated device Core driver

2016-11-06 Thread Tian, Kevin
> From: Kirti Wankhede [mailto:kwankh...@nvidia.com] > Sent: Saturday, November 05, 2016 5:11 AM > [...] > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: I73a5084574270b14541c529461ea2f03c292d510 Jike has given his reviewed-by for

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Kirti Wankhede
On 11/7/2016 11:45 AM, Alexey Kardashevskiy wrote: > On 07/11/16 14:59, Kirti Wankhede wrote: >> >> >> On 11/7/2016 9:00 AM, Alexey Kardashevskiy wrote: >>> On 05/11/16 08:10, Kirti Wankhede wrote: ... Patch series tested with linux-next upto commit 14970f204b19 @Fri Oct 28

Re: [Qemu-devel] Build issue with qemu-2.7.0

2016-11-06 Thread Fam Zheng
On Sun, 11/06 12:34, Colum Paget wrote: > Hi all, > > Firstly appologies for not using the launchpad bug tracker, it won't > let me register an account, keeps telling me my 'page is stale'. Thanks, while launchpad is the default option, in your case it is also okay to send bug reports to

Re: [Qemu-devel] [V3,1/7] nios2: Add disas entries

2016-11-06 Thread Guenter Roeck
On 11/06/2016 08:17 PM, Sandra Loosemore wrote: On 11/06/2016 08:55 PM, Guenter Roeck wrote: On Tue, Oct 18, 2016 at 11:50:25PM +0200, Marek Vasut wrote: Add nios2 disassembler support. This patch is composed from binutils files from commit "Opcodes and assembler support for Nios II R2". The

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Alexey Kardashevskiy
On 07/11/16 14:59, Kirti Wankhede wrote: > > > On 11/7/2016 9:00 AM, Alexey Kardashevskiy wrote: >> On 05/11/16 08:10, Kirti Wankhede wrote: >>> This series adds Mediated device support to Linux host kernel. Purpose >>> of this series is to provide a common interface for mediated device >>>

Re: [Qemu-devel] [PATCH v1] docs/vhost-user: extend the vhost-user protocol to support the vhost-pci based inter-vm communication

2016-11-06 Thread Wang, Wei W
Hi Marc-André, On Monday, October 24, 2016 3:10 PM, Wei Wang wrote: > Signed-off-by: Wei Wang > --- > docs/specs/vhost-user.txt | 81 > +-- > 1 file changed, 72 insertions(+), 9 deletions(-) > > diff --git

[Qemu-devel] [PATCH 2/3] exec.c: move file operations to qemu_ram_alloc_from_file()

2016-11-06 Thread Haozhong Zhang
Move operations that open/close/get size of the backend file from file_ram_alloc() to its caller qemu_ram_alloc_from_file(). After this change, check of backend file size and memory size can be put in qemu_ram_alloc_from_file(). Signed-off-by: Haozhong Zhang --- exec.c

[Qemu-devel] [PATCH 0/3] hostmem-file: make option 'size' optional

2016-11-06 Thread Haozhong Zhang
This patch series is mostly the followup of patch 3 in "[PATCH v2 0/3] Improve truncation behavior of memory-backend-file" [1][2]. For certain usages of memory-backend-file, users simply want to use the entire backend file (specified by the "mem-path" option). Therefore, it's not necessary in

[Qemu-devel] [PATCH 3/3] hostmem-file: make option 'size' optional

2016-11-06 Thread Haozhong Zhang
If 'size' option is not specified, QEMU will use the file size of 'mem-path' instead. If an empty file, a non-existing file or a directory is specified by option 'mem-path', a non-zero option 'size' is still needed. Signed-off-by: Haozhong Zhang ---

[Qemu-devel] [PATCH 1/3] exec.c: add comment for errors of get_file_size()

2016-11-06 Thread Haozhong Zhang
Indicate that not stopping on get_file_size() errors in file_ram_alloc() is on purpose and not a mistake. Signed-off-by: Haozhong Zhang --- exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec.c b/exec.c index 3d867f1..68b0c92 100644 --- a/exec.c +++

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Kirti Wankhede
Verified that this patch series gets applied cleanly to Linux-next upto: bc33b0ca11e3 Linux 4.9-rc4 Also tested this patch series with above kernel. Thanks, Kirti On 11/7/2016 9:29 AM, Kirti Wankhede wrote: > > > On 11/7/2016 9:00 AM, Alexey Kardashevskiy wrote: >> On 05/11/16 08:10, Kirti

Re: [Qemu-devel] [V3,1/7] nios2: Add disas entries

2016-11-06 Thread Alexey Kardashevskiy
On 07/11/16 15:17, Sandra Loosemore wrote: > On 11/06/2016 08:55 PM, Guenter Roeck wrote: >> On Tue, Oct 18, 2016 at 11:50:25PM +0200, Marek Vasut wrote: >>> Add nios2 disassembler support. This patch is composed from binutils files >>> from commit "Opcodes and assembler support for Nios II R2".

[Qemu-devel] [PATCH] tests/.gitignore: Ignore test-char

2016-11-06 Thread Changlong Xie
Signed-off-by: Changlong Xie --- tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/.gitignore b/tests/.gitignore index c0d7857..e9b182e 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -16,6 +16,7 @@ test-bitops test-blockjob

Re: [Qemu-devel] [V3,1/7] nios2: Add disas entries

2016-11-06 Thread Sandra Loosemore
On 11/06/2016 08:55 PM, Guenter Roeck wrote: On Tue, Oct 18, 2016 at 11:50:25PM +0200, Marek Vasut wrote: Add nios2 disassembler support. This patch is composed from binutils files from commit "Opcodes and assembler support for Nios II R2". The files from binutils used in this patch are:

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Kirti Wankhede
On 11/7/2016 9:00 AM, Alexey Kardashevskiy wrote: > On 05/11/16 08:10, Kirti Wankhede wrote: >> This series adds Mediated device support to Linux host kernel. Purpose >> of this series is to provide a common interface for mediated device >> management that can be used by different devices. This

Re: [Qemu-devel] [V6, 2/7] nios2: Add architecture emulation support

2016-11-06 Thread Guenter Roeck
On Tue, Oct 25, 2016 at 09:57:43PM +0200, Marek Vasut wrote: > From: Chris Wulff > > Add support for emulating Altera NiosII R1 architecture into qemu. > This patch is based on previous work by Chris Wulff from 2012 and > updated to latest mainline QEMU. > > Signed-off-by:

Re: [Qemu-devel] [V3,1/7] nios2: Add disas entries

2016-11-06 Thread Guenter Roeck
On Tue, Oct 18, 2016 at 11:50:25PM +0200, Marek Vasut wrote: > Add nios2 disassembler support. This patch is composed from binutils files > from commit "Opcodes and assembler support for Nios II R2". The files from > binutils used in this patch are: > > include/opcode/nios2.h >

Re: [Qemu-devel] [PATCH v11 00/22] Add Mediated device support

2016-11-06 Thread Alexey Kardashevskiy
On 05/11/16 08:10, Kirti Wankhede wrote: > This series adds Mediated device support to Linux host kernel. Purpose > of this series is to provide a common interface for mediated device > management that can be used by different devices. This series introduces > Mdev core module that creates and

[Qemu-devel] [PATCH] docs/block-replication.txt: Introduce nbd qmp commands

2016-11-06 Thread Changlong Xie
Signed-off-by: Changlong Xie --- docs/block-replication.txt | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/block-replication.txt b/docs/block-replication.txt index 6bde673..6b9c77b 100644 ---

Re: [Qemu-devel] [PATCH kernel v4 7/7] virtio-balloon: tell host vm's unused page info

2016-11-06 Thread Li, Liang Z
> Please squish this and patch 5 together. It makes no sense to separate them. > OK. > > +static void send_unused_pages_info(struct virtio_balloon *vb, > > + unsigned long req_id) > > +{ > > + struct scatterlist sg_in; > > + unsigned long pfn = 0, bmap_len,

Re: [Qemu-devel] [PATCH for-2.8] net: fix sending of data with -net socket, listen backend

2016-11-06 Thread Zhang Chen
On 11/04/2016 11:46 PM, Daniel P. Berrange wrote: The use of -net socket,listen was broken in the following commit commit 16a3df403b10c4ac347159e39005fd520b2648bb Author: Zhang Chen Date: Fri May 13 15:35:19 2016 +0800 net/net: Add

Re: [Qemu-devel] Wiki documentation organization

2016-11-06 Thread Stefan Weil
On 11/06/16 21:15, G 3 wrote: On Nov 6, 2016, at 1:54 PM, Stefan Weil wrote: On 11/06/16 00:14, G 3 wrote: [...] Would you have a picture of a guest running in an ARM emulator? I could add it to your ARM wiki page. There is one (Raspberry Pi installing OSMC) on

Re: [Qemu-devel] Wiki documentation organization

2016-11-06 Thread G 3
On Nov 6, 2016, at 1:54 PM, Stefan Weil wrote: On 11/06/16 00:14, G 3 wrote: [...] Would you have a picture of a guest running in an ARM emulator? I could add it to your ARM wiki page. There is one (Raspberry Pi installing OSMC) on https://qemu.weilnetz.de/test/system/arm/raspberry-pi/

Re: [Qemu-devel] [PATCH 0/5] target-m68k patches

2016-11-06 Thread Laurent Vivier
Le 06/11/2016 à 07:18, Richard Henderson a écrit : > I believe the first two patches have already been posted. > No changes there, but included here for completeness. > > Next is a proposed shift patch, with the changes I believe > I mentioned wanting during review. > > Finally, implementations

Re: [Qemu-devel] Wiki documentation organization

2016-11-06 Thread Stefan Weil
On 11/06/16 00:14, G 3 wrote: [...] Would you have a picture of a guest running in an ARM emulator? I could add it to your ARM wiki page. There is one (Raspberry Pi installing OSMC) on https://qemu.weilnetz.de/test/system/arm/raspberry-pi/ Cheers Stefan

Re: [Qemu-devel] Crashing in tcp_close

2016-11-06 Thread Samuel Thibault
Hello, Stefan Hajnoczi, on Fri 04 Nov 2016 11:14:19 +, wrote: > CCing slirp maintainers to get attention on this bug Thanks! > > Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. > > 0x76a1bb5b in _int_free (av=0x76d5fb20 , > > p=, have_lock=0) at

[Qemu-devel] Build issue with qemu-2.7.0

2016-11-06 Thread Colum Paget
Hi all, Firstly appologies for not using the launchpad bug tracker, it won't let me register an account, keeps telling me my 'page is stale'. I'm sending this to you as a build issue, but it could be that it's a block-io issue. I'm calling it a build issue because I fixed it by changing the

[Qemu-devel] [PATCH Risu v2 7/9] Add PPC64 in risu build system

2016-11-06 Thread Jose Ricardo Ziviani
Recognizes PPC64 as a valid architecture and setup the environment variables to compile code for that. Signed-off-by: Jose Ricardo Ziviani --- configure | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH Risu v2 6/9] Implement initial support for PPC64

2016-11-06 Thread Jose Ricardo Ziviani
This implementation drives both client and server sides with PPC64 specific code. It basically reads instructions from both sides and compare them. Signed-off-by: Jose Ricardo Ziviani --- risu_ppc64le.c | 158 +

[Qemu-devel] [PATCH Risu v2 4/9] Implement lib to deal with PPC64 registers

2016-11-06 Thread Jose Ricardo Ziviani
This library is the initial effort to have PPC64 support for Risu. It implements functions to initialize, compare and print PPC64 registers. Signed-off-by: Jose Ricardo Ziviani --- risu_reginfo_ppc64le.c | 200 +

[Qemu-devel] [PATCH Risu v2 5/9] Implement basic test code for PPC64

2016-11-06 Thread Jose Ricardo Ziviani
This commit implements in assembly code a small test case to test risu without a risugen binary file. It simply store values into general registers and compare them. Signed-off-by: Jose Ricardo Ziviani --- test_ppc64le.s | 51

[Qemu-devel] [PATCH Risu v2 3/9] Change mode directive of ARM risu files

2016-11-06 Thread Jose Ricardo Ziviani
If different risufiles are managed by a single risugen (like thumb.risu, aarch64.risu, and arm.risu are managed by risugen_arm.pm) the mode directive identifies such operation by prepending the module name: thumb.risu - .mode arm.thumb aarch64.risu = .mode arm.aarch64 arm.risu = .mode arm

[Qemu-devel] [PATCH Risu v2 2/9] Refactor risugen to remove ARM specific code

2016-11-06 Thread Jose Ricardo Ziviani
Instead of adding PPC64 in risugen, this commit removes ARM code from risugen to make it more generic. Each arch will then implements its own module that will be driven by this risugen. Signed-off-by: Jose Ricardo Ziviani --- risugen | 1035

[Qemu-devel] [PATCH Risu v2 8/9] Implement risugen module for PPC64

2016-11-06 Thread Jose Ricardo Ziviani
Signed-off-by: Jose Ricardo Ziviani --- risugen_ppc64.pm | 460 +++ 1 file changed, 460 insertions(+) create mode 100644 risugen_ppc64.pm diff --git a/risugen_ppc64.pm b/risugen_ppc64.pm new file mode 100644 index

[Qemu-devel] [PATCH Risu v2 1/9] Create risugen_arm.pm module for risugen

2016-11-06 Thread Jose Ricardo Ziviani
risugen_arm is a module to handle ARM specific code, it gives the opportunity to have risugen implementing generic code only and making easier to implement risugen for other archs. Signed-off-by: Jose Ricardo Ziviani --- risugen_arm.pm | 1086

[Qemu-devel] [PATCH Risu v2 0/9] Risu support for PPC64LE

2016-11-06 Thread Jose Ricardo Ziviani
v2: - smaller commits - improved registers comparison - improved code style - fixed copyright lines TODOs: - improve load/store instruction generation (risugen) - improve initial random values for FP and Vector regs (risugen) - make write_test_code() generic (risugen) This is an initial

Re: [Qemu-devel] [PATCH 1/5] target-m68k: implement 680x0 movem

2016-11-06 Thread Laurent Vivier
Le 06/11/2016 à 07:18, Richard Henderson a écrit : ... > +if (is_load) { > +/* memory to register */ > +for (i = 0; i < 16; i++) { > +if (mask & (1 << i)) { > +r[i] = gen_load(s, opsize, addr, 1); > +tcg_gen_add_i32(addr, addr, incr);

Re: [Qemu-devel] [PATCH 2/5] target-m68k: Do not cpu_abort on undefined insns

2016-11-06 Thread Laurent Vivier
Le 06/11/2016 à 07:18, Richard Henderson a écrit : > Report this properly via exception and, importantly, allow > the disassembler the chance to tell us what insn is not handled. > > Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier

Re: [Qemu-devel] [PATCH] linux-user: manage two new IFLA host message types

2016-11-06 Thread Laurent Vivier
This is a bug fix: could you take it for 2.8? Laurent Le 27/10/2016 à 03:00, Laurent Vivier a écrit : > Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE > in host_to_target_data_link_rtattr(). > > These two messages are sent by the host kernel when > we use "sudo". > > Found with

Re: [Qemu-devel] Wiki documentation organization

2016-11-06 Thread Peter Maydell
On 6 November 2016 at 10:02, Paolo Bonzini wrote: > On 06/11/2016 00:14, G 3 wrote: >> On Nov 5, 2016, at 5:53 PM, Peter Maydell wrote: >>> On 5 November 2016 at 20:45, Peter Maydell >>> wrote: Now we have two lists of platforms: one in

[Qemu-devel] [Bug 1399943] Re: qemu-system-sparc loses serial console data on EAGAIN

2016-11-06 Thread Andreas Gustafsson
Hi Mark, I tested the git master and the 2.7.0 release, and both successfully executed the scripted NetBSD/sparc install that had been failing since 1.5. So it does indeed look like the bug has been fixed. I will still run a few more tests to be sure, and if those also pass, this bug report can

Re: [Qemu-devel] Wiki documentation organization

2016-11-06 Thread Paolo Bonzini
On 06/11/2016 00:14, G 3 wrote: > > On Nov 5, 2016, at 5:53 PM, Peter Maydell wrote: > >> On 5 November 2016 at 20:45, Peter Maydell >> wrote: >>> Now we have two lists of platforms: one in >>> http://wiki.qemu.org/Documentation/Platforms >>> and one in >>>

Re: [Qemu-devel] [PATCH 4/4] q35: introduce q35-lite

2016-11-06 Thread Michael S. Tsirkin
On Sat, Nov 05, 2016 at 03:19:51AM -0400, Chao Peng wrote: > This patch introduces a light weight machine type which shares the > same codebase with existing q35 machine type but with some features > disabled by default. > > Signed-off-by: Chao Peng I don't find

[Qemu-devel] [PATCH 5/5] target-m68k: Implement bitfield ops for memory

2016-11-06 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/cpu.h | 1 + target-m68k/helper.c| 183 +++- target-m68k/helper.h| 7 ++ target-m68k/translate.c | 142 - 4 files changed, 330

[Qemu-devel] [PATCH 0/5] target-m68k patches

2016-11-06 Thread Richard Henderson
I believe the first two patches have already been posted. No changes there, but included here for completeness. Next is a proposed shift patch, with the changes I believe I mentioned wanting during review. Finally, implementations of the bitfield instructions. At least the register portion

[Qemu-devel] [PATCH 3/5] target-m68k: Inline shifts

2016-11-06 Thread Richard Henderson
Also manage word and byte operands and fix the computation of overflow in the case of M68000 arithmetic shifts. Signed-off-by: Laurent Vivier Signed-off-by: Richard Henderson --- target-m68k/helper.c| 52 target-m68k/helper.h| 3 -

[Qemu-devel] [PATCH 1/5] target-m68k: implement 680x0 movem

2016-11-06 Thread Richard Henderson
From: Laurent Vivier 680x0 movem can load/store words and long words and can use more addressing modes. Coldfire can only use long words with (Ax) and (d16,Ax) addressing modes. Signed-off-by: Laurent Vivier Message-Id:

[Qemu-devel] [PATCH 2/5] target-m68k: Do not cpu_abort on undefined insns

2016-11-06 Thread Richard Henderson
Report this properly via exception and, importantly, allow the disassembler the chance to tell us what insn is not handled. Signed-off-by: Richard Henderson --- target-m68k/translate.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH 4/5] target-m68k: Implement bitfield ops for registers

2016-11-06 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 210 1 file changed, 210 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index b538d74..477a511 100644 --- a/target-m68k/translate.c +++