Re: [Qemu-devel] [PATCH v4 44/49] tests/tcg: enable building for mips64

2018-05-18 Thread Philippe Mathieu-Daudé
On 05/17/2018 02:47 PM, Alex Bennée wrote: > As before, using Debian SID compilers. > > Signed-off-by: Alex Bennée > --- > tests/docker/Makefile.include | 1 + > tests/docker/dockerfiles/debian-mips64-cross.docker | 12 >

Re: [Qemu-devel] [PATCH 3/4] bochs-display: add dirty tracking support

2018-05-18 Thread Marc-André Lureau
Hi On Thu, May 17, 2018 at 11:25 AM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann Reviewed-by: Marc-André Lureau > --- > hw/display/bochs-display.c | 33 - > 1 file changed, 32

Re: [Qemu-devel] [PATCH 1/4] vga: move bochs vbe defines to header file

2018-05-18 Thread Marc-André Lureau
Hi On Thu, May 17, 2018 at 11:25 AM, Gerd Hoffmann wrote: > Create a new header file, move the bochs vbe dispi interface > defines to it, so they can be used outside vga code. > > Signed-off-by: Gerd Hoffmann > --- > hw/display/vga_int.h | 35

Re: [Qemu-devel] [PULL 0/2] Usb 20180518 patches

2018-05-18 Thread Peter Maydell
are available in the git repository at: > > git://git.kraxel.org/qemu tags/usb-20180518-pull-request > > for you to fetch changes up to 8030dca376fa1bc4d8a6be7628196578f8783ab3: > > hw/usb/dev-smartcard-reader: Handle 64 B

[Qemu-devel] [PATCH v2 15/40] job: Move pause/resume functions to Job

2018-05-18 Thread Kevin Wolf
While we already moved the state related to job pausing to Job, the functions to do were still BlockJob only. This commit moves them over to Job. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by: John Snow ---

[Qemu-devel] [PATCH v2 21/40] job: Convert block_job_cancel_async() to Job

2018-05-18 Thread Kevin Wolf
block_job_cancel_async() did two things that were still block job specific: * Setting job->force. This field makes sense on the Job level, so we can just move it. While at it, rename it to job->force_cancel to make its purpose more obvious. * Resetting the I/O status. This can't be moved

[Qemu-devel] [PATCH v2 36/40] job: Add lifecycle QMP commands

2018-05-18 Thread Kevin Wolf
This adds QMP commands that control the transition between states of the job lifecycle. Signed-off-by: Kevin Wolf --- qapi/job.json | 99 +++ job-qmp.c | 134 ++ MAINTAINERS

Re: [Qemu-devel] [Xen-devel] [PATCH v2] xen-hvm: stop faking I/O to access PCI config space

2018-05-18 Thread Jan Beulich
>>> On 18.05.18 at 15:00, wrote: > @@ -903,6 +926,80 @@ static void cpu_ioreq_move(ioreq_t *req) > } > } > > +static void rw_config_req_item(XenPciDevice *xendev, ioreq_t *req, It looks to me as if both parameters could be constified. > +

[Qemu-devel] [PATCH v2 32/40] job: Add job_transition_to_ready()

2018-05-18 Thread Kevin Wolf
The transition to the READY state was still performed in the BlockJob layer, in the same function that sent the BLOCK_JOB_READY QMP event. This patch brings the state transition to the Job layer and implements the QMP event using a notifier called from the Job layer, like we already do for other

Re: [Qemu-devel] [PATCH v4 32/49] tests/tcg/arm: add fcvt test cases for AArch32/64

2018-05-18 Thread Philippe Mathieu-Daudé
On 05/18/2018 05:16 AM, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > >> On 05/17/2018 05:30 PM, Richard Henderson wrote: >>> On 05/17/2018 10:47 AM, Alex Bennée wrote: This runs through the usual float to float conversions and crucially also runs with ARM

Re: [Qemu-devel] [PATCH v2 1/1] sandbox: disable -sandbox if CONFIG_SECCOMP undefined

2018-05-18 Thread Ján Tomko
On Fri, May 18, 2018 at 11:19:16AM +0200, Eduardo Otubo wrote: On 18/05/2018 - 09:52:12, Ján Tomko wrote: On Thu, May 17, 2018 at 02:41:09PM +0200, Eduardo Otubo wrote: > On 15/05/2018 - 19:33:48, Yi Min Zhao wrote: > > If CONFIG_SECCOMP is undefined, the option 'elevateprivileges' remains > >

[Qemu-devel] [PATCH v2 00/40] Generic background jobs

2018-05-18 Thread Kevin Wolf
Before we can make x-blockdev-create a background job, we need to generalise the job infrastructure so that it can be used without any associated block node. This series extracts a Job object from the block job infrastructure, which should contain everything related to jobs that doesn't require

[Qemu-devel] [PATCH v2 01/40] blockjob: Update block-job-pause/resume documentation

2018-05-18 Thread Kevin Wolf
Commit 0ec4dfb8d changed block-job_pause/resume so that they return an error if they don't do anything because the job is already paused/running. It forgot to update the documentation, so do that now. Signed-off-by: Kevin Wolf --- qapi/block-core.json | 5 ++--- 1 file

[Qemu-devel] [PATCH v2 04/40] job: Rename BlockJobType into JobType

2018-05-18 Thread Kevin Wolf
QAPI types aren't externally visible, so we can rename them without causing problems. Before we add a job type to Job, rename the enum so it can be used for more than just block jobs. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Max Reitz

[Qemu-devel] [PATCH v2 22/40] job: Add job_drain()

2018-05-18 Thread Kevin Wolf
block_job_drain() contains a blk_drain() call which cannot be moved to Job, so add a new JobDriver callback JobDriver.drain which has a common implementation for all BlockJobs. In addition to this we keep the existing BlockJobDriver.drain callback that is called by the common drain implementation

[Qemu-devel] [PATCH v2 14/40] job: Add job_sleep_ns()

2018-05-18 Thread Kevin Wolf
There is nothing block layer specific about block_job_sleep_ns(), so move the function to Job. Signed-off-by: Kevin Wolf Reviewed-by: John Snow Reviewed-by: Max Reitz --- include/block/blockjob_int.h | 11 --- include/qemu/job.h

[Qemu-devel] [PATCH v2 23/40] job: Move .complete callback to Job

2018-05-18 Thread Kevin Wolf
This moves the .complete callback that tells a READY job to complete from BlockJobDriver to JobDriver. The wrapper function job_complete() doesn't require anything block job specific any more and can be moved to Job. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz

[Qemu-devel] [PATCH v2 34/40] job: Introduce qapi/job.json

2018-05-18 Thread Kevin Wolf
This adds a separate schema file for all job-related definitions that aren't tied to the block layer. For a start, move the enums JobType, JobStatus and JobVerb. Signed-off-by: Kevin Wolf --- qapi/block-core.json | 90 +---

Re: [Qemu-devel] [PATCH v4 39/49] tests/tcg/alpha: add Alpha specific tests

2018-05-18 Thread Philippe Mathieu-Daudé
On 05/17/2018 02:47 PM, Alex Bennée wrote: > These tests did use their own crt.o stub however that is a little > stone age so we drop crt.S and just statically link to the cross > compilers libraries. > > Signed-off-by: Alex Bennée > > --- > v4 > - drop crt.s > -

Re: [Qemu-devel] [PATCH v3] xen-hvm: stop faking I/O to access PCI config space

2018-05-18 Thread Paul Durrant
> -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 18 May 2018 15:28 > To: qemu-devel@nongnu.org; xen-de...@lists.xenproject.org > Cc: Paul Durrant ; Stefano Stabellini > ; Anthony Perard

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-05-18 Thread Marek Vasut
On 05/18/2018 10:19 PM, Julian Brown wrote: > On Fri, 18 May 2018 21:52:04 +0200 > Marek Vasut wrote: > >> On 05/18/2018 09:23 PM, Julian Brown wrote: >>> This patch (by Sandra Loosemore, mildly rebased) adds support for >>> semihosting for Nios II bare-metal emulation. >>> >>>

[Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest

2018-05-18 Thread Patto
I am unable to provide complete QEMU command line as I'm using virt-manager to deal with configuration. I can say that two serial ports are linked with physical ones through the /dev/ttyS* files. The guests I tested it with are Windows 98 and Windows XP. For the testing I connected one port to

[Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest

2018-05-18 Thread Peter Maydell
Something somewhere in the stack is converting LF to CRLF. This could be something inside your guest, or in QEMU, or in the host; to find out where we need more detail. Can you describe your setup, including: * complete QEMU command line * how you're sending data inside the guest * how you're

Re: [Qemu-devel] [PATCH] usb-mtp: Assert on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Bandan Das
Peter Maydell writes: > On 18 May 2018 at 19:38, Bandan Das wrote: >> Peter Maydell writes: >> >>> On 18 May 2018 at 19:22, Bandan Das wrote: CID 1390604 If the initiator sends a packet with

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-05-18 Thread Marek Vasut
On 05/18/2018 09:23 PM, Julian Brown wrote: > This patch (by Sandra Loosemore, mildly rebased) adds support for > semihosting for Nios II bare-metal emulation. > > Signed-off-by: Julian Brown > Signed-off-by: Sandra Loosemore Is there some

Re: [Qemu-devel] [PATCH v3 1/2] Add generic Nios II board.

2018-05-18 Thread Marek Vasut
On 05/18/2018 09:23 PM, Julian Brown wrote: > This patch adds support for a generic MMU-less Nios II board that can > be used e.g. for bare-metal compiler testing. Nios II booting is also > tweaked so that bare-metal binaries start executing in RAM starting at > 0x, rather than an alias

Re: [Qemu-devel] [PATCH v3 1/2] Add generic Nios II board.

2018-05-18 Thread Julian Brown
On Fri, 18 May 2018 21:50:55 +0200 Marek Vasut wrote: > On 05/18/2018 09:23 PM, Julian Brown wrote: > > This patch adds support for a generic MMU-less Nios II board that > > can be used e.g. for bare-metal compiler testing. Nios II booting > > is also tweaked so that bare-metal

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-05-18 Thread Julian Brown
On Fri, 18 May 2018 21:52:04 +0200 Marek Vasut wrote: > On 05/18/2018 09:23 PM, Julian Brown wrote: > > This patch (by Sandra Loosemore, mildly rebased) adds support for > > semihosting for Nios II bare-metal emulation. > > > > Signed-off-by: Julian Brown

[Qemu-devel] [PATCH v2 1/2] Add generic Nios II board.

2018-05-18 Thread Julian Brown
This patch adds support for a generic MMU-less Nios II board that can be used e.g. for bare-metal compiler testing. Nios II booting is also tweaked so that bare-metal binaries start executing in RAM starting at 0x, rather than an alias at 0xc000, which allows features such as

Re: [Qemu-devel] [PATCH v2 0/2] Nios II generic board config and semihosting support

2018-05-18 Thread Marek Vasut
On 05/18/2018 08:57 PM, Julian Brown wrote: > > This is a second attempt at sending this patch series: > > http://lists.gnu.org/archive/html/qemu-devel/2018-05/msg04259.html > > with some git format-patch/send-email hiccups ironed out > (hopefully). The patch contents are unchanged. > > OK, or

Re: [Qemu-devel] [PATCH v2 0/2] Nios II generic board config and semihosting support

2018-05-18 Thread Marek Vasut
On 05/18/2018 08:57 PM, Julian Brown wrote: > > This is a second attempt at sending this patch series: > > http://lists.gnu.org/archive/html/qemu-devel/2018-05/msg04259.html > > with some git format-patch/send-email hiccups ironed out > (hopefully). The patch contents are unchanged. > > OK, or

[Qemu-devel] [PATCH v3 0/2] Nios II generic board config and semihosting support

2018-05-18 Thread Julian Brown
This is a third attempt at sending the patch series: http://lists.gnu.org/archive/html/qemu-devel/2018-05/msg04259.html Turns out the git format-patch "--inline" option didn't do what I thought it did. Apologies for the noise! Thanks, Julian Julian Brown (2): Add generic Nios II board.

[Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-05-18 Thread Julian Brown
This patch (by Sandra Loosemore, mildly rebased) adds support for semihosting for Nios II bare-metal emulation. Signed-off-by: Julian Brown Signed-off-by: Sandra Loosemore --- qemu-options.hx| 8 +- target/nios2/Makefile.objs |

[Qemu-devel] [PATCH v3 1/2] Add generic Nios II board.

2018-05-18 Thread Julian Brown
This patch adds support for a generic MMU-less Nios II board that can be used e.g. for bare-metal compiler testing. Nios II booting is also tweaked so that bare-metal binaries start executing in RAM starting at 0x, rather than an alias at 0xc000, which allows features such as

Re: [Qemu-devel] [qemu PATCH v2 3/4] nvdimm, acpi: support NFIT platform capabilities

2018-05-18 Thread Ross Zwisler
On Fri, May 18, 2018 at 04:37:10PM +, Elliott, Robert (Persistent Memory) wrote: > > > ... > > Would it help to show them in hex? > > > > As of ACPI 6.2 Errata A, the following values are valid for the bottom > > two bits: > > > > 0x2 - Memory Controller Flush to NVDIMM Durability

Re: [Qemu-devel] [PATCH v3 0/2] Nios II generic board config and semihosting support

2018-05-18 Thread Marek Vasut
On 05/18/2018 09:23 PM, Julian Brown wrote: > This is a third attempt at sending the patch series: > > http://lists.gnu.org/archive/html/qemu-devel/2018-05/msg04259.html > > Turns out the git format-patch "--inline" option didn't do what I thought > it did. Apologies for the noise! Success !

Re: [Qemu-devel] [PATCH] kvm: rename HINTS_DEDICATED to KVM_HINTS_REALTIME

2018-05-18 Thread Paolo Bonzini
On 18/05/2018 19:13, Eduardo Habkost wrote: >> As much as we'd like to be helpful and validate input, you need a real >> time host too. I'm not sure how we'd find out - I suggest we do not >> bother for now. > I'm worried that people will start enabling the flag in all kinds > of scenarios where

[Qemu-devel] [PULL 14/32] target/arm: Implement SVE Predicate Misc Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-8-richard.hender...@linaro.org Signed-off-by: Peter Maydell --- target/arm/cpu.h | 4 +

[Qemu-devel] [PULL 10/32] target/arm: Implement SVE Bitwise Logical - Unpredicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson These were the instructions that were stubbed out when introducing the decode skeleton. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id:

[Qemu-devel] [PULL 04/32] xlnx-zdma: Add a model of the Xilinx ZynqMP generic DMA

2018-05-18 Thread Peter Maydell
From: Francisco Iglesias Add a model of the generic DMA found on Xilinx ZynqMP. Signed-off-by: Francisco Iglesias Signed-off-by: Edgar E. Iglesias Reviewed-by: Edgar E. Iglesias

[Qemu-devel] [PULL 09/32] target/arm: Add SVE decode skeleton

2018-05-18 Thread Peter Maydell
From: Richard Henderson Including only 4, as-yet unimplemented, instruction patterns so that the whole thing compiles. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id:

[Qemu-devel] [PULL 25/32] target/arm: Implement SVE Bitwise Shift - Unpredicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-19-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 23/32] target/arm: Implement SVE Index Generation Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-17-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] storing machine data in qcow images?

2018-05-18 Thread Eduardo Habkost
On Fri, May 18, 2018 at 06:09:56PM +0100, Daniel P. Berrangé wrote: > On Fri, May 18, 2018 at 06:30:38PM +0300, Michael S. Tsirkin wrote: > > Hi! > > Right now, QEMU supports multiple machine types within > > a given architecture. This was the case for many architectures > > (like ARM) for a

Re: [Qemu-devel] [PATCH v2 12/40] job: Move defer_to_main_loop to Job

2018-05-18 Thread John Snow
On 05/18/2018 09:20 AM, Kevin Wolf wrote: > Move the defer_to_main_loop functionality from BlockJob to Job. > > The code can be simplified because we can use job->aio_context in > job_defer_to_main_loop_bh() now, instead of having to access the > BlockDriverState. > > Probably taking the

[Qemu-devel] [Bug 1771570] Re: qemu-aarch64 $program > $file doesn't pipe output to file in 2.12.0

2018-05-18 Thread Juho Hiltunen
Running "unbuffer qemu-aarch64 $program > $file" allows to pipe the output. Is it intentional that I need to disable buffering to allow piping to other processes? If yes, this issue can be closed. further reading about unbuffer:

Re: [Qemu-devel] [PATCH v2 36/40] job: Add lifecycle QMP commands

2018-05-18 Thread Eric Blake
On 05/18/2018 08:21 AM, Kevin Wolf wrote: This adds QMP commands that control the transition between states of the job lifecycle. Signed-off-by: Kevin Wolf --- qapi/job.json | 99 +++ job-qmp.c | 134

Re: [Qemu-devel] [PATCH v2 13/40] job: Move coroutine and related code to Job

2018-05-18 Thread John Snow
On 05/18/2018 09:20 AM, Kevin Wolf wrote: > This commit moves some core functions for dealing with the job coroutine > from BlockJob to Job. This includes primarily entering the coroutine > (both for the first and reentering) and yielding explicitly and at pause > points. > > Signed-off-by:

Re: [Qemu-devel] storing machine data in qcow images?

2018-05-18 Thread Daniel P . Berrangé
On Fri, May 18, 2018 at 06:30:38PM +0300, Michael S. Tsirkin wrote: > Hi! > Right now, QEMU supports multiple machine types within > a given architecture. This was the case for many architectures > (like ARM) for a while, somewhat more recently this is the case > for x86 with I440FX and Q35

Re: [Qemu-devel] [PATCH] kvm: rename HINTS_DEDICATED to KVM_HINTS_REALTIME

2018-05-18 Thread Eduardo Habkost
On Fri, May 18, 2018 at 08:01:49PM +0300, Michael S. Tsirkin wrote: > On Fri, May 18, 2018 at 01:04:31PM -0300, Eduardo Habkost wrote: > > CCing qemu-devel, as I'm now discussing userspace. > > > > On Thu, May 17, 2018 at 10:55:33PM +0300, Michael S. Tsirkin wrote: > > > On Thu, May 17, 2018 at

Re: [Qemu-devel] [PATCH] kvm: rename HINTS_DEDICATED to KVM_HINTS_REALTIME

2018-05-18 Thread Paolo Bonzini
On 18/05/2018 18:04, Eduardo Habkost wrote: >> Without mlock you should always use pv spinlocks. >> >> Otherwise you risk blocking on a lock taken by >> a VCPU that is in turn blocked on IO, where the IO >> is not completing because CPU is being used up >> spinning. > > So the stronger guarantee

[Qemu-devel] [PULL 15/32] target/arm: Implement SVE Integer Binary Arithmetic - Predicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-9-richard.hender...@linaro.org Signed-off-by: Peter Maydell --- target/arm/helper-sve.h| 145

[Qemu-devel] [PULL 12/32] target/arm: Implement SVE predicate test

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-6-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 17/32] target/arm: Implement SVE bitwise shift by immediate (predicated)

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-11-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 28/32] target/arm: Implement SVE floating-point trig select coefficient

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-22-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 19/32] target/arm: Implement SVE bitwise shift by wide elements (predicated)

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-13-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PATCH v2 02/40] blockjob: Improve BlockJobInfo.offset/len documentation

2018-05-18 Thread John Snow
On 05/18/2018 09:20 AM, Kevin Wolf wrote: > Clarify that len is just an estimation of the end value of offset, and > that offset increases monotonically while len can change arbitrarily. > > Signed-off-by: Kevin Wolf > --- > qapi/block-core.json | 9 ++--- > 1 file

Re: [Qemu-devel] [PATCH v2 35/40] job: Add JOB_STATUS_CHANGE QMP event

2018-05-18 Thread Eric Blake
On 05/18/2018 08:21 AM, Kevin Wolf wrote: This adds a QMP event that is emitted whenever a job transitions from one status to another. Signed-off-by: Kevin Wolf --- qapi/job.json | 14 job.c | 10 +++ @@ -157,6 +158,11 @@

Re: [Qemu-devel] [PATCH v2 20/40] job: Move single job finalisation to Job

2018-05-18 Thread Eric Blake
On 05/18/2018 08:20 AM, Kevin Wolf wrote: This moves the finalisation of a single job from BlockJob to Job. Some part of this code depends on job transactions, and job transactions call this code, we introduce some temporary calls from Job functions to BlockJob ones. This will be fixed once

Re: [Qemu-devel] [PULL 1/3] usb-mtp: Add some NULL checks for issues pointed out by coverity

2018-05-18 Thread Bandan Das
Bandan Das writes: >> If this is a "can't happen" situation we can mark it as a false >> positive in coverity. I posted a patch with an assert added in usb_mtp_get_data. I believe CID 1390604 can be marked as a false positive. Thanks, Bandan > The protocol ofcourse won't let

[Qemu-devel] [PATCH v2 1/1] tests/docker: Add a Avocado Docker test

2018-05-18 Thread Alistair Francis
Avocado is not trivial to setup on non-Fedora systems. To simplfying future testing add a docker test image that runs Avocado tests. Signed-off-by: Alistair Francis --- v2: - Add a seperate fedora-avocado Docker image - Move the avocado vt-bootstrap into the Docker

[Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest

2018-05-18 Thread Patto
Public bug reported: When sending data through serial from guest each time 0x0A byte is sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on the other end I receive {0x29, 0x0D, 0x0A}. ** Affects: qemu Importance: Undecided Status: New ** Tags: com serial --

Re: [Qemu-devel] [PULL 00/32] target-arm queue

2018-05-18 Thread Peter Maydell
29ce3736046951e39: > > Merge remote-tracking branch > 'remotes/famz/tags/docker-and-block-pull-request' into staging (2018-05-18 > 14:11:52 +0100) > > are available in the Git repository at: > > git://git.linaro.org/people/pmaydell/qemu-arm.git > tags

[Qemu-devel] [PATCH v2] usb-mtp: Return error on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Bandan Das
CID 1390604 If the initiator sends a packet with TYPE_DATA set without initiating a CMD_GET_OBJECT_INFO first, then usb_mtp_get_data can trip on a null s->data_out. Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [Qemu-devel] [PATCH] usb-mtp: Assert on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Peter Maydell
On 18 May 2018 at 19:38, Bandan Das wrote: > Peter Maydell writes: > >> On 18 May 2018 at 19:22, Bandan Das wrote: >>> >>> CID 1390604 >>> If the initiator sends a packet with TYPE_DATA set without >>> initiating a CMD_GET_OBJECT_INFO

Re: [Qemu-devel] [PATCH] linux-user: Fix payload size logic in host_to_target_cmsg()

2018-05-18 Thread Laurent Vivier
Le 18/05/2018 à 20:47, Peter Maydell a écrit : > Coverity points out that there's a missing break in the switch in > host_to_target_cmsg() where we update tgt_len for > cmsg_level/cmsg_type combinations which require a different length > for host and target (CID 1385425). To avoid duplicating the

[Qemu-devel] [PULL 05/32] xlnx-zynqmp: Connect the ZynqMP GDMA and ADMA

2018-05-18 Thread Peter Maydell
From: Francisco Iglesias The ZynqMP contains two instances of a generic DMA, the GDMA, located in the FPD (full power domain), and the ADMA, located in LPD (low power domain). This patch adds these two DMAs to the ZynqMP board. Signed-off-by: Francisco Iglesias

[Qemu-devel] [PULL 13/32] target/arm: Implement SVE Predicate Logical Operations Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-7-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 16/32] target/arm: Implement SVE Integer Reduction Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Excepting MOVPRFX, which isn't a reduction. Presumably it is placed within the group because of its encoding. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id:

[Qemu-devel] [PULL 11/32] target/arm: Implement SVE load vector/predicate

2018-05-18 Thread Peter Maydell
From: Richard Henderson Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-5-richard.hender...@linaro.org Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 127

[Qemu-devel] [PULL 18/32] target/arm: Implement SVE bitwise shift by vector (predicated)

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-12-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 21/32] target/arm: Implement SVE Integer Multiply-Add Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-15-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 26/32] target/arm: Implement SVE Compute Vector Address Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-20-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 24/32] target/arm: Implement SVE Stack Allocation Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-18-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 20/32] target/arm: Implement SVE Integer Arithmetic - Unary Predicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-14-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 32/32] target/arm: Implement SVE Permute - Extract Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-26-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 27/32] target/arm: Implement SVE floating-point exponential accelerator

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-21-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PULL 1/1] block/nvme: fix Coverity reports

2018-05-18 Thread Peter Maydell
On 1 March 2018 at 07:54, Fam Zheng wrote: > From: Paolo Bonzini > > 1) string not null terminated in sysfs_find_group_file > > 2) NULL pointer dereference and dead local variable in nvme_init. > > Signed-off-by: Paolo Bonzini >

[Qemu-devel] [Bug 1771570] Re: qemu-aarch64 $program > $file doesn't pipe output to file in 2.12.0

2018-05-18 Thread Peter Maydell
No, this should work on qemu-aarch64 the same way as for x86. I just tried redirection to a file with a sample program, and it worked fine for me. Can you provide a test case binary that fails like this, please? -- You received this bug notification because you are a member of qemu- devel-ml,

Re: [Qemu-devel] [PATCH] usb-mtp: Assert on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Peter Maydell
On 18 May 2018 at 19:22, Bandan Das wrote: > > CID 1390604 > If the initiator sends a packet with TYPE_DATA set without > initiating a CMD_GET_OBJECT_INFO first, then usb_mtp_get_data > can trip on a null s->data_out. > > Signed-off-by: Bandan Das I think you

Re: [Qemu-devel] [PATCH] usb-mtp: Assert on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Bandan Das
Peter Maydell writes: > On 18 May 2018 at 19:22, Bandan Das wrote: >> >> CID 1390604 >> If the initiator sends a packet with TYPE_DATA set without >> initiating a CMD_GET_OBJECT_INFO first, then usb_mtp_get_data >> can trip on a null s->data_out. >> >>

Re: [Qemu-devel] [PATCH v2 00/40] Generic background jobs

2018-05-18 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > Before we can make x-blockdev-create a background job, we need to > generalise the job infrastructure so that it can be used without any > associated block node. Is there any relationship between what this does, and what Marc-André's 'monitor: add

Re: [Qemu-devel] [PATCH v2 01/40] blockjob: Update block-job-pause/resume documentation

2018-05-18 Thread John Snow
On 05/18/2018 09:20 AM, Kevin Wolf wrote: > Commit 0ec4dfb8d changed block-job_pause/resume so that they return an > error if they don't do anything because the job is already > paused/running. It forgot to update the documentation, so do that now. > > Signed-off-by: Kevin Wolf

[Qemu-devel] [PULL 02/32] target/arm: Add "_S" suffix to the secure version of a sysreg

2018-05-18 Thread Peter Maydell
From: Abdallah Bouassida This is a preparation for the coming feature of creating dynamically an XML description for the ARM sysregs. Add "_S" suffix to the secure version of sysregs that have both S and NS views Replace (S) and (NS) by _S and _NS for the

[Qemu-devel] [PULL 03/32] target/arm: Add the XML dynamic generation

2018-05-18 Thread Peter Maydell
From: Abdallah Bouassida Generate an XML description for the cp-regs. Register these regs with the gdb_register_coprocessor(). Add arm_gdb_get_sysreg() to use it as a callback to read those regs. Add a dummy arm_gdb_set_sysreg(). Signed-off-by: Abdallah

[Qemu-devel] [PULL 00/32] target-arm queue

2018-05-18 Thread Peter Maydell
(2018-05-18 14:11:52 +0100) are available in the Git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20180518 for you to fetch changes up to b94f8f60bd841c5b737185cd38263e26822f77ab: target/arm: Implement SVE Permute - Extract Group (2018-05-18 17:48:09

[Qemu-devel] [PULL 07/32] hw/arm/smmu-common: Fix coverity issue in get_block_pte_address

2018-05-18 Thread Peter Maydell
From: Eric Auger Coverity points out that this can overflow if n > 31, because it's only doing 32-bit arithmetic. Let's use 1ULL instead of 1. Also the formulae used to compute n can be replaced by the level_shift() macro. Reported-by: Peter Maydell

[Qemu-devel] [PULL 06/32] hw/arm/smmuv3: Fix Coverity issue in smmuv3_record_event

2018-05-18 Thread Peter Maydell
From: Eric Auger Coverity complains about use of uninitialized Evt struct. The EVT_SET_TYPE and similar setters use deposit32() on fields in the struct, so they read the uninitialized existing values. In cases where we don't set all the fields in the event struct we'll end

[Qemu-devel] [PULL 01/32] target/arm: Add "ARM_CP_NO_GDB" as a new bit field for ARMCPRegInfo type

2018-05-18 Thread Peter Maydell
From: Abdallah Bouassida This is a preparation for the coming feature of creating dynamically an XML description for the ARM sysregs. A register has ARM_CP_NO_GDB enabled will not be shown in the dynamic XML. This bit is enabled automatically when creating

[Qemu-devel] [PULL 08/32] target/arm: Introduce translate-a64.h

2018-05-18 Thread Peter Maydell
From: Richard Henderson Move some stuff that will be common to both translate-a64.c and translate-sve.c. Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson

[Qemu-devel] [PULL 22/32] target/arm: Implement SVE Integer Arithmetic - Unpredicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-16-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 30/32] target/arm: Implement SVE Bitwise Immediate Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-24-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 31/32] target/arm: Implement SVE Integer Wide Immediate - Predicated Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-25-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 29/32] target/arm: Implement SVE Element Count Group

2018-05-18 Thread Peter Maydell
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20180516223007.10256-23-richard.hender...@linaro.org Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PATCH 1/3] i386: fix regression parsing multiboot initrd modules

2018-05-18 Thread Peter Maydell
On 14 May 2018 at 18:19, Daniel P. Berrangé wrote: > The logic for parsing the multiboot initrd modules was messed up in > > commit 950c4e6c94b15cd0d8b638917a8dbf458e6a > Author: Daniel P. Berrangé > Date: Mon Apr 16 12:17:43 2018 +0100 > >

Re: [Qemu-devel] [PATCH] kvm: rename HINTS_DEDICATED to KVM_HINTS_REALTIME

2018-05-18 Thread Eduardo Habkost
On Fri, May 18, 2018 at 07:18:57PM +0200, Paolo Bonzini wrote: > On 18/05/2018 19:13, Eduardo Habkost wrote: > >> As much as we'd like to be helpful and validate input, you need a real > >> time host too. I'm not sure how we'd find out - I suggest we do not > >> bother for now. > > I'm worried

Re: [Qemu-devel] [PATCH v2 37/40] job: Add query-jobs QMP command

2018-05-18 Thread Eric Blake
On 05/18/2018 08:21 AM, Kevin Wolf wrote: This adds a minimal query-jobs implementation that shouldn't pose many design questions. It can later be extended to expose more information, and especially job-specific information. Signed-off-by: Kevin Wolf --- qapi/job.json

[Qemu-devel] [PATCH] sheepdog: Remove unnecessary NULL check in sd_prealloc()

2018-05-18 Thread Peter Maydell
In commit 8b9ad56e9cbfd852a, we removed the code that could result in our getting to sd_prealloc()'s out_with_err_set label with a NULL blk pointer. That makes the NULL check in the error-handling path unnecessary, and Coverity gripes about it (CID 1390636). Delete the redundant check.

Re: [Qemu-devel] Publishing binary images for testing (was Re: [RFC PATCH 0/6] generic way to deprecate machines)

2018-05-18 Thread Alistair Francis
On Fri, May 11, 2018 at 7:27 AM, Cleber Rosa wrote: > > > On 05/11/2018 09:55 AM, Eduardo Habkost wrote: >> (CCing Cleber and avocado-devel in case they have suggestions) >> >> On Tue, May 08, 2018 at 12:47:52PM -0300, Philippe Mathieu-Daudé wrote: >> [...] >>> Ironically I have

[Qemu-devel] [PATCH] usb-mtp: Assert on suspicious TYPE_DATA packet from initiator

2018-05-18 Thread Bandan Das
CID 1390604 If the initiator sends a packet with TYPE_DATA set without initiating a CMD_GET_OBJECT_INFO first, then usb_mtp_get_data can trip on a null s->data_out. Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 1 + 1 file changed, 1 insertion(+) diff --git

<    1   2   3   4   >