Re: [Qemu-devel] [PATCH 1/2] target/ppc: Use vector variable shifts for VSL, VSR, VSRA

2019-05-19 Thread Aleksandar Markovic
On May 18, 2019 9:21 PM, "Richard Henderson" wrote: > > The gvec expanders take care of masking the shift amount > against the element width. > > Signed-off-by: Richard Henderson > --- > target/ppc/helper.h | 12 -- > target/ppc/int_helper.c | 37 -

Re: [Qemu-devel] [PATCH v3 3/8] tests: Add migration multifd test

2019-05-19 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:39PM +0200, Juan Quintela wrote: >We set multifd-channels. > >Reviewed-by: Dr. David Alan Gilbert >Reviewed-by: Thomas Huth >Signed-off-by: Juan Quintela >--- > tests/migration-test.c | 48 ++ > 1 file changed, 48 insertions(+)

Re: [Qemu-devel] [PATCH v3 2/8] migration-test: rename parameter to parameter_int

2019-05-19 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:38PM +0200, Juan Quintela wrote: >We would need _str ones on the next patch. > >Signed-off-by: Juan Quintela Reviewed-by: Wei Yang >--- > tests/migration-test.c | 49 +- > 1 file changed, 25 insertions(+), 24 deletions(-) > >d

Re: [Qemu-devel] [PATCH v3 0/9] s390x: new guest features

2019-05-19 Thread Cornelia Huck
On Mon, 29 Apr 2019 05:02:41 -0400 Christian Borntraeger wrote: > Adding gen15. > > v2->v3: - merge deprecation patch into gen 15 patch > - fix comments > - use gen15a and gen15b instead of cpuid > v1->v2: - rework csske deprecation > - white space fixes > - also require

Re: [Qemu-devel] [PATCH v3 1/8] migration: fix multifd_recv event typo

2019-05-19 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:37PM +0200, Juan Quintela wrote: >It uses num in multifd_send(). Make it coherent. > >Signed-off-by: Juan Quintela Reviewed-by: Wei Yang >--- > migration/trace-events | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/migration/trace-events b/m

Re: [Qemu-devel] [PATCH v3 0/8] WIP: Multifd compression support

2019-05-19 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:36PM +0200, Juan Quintela wrote: >v3: >- improve the code >- address David and Markus comments >- make compression code into methods > so we can add any other method ading just three functions > >Please review, as far as I know everything is ok now. > >Todo: Add zstd

Re: [Qemu-devel] [PULL 01/36] spapr: Support NVIDIA V100 GPU with NVLink2

2019-05-19 Thread David Gibson
On Fri, May 17, 2019 at 07:37:04PM +0200, Laurent Vivier wrote: > On 26/04/2019 08:05, David Gibson wrote: > > From: Alexey Kardashevskiy > > > > NVIDIA V100 GPUs have on-board RAM which is mapped into the host memory > > space and accessible as normal RAM via an NVLink bus. The VFIO-PCI driver >

Re: [Qemu-devel] [PATCH] spapr: Print out extra hints when CAS negotiation of interrupt mode fails

2019-05-19 Thread David Gibson
On Thu, May 16, 2019 at 09:36:57AM +0200, Greg Kurz wrote: > Let's suggest to the user how the machine should be configured to allow > the guest to boot successfully. > > Suggested-by: Satheesh Rajendran > Signed-off-by: Greg Kurz Applied, thanks. > --- > hw/ppc/spapr_hcall.c |4 ++-- > 1

Re: [Qemu-devel] [PATCH] spapr: Add forgotten capability to migration stream

2019-05-19 Thread David Gibson
On Fri, May 17, 2019 at 07:14:30PM +0200, Greg Kurz wrote: > On Fri, 17 May 2019 14:18:23 +1000 > David Gibson wrote: > > > spapr machine capabilities are supposed to be sent in the migration stream > > so that we can sanity check the source and destination have compatible > > configuration. Unf

[Qemu-devel] [PATCH] linux-headers: Update linux headers to 5.2-rc1

2019-05-19 Thread Cédric Le Goater
Update the QEMU copy of the Linux headers to upstream 5.2-rc1 (linux commit a188339ca5a3). Signed-off-by: Cédric Le Goater --- .../infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 15 +- include/standard-headers/drm/drm_fourcc.h | 114 +++- include/standard-headers/linux/ethtool.h |

Re: [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall

2019-05-19 Thread Laurent Vivier
On 19/05/2019 22:36, Richard Henderson wrote: Based-on: <20190519201953.20161-1-richard.hender...@linaro.org> Aka "linux-user: path, clone, sparc, shmat fixes" Version 6 was https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04794.html Since v5, I've fixed the ioctl failure that Laurent f

Re: [Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-19 Thread Laurent Vivier
On 20/05/2019 08:05, David Gibson wrote: > When we added support for NVLink2 passthrough devices, we changed the > phb_placement hook to handle the placement of NVLink2 bridges' specific > resources. For compatibility we use a version that doesn't do this > allocation for old machine types. > >

[Qemu-devel] [PATCH v2] [RFC] qcow2: add compression type feature

2019-05-19 Thread Denis Plotnikov
The patch adds some preparation parts for incompatible compression type feature into QCOW2 header that indicates that *all* compressed clusters must be (de)compressed using a certain compression type. It is implied that the compression type is set on the image creation and can be changed only late

[Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-19 Thread David Gibson
When we added support for NVLink2 passthrough devices, we changed the phb_placement hook to handle the placement of NVLink2 bridges' specific resources. For compatibility we use a version that doesn't do this allocation for old machine types. However, because of the delay between when the patch

Re: [Qemu-devel] [PATCH 0/2] target/ppc: make use of new gvec expanders

2019-05-19 Thread David Gibson
On Sat, May 18, 2019 at 12:14:28PM -0700, Richard Henderson wrote: > Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> > Aka "tcg: misc gvec improvements". > > Since Mark's initial patches, we've added (or are adding) > generic support for variable vector shifts and bitsel. Applied,

Re: [Qemu-devel] [PATCH 0/2] target/ppc: make use of new gvec expanders

2019-05-19 Thread David Gibson
On Mon, May 20, 2019 at 02:01:42PM +1000, David Gibson wrote: > On Sat, May 18, 2019 at 12:14:28PM -0700, Richard Henderson wrote: > > Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> > > Aka "tcg: misc gvec improvements". > > > > Since Mark's initial patches, we've added (or are ad

Re: [Qemu-devel] [PATCH v7 62/74] linux-user: Split out rt_sigqueueinfo, rt_tgsigqueueinfo

2019-05-19 Thread Aleksandar Markovic
On May 19, 2019 11:25 PM, "Richard Henderson" wrote: > > This does drop the (questionable) siginfo_t printing. > But since we already do not handle more important things > in this area like sigset_t, this does not feel a loss. > What is the most questionable here is the reasoning “we don't handle

Re: [Qemu-devel] [Qemu-ppc] [PATCH v8 6/6] migration: Block migration while handling machine check

2019-05-19 Thread Aravinda Prasad
On Thursday 16 May 2019 07:47 PM, Dr. David Alan Gilbert wrote: > * Aravinda Prasad (aravi...@linux.vnet.ibm.com) wrote: >> >> >> On Thursday 16 May 2019 04:24 PM, Greg Kurz wrote: >>> On Mon, 22 Apr 2019 12:33:45 +0530 >>> Aravinda Prasad wrote: >>> Block VM migration requests until the m

Re: [Qemu-devel] [PATCH v9 20/27] gdbstub: Implement target halted (? pkt) with new infra

2019-05-19 Thread Jon Doron
On Wed, May 15, 2019 at 8:20 PM Alex Bennée wrote: > > > Jon Doron writes: > > > Signed-off-by: Jon Doron > > --- > > gdbstub.c | 36 ++-- > > 1 file changed, 26 insertions(+), 10 deletions(-) > > > > diff --git a/gdbstub.c b/gdbstub.c > > index 2fd0d66f4d..d6781

Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console

2019-05-19 Thread Gerd Hoffmann
On Sun, May 19, 2019 at 12:55:09AM +0200, Philippe Mathieu-Daudé wrote: > Hi Gerd, > > On 5/10/19 12:46 PM, Gerd Hoffmann wrote: > > Instead of fetching the prebuilt image from patchew download the install > > iso and prepare the image locally. Install to disk, using the serial > > console. Crea

Re: [Qemu-devel] [PATCH v9 26/27] gdbstub: Add support to read a MSR for KVM target

2019-05-19 Thread Jon Doron
Ah cool did not know about that I will look into it and perhaps can do a different patchset just for this no need to add it on top of this patchset On Wed, May 15, 2019 at 8:48 PM Alex Bennée wrote: > > > Jon Doron writes: > > > gdb> maint packet qqemu.kvm.Rdmsr:MsrIndex > > gdbserver already ha

Re: [Qemu-devel] [PATCH v9 24/27] gdbstub: Add another handler for setting qemu.sstep

2019-05-19 Thread Jon Doron
On Wed, May 15, 2019 at 8:44 PM Alex Bennée wrote: > > > Jon Doron writes: > > > Follow GDB general query/set packet conventions, qemu.sstep can now > > be set with the following command as well: > > gdb> maint packet Qqemu.sstep:Value > > I;m not sure about exposing internal values to a protocol

Re: [Qemu-devel] [PATCH v9 22/27] gdbstub: Implement generic query qemu.Supported

2019-05-19 Thread Jon Doron
I suggest then that I'll squash this commit into the commit that refactors the the Q/q packets and will add the required documentation about this in the commit message. Do you agree? -- Jon. On Wed, May 15, 2019 at 8:41 PM Alex Bennée wrote: > > > Jon Doron writes: > > > qemu.Supported query re

Re: [Qemu-devel] [PATCH v9 17/27] gdbstub: Implement v commands with new infra

2019-05-19 Thread Jon Doron
On Wed, May 15, 2019 at 8:06 PM Alex Bennée wrote: > > > Jon Doron writes: > > > Signed-off-by: Jon Doron > > --- > > gdbstub.c | 170 +++--- > > 1 file changed, 110 insertions(+), 60 deletions(-) > > > > diff --git a/gdbstub.c b/gdbstub.c > > ind

Re: [Qemu-devel] [PATCH v9 2/7] virtio-pmem: Add virtio pmem driver

2019-05-19 Thread Pankaj Gupta
> > > > On 5/16/19 10:35 PM, Pankaj Gupta wrote: > > > Can I take it your reviewed/acked-by? or tested-by tag? for the virtio > > > patch :)I don't feel that I have enough expertise to give the reviewed-by > > > tag, but you can > > take my acked-by + tested-by. > > > > Acked-by: Jakub Staron

Re: [Qemu-devel] [PATCH v9 2/7] virtio-pmem: Add virtio pmem driver

2019-05-19 Thread Pankaj Gupta
> On 5/16/19 10:35 PM, Pankaj Gupta wrote: > > Can I take it your reviewed/acked-by? or tested-by tag? for the virtio > > patch :)I don't feel that I have enough expertise to give the reviewed-by > > tag, but you can > take my acked-by + tested-by. > > Acked-by: Jakub Staron > Tested-by: Jakub

[Qemu-devel] [PATCH v2 15/15] migration: Split log_clear() into smaller chunks

2019-05-19 Thread Peter Xu
Currently we are doing log_clear() right after log_sync() which mostly keeps the old behavior when log_clear() was still part of log_sync(). This patch tries to further optimize the migration log_clear() code path to split huge log_clear()s into smaller chunks. We do this by spliting the whole gu

[Qemu-devel] [PATCH v2 13/15] qmp: Expose manual_dirty_log_protect via "query-kvm"

2019-05-19 Thread Peter Xu
Expose the new capability via "query-kvm" QMP command too so we know whether that's turned on on the source VM when we want. Signed-off-by: Peter Xu --- accel/kvm/kvm-all.c | 5 + include/sysemu/kvm.h | 2 ++ qapi/misc.json | 6 +- qmp.c| 1 + 4 files changed, 13 i

[Qemu-devel] [PATCH v2 12/15] kvm: Support KVM_CLEAR_DIRTY_LOG

2019-05-19 Thread Peter Xu
Firstly detect the interface using KVM_CAP_MANUAL_DIRTY_LOG_PROTECT and mark it. When failed to enable the new feature we'll fall back to the old sync. Provide the log_clear() hook for the memory listeners for both address spaces of KVM (normal system memory, and SMM) and deliever the clear messa

[Qemu-devel] [PATCH v2 14/15] hmp: Expose manual_dirty_log_protect via "info kvm"

2019-05-19 Thread Peter Xu
Signed-off-by: Peter Xu --- hmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hmp.c b/hmp.c index 56a3ed7375..f203a25740 100644 --- a/hmp.c +++ b/hmp.c @@ -102,6 +102,8 @@ void hmp_info_kvm(Monitor *mon, const QDict *qdict) } else { monitor_printf(mon, "not compiled\n");

[Qemu-devel] [PATCH v2 09/15] kvm: Update comments for sync_dirty_bitmap

2019-05-19 Thread Peter Xu
It's obviously obsolete. Do some update. Signed-off-by: Peter Xu --- accel/kvm/kvm-all.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 524c4ddfbd..b686531586 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-a

[Qemu-devel] [PATCH v2 10/15] kvm: Persistent per kvmslot dirty bitmap

2019-05-19 Thread Peter Xu
When synchronizing dirty bitmap from kernel KVM we do it in a per-kvmslot fashion and we allocate the userspace bitmap for each of the ioctl. This patch instead make the bitmap cache be persistent then we don't need to g_malloc0() every time. More importantly, the cached per-kvmslot dirty bitmap

[Qemu-devel] [PATCH v2 08/15] memory: Introduce memory listener hook log_clear()

2019-05-19 Thread Peter Xu
Introduce a new memory region listener hook log_clear() to allow the listeners to hook onto the points where the dirty bitmap is cleared by the bitmap users. Previously log_sync() contains two operations: - dirty bitmap collection, and, - dirty bitmap clear on remote site. Let's take KVM as

[Qemu-devel] [PATCH v2 07/15] memory: Pass mr into snapshot_and_clear_dirty

2019-05-19 Thread Peter Xu
Also we change the 2nd parameter of it to be the relative offset within the memory region. This is to be used in follow up patches. Signed-off-by: Peter Xu --- exec.c | 3 ++- include/exec/ram_addr.h | 2 +- memory.c| 3 +-- 3 files changed, 4 insertions(+), 4 de

[Qemu-devel] [PATCH v2 02/15] linux-headers: Update to Linux 5.2-rc1

2019-05-19 Thread Peter Xu
Signed-off-by: Peter Xu --- .../infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 15 +- include/standard-headers/drm/drm_fourcc.h | 114 +++- include/standard-headers/linux/ethtool.h | 48 +++-- .../linux/input-event-codes.h | 9 +- include/standard-headers/linux/i

Re: [Qemu-devel] [PATCH v2 3/8] target/sparc: Define an enumeration for accessing env->regwptr

2019-05-19 Thread Richard Henderson
On 5/14/19 10:44 PM, Philippe Mathieu-Daudé wrote: >> +/* Windowed register indexes. */ >> +enum { >> +WREG_O0, >> +WREG_O1, >> +WREG_O2, >> +WREG_O3, >> +WREG_O4, >> +WREG_O5, >> +WREG_O6, >> +WREG_O7, >> + >> +WREG_L0, >> +WREG_L1, >> +WREG_L2, >> +

[Qemu-devel] [PATCH v2 06/15] bitmap: Add bitmap_copy_with_{src|dst}_offset()

2019-05-19 Thread Peter Xu
These helpers copy the source bitmap to destination bitmap with a shift either on the src or dst bitmap. Meanwhile, we never have bitmap tests but we should. This patch also introduces the initial test cases for utils/bitmap.c but it only tests the newly introduced functions. Signed-off-by: Pete

[Qemu-devel] [PATCH v2 05/15] memory: Don't set migration bitmap when without migration

2019-05-19 Thread Peter Xu
Similar to 9460dee4b2 ("memory: do not touch code dirty bitmap unless TCG is enabled", 2015-06-05) but for the migration bitmap - we can skip the MIGRATION bitmap update if migration not enabled. Reviewed-by: Paolo Bonzini Signed-off-by: Peter Xu --- include/exec/memory.h | 2 ++ include/exe

[Qemu-devel] [PATCH v2 04/15] memory: Remove memory_region_get_dirty()

2019-05-19 Thread Peter Xu
It's never used anywhere. Reviewed-by: Paolo Bonzini Signed-off-by: Peter Xu --- include/exec/memory.h | 17 - memory.c | 8 2 files changed, 25 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 9144a47f57..e6140e8a04 100644 --

[Qemu-devel] [PATCH v2 00/15] kvm/migration: support KVM_CLEAR_DIRTY_LOG

2019-05-19 Thread Peter Xu
This is v2 of the QEMU's KVM_CLEAR_DIRTY_LOG series. The major reason for the repost is due to the new kvm capability recently introduced in Linux 5.2-rc1 which is released just one day ago while the old cap is obsolete now, so we'll need a linux header update. v2: - rebase, add r-bs from Paolo -

[Qemu-devel] [PATCH v2 11/15] kvm: Introduce slots lock for memory listener

2019-05-19 Thread Peter Xu
Introduce KVMMemoryListener.slots_lock to protect the slots inside the kvm memory listener. Currently it is close to useless because all the KVM code path now is always protected by the BQL. But it'll start to make sense in follow up patches where we might do remote dirty bitmap clear and also we

[Qemu-devel] [PATCH v2 03/15] migration: No need to take rcu during sync_dirty_bitmap

2019-05-19 Thread Peter Xu
cpu_physical_memory_sync_dirty_bitmap() has one RAMBlock* as parameter, which means that it must be with RCU read lock held already. Taking it again inside seems redundant. Removing it. Instead comment on the functions about the RCU read lock. Reviewed-by: Paolo Bonzini Signed-off-by: Peter Xu

[Qemu-devel] [PATCH v2 01/15] checkpatch: Allow SPDX-License-Identifier

2019-05-19 Thread Peter Xu
According to: https://spdx.org/ids-how, let's still allow QEMU to use the SPDX license identifier: // SPDX-License-Identifier: *** Signed-off-by: Peter Xu --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.p

Re: [Qemu-devel] [PATCH v2 2/2] linux-user: add pseudo /proc/hardware for m68k

2019-05-19 Thread Richard Henderson
On 5/17/19 6:31 AM, Laurent Vivier wrote: > Debian console-setup uses /proc/hardware to guess the keyboard layout. > If the file /proc/hardware cannot be opened, the installation fails. > > This patch adds a pseudo /proc/hardware file to report the model of > the machine. Instead of reporting a kn

Re: [Qemu-devel] [PATCH v2 1/2] linux-user: add pseudo /proc/cpuinfo for sparc

2019-05-19 Thread Richard Henderson
On 5/17/19 6:31 AM, Laurent Vivier wrote: > SPARC libc6 debian package wants to check the cpu level to be > installed or not: > > WARNING: This machine has a SPARC V8 or earlier class processor. > Debian lenny and later does not support such old hardware > any longer. > > To avoid this, it

Re: [Qemu-devel] [PATCH v5 5/6] hw/acpi: Consolidate build_mcfg to pci.c

2019-05-19 Thread Wei Yang
On Mon, May 20, 2019 at 08:59:56AM +0800, Wei Yang wrote: >Now we have two identical build_mcfg functions. > >Consolidate them in acpi/pci.c. > >Signed-off-by: Wei Yang >Reviewed-by: Philippe Mathieu-Daudé >Reviewed-by: Igor Mammedov Oops, I should drop these SOB. > >--- >v4: > * ACPI_PCI dep

Re: [Qemu-devel] [PATCH v3 3/8] tests: Add migration multifd test

2019-05-19 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:39PM +0200, Juan Quintela wrote: >We set multifd-channels. > >Reviewed-by: Dr. David Alan Gilbert >Reviewed-by: Thomas Huth >Signed-off-by: Juan Quintela >--- > tests/migration-test.c | 48 ++ > 1 file changed, 48 insertions(+)

Re: [Qemu-devel] [PATCH 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription

2019-05-19 Thread Li Qiang
Alex Williamson 于2019年5月18日周六 下午10:20写道: > On Fri, 17 May 2019 20:28:09 -0700 > Li Qiang wrote: > > > As the vmstate structure names aren't related with > > the QOM type names. > > Seems contrary to the first patch in the series. > > No, once there is a discussion of this: -->https://lists.gnu.o

Re: [Qemu-devel] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO

2019-05-19 Thread Li Qiang
Alex Williamson 于2019年5月18日周六 下午10:18写道: > On Fri, 17 May 2019 20:28:08 -0700 > Li Qiang wrote: > > Why? (No commit message, nor cover letter) > > Once I think these are trivial so no cover letter and lack some commit message. I will add some commit message in the next revision. For this patch

[Qemu-devel] [PATCH v5 5/6] hw/acpi: Consolidate build_mcfg to pci.c

2019-05-19 Thread Wei Yang
Now we have two identical build_mcfg functions. Consolidate them in acpi/pci.c. Signed-off-by: Wei Yang Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Igor Mammedov --- v4: * ACPI_PCI depends on both ACPI and PCI * rebase on latest master, adjust arm Kconfig v3: * adjust changelog bas

[Qemu-devel] [PATCH v5 3/6] i386, acpi: remove mcfg_ prefix in AcpiMcfgInfo members

2019-05-19 Thread Wei Yang
This is obvious the member in AcpiMcfgInfo describe MCFG's property. Remove the mcfg_ prefix. Signed-off-by: Wei Yang Suggested-by: Igor Mammedov Reviewed-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé --- hw/i386/acpi-build.c | 14 +++--- 1 file changed, 7 insertions(+), 7 de

[Qemu-devel] [PATCH v5 4/6] hw/arm/virt-acpi-build: pass AcpiMcfgInfo to build_mcfg()

2019-05-19 Thread Wei Yang
To build MCFG, two information is necessary: * bus number * base address Abstract these two information to AcpiMcfgInfo so that build_mcfg and build_mcfg_q35 will have the same declaration. Signed-off-by: Wei Yang Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Igor Mammedov --- v4:

[Qemu-devel] [PATCH v5 6/6] acpi: pci: use build_append_foo() API to construct MCFG

2019-05-19 Thread Wei Yang
build_append_foo() API doesn't need explicit endianness conversions which eliminates a source of errors and it makes build_mcfg() look like declarative definition of MCFG table in ACPI spec, which makes it easy to review. Signed-off-by: Wei Yang Suggested-by: Igor Mammedov Reviewed-by: Igor Mamm

[Qemu-devel] [PATCH v5 1/6] q35: acpi: do not create dummy MCFG table

2019-05-19 Thread Wei Yang
From: Igor Mammedov Dummy table (with signature "QEMU") creation came from original SeaBIOS codebase. And QEMU would have to keep it around if there were Q35 machine that depended on keeping ACPI tables blob constant size. Luckily there were no versioned Q35 machine types before commit: (since

[Qemu-devel] [PATCH v5 2/6] hw/arm/virt-acpi-build: remove unnecessary variable mcfg_start

2019-05-19 Thread Wei Yang
mcfg_start points to the start of MCFG table and is used in build_header. While this information could be derived from mcfg. This patch removes the unnecessary variable mcfg_start. Signed-off-by: Wei Yang Reviewed-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/virt-acpi-buil

[Qemu-devel] [PATCH v5 0/6] Extract build_mcfg

2019-05-19 Thread Wei Yang
This patch set tries to generalize MCFG table build process. And it is based on one un-merged patch from Igor, which is included in this serials. v4->v5: * ACPI_PCI depends on both ACPI and PCI * rebase on latest master, adjust arm Kconfig * miss the reserved[8] of MCFG, add it back

Re: [Qemu-devel] [PATCH] hw/acpi: ACPI_PCI should depends on both ACPI and PCI

2019-05-19 Thread Wei Yang
On Fri, May 17, 2019 at 04:29:03PM +0200, Igor Mammedov wrote: >On Fri, 17 May 2019 12:59:57 + >Wei Yang wrote: > >> On Fri, May 17, 2019 at 01:11:16PM +0200, Igor Mammedov wrote: >> >On Fri, 17 May 2019 08:51:14 +0800 >> >Wei Yang wrote: >> > >> >> Pointed out by Philippe Mathieu-Daud?? . >>

Re: [Qemu-devel] [PULL 00/37] pci, pc, virtio: features, fixes

2019-05-19 Thread Wei Yang
On Fri, May 17, 2019 at 01:13:15PM +0200, Igor Mammedov wrote: >On Fri, 17 May 2019 10:59:03 +0800 >Wei Yang wrote: > [..] >> >> Well, I hope this will not block the merge. >> >> I took a look in the change of default-configs/arm-softmmu.mak. The general >> idea from Thomas is put those hard-c

[Qemu-devel] [Bug 1829682] [NEW] QEMU PPC SYSTEM regression - 3.1.0 and GIT - Fail to boot AIX

2019-05-19 Thread Ivan Warren via Qemu-devel
Public bug reported: Built from source on a debian system Linux db08 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) Last git commit (from queued gdibson repository) starting AIX 7.2 TL 2 SP 2 with the following : (the inst

[Qemu-devel] [Bug 1829682] Re: QEMU PPC SYSTEM regression - 3.1.0 and GIT - Fail to boot AIX

2019-05-19 Thread Ivan Warren via Qemu-devel
Forgot that part (debugger output) KDB(0)> wherre^H ^H^H ^He^M si_pvthread+00 STACK:^M [0008F418]dispatch+98 (0338, 02DC3838,^M F1000816B0036CF0 [??])^M [00234E34]flih_util+000440 ()^M Exception (02743408) ^M iar : 00AD0088 msr : 80001032

[Qemu-devel] [PATCH v7 74/74] linux-user: Split out getpriority, setpriority

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 ++ linux-user/syscall-proc.inc.c | 28 linux-user/syscall.c | 18 -- linux-user/strace.list| 6 -- 4 files changed, 30 insertions(+), 24 deletions(-) diff -

[Qemu-devel] [PATCH v7 72/74] linux-user: Split out reboot

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-proc.inc.c | 18 ++ linux-user/syscall.c | 13 - linux-user/strace.list| 3 --- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/linux-user/s

[Qemu-devel] [PATCH v7 68/74] linux-user: Split out select, _newselect

2019-05-19 Thread Richard Henderson
This removes the printing of the fdset outputs. It's hard to see how this could have been reliable in a multi-threaded program, saving syscall arguments to global variables. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 11 linux-user/strace.c | 80 --

[Qemu-devel] [PATCH v7 69/74] linux-user: Split out pselect6

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-file.inc.c | 96 +++ linux-user/syscall.c | 103 -- linux-user/strace.list| 3 - 4 files changed, 97 insertions(+), 106 de

[Qemu-devel] [PATCH v7 73/74] linux-user: Split out truncate, truncate64, ftruncate, ftruncate64

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 16 +++ linux-user/syscall-file.inc.c | 32 + linux-user/syscall.c | 38 --- linux-user/strace.list| 12 --- 4 files changed, 48 in

[Qemu-devel] [PATCH v7 64/74] linux-user: Split out gethostname, sethostname

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/syscall-proc.inc.c | 28 linux-user/syscall.c | 19 --- linux-user/strace.list| 6 -- 4 files changed, 32 insertions(+), 25 deletions(-) dif

[Qemu-devel] [PATCH v7 58/74] linux-user: Split out sigprocmask, rt_sigprocmask

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 6 ++ linux-user/syscall.h | 1 + linux-user/strace.c | 44 +++-- linux-user/syscall-sig.inc.c | 123 +++ linux-user/syscall.c | 109 --

[Qemu-devel] [PATCH v7 71/74] linux-user: Split out swapon, swapoff

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 ++ linux-user/syscall-file.inc.c | 26 ++ linux-user/syscall.c | 16 linux-user/strace.list| 6 -- 4 files changed, 28 insertions(+), 22 deletions(-) diff --git

[Qemu-devel] [PATCH v7 63/74] linux-user: Split out sigreturn, rt_sigreturn

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 4 linux-user/syscall-sig.inc.c | 18 ++ linux-user/syscall.c | 12 linux-user/strace.list | 6 -- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/linux-user/

[Qemu-devel] [PATCH v7 51/74] linux-user: Split out setpgid

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-proc.inc.c | 5 + linux-user/syscall.c | 2 -- linux-user/strace.list| 3 --- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall-defs.h b/linux-user/sys

[Qemu-devel] [PATCH v7 48/74] linux-user: Fix types in ioctl logging

2019-05-19 Thread Richard Henderson
There is no need to cast "int" to "long"; just use the correct format in the first place. Signed-off-by: Richard Henderson --- linux-user/syscall-ioctl.inc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall-ioctl.inc.c b/linux-user/syscall-ioctl.inc.c

[Qemu-devel] [PATCH v7 67/74] linux-user: Split out gettimeofday, settimeofday

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 ++ linux-user/syscall-time.inc.c | 33 + linux-user/syscall.c | 31 --- linux-user/strace.list| 6 -- 4 files changed, 35 insertions(+), 37 de

[Qemu-devel] [PATCH v7 70/74] linux-user: Split out symlink, symlinkat

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/strace.c | 27 --- linux-user/syscall-file.inc.c | 28 linux-user/syscall.c | 30 -- linux-user/strace.list

[Qemu-devel] [PATCH v7 62/74] linux-user: Split out rt_sigqueueinfo, rt_tgsigqueueinfo

2019-05-19 Thread Richard Henderson
This does drop the (questionable) siginfo_t printing. But since we already do not handle more important things in this area like sigset_t, this does not feel a loss. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 2 + linux-user/strace.c | 138

[Qemu-devel] [PATCH v7 66/74] linux-user: Split out getrusage

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-proc.inc.c | 12 linux-user/syscall.c | 9 - linux-user/strace.list| 3 --- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall-def

[Qemu-devel] [PATCH v7 61/74] linux-user: Split out rt_sigtimedwait

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 1 + linux-user/syscall-sig.inc.c | 37 linux-user/syscall.c | 36 --- linux-user/strace.list | 3 --- 4 files changed, 38 insertions(+), 39 del

[Qemu-devel] [PATCH v7 60/74] linux-user: Split out sigsuspend, rt_sigsuspend

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 6 + linux-user/syscall-sig.inc.c | 51 linux-user/syscall.c | 42 ++--- linux-user/strace.list | 6 - 4 files changed, 59 insertions(+), 46 del

[Qemu-devel] [PATCH v7 43/74] linux-user: Split out pipe, pipe2

2019-05-19 Thread Richard Henderson
Note that pipe2 is universally available for guests. Implement host support with syscall when !CONFIG_PIPE2. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 10 ++ linux-user/syscall-file.inc.c | 51 +++ linux-user/syscall.c | 65 +++-

[Qemu-devel] [PATCH v7 65/74] linux-user: Split out getrlimit, setrlimit

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 6 linux-user/syscall-proc.inc.c | 52 +++ linux-user/syscall.c | 46 --- linux-user/strace.list| 6 4 files changed, 58 insertions(+), 52

[Qemu-devel] [PATCH v7 39/74] linux-user: Split out kill

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 1 + linux-user/syscall.h | 7 +++- linux-user/strace.c | 76 ++-- linux-user/syscall-sig.inc.c | 5 +++ linux-user/syscall.c | 2 - linux-user/strace.list | 3 -

[Qemu-devel] [PATCH v7 57/74] linux-user: Split out sgetmask, ssetmask

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 6 ++ linux-user/syscall-sig.inc.c | 32 linux-user/syscall.c | 27 --- linux-user/strace.list | 6 -- 4 files changed, 38 insertions(+), 33 deletio

[Qemu-devel] [PATCH v7 56/74] linux-user: Split out sigaction, rt_sigaction

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 10 ++ linux-user/strace.c | 14 --- linux-user/syscall-sig.inc.c | 172 +++ linux-user/syscall.c | 160 linux-user/strace.list | 6 -- 5

[Qemu-devel] [PATCH v7 59/74] linux-user: Split out sigpending, rt_sigpending

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 4 linux-user/syscall-sig.inc.c | 45 linux-user/syscall.c | 36 - linux-user/strace.list | 6 - 4 files changed, 49 insertions(+), 42 dele

[Qemu-devel] [PATCH v7 53/74] linux-user: Split out chroot

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/strace.c | 12 linux-user/syscall-file.inc.c | 13 + linux-user/syscall.c | 6 -- linux-user/strace.list| 3 --- 5 files changed, 14 insertions(+), 21 de

[Qemu-devel] [PATCH v7 54/74] linux-user: Split out getpgid, getpgrp

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/syscall-proc.inc.c | 12 linux-user/syscall.c | 6 -- linux-user/strace.list| 6 -- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall-

[Qemu-devel] [PATCH v7 42/74] linux-user: Split out dup, dup2, dup3

2019-05-19 Thread Richard Henderson
Note that dup3 is universally available for guests. Implement host support with syscall when !CONFIG_DUP3. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 5 + linux-user/syscall-file.inc.c | 42 +++ linux-user/syscall.c | 33 +++

[Qemu-devel] [PATCH v7 47/74] linux-user: Split out ioctl

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- v7: Do not accidentally change type of "cmd". --- linux-user/syscall-defs.h | 1 + linux-user/syscall-ioctl.inc.c | 873 + linux-user/syscall.c | 852 +--- linux-user/strace.list

[Qemu-devel] [PATCH v7 55/74] linux-user: Split out getsid, setsid

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 ++ linux-user/syscall-proc.inc.c | 10 ++ linux-user/syscall.c | 4 linux-user/strace.list| 6 -- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/linux-user/syscall-defs.h

[Qemu-devel] [PATCH v7 33/74] linux-user: Split out stime

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 3 +++ linux-user/syscall-time.inc.c | 12 linux-user/syscall.c | 9 - linux-user/strace.list| 3 --- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall-d

[Qemu-devel] [PATCH v7 49/74] linux-user: Remove sentinel from ioctl_entries

2019-05-19 Thread Richard Henderson
Iterate based on the size of the array instead. Signed-off-by: Richard Henderson --- linux-user/syscall-ioctl.inc.c | 14 +++--- linux-user/syscall.c | 6 ++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall-ioctl.inc.c b/linux-user/syscall

[Qemu-devel] [PATCH v7 52/74] linux-user: Split out umask

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-file.inc.c | 5 + linux-user/syscall.c | 2 -- linux-user/strace.list| 3 --- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall-defs.h b/linux-user/sys

[Qemu-devel] [PATCH v7 45/74] linux-user: Split out acct

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-file.inc.c | 18 ++ linux-user/syscall.c | 11 --- linux-user/strace.list| 3 --- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/linux-user/sys

[Qemu-devel] [PATCH v7 50/74] linux-user: Split out fcntl, fcntl64

2019-05-19 Thread Richard Henderson
Preserving strace functionality is tricky with this one. Rearrange to lookup structures that contain the data for both execution and strace for each command. Do not allow lookup of 64-bit fcntl commands from 32-bit fcntl. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 6

[Qemu-devel] [PATCH v7 29/74] linux-user: Split out lseek, llseek

2019-05-19 Thread Richard Henderson
Canonicalise the target syscall name on llseek (new kernels) instead of _llseek (old kernels). Always use host lseek(3) rather than attempting to use the host llseek(2). Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 6 ++ linux-user/syscall.h | 1 + linux-u

[Qemu-devel] [PATCH v7 36/74] linux-user: Split out access, faccessat

2019-05-19 Thread Richard Henderson
Note that faccessat is unconditionally available. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/syscall.h | 1 + linux-user/strace.c | 33 - linux-user/syscall-file.inc.c | 25 +

[Qemu-devel] [PATCH v7 46/74] linux-user: Move syscall_init to the end

2019-05-19 Thread Richard Henderson
No functional change. This will aid moving everything related to ioctls to a separate file. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 113 +++ 1 file changed, 61 insertions(+), 52 deletions(-) diff --git a/linux-user/syscall.c b/linux-u

[Qemu-devel] [PATCH v7 41/74] linux-user: Split out mkdir, mkdirat

2019-05-19 Thread Richard Henderson
Note that mkdirat is universally available. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/strace.c | 27 --- linux-user/syscall-file.inc.c | 25 + linux-user/syscall.c | 16 -

[Qemu-devel] [PATCH v7 26/74] linux-user: Split out time

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 3 +++ linux-user/syscall-time.inc.c | 32 linux-user/syscall.c | 13 + linux-user/strace.list| 3 --- 4 files changed, 36 insertions(+), 15 deletions(-) create mo

[Qemu-devel] [PATCH v7 34/74] linux-user: Split out alarm, pause

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 6 ++ linux-user/syscall-sig.inc.c | 36 linux-user/syscall.c | 12 +--- linux-user/strace.list | 6 -- 4 files changed, 43 insertions(+), 17 deletions(-) crea

[Qemu-devel] [PATCH v7 44/74] linux-user: Split out times

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-proc.inc.c | 25 + linux-user/syscall.c | 18 -- linux-user/strace.list| 3 --- 4 files changed, 26 insertions(+), 21 deletions(-) diff --git a/

  1   2   3   >