Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Dr. David Alan Gilbert
* Gerd Hoffmann (kra...@redhat.com) wrote: > > > +qmp_screendump(filename, id != NULL, id, id != NULL, head, &err); > > > hmp_handle_error(mon, &err); > > > } > > > > Looks ok from HMP; one question, is there a way to give an ID to the > > default VGA or only to extra devices? > > It'll

Re: [Qemu-devel] [BUG] I/O thread segfault for QEMU on s390x

2018-03-05 Thread Stefan Hajnoczi
On Fri, Mar 02, 2018 at 10:30:57AM -0500, Farhan Ali wrote: > > > On 03/02/2018 04:23 AM, Stefan Hajnoczi wrote: > > On Thu, Mar 01, 2018 at 09:33:35AM -0500, Farhan Ali wrote: > > > Hi, > > > > > > I have been noticing some segfaults for QEMU on s390x, and I have been > > > hitting this issue q

Re: [Qemu-devel] [PATCH] PowerPC: Add TM bits into msr_mask

2018-03-05 Thread Simon Guo
Hi David, On Mon, Mar 05, 2018 at 05:22:33PM +1100, David Gibson wrote: > On Wed, Feb 28, 2018 at 09:51:37AM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > During migration, cpu_post_load() will use msr_mask to determine which > > PPC MSR bits will be sync to the target side. H

Re: [Qemu-devel] [PATCH V7 1/4] rules: Move cross compilation auto detection functions to rules.mak

2018-03-05 Thread Dr. David Alan Gilbert
* Laurent Vivier (lviv...@redhat.com) wrote: > On 28/02/2018 19:02, Wei Huang wrote: > > This patch moves the auto detection functions for cross compilation from > > roms/Makefile to rules.mak. So the functions can be shared among Makefiles > > in QEMU. > > > > Signed-off-by: Wei Huang > > Review

[Qemu-devel] [PATCH v2] PowerPC: Add TS bits into msr_mask

2018-03-05 Thread wei . guo . simon
From: Simon Guo During migration, after MSR bits is synced, cpu_post_load() will use msr_mask to determine which PPC MSR bits will be applied into the target side. Hardware Transaction Memory(HTM) has been supported since Power8, but TS0/TS1 bit was not in msr_mask yet. That will prevent target K

Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Gerd Hoffmann
> > +qmp_screendump(filename, id != NULL, id, id != NULL, head, &err); > > hmp_handle_error(mon, &err); > > } > > Looks ok from HMP; one question, is there a way to give an ID to the > default VGA or only to extra devices? It'll be whatever id you give to your video device. For libvirt

Re: [Qemu-devel] [PATCH 5/9] chardev: introduce chr_machine_done hook

2018-03-05 Thread Marc-André Lureau
Hi On Mon, Mar 5, 2018 at 7:50 AM, Peter Xu wrote: > Introduce ChardevClass.chr_machine_done() hook so that chardevs can run > customized procedures after machine init. > > There was an existing mux user already that did similar thing but used a > raw machine done notifier. Generalize it into a

Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Thomas Huth
On 05.03.2018 11:09, Gerd Hoffmann wrote: >> -void qmp_screendump(const char *filename, Error **errp) >> +void qmp_screendump(const char *filename, bool has_device, const char >> *device, >> +bool has_head, int64_t head, Error **errp) >> { >> QemuConsole *con = qemu_conso

Re: [Qemu-devel] [Qemu-block] [PULL 6/6] README: Document 'git-publish' workflow

2018-03-05 Thread Alberto Garcia
On Mon 05 Mar 2018 10:40:06 AM CET, Stefan Hajnoczi wrote: > +A 'git-profile' utility was created to make above process less > +cumbersome, and is highly recommended for making regular > contributions, A 'git-profile' utility ? Did you want to say 'git-publish' there? Berto

Re: [Qemu-devel] [PATCH 02/30] hw: include "qemu/cunits.h" and clean unused "qemu/cutils.h"

2018-03-05 Thread Philippe Mathieu-Daudé
Hi Thomas, On 02/15/2018 03:10 AM, Thomas Huth wrote: > On 15.02.2018 05:28, Philippe Mathieu-Daudé wrote: >> These files were including "qemu/cutils.h" to use the byte-based size >> definitions, now available in "qemu/cunits.h". >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> include/hw/h

Re: [Qemu-devel] [PATCH] target/s390x: Remove leading underscores from #defines

2018-03-05 Thread David Hildenbrand
On 05.03.2018 06:16, Thomas Huth wrote: > We should not use leading underscores followed by a capital letter > in #defines since such identifiers are reserved by the C standard. > Didn't know about that but seems to be true. > For ASCE_ORIGIN, REGION_ENTRY_ORIGIN and SEGMENT_ENTRY_ORIGIN I also

Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Dr. David Alan Gilbert
* Thomas Huth (th...@redhat.com) wrote: > QEMU's screendump command can only take dumps from the primary display. > When using multiple VGA cards, there is no way to get a dump from a > secondary card or other display heads yet. So let's add an 'device' and > a 'head' parameter to the HMP and QMP c

Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu()

2018-03-05 Thread Peter Xu
On Mon, Mar 05, 2018 at 04:43:09PM +0800, Liu, Yi L wrote: > On Fri, Mar 02, 2018 at 05:06:56PM +0100, Paolo Bonzini wrote: > > On 01/03/2018 11:33, Liu, Yi L wrote: > > > +pci_device_notify_iommu(pdev, PCI_NTY_DEV_ADD); > > > + > > > pci_setup_sva_ops(pdev, &vfio_pci_sva_ops); > > > > >

[Qemu-devel] [Bug 1753437] [NEW] qemu/pc-bios/s390-ccw/libc.c:82: bad test ?

2018-03-05 Thread dcb
Public bug reported: qemu/pc-bios/s390-ccw/libc.c:82]: (style) Unsigned variable 'num_idx' can't be negative so it is unnecessary to test it. Source code is while (num_idx >= 0) { but size_t num_idx = 1; /* account for NUL */ So there is no escape from the while loop. ** Affects: qe

Re: [Qemu-devel] QEMU fails to configure on non-x86 hosts with recent SDL2

2018-03-05 Thread Daniel P . Berrangé
On Mon, Mar 05, 2018 at 10:24:41AM +, Peter Maydell wrote: > On non-x86 hosts with SDL2 2.0.8, configure fails: > > > config-host.mak is out-of-date, running configure > > ERROR: configure test passed without -Werror but failed with -Werror. >This is probably a bug in the configure s

Re: [Qemu-devel] [PATCH qemu] fdc: Exit if ISA controller does not support DMA

2018-03-05 Thread Philippe Mathieu-Daudé
On 10/26/2017 03:46 AM, Alexey Kardashevskiy wrote: > A "powernv" machine type defines an ISA bus but it does not add any > DMA > controller to it so it is possible to hit assert(fdctrl->dma) by > adding "-machine powernv -device isa-fdc". The same happens with the Alpha machine. On 12/13/2017 03

Re: [Qemu-devel] [PATCH v3 01/12] memory: rename existing iommu notifier to be iommu mr notifier

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:01:11PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > From: Peter Xu > > > > IOMMU notifiers before are mostly used for [dev-]IOTLB stuffs. It is not > > suitable for other kind of notifiers (one example would be the future > > virt-svm support

[Qemu-devel] QEMU fails to configure on non-x86 hosts with recent SDL2

2018-03-05 Thread Peter Maydell
On non-x86 hosts with SDL2 2.0.8, configure fails: config-host.mak is out-of-date, running configure ERROR: configure test passed without -Werror but failed with -Werror. This is probably a bug in the configure script. The failing command will be at the bottom of config.log.

Re: [Qemu-devel] [PATCH] hw/s390x: Add the possibility to specify the netboot image on the command line

2018-03-05 Thread Cornelia Huck
On Tue, 27 Feb 2018 12:32:34 +0100 Thomas Huth wrote: > The file name of the netboot binary is currently hard-coded to > "s390-netboot.img", without a possibility for the user to select > an alternative firmware image here. That's unfortunate, especially > since the basics are already there: The

Re: [Qemu-devel] [qemu-s390x] [PATCH] hw/s390x: Add the possibility to specify the netboot image on the command line

2018-03-05 Thread Cornelia Huck
On Wed, 28 Feb 2018 13:24:35 +0100 Thomas Huth wrote: > On 28.02.2018 12:02, David Hildenbrand wrote: > > On 27.02.2018 12:32, Thomas Huth wrote: > >> The file name of the netboot binary is currently hard-coded to > >> "s390-netboot.img", without a possibility for the user to select > >> an alt

Re: [Qemu-devel] [PATCH qemu] fdc: Exit if ISA controller does not support DMA

2018-03-05 Thread Thomas Huth
On 08.12.2017 22:29, John Snow wrote: > > On 11/21/2017 09:48 PM, Alexey Kardashevskiy wrote: >> On 07/11/17 11:58, John Snow wrote: >>> >>> >>> On 10/26/2017 02:46 AM, Alexey Kardashevskiy wrote: A "powernv" machine type defines an ISA bus but it does not add any DMA controller to it so

Re: [Qemu-devel] [PATCH v3 12/12] intel_iommu: bind device to PASID tagged AddressSpace

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 03:51:53PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > +IntelPASIDNode *node; > > +char name[128]; > > + > > +QLIST_FOREACH(node, &(s->pasid_as_list), next) { > > +vtd_pasid_as = node->pasid_as; > > +if (pasid == vtd_pa

Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Gerd Hoffmann
> -void qmp_screendump(const char *filename, Error **errp) > +void qmp_screendump(const char *filename, bool has_device, const char > *device, > +bool has_head, int64_t head, Error **errp) > { > QemuConsole *con = qemu_console_lookup_by_index(0); This initialization can

Re: [Qemu-devel] [PATCH 11/30] hw/s390x: use the BYTE-based definitions

2018-03-05 Thread Cornelia Huck
On Thu, 15 Feb 2018 01:28:41 -0300 Philippe Mathieu-Daudé wrote: > It ease code review, unit is explicit. s/ease/eases/ > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/s390x/sclp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/s390x/sclp.c b/hw/s390x/s

Re: [Qemu-devel] [PATCH v8 00/23] RISC-V QEMU Port Submission

2018-03-05 Thread Alex Bennée
Richard W.M. Jones writes: > The attached patch is also needed to avoid crashes during various > math-heavy test suites. > > Rich. > > -- > From: Stef O'Rear > Date: Sat, 3 Mar 2018 03:46:00 -0800 > Subject: [PATCH] softfloat: fix crash on int conversion of SNaN > > Signed-off-by: Stef O'Rear

Re: [Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Daniel P . Berrangé
On Mon, Mar 05, 2018 at 10:47:56AM +0100, Thomas Huth wrote: > QEMU's screendump command can only take dumps from the primary display. > When using multiple VGA cards, there is no way to get a dump from a > secondary card or other display heads yet. So let's add an 'device' and > a 'head' parameter

Re: [Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:08:47PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > > > +struct IntelIOMMUAssignedDeviceNode { > > +VTDAddressSpace *vtd_as; > > +QLIST_ENTRY(IntelIOMMUAssignedDeviceNode) next; > > +}; > > + > > This QLIST_ENTRY can also be placed d

Re: [Qemu-devel] [PULL 0/6] Block patches

2018-03-05 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180305094006.21446-1-stefa...@redhat.com Subject: [Qemu-devel] [PULL 0/6] Block patches === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BASE

[Qemu-devel] [PATCH] migration: fix applying wrong capabilities

2018-03-05 Thread Peter Xu
When setting migration capabilities via QMP/HMP, we'll apply them even if the capability check failed. Fix it. Fixes: 4a84214ebe ("migration: provide migrate_caps_check()", 2017-07-18) Signed-off-by: Peter Xu --- migration/migration.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di

Re: [Qemu-devel] [PATCH 1/5] tpm: convert tpm_crb.c to use trace-events

2018-03-05 Thread Dr. David Alan Gilbert
* Stefan Berger (stef...@linux.vnet.ibm.com) wrote: > Signed-off-by: Stefan Berger > --- > Makefile.objs | 1 + > hw/tpm/tpm_crb.c| 17 + > hw/tpm/trace-events | 5 + > 3 files changed, 11 insertions(+), 12 deletions(-) > create mode 100644 hw/tpm/trace-events >

[Qemu-devel] [PATCH v2] Allow to specify a display device ID and head whith the screendump command

2018-03-05 Thread Thomas Huth
QEMU's screendump command can only take dumps from the primary display. When using multiple VGA cards, there is no way to get a dump from a secondary card or other display heads yet. So let's add an 'device' and a 'head' parameter to the HMP and QMP commands to be able to specify alternative device

Re: [Qemu-devel] [PATCH v8 03/23] RISC-V CPU Core Definition

2018-03-05 Thread Igor Mammedov
On Sat, 3 Mar 2018 02:51:31 +1300 Michael Clark wrote: > Add CPU state header, CPU definitions and initialization routines > > Reviewed-by: Richard Henderson > Signed-off-by: Sagar Karandikar > Signed-off-by: Michael Clark > --- > target/riscv/cpu.c | 432 > +++

Re: [Qemu-devel] [PATCH] net: fix misaligned member access

2018-03-05 Thread Peter Maydell
On 2 March 2018 at 17:22, Peter Maydell wrote: > On 9 February 2018 at 19:03, Marc-André Lureau > wrote: >> Fixes the following ASAN warnings: >> >> /home/elmarco/src/qemu/hw/net/net_tx_pkt.c:201:27: runtime error: member >> access within misaligned address 0x63128846 for type 'struct ip_hea

[Qemu-devel] [PULL 3/6] util/uri.c: wrap single statement blocks with braces {}

2018-03-05 Thread Stefan Hajnoczi
From: Su Hang For this patch, using curly braces to wrap `if` `while` `else` statements, which only hold single statement. For example: ''' if (cond) statement; ''' to ''' if (cond) { statement; } ''' And using tricks that compare the disassemblies before and after code changes, to make

[Qemu-devel] [PULL 5/6] Add a git-publish configuration file

2018-03-05 Thread Stefan Hajnoczi
From: Fam Zheng git-publish [1] is a convenient tool to send patches and has been popular among QEMU developers. Recently it has been made available in Fedora/Debian official repo. One nice feature of the tool is a per-project configuration with profiles, especially in which the cccmd option is

[Qemu-devel] [PULL 4/6] tests/libqos: Check for valid dev pointer when looking for PCI devices

2018-03-05 Thread Stefan Hajnoczi
From: Thomas Huth dev could be NULL if the PCI device can not be found due to some reasons, so we must not dereference the pointer in this case. Signed-off-by: Thomas Huth Message-id: 1519713884-2346-1-git-send-email-th...@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.

[Qemu-devel] [PULL 6/6] README: Document 'git-publish' workflow

2018-03-05 Thread Stefan Hajnoczi
From: Fam Zheng Signed-off-by: Fam Zheng Message-id: 20180226030326.20219-3-f...@redhat.com Signed-off-by: Stefan Hajnoczi --- README | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README b/README index 2c8e1c8cc4..7833b97365 100644 --- a/RE

[Qemu-devel] [PULL 1/6] util/uri.c: Coding style check, Only whitespace involved

2018-03-05 Thread Stefan Hajnoczi
From: Su Hang Using `clang-format -i util/uri.c` first, then change back few code manually, to make sure only whitespace involved. Signed-off-by: Su Hang Reviewed-by: Thomas Huth Message-id: 1519533358-13759-2-git-send-email-suhan...@mails.ucas.ac.cn Signed-off-by: Stefan Hajnoczi --- util/u

[Qemu-devel] [PULL 2/6] util/uri.c: remove brackets that wrap `return` statement's content.

2018-03-05 Thread Stefan Hajnoczi
From: Su Hang only remove brackets that wrap `return` statements' content. use `perl -pi -e "s/return \((.*?)\);/return \1;/g" util/uri.c` to remove pattern like this: "return (1);" Signed-off-by: Su Hang Reviewed-by: Thomas Huth Message-id: 1519533358-13759-3-git-send-email-suhan...@mails.uc

[Qemu-devel] [PULL 0/6] Block patches

2018-03-05 Thread Stefan Hajnoczi
The following changes since commit 136c67e07869227b21b3f627316e03679ce7b738: Merge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-2018-03-02' into staging (2018-03-02 16:56:20 +) are available in the Git repository at: git://github.com/stefanha/qemu.git tags/block-pull-r

Re: [Qemu-devel] [PATCH 0/5] Convert the TPM code to use tracing

2018-03-05 Thread Marc-André Lureau
Hi On Sun, Mar 4, 2018 at 10:56 PM, Stefan Berger wrote: > This series of patches converts the TPM code to use tracing rather > than the #define DEBUG_XYZ type of debugging. > > Regards, >Stefan > > Stefan Berger (5): > tpm: convert tpm_crb.c to use trace-events > tpm: convert tpm_passthr

Re: [Qemu-devel] [PATCH v3 11/12] intel_iommu: add framework for PASID AddressSpace management

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 03:52:44PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > Please merge this patch with the next one, since they are basically the > .h and .c sides of the same thing. yes, would do it in next version. Thanks, Yi Liu

Re: [Qemu-devel] [PATCH v3 11/12] intel_iommu: add framework for PASID AddressSpace management

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:00:23PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > +struct VTDDeviceNode { > > +PCIBus *bus; > > +uint8_t devfn; > > +QLIST_ENTRY(VTDDeviceNode) next; > > +}; > > Do you really need VTDDeviceNode? I think can you simply put the >

Re: [Qemu-devel] [PATCH v8 2/2] vhost: used_memslots refactoring

2018-03-05 Thread Zhoujian (jay)
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Friday, March 02, 2018 12:17 AM > To: Zhoujian (jay) > Cc: qemu-devel@nongnu.org; imamm...@redhat.com; Huangweidong (C) > ; wangxin (U) ; Gonglei > (Arei) ; Liuzhe (Ahriy, Euler) > Subject: Re: [PATCH v8 2/

Re: [Qemu-devel] [PATCH] sparc: fix leon3 casa instruction when MMU is disabled

2018-03-05 Thread KONRAD Frederic
On 03/02/2018 08:04 PM, Richard Henderson wrote: On 03/02/2018 01:59 AM, KONRAD Frederic wrote: From: KONRAD Frederic Since the commit af7a06bac7d3abb2da48ef3277d2a415772d2ae8: `casa [..](10), .., ..` (and probably others alternate space instructions) triggers a data access exception when th

[Qemu-devel] [PATCH v9] vhost: used_memslots refactoring

2018-03-05 Thread Jay Zhou
Used_memslots is shared by vhost kernel and user, it is equal to dev->mem->nregions, which is correct for vhost kernel, but not for vhost user, the latter one uses memory regions that have file descriptor. E.g. a VM has a vhost-user NIC and 8(vhost user memslot upper limit) memory slots, it will be

Re: [Qemu-devel] Call for GSoC & Outreachy 2018 mentors & project ideas

2018-03-05 Thread Stefan Hajnoczi
On Tue, Feb 27, 2018 at 08:54:11PM -0300, Philippe Mathieu-Daudé wrote: > On 02/14/2018 04:00 PM, Alistair Francis wrote: > > On Mon, Jan 15, 2018 at 4:59 AM, Stefan Hajnoczi wrote: > >> On Thu, Jan 11, 2018 at 03:25:56PM -0800, Alistair Francis wrote: > >>> On Wed, Jan 10, 2018 at 4:52 AM, Stefan

Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu()

2018-03-05 Thread Liu, Yi L
On Mon, Mar 05, 2018 at 04:27:43PM +0800, Peter Xu wrote: > On Thu, Mar 01, 2018 at 06:33:31PM +0800, Liu, Yi L wrote: > > [...] > > > -void pci_setup_iommu(PCIBus *bus, PCIIOMMUFunc fn, void *opaque) > > +void pci_device_notify_iommu(PCIDevice *dev, PCIDevNotifyType type) > > { > > -bus->io

Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu()

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 05:06:56PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > +pci_device_notify_iommu(pdev, PCI_NTY_DEV_ADD); > > + > > pci_setup_sva_ops(pdev, &vfio_pci_sva_ops); > > > > return; > > @@ -3134,6 +3136,7 @@ static void vfio_exitfn(PCIDevi

[Qemu-devel] [PULL 00/13] Ui 20180305 patches

2018-03-05 Thread Gerd Hoffmann
The following changes since commit 136c67e07869227b21b3f627316e03679ce7b738: Merge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-2018-03-02' into staging (2018-03-02 16:56:20 +) are available in the git repository at: git://git.kraxel.org/qemu tags/ui-201

Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu()

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:12:01PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > This patch adds pci_device_notify_iommu() for notify virtual IOMMU > > emulator when assigned device is added. And adds a new notify_func > > in PCIBus. vIOMMU emulator provides the instance o

Re: [Qemu-devel] [PATCH v6 7/9] vfio/display: core & wireup

2018-03-05 Thread Erik Skultety
> diff --git a/hw/vfio/display.c b/hw/vfio/display.c > new file mode 100644 > index 00..3e997f8a44 > --- /dev/null > +++ b/hw/vfio/display.c > @@ -0,0 +1,56 @@ > +/* > + * display support for mdev based vgpu devices > + * > + * Copyright Red Hat, Inc. 2017 Just curious here since I don't r

[Qemu-devel] [PULL 09/13] configure: opengl doesn't depend on x11

2018-03-05 Thread Gerd Hoffmann
So remove x11 from pkg-config check and don't add x11 cflags/libs to opengl cflags/libs. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-10-kra...@redhat.com --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 3d2aef95

[Qemu-devel] [PULL 06/13] console: add and use qemu_display_find_default

2018-03-05 Thread Gerd Hoffmann
Using the new display registry instead of #ifdefs in vl.c. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-7-kra...@redhat.com --- include/ui/console.h | 1 + ui/console.c | 19 +++ vl.c | 15 +-- 3 files changed, 25 insertions(+

[Qemu-devel] [PULL 07/13] console: add ui module loading support

2018-03-05 Thread Gerd Hoffmann
If a requested user interface is not available, try loading it as module, simliar to block layer modules. Needed to keep things working when followup patches start to build user interfaces as modules. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-8-kra...@redhat.com --- Makefile

[Qemu-devel] [PULL 05/13] egl-headless: switch over to new display registry

2018-03-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-6-kra...@redhat.com --- include/ui/console.h | 3 --- ui/egl-headless.c| 20 +++- vl.c | 12 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/include/ui/console.h b/incl

[Qemu-devel] [PULL 01/13] console: add qemu display registry, add gtk

2018-03-05 Thread Gerd Hoffmann
Add a registry for user interfaces. Add qemu_display_init and qemu_display_early_init helper functions for display initialization. Hook up gtk ui as first user. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-2-kra...@redhat.com --- include/ui/console.h | 32 -

[Qemu-devel] [PULL 04/13] curses: switch over to new display registry

2018-03-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-5-kra...@redhat.com --- include/ui/console.h | 12 ui/curses.c | 14 +- vl.c | 17 ++--- 3 files changed, 15 insertions(+), 28 deletions(-) diff --git a/include/ui/console.

[Qemu-devel] [PULL 11/13] ui/curses: build as module

2018-03-05 Thread Gerd Hoffmann
Also drop curses libs from libs_softmmu. Add CURSES_{CFLAGS,LIBS} variables so we can use them for linking the curses module. Also make target/unicore32/helper.o depend on curses which uses curses directly for some reason ... Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-12-kra.

[Qemu-devel] [PULL 10/13] ui/gtk: build as module

2018-03-05 Thread Gerd Hoffmann
Also drop gtk and vte libs from libs_softmmu, so the libs are not pulled in unless the gtk module actually gets loaded. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-11-kra...@redhat.com --- configure| 5 ++--- ui/Makefile.objs | 17 + 2 files changed, 11

[Qemu-devel] [PULL 02/13] sdl: switch over to new display registry

2018-03-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-3-kra...@redhat.com --- include/ui/console.h | 19 --- ui/sdl.c | 24 +--- ui/sdl2.c| 17 +++-- vl.c | 15 +-- 4 files changed, 29 inse

[Qemu-devel] [PULL 08/13] configure: add X11 vars to config-host.mak

2018-03-05 Thread Gerd Hoffmann
Simplifies handling the X11 dependency, also makes ui/Makefile.objs more readable. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-9-kra...@redhat.com --- configure| 10 -- ui/Makefile.objs | 5 - 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/

[Qemu-devel] [PULL 13/13] ui/sdl: build as module

2018-03-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-14-kra...@redhat.com --- configure| 2 +- ui/Makefile.objs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 269add1187..cb4fdb3573 100755 --- a/configure +++ b/configure @@ -60

[Qemu-devel] [PULL 12/13] audio: rename CONFIG_* to CONFIG_AUDIO_*

2018-03-05 Thread Gerd Hoffmann
This avoids a name clash for CONFIG_SDL, which is used by both sdl video support and sdl audio support. It also more clear that this is a audio driver configuration. Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-13-kra...@redhat.com --- configure | 2 +- audio/audio_i

[Qemu-devel] [PULL 03/13] cocoa: switch over to new display registry

2018-03-05 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 20180301100547.18962-4-kra...@redhat.com --- include/ui/console.h | 12 vl.c | 3 --- ui/cocoa.m | 14 +- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/include/ui/console.h b/include/ui

[Qemu-devel] [PATCH 7/7] address_space_rw: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
address_space_rw is calling address_space_to_flatview but it can be called outside the RCU lock. To fix it, transform flatview_rw into address_space_rw, since flatview_rw is otherwise unused. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- exec.c | 28 ++-- 1

[Qemu-devel] [PATCH 6/7] address_space_map: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
address_space_map is calling address_space_to_flatview but it can be called outside the RCU lock. The function itself is calling rcu_read_lock/rcu_read_unlock, just in the wrong place, so the fix is easy. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- exec.c | 3 ++- 1 file changed

Re: [Qemu-devel] [PATCH v8 00/23] RISC-V QEMU Port Submission

2018-03-05 Thread Richard W.M. Jones
The attached patch is also needed to avoid crashes during various math-heavy test suites. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual

[Qemu-devel] [PATCH 3/7] address_space_write: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
address_space_write is calling address_space_to_flatview but it can be called outside the RCU lock. To fix it, push the rcu_read_lock/unlock pair up from flatview_write to address_space_write. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- exec.c | 37 ++

[Qemu-devel] [PATCH 2/7] memory: inline some performance-sensitive accessors

2018-03-05 Thread Paolo Bonzini
These accessors are called from inlined functions, and the call sequence is much more expensive than just inlining the access. Move the struct declaration to memory-internal.h so that exec.c and memory.c can both use an inline function. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini ---

[Qemu-devel] [PATCH 4/7] address_space_read: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
address_space_read is calling address_space_to_flatview but it can be called outside the RCU lock. To fix it, push the rcu_read_lock/unlock pair up from flatview_read_full to address_space_read's constant size fast path and address_space_read_full. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo

[Qemu-devel] [PATCH 0/7] memory: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
I noticed that the introduction of flatview_{read,write} placed address_space_to_flatview outside the RCU lock. This is wrong and has to be fixed, because address_space_to_flatview does an atomic_rcu_read. These patches fix this one function at a time. Paolo Bonzini (7): openpic_kvm: drop addre

[Qemu-devel] [PATCH 5/7] address_space_access_valid: address_space_to_flatview needs RCU lock

2018-03-05 Thread Paolo Bonzini
address_space_access_valid is calling address_space_to_flatview but it can be called outside the RCU lock. To fix it, push the rcu_read_lock/unlock pair up from flatview_access_valid to address_space_access_valid. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- exec.c | 12 -

[Qemu-devel] [PATCH 1/7] openpic_kvm: drop address_space_to_flatview call

2018-03-05 Thread Paolo Bonzini
The MemoryListener is registered on address_space_memory, there is not much to assert. This currently works because the callback is invoked only once when the listener is registered, but section->fv is the _new_ FlatView, not the old one on later calls and that would break. This confines address_

Re: [Qemu-devel] [PATCH] s390x/sclpconsole: Remove dead code - make _error functions void

2018-03-05 Thread Cornelia Huck
On Mon, 5 Mar 2018 09:07:17 +0100 Christian Borntraeger wrote: > On 03/04/2018 02:45 PM, Nia Alarie wrote: > > These functions always return 0. By changing their return type to > > void, some dead code can be removed. > > the event facility part looks ok, but I am asking myself if we should >

Re: [Qemu-devel] [PATCH v3 05/12] hw/pci: introduce PCISVAOps to PCIDevice

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:10:48PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > +void pci_setup_sva_ops(PCIDevice *dev, PCISVAOps *ops) > > +{ > > +if (dev) { > > +dev->sva_ops = ops; > > +} > > +return; > > +} > > + > > Better: > > { > assert(op

Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu()

2018-03-05 Thread Peter Xu
On Thu, Mar 01, 2018 at 06:33:31PM +0800, Liu, Yi L wrote: [...] > -void pci_setup_iommu(PCIBus *bus, PCIIOMMUFunc fn, void *opaque) > +void pci_device_notify_iommu(PCIDevice *dev, PCIDevNotifyType type) > { > -bus->iommu_fn = fn; > +PCIBus *bus = PCI_BUS(pci_get_bus(dev)); > +PCIBus

Re: [Qemu-devel] [PATCH v3 03/12] hw/core: introduce IOMMUSVAContext for virt-SVA

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:13:17PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > +void iommu_sva_notifier_unregister(IOMMUSVAContext *sva_ctx, > > + IOMMUSVANotifier *notifier) > > +{ > > +IOMMUSVANotifier *cur, *next; > > + > > +Q

Re: [Qemu-devel] [PATCH v3 00/12] Introduce new iommu notifier framework for virt-SVA

2018-03-05 Thread Liu, Yi L
On Thu, Mar 01, 2018 at 03:32:22PM +0200, Michael S. Tsirkin wrote: > On Thu, Mar 01, 2018 at 06:31:50PM +0800, Liu, Yi L wrote: > > This patchset is to introduce a notifier framework for virt-SVA. > > You may find virt-SVA design details from the link below. > > > > https://lists.gnu.org/archive/

Re: [Qemu-devel] [PATCH v3 04/12] vfio/pci: add notify framework based on IOMMUSVAContext

2018-03-05 Thread Liu, Yi L
On Mon, Mar 05, 2018 at 03:45:55PM +0800, Peter Xu wrote: > On Thu, Mar 01, 2018 at 06:33:27PM +0800, Liu, Yi L wrote: > > This patch introduces a notify framework for IOMMUSVAContext.sva_notifiers. > > > > Signed-off-by: Liu, Yi L > > --- > > hw/vfio/common.c | 1 + > > include/hw/

Re: [Qemu-devel] [PATCH QEMU v1 0/4] multiboot: bss_end_addr can be zero / cleanup

2018-03-05 Thread Kevin Wolf
Am 02.03.2018 um 20:32 hat Jack Schwartz geschrieben: > Hi Kevin. > > On 2018-01-15 07:54, Kevin Wolf wrote: > > Am 21.12.2017 um 18:25 hat Jack Schwartz geschrieben: > > > Properly account for the possibility of multiboot kernels with a zero > > > bss_end_addr. The Multiboot Specification, secti

Re: [Qemu-devel] [PATCH] s390x/sclpconsole: Remove dead code - make _error functions void

2018-03-05 Thread Christian Borntraeger
On 03/04/2018 02:45 PM, Nia Alarie wrote: > These functions always return 0. By changing their return type to > void, some dead code can be removed. the event facility part looks ok, but I am asking myself if we should go a step further. Do we need the exit callback at all? We can certainly keep i

Re: [Qemu-devel] [PATCH 0/9] chardev: qio related non-default context support

2018-03-05 Thread Peter Xu
On Sun, Mar 04, 2018 at 11:43:39PM -0800, no-re...@patchew.org wrote: [...] > TESTdecodetree.py > LINKtests/check-qdict > LINKtests/test-char > LINKtests/check-qnum > LINKtests/check-qstring > LINKtests/check-qlist > LINKtests/check-qnull > tests/test-cha

<    1   2   3   4