[Qemu-devel] [PATCH] input-linux: customizable grab toggle keys v4

2019-01-20 Thread Ryan El Kochta
This patch adds a new option to the input-linux object: grab-toggle=[key-combo] The key combination can be one of the following: * ctrl-ctrl * alt-alt * meta-meta * ctrl-alt * scrolllock * ctrl-scrolllock * ctrl-backtick The user can pick any of these key combinations. The VM's grab of the evde

Re: [Qemu-devel] [PATCH v2 1/2] arm: Stub out NRF51 TWI magnetometer/accelerometer detection

2019-01-20 Thread Stefan Hajnoczi
On Fri, Jan 18, 2019 at 1:59 PM Peter Maydell wrote: > > On Thu, 10 Jan 2019 at 09:40, Stefan Hajnoczi wrote: > > > > From: Steffen Görtz > > > > Recent microbit firmwares panic if the TWI magnetometer/accelerometer > > devices are not detected during startup. We don't implement TWI (I2C) > > s

Re: [Qemu-devel] [PATCH v3 02/19] spapr: Rename xics to intc in interrupt controller agnostic code

2019-01-20 Thread Greg Kurz
On Fri, 18 Jan 2019 14:56:51 +0100 Cédric Le Goater wrote: > On 1/17/19 6:14 PM, Greg Kurz wrote: > > All this code is used with both the XICS and XIVE interrupt controllers. > > > > Signed-off-by: Greg Kurz > > Reviewed-by: Cédric Le Goater > > --- > > v3: - s/spapr_dt_intc_irq/spapr_dt_irq >

Re: [Qemu-devel] [PATCH v3 03/19] xics: Disintricate allocation and type setting of interrupts

2019-01-20 Thread Greg Kurz
On Fri, 18 Jan 2019 13:26:29 +0100 Cédric Le Goater wrote: > On 1/17/19 6:14 PM, Greg Kurz wrote: > > The current code assumes that an interrupt is allocated as soon as its > > type is set to MSI or LSI. PHB hotplug will require to be able to set > > the type of an interrupt before actually alloc

Re: [Qemu-devel] [PATCH v3 05/19] spapr: Set irq type in a dedicated function

2019-01-20 Thread Greg Kurz
On Fri, 18 Jan 2019 13:34:39 +0100 Cédric Le Goater wrote: > On 1/17/19 6:14 PM, Greg Kurz wrote: > > PHB hotplug will need to set the type of all LSIs at machine init. > > > > Prepare for that by moving the behaviour of setting the type from > > spapr_irq_claim() to a separate spapr_irq_set_typ

[Qemu-devel] [PATCH 3/4] arm: Instantiate NRF51 special NVM's and NVMC

2019-01-20 Thread Stefan Hajnoczi
From: Steffen Görtz Instantiates UICR, FICR, FLASH and NVMC in nRF51 SOC. Signed-off-by: Steffen Görtz Reviewed-by: Peter Maydell Reviewed-by: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi --- include/hw/arm/nrf51_soc.h | 2 ++ hw/arm/nrf51_soc.c | 41 +++--

[Qemu-devel] [PATCH 1/4] memory: add memory_region_flush_rom_device()

2019-01-20 Thread Stefan Hajnoczi
ROM devices go via MemoryRegionOps->write() callbacks for write operations and do not dirty/invalidate that memory. Device emulation must be able to mark memory ranges that have been modified internally (e.g. using memory_region_get_ram_ptr()). Introduce the memory_region_flush_rom_device() API f

[Qemu-devel] [PATCH 0/4] arm: microbit Non-Volatile Memory Controller

2019-01-20 Thread Stefan Hajnoczi
This series adds the Non-Volatile Memory Controller, which controls access to the User Information Control Registers (UICR), Factory Information Control Registers (FICR), and flash memory. This is the last piece of microbit work needed to make basic programs like Micropython "Hello world" work und

[Qemu-devel] [PATCH 4/4] tests/microbit-test: Add tests for nRF51 NVMC

2019-01-20 Thread Stefan Hajnoczi
From: Steffen Görtz Signed-off-by: Steffen Görtz Signed-off-by: Stefan Hajnoczi --- tests/microbit-test.c | 97 +++ 1 file changed, 97 insertions(+) diff --git a/tests/microbit-test.c b/tests/microbit-test.c index 0c125535f6..d3edd38643 100644 --- a/tes

[Qemu-devel] [PATCH 2/4] hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories

2019-01-20 Thread Stefan Hajnoczi
From: Steffen Görtz The nRF51 contains three regions of non-volatile memory (NVM): - CODE (R/W): contains code - FICR (R): Factory information like code size, chip id etc. - UICR (R/W): Changeable configuration data. Lock bits, Code protection configuration, Bootloader address, Nordic SoftRadio

Re: [Qemu-devel] [PATCH v3 06/19] spapr: Identify LSIs of all possible PHBs at machine init

2019-01-20 Thread Greg Kurz
On Fri, 18 Jan 2019 13:38:02 +0100 Cédric Le Goater wrote: > On 1/17/19 6:15 PM, Greg Kurz wrote: > > Every PHB needs to claim 4 LSIs to support legacy PCI devices. This is > > currently done at PHB realize. When using in-kernel XICS (or upcoming > > in-kernel XIVE), QEMU synchronizes the state o

[Qemu-devel] [PATCH] target/arm: v8m: Ensure IDAU is respected if SAU is disabled

2019-01-20 Thread Thomas Roth
The current behavior of v8m_security_lookup in helper.c only checks whether the IDAU specifies a higher security if the SAU is enabled. If SAU.ALLNS is set to 1, this will lead to addresses being treated as non-secure, even though the IDAU indicates that they must be secure. This patch changes the

Re: [Qemu-devel] [PATCH v3 14/19] spapr: Factor out setting of "phandle" DT property to sPAPR irq frontend

2019-01-20 Thread Greg Kurz
On Fri, 18 Jan 2019 13:45:26 +0100 Cédric Le Goater wrote: > On 1/17/19 6:15 PM, Greg Kurz wrote: > > The setting of the "phandle" and "linux,phandle" properties of the > > interrupt controller node is duplicate code in XICS and XIVE. Move > > it to a new spapr_irq_dt_populate() function. > > >

Re: [Qemu-devel] [PATCH v4 00/21] nbd: add qemu-nbd --list

2019-01-20 Thread Richard W.M. Jones
On Sat, Jan 19, 2019 at 11:39:41AM +, Richard W.M. Jones wrote: > > Attached is a NON-working patch to nbdkit-partitioning-plugin which > adds logical partition support. I don't think I've fully understood > how the EBR fields are supposed to be initialized (or else they don't > work how is d

Re: [Qemu-devel] [PATCH 1/9] target/mips: Require TARGET_MIPS64 for R5900 multimedia instructions

2019-01-20 Thread Jürgen Urban
Hello Aleksandar and Fredrik, > Gesendet: Mittwoch, 16. Januar 2019 um 20:20 Uhr > Von: "Aleksandar Markovic" > An: "Fredrik Noring" > Cc: "Aurelien Jarno" , "Philippe Mathieu-Daudé" > , "Jürgen Urban" , "Maciej W. Rozycki" > , "qemu-devel@nongnu.org" > Betreff: Re: [PATCH 1/9] target/mips: R

Re: [Qemu-devel] [PATCH v4] qemu-io: Add generic function for reinitializing optind.

2019-01-20 Thread Max Reitz
On 18.01.19 11:11, Richard W.M. Jones wrote: > On FreeBSD 11.2: > > $ nbdkit memory size=1M --run './qemu-io -f raw -c "aio_write 0 512" $nbd' > Parsing error: non-numeric argument, or extraneous/unrecognized suffix -- > aio_write > > After main option parsing, we reinitialize optind so we c

Re: [Qemu-devel] [PATCH v2 0/8] target/ppc: remove various endian hacks from int_helper.c

2019-01-20 Thread David Gibson
On Fri, Jan 18, 2019 at 01:25:37PM +, Mark Cave-Ayland wrote: > On 02/01/2019 02:59, David Gibson wrote: > > > On Fri, Dec 28, 2018 at 01:52:27PM +, Mark Cave-Ayland wrote: > >> >From working on the TCG vector operations patchset, it is apparent that > >> >there > >> are a large number of

Re: [Qemu-devel] [GIT PULL for qemu-pseries] pseries: Update SLOF firmware image

2019-01-20 Thread David Gibson
On Mon, Jan 14, 2019 at 07:14:54PM +1100, Alexey Kardashevskiy wrote: > The following changes since commit 27df21ca3886fff4dd3d70e515517667963a52f1: > > Merge remote-tracking branch > 'remotes/kraxel/tags/misc-20190111-pull-request' into staging (2019-01-11 > 16:45:59 +) > > are available

Re: [Qemu-devel] [PATCH] spapr: Forbid setting ic-mode for old machine types

2019-01-20 Thread David Gibson
On Thu, Jan 17, 2019 at 12:58:46PM +0100, Cédric Le Goater wrote: > On 1/17/19 12:06 PM, Greg Kurz wrote: > > Machine types 3.0 and older only know about the legacy XICS backend. > > Make it clear by erroring out if the user tries to set ic-mode on > > such machines. > > > > Signed-off-by: Greg Ku

Re: [Qemu-devel] [PATCH 0/3] nvme small fix

2019-01-20 Thread Max Reitz
On 20.01.19 06:55, Li Qiang wrote: > This patchset contains small fix. > > Change since v2: > For patch 2: > 1. add nvme command > 2. check num_queues first > > Change since v1: > > 1. drop the patch of checking return value of msix_init_exclusive_bar > 2. return when nvme's num_queues configur

Re: [Qemu-devel] [PATCH 0/2] qcow2: include LUKS payload overhead in qemu-img measure

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115111007.27159-1-stefa...@redhat.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [Qemu-devel] [PATCH v3 0/4] QEMU changes to do PVH boot

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1547554687-12687-1-git-send-email-liam.merw...@oracle.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST S

Re: [Qemu-devel] [PATCH] hw/core/generic-loader: Fix PC overwriting

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115143650.15725-1-jus...@mail.ru/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20190115143650.15725-1-jus...@mail.ru Subject: [Qemu-devel] [PATCH] hw/core/generic-loader: Fix

Re: [Qemu-devel] [PATCH] egl-helpers.h: add a missing X11 include

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115115047.39326-1-alex.kana...@gmail.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN

Re: [Qemu-devel] [PATCH v2] QGA: Fix guest-get-fsinfo PCI address collection in Windows

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115165710.20116-1-mhi...@scalecomputing.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEG

Re: [Qemu-devel] [PATCH V9 4/6] util/mmap-alloc: support MAP_SYNC in qemu_ram_mmap()

2019-01-20 Thread Yi Zhang
On 2019-01-18 at 16:11:47 -0200, Eduardo Habkost wrote: > On Wed, Jan 16, 2019 at 10:58:44AM -0500, Michael S. Tsirkin wrote: > > On Wed, Jan 16, 2019 at 04:10:58PM +0800, Zhang Yi wrote: > > > When a file supporting DAX is used as vNVDIMM backend, mmap it with > > > MAP_SYNC flag in addition which

Re: [Qemu-devel] [PATCH v2 0/8] target/ppc: remove various endian hacks from int_helper.c

2019-01-20 Thread Mark Cave-Ayland
On 20/01/2019 20:28, David Gibson wrote: > On Fri, Jan 18, 2019 at 01:25:37PM +, Mark Cave-Ayland wrote: >> On 02/01/2019 02:59, David Gibson wrote: >> >>> On Fri, Dec 28, 2018 at 01:52:27PM +, Mark Cave-Ayland wrote: >From working on the TCG vector operations patchset, it is apparent

Re: [Qemu-devel] Implementing Memory Tag Extention - ARM

2019-01-20 Thread Vishnu Dev
> > Do you have a different idea for GSoC then? :) > > Alex > Well I Wanted to do some security related stuff , So the fuzzing project seems to be my next option . Do you guys have any interesting Ideas ? -- Vishnu Dev TJ

Re: [Qemu-devel] [PATCH V9 6/6] docs: Added MAP_SYNC documentation

2019-01-20 Thread Yi Zhang
On 2019-01-16 at 10:40:23 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 16, 2019 at 04:11:16PM +0800, Zhang Yi wrote: > > Signed-off-by: Zhang Yi > > --- > > docs/nvdimm.txt | 21 - > > qemu-options.hx | 4 > > 2 files changed, 24 insertions(+), 1 deletion(-) > > > > d

Re: [Qemu-devel] [PATCH v3 0/3] ppc/gdbstub: Expose SPRs to GDB

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115193750.17234-1-faro...@linux.ibm.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN =

Re: [Qemu-devel] [PATCH v2 4/9] Extend the command-line to provide memory latency and bandwidth information

2019-01-20 Thread Tao Xu
On 1/15/2019 3:38 AM, Eric Blake wrote: On 1/11/19 9:34 AM, Tao Xu wrote: From: Liu Jingqi Add -numa hmat-lb option to provide System Locality Latency and Bandwidth Information. These memory attributes help to build System Locality Latency and Bandwidth Information Structure(s) in ACPI Heter

Re: [Qemu-devel] [PATCH] tests: Disable ipmi-bt-test

2019-01-20 Thread Thomas Huth
On 2019-01-18 19:54, Peter Maydell wrote: > The ipmi-bt-test fails intermittently, especially on the NetBSD VM. > The frequency of this failure has recently gone up sharply to the > point that I'm having to retry the NetBSD build multiple times > to get a pass when merging pull requests. > > Disab

Re: [Qemu-devel] [PATCH 0/2] cpu-exec fixes

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190115194754.7670-1-c...@braap.org/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin

Re: [Qemu-devel] [PATCH V9 2/6] memory: use sparse feature define RAM_FLAG.

2019-01-20 Thread Yi Zhang
On 2019-01-16 at 10:55:33 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 16, 2019 at 04:10:29PM +0800, Zhang Yi wrote: > > Signed-off-by: Zhang Yi > > Signed-off-by: Michael S. Tsirkin > > OK so if you apply this patch, do you get > any sparse warning at all? Didn't get any sparse warning. > >

Re: [Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-20 Thread Zhuangyanying
> -Original Message- > From: Sean Christopherson [mailto:sean.j.christopher...@intel.com] > Sent: Friday, January 18, 2019 12:32 AM > To: Zhuangyanying > Cc: xiaoguangr...@tencent.com; pbonz...@redhat.com; Gonglei (Arei) > ; qemu-devel@nongnu.org; k...@vger.kernel.org; > wangxin (U) ; L

Re: [Qemu-devel] [PATCH] tap: flush STDOUT on newline

2019-01-20 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1547574976-6372-1-git-send-email-pbonz...@redhat.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [Qemu-devel] [PATCH] fw_cfg: fix the life cycle and the name of "qemu_extra_params_fw"

2019-01-20 Thread Gerd Hoffmann
On Fri, Jan 18, 2019 at 11:31:52PM +0100, Laszlo Ersek wrote: > Commit 19bcc4bc3213 ("fw_cfg: Make qemu_extra_params_fw locally", > 2019-01-04) changed the storage duration of the "qemu_extra_params_fw" > array from static to automatic. This broke the interface contract on the > fw_cfg_add_file() f

Re: [Qemu-devel] [PATCH v2 1/4] display: ensure qxl log_buf is a nul terminated string

2019-01-20 Thread Gerd Hoffmann
> case QXL_IO_LOG: > -trace_qxl_io_log(d->id, d->ram->log_buf); > +d->ram->log_buf[sizeof(d->ram->log_buf) - 1] = '\0'; > +trace_qxl_io_log(d->id, (const char *)d->ram->log_buf); > if (d->guestdebug) { Reviewed-by: Gerd Hoffmann

Re: [Qemu-devel] [PATCH V9 6/6] docs: Added MAP_SYNC documentation

2019-01-20 Thread Pankaj Gupta
> > > --- > > > docs/nvdimm.txt | 21 - > > > qemu-options.hx | 4 > > > 2 files changed, 24 insertions(+), 1 deletion(-) > > > > > > diff --git a/docs/nvdimm.txt b/docs/nvdimm.txt > > > index 5f158a6..565ba73 100644 > > > --- a/docs/nvdimm.txt > > > +++ b/docs/nvdimm.

Re: [Qemu-devel] [PATCH 2/5] roms: build the EfiRom utility from the roms/edk2 submodule

2019-01-20 Thread Gerd Hoffmann
On Fri, Jan 18, 2019 at 11:33:57PM +0100, Laszlo Ersek wrote: > Building the EfiRom utility from "roms/edk2/BaseTools" should make > "roms/Makefile" more self-contained. Otherwise, we'd call the system-wide > EfiRom for building the combined iPXE option ROMs, but call the sibling > utilities from "

Re: [Qemu-devel] [PATCH] target/s390x: define TCG_GUEST_DEFAULT_MO for MTTCG

2019-01-20 Thread Cornelia Huck
On Fri, 18 Jan 2019 17:18:48 + Alex Bennée wrote: > MTTCG should be enabled by default whenever the memory model allows > it. s390x was missing its definition of TCG_GUEST_DEFAULT_MO meaning > the user had to manually specify --accel tcg,thread=multi. > > Signed-off-by: Alex Bennée > Cc: D

Re: [Qemu-devel] [PATCH 1/5] roms: add the edk2 project as a git submodule

2019-01-20 Thread Gerd Hoffmann
On Fri, Jan 18, 2019 at 11:33:56PM +0100, Laszlo Ersek wrote: > The roms/edk2 submodule can help with three goals: > - build the OVMF and ArmVirtQemu virtual UEFI firmware platforms (to be > implemented later), > - build the EfiRom tool on the fly, which is used in roms/Makefile, for > building

Re: [Qemu-devel] [PATCH] fw_cfg: fix the life cycle and the name of "qemu_extra_params_fw"

2019-01-20 Thread Li Qiang
Gerd Hoffmann 于2019年1月21日周一 下午3:22写道: > On Fri, Jan 18, 2019 at 11:31:52PM +0100, Laszlo Ersek wrote: > > Commit 19bcc4bc3213 ("fw_cfg: Make qemu_extra_params_fw locally", > > 2019-01-04) changed the storage duration of the "qemu_extra_params_fw" > > array from static to automatic. This broke the