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

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

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.

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

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

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: [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 > >

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

[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

[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

[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 +++

[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

[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 +-

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:

[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 ++

[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

[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

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

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

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

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:

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

[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

[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

[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 ---

[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

[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é ---

[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

[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

[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 :

[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

[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

[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

[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(-)

[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

[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

[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

[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

[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

[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

[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

[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

[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 --

[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

[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

[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

[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

[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

[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

[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

[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

[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 |

[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 +

[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

[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

[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(-)

[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

[Qemu-devel] [PATCH v7 37/74] linux-user: Split out nice

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

[Qemu-devel] [PATCH v7 22/74] linux-user: Split out unlink, unlinkat, rmdir

2019-05-19 Thread Richard Henderson
Note that unlinkat is universally provided. Implement rmdir in terms of unlinkat. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 7 ++ linux-user/syscall.h | 1 + linux-user/strace.c | 43 ---

[Qemu-devel] [PATCH v7 40/74] linux-user: Split out rename, renameat, renameat2

2019-05-19 Thread Richard Henderson
Note that renameat2 is universally available for guests. Merge sys_renameat2 into the new do_renameat2 helper. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 8 + linux-user/syscall.h | 1 + linux-user/strace.c | 39 ++---

[Qemu-devel] [PATCH v7 27/74] linux-user: Split out mknod, mknodat

2019-05-19 Thread Richard Henderson
Note that mknodat is universally provided. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/strace.c | 39 --- linux-user/syscall-file.inc.c | 26 +++ linux-user/syscall.c | 16

[Qemu-devel] [PATCH v7 32/74] linux-user: Split out umount, umount2

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

[Qemu-devel] [PATCH v7 13/74] linux-user: Split out ipc syscalls

2019-05-19 Thread Richard Henderson
Because of the ipc multiplex syscall, these must be done all at once. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h| 38 ++ linux-user/strace.c | 83 --- linux-user/syscall-ipc.inc.c | 1088 ++ linux-user/syscall.c | 973

[Qemu-devel] [PATCH v7 31/74] linux-user: Split out mount

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall.h | 1 + linux-user/strace.c | 21 +++-- linux-user/syscall-file.inc.c | 48 ++ linux-user/syscall.c | 55

[Qemu-devel] [PATCH v7 38/74] linux-user: Split out sync, syncfs

2019-05-19 Thread Richard Henderson
Note that syncfs is universally available. If !CONFIG_SYNCFS, provide our own syscall replacement. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 ++ linux-user/syscall-file.inc.c | 11 +++ linux-user/syscall.c | 20

[Qemu-devel] [PATCH v7 25/74] linux-user: Split out chdir

2019-05-19 Thread Richard Henderson
Note that chdir is universally provided. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/strace.c | 12 linux-user/syscall-file.inc.c | 14 ++ linux-user/syscall.c | 6 -- linux-user/strace.list| 3

[Qemu-devel] [PATCH v7 35/74] linux-user: Split out utime, utimes, futimesat

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 9 linux-user/strace.c | 41 --- linux-user/syscall-file.inc.c | 95 +++ linux-user/syscall.c | 63 --- linux-user/strace.list| 9

[Qemu-devel] [PATCH v7 30/74] linux-user: Split out getpid, getppid, getxpid

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

[Qemu-devel] [PATCH v7 21/74] linux-user: Split out link, linkat

2019-05-19 Thread Richard Henderson
Note that linkat is universally provided. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 4 linux-user/strace.c | 29 - linux-user/syscall-file.inc.c | 28 linux-user/syscall.c | 32

[Qemu-devel] [PATCH v7 23/74] linux-user: Split out execve

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/strace.c | 32 -- linux-user/syscall-proc.inc.c | 110 ++ linux-user/syscall.c | 97 -- linux-user/strace.list|

[Qemu-devel] [PATCH v7 24/74] linux-user: Implement execveat

2019-05-19 Thread Richard Henderson
A trivial extension to our current execve implementation to support the new(ish) syscall. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 1 + linux-user/syscall-proc.inc.c | 19 ++- linux-user/syscall.c | 3 ++- linux-user/strace.list| 3

[Qemu-devel] [PATCH v7 28/74] linux-user: Split out chmod, fchmod, fchmodat

2019-05-19 Thread Richard Henderson
Note that fchmodat is universally provided. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 5 + linux-user/strace.c | 28 linux-user/syscall-file.inc.c | 30 ++ linux-user/syscall.c | 18

[Qemu-devel] [PATCH v7 19/74] linux-user: Implement rusage argument to waitid

2019-05-19 Thread Richard Henderson
The kernel interface, which we are supposed to be implementing, takes a fifth argument: an rusage pointer akin to wait4. Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 2 +- linux-user/syscall-proc.inc.c | 27 +++ 2 files changed, 20 insertions(+),

[Qemu-devel] [PATCH v7 20/74] linux-user: Split out creat

2019-05-19 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall-defs.h | 3 +++ linux-user/strace.c | 13 - linux-user/syscall-file.inc.c | 16 linux-user/syscall.c | 9 - linux-user/strace.list| 3 --- 5 files changed, 19

  1   2   >