Re: [Qemu-devel] [PATCH v4] s390-ccw: print carriage return with new lines

2017-10-27 Thread Cornelia Huck
On Fri, 27 Oct 2017 12:14:53 -0400 "Collin L. Walling" wrote: > The sclp console in the s390 bios writes raw data, > leading console emulators (such as virsh console) to > treat a new line ('\n') as just a new line instead > of as a Unix line feed. Because of this, output > appears in a "stair ca

Re: [Qemu-devel] iotest 194 fails on vhdx

2017-10-27 Thread Alexey Kardashevskiy
On 27/10/17 18:12, Jeff Cody wrote: > On Wed, Oct 25, 2017 at 05:06:37PM +1100, Alexey Kardashevskiy wrote: >> On 25/10/17 15:29, Alexey Kardashevskiy wrote: >>> Hi! >>> >>> The latest QEMU fails on: >>> tests/qemu-iotests/check -vhdx 194 >> >> >> Bit more details: >> >> 1. the assert started appea

Re: [Qemu-devel] [PATCH v2 2/4] build: don't create temporary files in source dir

2017-10-27 Thread Alexey Kardashevskiy
On 28/10/17 16:25, Eric Blake wrote: > On 10/27/2017 03:14 PM, Daniel P. Berrange wrote: >> There are cases where users do VPATH builds with the source directory being >> on >> a read-only volume. In such a case they have to manually run the command >> 'git-submodule.sh ...modules...' manually ah

Re: [Qemu-devel] [PATCH v1 1/1] xlnx-zcu102: Specify the number of max CPUs

2017-10-27 Thread Alistair Francis
On Fri, Oct 27, 2017 at 8:22 PM, Philippe Mathieu-Daudé wrote: > Hi Alistair, > > On 10/27/2017 11:35 AM, Alistair Francis wrote: >> Specify the number of CPUs that can run on ZynqMP. >> >> Signed-off-by: Alistair Francis >> --- >> >> hw/arm/xlnx-zcu102.c | 1 + >> 1 file changed, 1 insertion(+)

Re: [Qemu-devel] drive_add: file names with spaces

2017-10-27 Thread Eric Blake
On 10/28/2017 06:44 AM, Programmingkid wrote: > I'm trying to use an image file that has spaces in its file name (and > sometimes in the path) to be used as a USB flash drive. When I try adding the > image file using the drive_add command I see this error: drive_add: > extraneous characters at t

Re: [Qemu-devel] [PATCH v2 4/4] build: don't fail if given a git submodule which does not exist

2017-10-27 Thread Eric Blake
On 10/28/2017 03:27 AM, Alexey Kardashevskiy wrote: > On 28/10/17 00:14, Daniel P. Berrange wrote: >> If going back in time in git history, across a commit that introduces a new >> submodule, the 'git-submodule.sh' script will fail, causing rebuild to fail. >> >> +do >> +$GIT submodule status

Re: [Qemu-devel] [PATCH v2 0/4] Various improvements to submodule handling

2017-10-27 Thread Eric Blake
On 10/27/2017 03:14 PM, Daniel P. Berrange wrote: > I've sent a variety of improvements to submodule handling as separate patches > and its getting slightly confusing. So here is a series with all patches added > together. I've also included a fix that helps us go backwards in time across > the int

Re: [Qemu-devel] [PATCH v2 3/4] build: allow automatic git submodule updates to be disabled

2017-10-27 Thread Eric Blake
On 10/27/2017 03:14 PM, Daniel P. Berrange wrote: > Some people building QEMU use VPATH builds where the source directory is on a > read-only volume. In such a case 'scripts/git-submodules.sh update' will > always > fail and users are required to run it manually themselves on their original > writ

Re: [Qemu-devel] [PATCH v2 2/4] build: don't create temporary files in source dir

2017-10-27 Thread Eric Blake
On 10/27/2017 03:14 PM, Daniel P. Berrange wrote: > There are cases where users do VPATH builds with the source directory being on > a read-only volume. In such a case they have to manually run the command > 'git-submodule.sh ...modules...' manually ahead of time. When checking for One of the two

Re: [Qemu-devel] [PATCH v2] linux-user: fix is_proc_myself to check the paths via realpath

2017-10-27 Thread Eric Blake
On 10/27/2017 09:07 PM, Zach Riggle wrote: > Another case that may be more relevant for general QEMU use, is that the > current code fails if the software under test has poor path-handling code. > For example, any of > > - //proc/self/maps > - /proc//self/maps > - /proc/self//maps > > Will all re

[Qemu-devel] drive_add: file names with spaces

2017-10-27 Thread Programmingkid
I'm trying to use an image file that has spaces in its file name (and sometimes in the path) to be used as a USB flash drive. When I try adding the image file using the drive_add command I see this error: drive_add: extraneous characters at the end of the line I have tried using single and doub

[Qemu-devel] [Bug 551545] Re: PXE netboot not booting localboot from virtio-disk

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 37 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=472236. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://hel

[Qemu-devel] [PATCH] xen/pt: Set is_express to avoid out-of-bounds write

2017-10-27 Thread Simon Gaiser
The passed-through device might be an express device. In this case the old code allocated a too small emulated config space in pci_config_alloc() since pci_config_size() returned the size for a non-express device. This leads to an out-of-bound write in xen_pt_config_reg_init(), which sometimes resu

Re: [Qemu-devel] [PATCH v2 1/4] build: allow setting a custom GIT binary for transparent proxying

2017-10-27 Thread Alexey Kardashevskiy
On 28/10/17 00:14, Daniel P. Berrange wrote: > Some users can't run a bare 'git' command, due to need for a transparent > proxying solution such as 'tsocks'. This adds an argument to configure to > let users specify such a thing: > > ./configure --with-git="tsocks git" > > The submodule script

Re: [Qemu-devel] [PATCH v2 4/4] build: don't fail if given a git submodule which does not exist

2017-10-27 Thread Alexey Kardashevskiy
On 28/10/17 00:14, Daniel P. Berrange wrote: > If going back in time in git history, across a commit that introduces a new > submodule, the 'git-submodule.sh' script will fail, causing rebuild to fail. > > This is because config-host.mak contains a GIT_SUBMODULES variable that lists > a submodule

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 4 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=599091. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help

Re: [Qemu-devel] [SeaBIOS] Time for a seabios 1.11 release?

2017-10-27 Thread Kevin O'Connor
On Thu, Sep 28, 2017 at 10:08:03AM +0200, Gerd Hoffmann wrote: > On Wed, 2017-09-27 at 09:51 -0400, Kevin O'Connor wrote: > > On Tue, Sep 26, 2017 at 09:33:09AM +0200, Gerd Hoffmann wrote: > > >    Hi, > > > > > > Quite a few changes accumulated in master.  Time to plan a new > > > release > > > I

[Qemu-devel] [PATCH v2 5/7] tpm: extend TPM emulator with state migration support

2017-10-27 Thread Stefan Berger
Extend the TPM emulator backend device with state migration support. The external TPM emulator 'swtpm' provides a protocol over its control channel to retrieve its state blobs. We implement functions for getting and setting the different state blobs. Since we have an external TPM emulator, we nee

[Qemu-devel] [PATCH v2 6/7] tpm: extend TPM TIS with state migration support

2017-10-27 Thread Stefan Berger
Extend the TPM TIS interface with state migration support. We need to synchronize with the backend thread to make sure that a command being processed by the external TPM emulator has completed and its response been received. In case the bottom half did not run, we run the function it is supposed t

[Qemu-devel] [PATCH v2 3/7] tpm: implement tpm_backend_wait_cmd_completed

2017-10-27 Thread Stefan Berger
Implement tpm_backend_wait_cmd_completed to synchronize with the backend (thread) for the completion of a command. Signed-off-by: Stefan Berger --- backends/tpm.c | 10 ++ include/sysemu/tpm_backend.h | 8 2 files changed, 18 insertions(+) diff --git a/backends/t

[Qemu-devel] [PATCH v2 7/7] tpm: extend TPM CRB with state migration support

2017-10-27 Thread Stefan Berger
We need to synchronize with the backend thread to make sure that a command being processed by the external TPM emulator has completed and its response been received. In case the bottom half did not run, we run the function it is supposed to run. Signed-off-by: Stefan Berger --- hw/tpm/tpm_crb.c

[Qemu-devel] [PATCH v2 1/7] tpm: Introduce condition to notify waiters of completed command

2017-10-27 Thread Stefan Berger
Introduce a lock and a condition to notify anyone waiting for the completion of the execution of a TPM command by the backend (thread). The backend uses the condition to signal anyone waiting for command completion. We need to place the condition in two locations: one is invoked by the backend thre

[Qemu-devel] [PATCH v2 4/7] tpm: Implement tpm_sized_buffer_reset

2017-10-27 Thread Stefan Berger
Signed-off-by: Stefan Berger --- hw/tpm/tpm_tis.c | 5 - hw/tpm/tpm_util.c | 7 +++ hw/tpm/tpm_util.h | 7 +++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c index 90dca4e..60887c3 100644 --- a/hw/tpm/tpm_tis.c +++ b/hw/tpm/tpm_tis

[Qemu-devel] [PATCH v2 0/7] tpm: Extend TPM with state migration support

2017-10-27 Thread Stefan Berger
This set of patches implements support for migrating the state of the external 'swtpm' TPM emulator as well as that of the emulated device interfaces. I have primarily tested this with TPM 1.2 so far, but it also seems to work with TPM 2 and the CRB interface. This series applies on top of Marc-An

[Qemu-devel] [PATCH v2 2/7] tpm: Introduce condition in TPM backend for notification

2017-10-27 Thread Stefan Berger
TPM backends will suspend independently of the frontends. Also here we need to be able to wait for the TPM command to have been completely processed. Signed-off-by: Stefan Berger --- backends/tpm.c | 19 +++ include/sysemu/tpm_backend.h | 14 ++ 2 files

Re: [Qemu-devel] [PATCH] tcg: Avoid setting tcg_initialize if !CONFIG_TCG

2017-10-27 Thread Paolo Bonzini
On 26/10/2017 21:03, Philippe Mathieu-Daudé wrote: >> AFAIK the only target that is so far supposed to work with >> --disable-tcg is i386. The configure script however lets you try to >> build without TCG if the host has an alternative accelerator (e.g. KVM), >> but that build is likely to fail. [

[Qemu-devel] [Bug 1366836] Re: Core2Duo and KVM may not boot Win8 properly on 3.x kernels

2017-10-27 Thread Thomas Huth
** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1366836 Title: Core2Duo and KVM may not boot Win8 properly on 3.x kernels Status in QEMU

Re: [Qemu-devel] [libfdt][PATCH v4] implement strnlen for systems that need it

2017-10-27 Thread David Gibson
On Wed, Oct 25, 2017 at 09:13:46PM -0400, John Arbuckle wrote: > Prior the Mac OS 10.7, the function strnlen() was not available. This patch > implements strnlen() on Mac OS X versions that are below 10.7. > > Signed-off-by: John Arbuckle Applied, thanks. > --- > v4 changes: > - Added check for

Re: [Qemu-devel] [PATCH v2] target/ppc: Use tcg_gen_lookup_and_goto_ptr

2017-10-27 Thread David Gibson
On Fri, Oct 27, 2017 at 06:58:14PM +0200, Richard Henderson wrote: > From: Richard Henderson > > Signed-off-by: Richard Henderson Applied,thanks. > --- > Rebased and updated for changes to tcg_gen_lookup_and_goto_ptr. > > --- > target/ppc/translate.c | 23 --- > 1 file ch

Re: [Qemu-devel] [PATCH] block/snapshot: dirty all dirty bitmaps on snapshot-switch

2017-10-27 Thread Eric Blake
On 10/23/2017 11:29 AM, Vladimir Sementsov-Ogievskiy wrote: > Snapshot-switch actually changes active state of disk so it should > reflect on dirty bitmaps. Otherwise next incremental backup using > these bitmaps will be invalid. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > block/snap

[Qemu-devel] [Bug 761469] Re: multicast VPN breaks IPv6 Duplicate Address Detection

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 14 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=557188. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://hel

[Qemu-devel] [Bug 1366836] Re: Core2Duo and KVM may not boot Win8 properly on 3.x kernels

2017-10-27 Thread Erik Rull
Please close it, it's solved with this patch commit to kvm / kernel: Was found and fixed with great support of Paolo Bonzini From: Paolo Bonzini Date: Thu, 12 Feb 2015 17:04:47 +0100 Subject: KVM: emulate: fix CMPXCHG8B on 32-bit hosts -- You received this bug notification because you are a memb

Re: [Qemu-devel] [PATCH v4] s390-ccw: print carriage return with new lines

2017-10-27 Thread Farhan Ali
On 10/27/2017 12:14 PM, Collin L. Walling wrote: The sclp console in the s390 bios writes raw data, leading console emulators (such as virsh console) to treat a new line ('\n') as just a new line instead of as a Unix line feed. Because of this, output appears in a "stair case" pattern. Let's p

Re: [Qemu-devel] Key signing party at KVM Forum 2017

2017-10-27 Thread Eric Blake
On 10/27/2017 09:36 PM, Eric Blake wrote: > If you want more help running pius for signing and sending the signed > key to a particular recipient, see a previous mail of mine on the topic: > > https://lists.gnu.org/archive/html/qemu-devel/2013-11/msg01477.html Unfortunately, on Fedora 26, the cu

[Qemu-devel] [PATCH] hw/display/xenfb: Simulate auto-repeat key events

2017-10-27 Thread Liang Yan
New tigervnc server changes the way to send long pressed key, from "down up down up ..." to "down down ... up". So we insert an up event after each key down event to simulate auto-repeat key events for xen keyboard frontend driver. Signed-off-by: Liang Yan --- hw/display/xenfb.c | 3 +++ 1 file

Re: [Qemu-devel] Key signing party at KVM Forum 2017

2017-10-27 Thread Eric Blake
On 10/16/2017 07:19 PM, Peter Maydell wrote: > It looks like at least five people whose keys I'd like to sign > are going to be at KVM Forum this year, so it seems worth having > a proper key signing party rather than just me ad-hoc finding > people and checking their ID. I am particularly interest

Re: [Qemu-devel] [PATCH v2] linux-user: fix is_proc_myself to check the paths via realpath

2017-10-27 Thread Zach Riggle
Another case that may be more relevant for general QEMU use, is that the current code fails if the software under test has poor path-handling code. For example, any of - //proc/self/maps - /proc//self/maps - /proc/self//maps Will all return the non-emulated results. Those examples are just path

Re: [Qemu-devel] [PATCHv4 03/13] sparc32_dma: move type declarations from sparc32_dma.c to sparc32_dma.h

2017-10-27 Thread Philippe Mathieu-Daudé
> diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c > index e4ff4a8..ae8fa06 100644 > --- a/hw/dma/sparc32_dma.c > +++ b/hw/dma/sparc32_dma.c > @@ -40,7 +40,6 @@ > * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/DMA2.txt > */ > > -#define DMA_REGS 4 > #define DMA_SIZ

[Qemu-devel] rfc: help on improving get_maintainer.pl for usage in sendemail.cccmd

2017-10-27 Thread Eric Blake
I've got my git set up to auto-cc anyone mentioned on a per-patch basis, by doing: [sendemail] cccmd /path/to/scripts/get_maintainer.pl --nogit-fallback --noroles However, it has the drawback that it does not auto-cc anyone on the 0/N cover-letter; for that, I have to manually choose who

Re: [Qemu-devel] [PULL 00/39] x86/cpu/numa queue, 2017-10-26

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/27/2017 11:10 AM, Eduardo Habkost wrote: > On Fri, Oct 27, 2017 at 02:42:11PM +0100, Peter Maydell wrote: [...] >> Hi. I'm afraid this breaks the sh4 linux-user code: >> >> /home/petmay01/linaro/qemu-for-merges/build/all-linux-static/sh4-linux-user/qemu-sh4 >> -L ./gnemul/qemu-sh4 sh4/ls -l d

Re: [Qemu-devel] [PATCH v1 1/1] xlnx-zcu102: Specify the number of max CPUs

2017-10-27 Thread Philippe Mathieu-Daudé
Hi Alistair, On 10/27/2017 11:35 AM, Alistair Francis wrote: > Specify the number of CPUs that can run on ZynqMP. > > Signed-off-by: Alistair Francis > --- > > hw/arm/xlnx-zcu102.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/arm/xlnx-zcu102.c b/hw/arm/xlnx-zcu102.c > index 519

[Qemu-devel] [Bug 1728116] [NEW] Empty /proc/self/auxv (linux-user)

2017-10-27 Thread Thomas Moschny
Public bug reported: The userspace Linux API virtualization used to fake access to /proc/self/auxv, to provide meaningful data for the guest process. For newer qemu versions, this fails: The openat() is intercepted, but there's no content: /proc/self/auxv has length zero (i.e. reading from it ret

[Qemu-devel] [PATCH] scripts/device-crash-test: vmcoreinfo in error_whitelist for ppc64

2017-10-27 Thread Daniel Henrique Barboza
The device vmcoreinfo depends on the fw_cfg device to work, a device that isn't available in most ppc64 machines. This makes device-crash-test spams the following error when running with qemu-system-ppc64: "INFO: log: qemu-system-ppc64: -device vmcoreinfo: vmcoreinfo device requires fw_cfg with DM

Re: [Qemu-devel] [libvirt] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-27 Thread Halil Pasic
On 10/27/2017 07:12 PM, Jiri Denemark wrote: > On Fri, Oct 27, 2017 at 17:18:44 +0200, Halil Pasic wrote: >> On 10/27/2017 04:06 PM, Christian Borntraeger wrote: > ... >>> I talked to several people and it seems that on x86 the host model will >>> also enable new features >>> that are not known

Re: [Qemu-devel] [PATCH v4] s390-ccw: print carriage return with new lines

2017-10-27 Thread Halil Pasic
On 10/27/2017 06:14 PM, Collin L. Walling wrote: > The sclp console in the s390 bios writes raw data, > leading console emulators (such as virsh console) to > treat a new line ('\n') as just a new line instead > of as a Unix line feed. Because of this, output > appears in a "stair case" pattern.

Re: [Qemu-devel] [PATCH v5.1 2/8] xen: restrict: use xentoolcore_restrict_all

2017-10-27 Thread Stefano Stabellini
On Fri, 27 Oct 2017, Ian Jackson wrote: > Stefano Stabellini writes ("Re: [PATCH v5.1 2/8] xen: restrict: use > xentoolcore_restrict_all"): > > On Fri, 20 Oct 2017, Ian Jackson wrote: > ... > > > Drop individual use of xendevicemodel_restrict and > > > xenforeignmemory_restrict. These are not act

Re: [Qemu-devel] [libvirt] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-27 Thread Jiri Denemark
On Fri, Oct 27, 2017 at 17:18:44 +0200, Halil Pasic wrote: > On 10/27/2017 04:06 PM, Christian Borntraeger wrote: ... > > I talked to several people and it seems that on x86 the host model will > > also enable new features > > that are not known by older QEMUs and its considered works as designed.

Re: [Qemu-devel] [PATCH v2] linux-user: fix is_proc_myself to check the paths via realpath

2017-10-27 Thread Zach Riggle
The symlink was just an easy test case. Doing cd proc && cat ./self/maps will achieve the same thing. One instance where this matters is for testing IoT device firmware exploits, where one might do a GET request against ../../../../../../proc/self/maps in order to bypass ASLR. Currently, this wi

[Qemu-devel] [PATCH v2] target/ppc: Use tcg_gen_lookup_and_goto_ptr

2017-10-27 Thread Richard Henderson
From: Richard Henderson Signed-off-by: Richard Henderson --- Rebased and updated for changes to tcg_gen_lookup_and_goto_ptr. --- target/ppc/translate.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c i

[Qemu-devel] [Bug 697197] Re: Empty password allows access to VNC in libvirt

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 5 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=668589. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help

[Qemu-devel] [Bug 697197] Re: Empty password allows access to VNC in libvirt

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 3 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=667097. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help

Re: [Qemu-devel] [PATCHv4 00/13] sun4m: sparc32_dma tidy-ups

2017-10-27 Thread Philippe Mathieu-Daudé
Hi Mark, On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This patchset aims to tidy-up the sparc32_dma code by improving the > modelling of the espdma/ledma devices using both QOM and the memory > API which didn't exist when the code was first written. > > The result is that it is now possible

[Qemu-devel] [PATCH v7 5/5] arm: kinetis_mk64fn1m0 machine

2017-10-27 Thread Gabriel Costa
This Patch include mk64fn1m0.c that describe the kinetis k64 machine and some peripherals. Also, include changes in Makefile.objs and arm-softmmu.mak to compile this machine. Signed-off-by: Gabriel Augusto Costa --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 1 +

[Qemu-devel] [PATCH v7 2/5] arm: kinetis_k64_mcg

2017-10-27 Thread Gabriel Costa
This Patch include kinetis_k64_mcg.c/.h mcg means Multipurpose Clock Generator (MCG) More information about this peripheral can be found at: pag 579, K64P144M120SF5RM.pdf. Signed-off-by: Gabriel Augusto Costa --- hw/misc/kinetis_k64_mcg.c | 208 ++ inc

[Qemu-devel] [PATCH v7 4/5] arm: kinetis_k64_system

2017-10-27 Thread Gabriel Costa
This Patch include kinetis_k64_system.c/.h and Makefile.objs sim means System Integration Module (SIM) More information about this peripheral can be found at: pag 291, K64P144M120SF5RM.pdf. Signed-off-by: Gabriel Augusto Costa --- hw/misc/Makefile.objs| 3 + hw/misc/kinetis_k64

[Qemu-devel] [PATCH v7 0/5] arm: kinetis_mk64fn1m0 machine

2017-10-27 Thread Gabriel Costa
From: Gabriel Augusto Costa Hi everyone, I made a new arm machine with some peripherals. The machine is mk64fn1m0, a cortex-m4 microcontroller from NXP Kinetis family. I have prepared a series of patchs to include this machine: PATCH v5 n/5: It adds the machine and peripherals devices; PATCH v6

[Qemu-devel] [PATCH v7 1/5] arm: kinetis_k64_uart

2017-10-27 Thread Gabriel Costa
This Patch include kinetis_k64_uart.c/.h and Makefile.objs uart means Universal Asynchronous Receiver/Transmitter (UART) More information about this peripheral can be found at: pag 1529, K64P144M120SF5RM.pdf. Signed-off-by: Gabriel Augusto Costa --- hw/char/Makefile.objs | 1 + hw

Re: [Qemu-devel] [PATCHv4 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > Also update the function names to match as appropriate. While we're > here rename the type from sparc32_dma to sparc32-dma in order to > match the current QOM convention. > > Signed-off-by: Mark Cave-Ayland > Reviewed-by: Artyom Tarasenko Review

Re: [Qemu-devel] [PATCHv3 02/13] sparc32_dma: split esp and le into separate DMA devices

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/20/2017 09:41 AM, Mark Cave-Ayland wrote: >>> -dev = qdev_create(NULL, "sparc32-dma-device"); >>> +dev = qdev_create(NULL, is_ledma ? "sparc32-ledma" : "sparc32-espdma"); >> >> TYPE_SPARC32_LEDMA_DEVICE and TYPE_SPARC32_ESPDMA_DEVICE? > > Again please note that this patch is an inter

Re: [Qemu-devel] [PATCHv3 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/20/2017 09:39 AM, Mark Cave-Ayland wrote: >>> Also update the function names to match as appropriate. While we're >>> here rename the type from sparc32_dma to sparc32-dma in order to >>> match the current QOM convention. >> >> Where can I read on the QOM convention? > > The relevant document

Re: [Qemu-devel] [PATCHv4 12/13] sparc32_dma: remove is_ledma hack and replace with memory region alias

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This hack originated from before the memory region API was introduced, and > increased the size of the ledma DMA device to capture incorrect accesses > beyond the end of the ledma device. A full analysis can be found on Artyom's > blog at > http://

Re: [Qemu-devel] [PATCHv4 11/13] sparc32_dma: introduce new SPARC32_DMA type container object

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > Create a new SPARC32_DMA container object (including an appropriate container > memory region) and add instances of the SPARC32_ESPDMA_DEVICE and > SPARC32_LEDMA_DEVICE as child objects. The benefit is that most of the gpio > wiring complexity betwe

[Qemu-devel] [PATCH v4] s390-ccw: print carriage return with new lines

2017-10-27 Thread Collin L. Walling
The sclp console in the s390 bios writes raw data, leading console emulators (such as virsh console) to treat a new line ('\n') as just a new line instead of as a Unix line feed. Because of this, output appears in a "stair case" pattern. Let's print \r\n on every occurrence of a new line in the st

[Qemu-devel] [PATCH v6] x86: use lock+addl for smp_mb()

2017-10-27 Thread Michael S. Tsirkin
mfence appears to be way slower than a locked instruction - let's use lock+add unconditionally, as we always did on old 32-bit. Results: perf stat -r 10 -- ./virtio_ring_0_9 --sleep --host-affinity 0 --guest-affinity 0 Before: 0.922565990 seconds time elapsed

[Qemu-devel] virtio multiqueue RX frame classification

2017-10-27 Thread Alin Rauta
Hi, I have a question regarding receive pkts classification in QEMU. The virtIO spec states that the receive flow classification is implicit when enabling multiqueue support, but are there any ways to control the actual RX classification from inside the guest system or know how it is done? As e

Re: [Qemu-devel] [PATCHv4 10/13] sparc32_dma: make lance device child of ledma device

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This makes it possible to reference the lance device from the ledma device as > required. > > Signed-off-by: Mark Cave-Ayland > Reviewed-by: Artyom Tarasenko > --- > hw/dma/sparc32_dma.c | 22 ++ > hw/sparc/sun4m.

Re: [Qemu-devel] [PATCHv4 08/13] sparc32_dma: make esp device child of espdma device

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This makes it possible to reference the esp device from the espdma device as > required, and by wiring up the device ourselves in sun4m.c we can drop use > of the esp_init() function. > > Signed-off-by: Mark Cave-Ayland > Reviewed-by: Artyom Taras

Re: [Qemu-devel] [PATCHv4 03/13] sparc32_dma: move type declarations from sparc32_dma.c to sparc32_dma.h

2017-10-27 Thread Philippe Mathieu-Daudé
Hi Mark, On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > Signed-off-by: Mark Cave-Ayland > Reviewed-by: Artyom Tarasenko > --- > hw/dma/sparc32_dma.c | 34 -- > include/hw/sparc/sparc32_dma.h | 37 + > 2 files c

Re: [Qemu-devel] [PATCH v3] s390-ccw: print carriage return with new lines

2017-10-27 Thread Halil Pasic
On 10/27/2017 05:47 PM, Collin L. Walling wrote: >> > > I wanted to do the same, however str is void can cannot be indexed directly. > We'd have to do some nasty casting first, so I figured having *p made things > look cleaner. I did not consider that, sorry. (One could rename p to str AFAIR to

Re: [Qemu-devel] [PATCHv4 09/13] lance: move TYPE_LANCE and SysBusPCNetState from lance.c to lance.h

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This enables them to be used outside of lance.c. > > Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé > CC: Jason Wang > --- > hw/net/lance.c | 11 +-- > include/hw/net/lance.h | 41 +

Re: [Qemu-devel] [PATCHv4 07/13] esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > This enables them to be used outside of esp.c. > > Signed-off-by: Mark Cave-Ayland > CC: Paolo Bonzini > Reviewed-by: Artyom Tarasenko > Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé > --- > hw/scsi/esp.c | 13 ---

Re: [Qemu-devel] [PATCH v3] s390-ccw: print carriage return with new lines

2017-10-27 Thread Collin L. Walling
On 10/27/2017 11:39 AM, Halil Pasic wrote: On 10/27/2017 04:30 PM, Collin L. Walling wrote: The sclp console in the s390 bios writes raw data, leading console emulators (such as virsh console) to treat a new line ('\n') as just a new line instead of as a Unix line feed. Because of this, output

Re: [Qemu-devel] [PATCHv4 04/13] sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init()

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > By using the sysbus interface it is possible to wire up the esp/le devices > to the sun4m DMA controller directly during sun4m_hw_init() instead of > passing qemu_irqs into the sparc32_dma_init() function. > > This is an intermediate step to allow

Re: [Qemu-devel] [PATCHv4 02/13] sparc32_dma: split esp and le into separate DMA devices

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/25/2017 12:59 PM, Mark Cave-Ayland wrote: > Due to slight differences in behaviour accessing the registers for the > esp and le devices, create two separate SPARC32_DMA_DEVICE types and > update the sun4m machine to use. > > Note that by using different device types we already know the size

Re: [Qemu-devel] [PATCH v3] s390-ccw: print carriage return with new lines

2017-10-27 Thread Halil Pasic
On 10/27/2017 04:30 PM, Collin L. Walling wrote: > The sclp console in the s390 bios writes raw data, > leading console emulators (such as virsh console) to > treat a new line ('\n') as just a new line instead > of as a Unix line feed. Because of this, output > appears in a "stair case" pattern.

Re: [Qemu-devel] [PATCHv2 0/4] sun4m: implement memory region IOMMU translation and DMA API

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/27/2017 09:19 AM, Mark Cave-Ayland wrote: > The original sun4m IOMMU/DMA code dates from before the introduction of the > QEMU > memory region API (in particular IOMMU memory regions) and the DMA API. > > This patchset removes these sun4m-specific implementations and replaces them > with >

Re: [Qemu-devel] [PATCHv2 1/4] sun4m: implement IOMMU translation using IOMMU memory region

2017-10-27 Thread Philippe Mathieu-Daudé
On 10/27/2017 09:19 AM, Mark Cave-Ayland wrote: [...] > +/* Called from RCU critical section */ > +static IOMMUTLBEntry sun4m_translate_iommu(IOMMUMemoryRegion *iommu, > + hwaddr addr, > + IOMMUAccessFlags flags) >

Re: [Qemu-devel] [libvirt] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-27 Thread Halil Pasic
On 10/27/2017 04:06 PM, Christian Borntraeger wrote: > > > On 10/27/2017 03:40 PM, Halil Pasic wrote: >> >> >> On 10/27/2017 02:57 PM, Christian Borntraeger wrote: >>> >>> >>> On 10/27/2017 02:45 PM, Christian Borntraeger wrote: On 10/27/2017 02:31 PM, Halil Pasic wrote: gs

Re: [Qemu-devel] [PATCH v5 4/5]arm: kinetis_k64_uart

2017-10-27 Thread Gabriel Costa
Hi Fred, I have added the .valid field like the bcm2835_aux.c file inside /hw/char. Gabriel On Fri, Oct 27, 2017 at 9:26 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > > > On 10/26/2017 12:34 PM, Gabriel Costa wrote: > >> From: Gabriel Augusto Costa >> >> This Patch include kineti

Re: [Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform

2017-10-27 Thread no-reply
Hi, This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform Type: series Message-id: 1509014053-28134-7-git-send-em

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-27 Thread Eric Blake
On 10/25/2017 02:30 PM, Richard Henderson wrote: > Support for Capstone, plus an arm32 fix. > > > Capstone disassembler > > > Richard Henderson (11): > target/i

Re: [Qemu-devel] [PATCH v6 00/12] nbd minimal structured read

2017-10-27 Thread Eric Blake
On 10/27/2017 12:59 PM, no-re...@patchew.org wrote: > Hi, > > This series failed build test on ppc host. Please find the details below. > > /var/tmp/patchew-tester-tmp-xb4sc6ly/src/nbd/server.c: In function > ‘nbd_co_client_start’: > /var/tmp/patchew-tester-tmp-xb4sc6ly/src/nbd/server.c:819:12:

Re: [Qemu-devel] [PATCH v3] s390-ccw: print carriage return with new lines

2017-10-27 Thread Christian Borntraeger
On 10/27/2017 04:30 PM, Collin L. Walling wrote: > The sclp console in the s390 bios writes raw data, > leading console emulators (such as virsh console) to > treat a new line ('\n') as just a new line instead > of as a Unix line feed. Because of this, output > appears in a "stair case" pattern.

[Qemu-devel] [PATCH v1 1/1] xlnx-zcu102: Specify the number of max CPUs

2017-10-27 Thread Alistair Francis
Specify the number of CPUs that can run on ZynqMP. Signed-off-by: Alistair Francis --- hw/arm/xlnx-zcu102.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/xlnx-zcu102.c b/hw/arm/xlnx-zcu102.c index 519a16ed98..b86c048bb3 100644 --- a/hw/arm/xlnx-zcu102.c +++ b/hw/arm/xlnx-zcu102.c @

Re: [Qemu-devel] [PATCH v4 13/13] xlnx-zcu102: Add support for the ZynqMP QSPI

2017-10-27 Thread francisco iglesias
Hello again Alistair, Thank you very much for the review! The new lines will be added into the next version of the patch series (v5). Best regards, Francisco Iglesias On 27 Oct 2017 16:41, "Alistair Francis" wrote: > On Fri, Oct 27, 2017 at 2:48 PM, francisco iglesias > wrote: > > Good day Al

[Qemu-devel] [PULL v2 38/39] numa: fixup parsed NumaNodeOptions earlier

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov numa 'mem' option with suffix or without one is possible only on CLI/HMP. Instead of fixing up special suffix less CLI case deep in parse_numa_node() do it earlier right after option is parsed into NumaNodeOptions with OptVisistor so that the rest of the code would use valid v

[Qemu-devel] [PULL v2 37/39] mips: r4k: replace cpu_model with cpu_type

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-41-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/mips/mips_r4k.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH v5 3/5]arm: kinetis_k64_system

2017-10-27 Thread Gabriel Costa
Hi Fred, Here, I prefer keep the variables names to easy check the Reset default values. Gabriel On Fri, Oct 27, 2017 at 9:20 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > > > On 10/26/2017 12:34 PM, Gabriel Costa wrote: > >> From: Gabriel Augusto Costa >> >> This Patch include

[Qemu-devel] [PULL v2 35/39] mips: Magnum/Acer Pica 61: replace cpu_model with cpu_type

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau Message-Id: <1507211474-188400-39-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/mips/mips_jazz.c | 8 +++- 1 file changed, 3 insertions(+), 5 del

[Qemu-devel] [PATCH v3] s390-ccw: print carriage return with new lines

2017-10-27 Thread Collin L. Walling
The sclp console in the s390 bios writes raw data, leading console emulators (such as virsh console) to treat a new line ('\n') as just a new line instead of as a Unix line feed. Because of this, output appears in a "stair case" pattern. Let's print \r\n on every occurrence of a new line in the st

[Qemu-devel] [PULL v2 32/39] mips: use object_new() instead of gnew()+object_initialize()

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov object_initialize() is intended for inplace initialization of objects, but here it's first allocated with g_new0() and then initialized with object_initialize(). QEMU already has API to do this (object_new), so do object creation with suitable for usecase API. Signed-off-by:

Re: [Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform

2017-10-27 Thread Gabriel Costa
Hi Fred, Thanks, I have misunderstood the process to add a new model. I will follow your advice for the next patch and add the Makefile modification in the same Patch. Gabriel On Fri, Oct 27, 2017 at 9:07 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > Hi, > > Why does this patch ha

[Qemu-devel] [PULL v2 30/39] sparc: sparc: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-34-git-send-email-imamm...@redhat.com> Reviewed-by: Artyom Tarasenko Acked-by: Mark Cave-Ayland Signed-off-by: Eduardo Habkost --- hw/sparc/

[Qemu-devel] [PULL v2 31/39] sparc: leon3: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-35-git-send-email-imamm...@redhat.com> Reviewed-by: Artyom Tarasenko Signed-off-by: Eduardo Habkost --- hw/sparc/leon3.c | 8 ++-- 1 file

[Qemu-devel] [PULL v2 29/39] sparc: sun4u/sun4v/niagara: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-33-git-send-email-imamm...@redhat.com> Reviewed-by: Artyom Tarasenko Signed-off-by: Eduardo Habkost --- include/hw/sparc/sparc64.h | 3 +-- hw/sparc64/niagara.c | 4 ++--

[Qemu-devel] [PULL v2 28/39] sparc: cleanup cpu type name composition

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov introduce SPARC_CPU_TYPE_NAME macro and use it to construct cpu type names. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-32-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habko

[Qemu-devel] [PULL v2 26/39] tricore: cleanup cpu type name composition

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov introduce TRICORE_CPU_TYPE_NAME macro and use it to construct cpu type names. While at it move cpu type_infos into one array and register it directly with type_init_from_array() instead of custom tricore_cpu_register_types()/cpu_register() Signed-off-by: Igor Mammedov Review

[Qemu-devel] [PULL v2 27/39] tricore: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-31-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/tricore/tricore_testboard.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PULL v2 23/39] xtensa: lx60/lx200/ml605/kc705: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-27-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/xtensa/xtfpga.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/x

[Qemu-devel] [PULL v2 25/39] unicore32: use generic cpu_model parsing

2017-10-27 Thread Eduardo Habkost
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1507211474-188400-29-git-send-email-imamm...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/unicore32/puv3.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/unic

  1   2   3   >