Re: [Qemu-devel] [PATCH v1] migration: change blocktime type to uint32_t

2018-01-28 Thread Alexey Perevalov
On 01/25/2018 11:02 PM, Dr. David Alan Gilbert wrote: * Alexey Perevalov (a.pereva...@samsung.com) wrote: Initially int64_t was used, but on PowerPC architecture, clang doesn't have atomic_*_8 function, so it produces link time error. QEMU is working with time as with 64bit value, but by fact 3

Re: [Qemu-devel] [PULL 1/1] kvm-all: Partially reverts 4fe6d78b2e to remove the cleanup call

2018-01-28 Thread Gal Hammer
On Mon, Jan 29, 2018 at 6:45 AM, Michael S. Tsirkin wrote: > On Sun, Jan 28, 2018 at 04:07:27PM +0200, Gal Hammer wrote: >> Hi, >> >> Sorry for a bad patch and the problems it may have caused. > > Not at all, these things happen. Do you have short term plans to work > on a new version? I already

Re: [Qemu-devel] [PATCH V4 0/7] CAN bus support for QEMU (SJA1000 PCI so far)

2018-01-28 Thread Oleksij Rempel
Hi, On 28.01.2018 10:02, Pavel Pisa wrote: > Hello Paolo, > > On Friday 26 of January 2018 12:12:32 Paolo Bonzini wrote: >> Coincidentially, I have some time on a flight next Monday. :) I >> obviously cannot really _test_ anything, but I can at least do the >> changes below and set up all the QO

Re: [Qemu-devel] [PATCH] docs: Add docs/devel/testing.rst

2018-01-28 Thread Fam Zheng
On Mon, Jan 29, 2018 at 2:56 PM, Thomas Huth wrote: > On 29.01.2018 04:31, Fam Zheng wrote: > [...] >> +1. Create a new source file. For example, ``tests/test-foo.c``. > [...] >> +1. Create a new source file for the test. (More than one file can be added >> as >> + necessary.) For example, ``te

Re: [Qemu-devel] [PATCH v2] migration: change blocktime type to uint32_t

2018-01-28 Thread Alexey Perevalov
On 01/26/2018 09:14 PM, Dr. David Alan Gilbert wrote: * Alexey Perevalov (a.pereva...@samsung.com) wrote: Initially int64_t was used, but on PowerPC architecture, clang doesn't have atomic_*_8 function, so it produces link time error. QEMU is working with time as with 64bit value, but by fact 3

Re: [Qemu-devel] [PATCH v2 1/2] i386: Add Intel Processor Trace feature support

2018-01-28 Thread Kang, Luwei
> > From: Chao Peng > > > > Expose Intel Processor Trace feature to guest. > > > > In order to make this feature migration-safe, new feature word > > information "FEAT_INTEL_PT_EBX" and "FEAT_INTEL_PT_ECX" be added. > > Some constant value initialized in CPUID[0x14].0x01 to guarantee get > > same

Re: [Qemu-devel] [PATCH qemu] configure: Allow capstone=git only if git update is not disabled

2018-01-28 Thread Thomas Huth
On 29.01.2018 07:44, Alexey Kardashevskiy wrote: > On 15/01/18 17:48, Thomas Huth wrote: >> On 15.01.2018 03:35, Alexey Kardashevskiy wrote: >>> Even with --disable-git-update, ./configure tries updating the capstone >>> submodule instead of marking it "no"; this disables capstone submodule >>> if

Re: [Qemu-devel] [PATCH] docs: Add docs/devel/testing.rst

2018-01-28 Thread Thomas Huth
On 29.01.2018 04:31, Fam Zheng wrote: [...] > +1. Create a new source file. For example, ``tests/test-foo.c``. [...] > +1. Create a new source file for the test. (More than one file can be added as > + necessary.) For example, ``tests/test-foo-device.c``. 2. Write the test > + code with the gl

Re: [Qemu-devel] [PATCH qemu] configure: Allow capstone=git only if git update is not disabled

2018-01-28 Thread Alexey Kardashevskiy
On 15/01/18 17:48, Thomas Huth wrote: > On 15.01.2018 03:35, Alexey Kardashevskiy wrote: >> Even with --disable-git-update, ./configure tries updating the capstone >> submodule instead of marking it "no"; this disables capstone submodule >> if git update is disabled. >> >> Signed-off-by: Alexey Kar

Re: [Qemu-devel] [PATCH] docs: Add docs/devel/testing.rst

2018-01-28 Thread Fam Zheng
On Mon, Jan 29, 2018 at 11:31 AM, Fam Zheng wrote: > +VM testing > +== I should have noted that this section is not new but an md->rst convert of ./tests/vm/README. The latter should be made a pointer to this one once it is merged. Fam

Re: [Qemu-devel] [PATCH qemu v2] machine: Polish -machine xxx,help

2018-01-28 Thread Alexey Kardashevskiy
On 15/12/17 15:47, Alexey Kardashevskiy wrote: > On 26/10/17 12:41, Alexey Kardashevskiy wrote: >> The "-machine xxx,help" prints kernel-irqchip possible values as >> "OnOffSplit", this adds separators to the printed line. >> >> Also, since only lower case letters are specified in qapi/common.json,

Re: [Qemu-devel] [PULL 1/1] kvm-all: Partially reverts 4fe6d78b2e to remove the cleanup call

2018-01-28 Thread Michael S. Tsirkin
On Sun, Jan 28, 2018 at 04:07:27PM +0200, Gal Hammer wrote: > Hi, > > Sorry for a bad patch and the problems it may have caused. Not at all, these things happen. Do you have short term plans to work on a new version?

Re: [Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180129

2018-01-28 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180129032826.16876-1-da...@gibson.dropbear.id.au Subject: [Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180129 === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$

Re: [Qemu-devel] [PATCH qemu v4] RFC: vfio-pci: Allow mmap of MSIX BAR

2018-01-28 Thread Alexey Kardashevskiy
On 26/01/18 00:56, Auger Eric wrote: > Hi Alexey, > > On 25/01/18 05:22, Alexey Kardashevskiy wrote: >> This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability >> which tells that a region with MSIX data can be mapped entirely, i.e. >> the VFIO PCI driver won't prevent MSIX vectors a

Re: [Qemu-devel] [PATCH] block/mirror: fix fail to cancel when VM has heavy BLK IO

2018-01-28 Thread Liang Li
On Fri, Jan 26, 2018 at 08:04:08AM -0600, Eric Blake wrote: > On 01/26/2018 12:46 AM, Liang Li wrote: > > The current QMP command is: > > > > { 'command': 'block-job-cancel', 'data': { 'device': 'str', '*force': > > 'bool' } } > > > > 'force' has other meaning which is not used by libvirt, for t

[Qemu-devel] [PULL 10/12] target/ppc/spapr_caps: Add new tristate cap safe_bounds_check

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh Add new tristate cap cap-sbbc to represent the speculation barrier bounds checking capability. Signed-off-by: Suraj Jitindar Singh Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/spapr.c | 2 ++ hw/ppc/spapr_caps.c| 21

[Qemu-devel] [PULL 09/12] target/ppc/spapr_caps: Add new tristate cap safe_cache

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh Add new tristate cap cap-cfpc to represent the cache flush on privilege change capability. Signed-off-by: Suraj Jitindar Singh Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/spapr.c | 2 ++ hw/ppc/spapr_caps.c| 36

[Qemu-devel] [PATCH] docs: Add docs/devel/testing.rst

2018-01-28 Thread Fam Zheng
To make our efforts on QEMU testing easier to consume by contributors, let's add a document. For example, Patchew reports build errors on patches that should be relativly easy to reproduce with a few steps, and it is much nicer if there is such a documentation that it can refer to. This focues on

[Qemu-devel] [PULL 08/12] target/ppc/spapr_caps: Add support for tristate spapr_capabilities

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh spapr_caps are used to represent the level of support for various capabilities related to the spapr machine type. Currently there is only support for boolean capabilities. Add support for tristate capabilities by implementing their get/set functions. These capabilities

[Qemu-devel] [PULL 11/12] target/ppc/spapr_caps: Add new tristate cap safe_indirect_branch

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh Add new tristate cap cap-ibs to represent the indirect branch serialisation capability. Signed-off-by: Suraj Jitindar Singh Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/spapr.c | 2 ++ hw/ppc/spapr_caps.c| 21 +

[Qemu-devel] [PULL 04/12] uninorth: convert to trace-events

2018-01-28 Thread David Gibson
From: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/pci-host/trace-events | 6 ++ hw/pci-host/uninorth.c | 24 +--- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/hw/pci-host/trace-events b/hw/pci-host/trace-eve

[Qemu-devel] [PULL 05/12] input: add missing newline from trace-events

2018-01-28 Thread David Gibson
From: Mark Cave-Ayland This was accidentally omitted from 77cb0f5aaf "Split adb.c into adb.c, adb-mouse.c and adb-kbd.c". Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/input/trace-events | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/input/trace-events b/hw/input

[Qemu-devel] [PULL 06/12] spapr_pci: fix MSI/MSIX selection

2018-01-28 Thread David Gibson
From: Greg Kurz In various place we don't correctly check if the device supports MSI or MSI-X. This can cause devices to be advertised with MSI support, even if they only support MSI-X (like virtio-pci-* devices for example): ethernet@0 { ibm,req#msi = <0x

[Qemu-devel] [PULL 07/12] target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch]

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh Add three new kvm capabilities used to represent the level of host support for three corresponding workarounds. Host support for each of the capabilities is queried through the new ioctl KVM_PPC_GET_CPU_CHAR which returns four uint64 quantities. The first two, characte

[Qemu-devel] [PULL 02/12] ppc: Deprecate qemu-system-ppcemb

2018-01-28 Thread David Gibson
From: "th...@redhat.com" qemu-system-ppcemb has been once split of qemu-system-ppc to support CPU page sizes < 4096 for some of the embedded 4xx PowerPC CPUs. However, there was hardly any OS available in the wild that really used such small page sizes (Linux uses 4096 on PPC), so there is no kno

[Qemu-devel] [PULL 01/12] ppc/pnv: fix PnvChip redefinition in

2018-01-28 Thread David Gibson
From: Cédric Le Goater This redefinition generates warnings on some clang compilers and older gcc4.4. ...include/hw/ppc/pnv_xscom.h:24:24: warning: redefinition of typedef 'PnvChip' is a C11 feature [-Wtypedef-redefinition] typedef struct PnvChip PnvChip; ^ ...inclu

[Qemu-devel] [PULL 03/12] grackle: convert to trace-events

2018-01-28 Thread David Gibson
From: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/pci-host/grackle.c| 13 ++--- hw/pci-host/trace-events | 3 +++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index 3caf1ccb37.

[Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180129

2018-01-28 Thread David Gibson
The following changes since commit e607bbee553cfe73072870cef458cfa4e78133e2: Merge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2018-01-26.for-upstream' into staging (2018-01-26 14:24:25 +) are available in the Git repository at: git://github.com/dgibson/qemu.git tags/p

[Qemu-devel] [PULL 12/12] target/ppc/spapr: Add H-Call H_GET_CPU_CHARACTERISTICS

2018-01-28 Thread David Gibson
From: Suraj Jitindar Singh The new H-Call H_GET_CPU_CHARACTERISTICS is used by the guest to query behaviours and available characteristics of the cpu. Implement the handler for this new H-Call which formulates its response based on the setting of the spapr_caps cap-cfpc, cap-sbbc and cap-ibs. S

Re: [Qemu-devel] [PATCH] spapr_pci: fix MSI/MSIX selection

2018-01-28 Thread Alexey Kardashevskiy
On 27/01/18 09:25, Greg Kurz wrote: > In various place we don't correctly check if the device supports MSI or > MSI-X. This can cause devices to be advertised with MSI support, even > if they only support MSI-X (like virtio-pci-* devices for example): > > ethernet@0 { >

Re: [Qemu-devel] [QEMU-PPC] [PATCH V5 2/7] target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate

2018-01-28 Thread Alexey Kardashevskiy
On 29/01/18 10:43, Suraj Jitindar Singh wrote: > On Fri, 2018-01-19 at 16:18 +1100, Alexey Kardashevskiy wrote: >> On 19/01/18 16:00, Suraj Jitindar Singh wrote: >>> The vmstate description and the contained needed function for >>> migration >>> of spapr_caps is the same for each cap, with the name

[Qemu-devel] [Bug 1745895] [NEW] Unable to migrate vhost-net to virtio-1.0-capable kernel

2018-01-28 Thread Michael Chapman
Public bug reported: I am running QEMU 2.11 (from upstream source, not Red Hat package) on stock RHEL 6 and RHEL 7 kernels. Only the RHEL 7 kernel supports VIRTIO_F_VERSION_1 in its vhost-net driver. When migrating a guest using vhost-net from the RHEL 6 host to RHEL 7, the PCI config is rejected

Re: [Qemu-devel] [QEMU-PPC] [PATCH V5 0/7] target/ppc: Rework spapr_caps

2018-01-28 Thread David Gibson
On Fri, Jan 19, 2018 at 03:59:58PM +1100, Suraj Jitindar Singh wrote: > The following patch series adds 3 new tristate capabilities and their > associated handling. > > A new H-Call is implemented which a guest will use to query the > requirement for and availability of workarounds for certain cp

Re: [Qemu-devel] [PULL v4 00/43] hppa-softmmu

2018-01-28 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180128231528.22719-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PULL v4 00/43] hppa-softmmu === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --

Re: [Qemu-devel] [QEMU-PPC] [PATCH V5 2/7] target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate

2018-01-28 Thread Suraj Jitindar Singh
On Fri, 2018-01-19 at 16:18 +1100, Alexey Kardashevskiy wrote: > On 19/01/18 16:00, Suraj Jitindar Singh wrote: > > The vmstate description and the contained needed function for > > migration > > of spapr_caps is the same for each cap, with the name of the cap > > substituted. As such introduce a m

[Qemu-devel] [PULL v4 36/43] target/hppa: Implement a pause instruction

2018-01-28 Thread Richard Henderson
This is an extension to the base ISA, but we can use this in the kernel idle loop to reduce the host cpu time consumed. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 36 1 file changed, 36 insertions(+) diff --git a/target/hppa/translate.c b

[Qemu-devel] [PULL v4 43/43] target/hppa: Implement PROBE for system mode

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/helper.h| 3 +-- target/hppa/op_helper.c | 34 +++--- target/hppa/translate.c | 20 3 files changed, 40 insertions(+), 17 deletions(-) diff --git a/target/hppa/helper.h b/target/hppa/helper.h i

[Qemu-devel] [PULL v4 34/43] target/hppa: Fix comment

2018-01-28 Thread Richard Henderson
From: Helge Deller Signed-off-by: Helge Deller Message-Id: <20171212212319.ga31...@ls3530.fritz.box> Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index a93e86c9

[Qemu-devel] [PULL v4 39/43] hw/hppa: Implement DINO system board

2018-01-28 Thread Richard Henderson
From: Helge Deller Now that we have the prerequisites in target/hppa/, implement the hardware for a PA7100LC. This also enables build for hppa-softmmu. Signed-off-by: Helge Deller [rth: Since it is all new code, squashed all branch development withing hw/hppa/ to a single patch.] Signed-off-by

[Qemu-devel] [PULL v4 32/43] target/hppa: Only use EXCP_DTLB_MISS

2018-01-28 Thread Richard Henderson
Unknown why this works, but if we return EXCP_ITLB_MISS we will triple-fault the first userland instruction fetch. Is it something to do with having a combined I/DTLB? Signed-off-by: Richard Henderson --- target/hppa/mem_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --g

[Qemu-devel] [PULL v4 27/43] target/hppa: Implement halt and reset instructions

2018-01-28 Thread Richard Henderson
From: Helge Deller Real hardware would use an external device to control the power. But for the moment let's invent instructions in reserved space, to be used by our custom firmware. Signed-off-by: Helge Deller Signed-off-by: Richard Henderson --- target/hppa/helper.h| 2 ++ target/hppa/

[Qemu-devel] [PULL v4 41/43] hw/hppa: Add MAINTAINERS entry

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 753e7996ce..bee6b2bec7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -133,6 +133,7 @@ HPPA (PA-RISC) M: Richard Henderson S: Maintained F: target/hppa/ +F: hw/h

[Qemu-devel] [PULL v4 42/43] target/hppa: Fix 32-bit operand masks for 0E FCVT

2018-01-28 Thread Richard Henderson
We masked the wrong bits, which prevented some of the 32-bit R registers. E.g. "fcnvxf,sgl,sgl fr22R,fr6R". Signed-off-by: Richard Henderson --- target/hppa/translate.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/trans

[Qemu-devel] [PULL v4 35/43] target/hppa: Implement LDSID for system mode

2018-01-28 Thread Richard Henderson
From: Helge Deller Signed-off-by: Helge Deller Message-Id: <20180102203145.ga17...@ls3530.fritz.box> Signed-off-by: Richard Henderson --- target/hppa/translate.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c

[Qemu-devel] [PULL v4 23/43] target/hppa: Implement LDWA

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 5b77688fc0..3d441ef4ac 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.

[Qemu-devel] [PULL v4 38/43] target/hppa: Enable MTTCG

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 6 ++ configure | 1 + 2 files changed, 7 insertions(+) diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 70af823a15..7640c81221 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -42,6 +42,12 @@ #define TARGET_P

[Qemu-devel] [PULL v4 37/43] target/hppa: Implement STWA

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index d84090d479..b9b097acc9 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@

[Qemu-devel] [PULL v4 30/43] target/hppa: Add migration for the cpu

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 1 + target/hppa/cpu.c | 1 + target/hppa/machine.c | 181 ++ target/hppa/Makefile.objs | 1 + 4 files changed, 184 insertions(+) create mode 100644 target/hppa/machine.

[Qemu-devel] [PULL v4 26/43] target/hppa: Implement SYNCDMA insn

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 41e28ff64c..f3942b1baf 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2312,7 +2312,8 @

[Qemu-devel] [PULL v4 29/43] target/hppa: Add system registers to gdbstub

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/gdbstub.c | 156 ++ 1 file changed, 156 insertions(+) diff --git a/target/hppa/gdbstub.c b/target/hppa/gdbstub.c index fc27aec073..e2e9c4d77f 100644 --- a/target/hppa/gdbstub.c +++ b/target/hppa/gdbs

[Qemu-devel] [PULL v4 31/43] target/hppa: Implement B,GATE insn

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 1 + target/hppa/mem_helper.c | 8 target/hppa/translate.c | 48 3 files changed, 57 insertions(+) diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 5fab9e1394..70a

[Qemu-devel] [PULL v4 21/43] target/hppa: Implement I*TLBA and I*TLBP insns

2018-01-28 Thread Richard Henderson
The TLB can now be populated, but it cannot yet be cleared. Signed-off-by: Richard Henderson --- target/hppa/helper.h | 2 ++ target/hppa/mem_helper.c | 80 ++-- target/hppa/translate.c | 54 ++-- 3 files changed, 132

[Qemu-devel] [PULL v4 33/43] target/hppa: Increase number of temp regs

2018-01-28 Thread Richard Henderson
HP-UX 10.20 CD contains "add r0, r0, r27" in a delay slot, which uses at least 5 temps. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 5b7824f065..a93e86c9e3

[Qemu-devel] [PULL v4 25/43] target/hppa: Implement LCI

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 20 1 file changed, 20 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 082221f450..41e28ff64c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2462,6 +2462

[Qemu-devel] [PULL v4 22/43] target/hppa: Implement P*TLB and P*TLBE insns

2018-01-28 Thread Richard Henderson
We now have all of the TLB manipulation instructions. Signed-off-by: Richard Henderson --- target/hppa/helper.h | 2 ++ target/hppa/mem_helper.c | 37 + target/hppa/translate.c | 40 3 files changed, 79 insertions

[Qemu-devel] [PULL v4 18/43] target/hppa: Implement external interrupts

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 1 + target/hppa/helper.h | 2 ++ target/hppa/cpu.c| 6 + target/hppa/int_helper.c | 59 target/hppa/translate.c | 16 - 5 files changed, 83 insertions(

[Qemu-devel] [PULL v4 20/43] target/hppa: Log unimplemented instructions

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1cd57f5a90..6288bb9f67 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -4218,6 +4218,8 @@ static DisasJu

[Qemu-devel] [PULL v4 28/43] target/hppa: Optimize for flat addressing space

2018-01-28 Thread Richard Henderson
Linux sets sr4-sr7 all to the same value, which means that we need not do any runtime computation to find out what space to use in forming the GVA. Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 11 ++- target/hppa/translate.c | 29 - 2 files c

[Qemu-devel] [PULL v4 15/43] target/hppa: Avoid privilege level decrease during branches

2018-01-28 Thread Richard Henderson
These instructions force the destination privilege level of the branch destination to be no higher than current. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 52 - 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/tar

[Qemu-devel] [PULL v4 24/43] target/hppa: Implement LPA

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 1 + target/hppa/helper.h | 1 + target/hppa/mem_helper.c | 21 + target/hppa/op_helper.c | 10 +- target/hppa/translate.c | 30 ++ 5 files changed, 58 insertions(+), 5

[Qemu-devel] [PULL v4 19/43] target/hppa: Implement the interval timer

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 2 ++ target/hppa/helper.h | 3 +++ target/hppa/cpu.c| 8 target/hppa/int_helper.c | 6 ++ target/hppa/op_helper.c | 36 target/hppa/translate.c | 16 ---

[Qemu-devel] [PULL v4 13/43] target/hppa: Implement unaligned access trap

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index ca619578dd..4d0b760baa 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -48,6 +48,23 @@ static void h

[Qemu-devel] [PULL v4 16/43] target/hppa: Implement IASQ

2018-01-28 Thread Richard Henderson
Any one TB will have only one space value. If we change spaces, we change TBs. Thus BE and BEV must exit the TB immediately. Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 53 - target/hppa/cpu.c| 15 ++ target/hppa/helper.c | 3 +- targ

[Qemu-devel] [PULL v4 14/43] target/hppa: Use space registers in data operations

2018-01-28 Thread Richard Henderson
This changes the system virtual address width to 64-bit and incorporates the space registers into load/store operations. Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 14 ++ target/hppa/translate.c | 334 +++- 2 files changed, 201 ins

[Qemu-devel] [PULL v4 11/43] target/hppa: Implement rfi

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 1 + target/hppa/helper.h| 2 ++ target/hppa/op_helper.c | 24 target/hppa/translate.c | 30 -- 4 files changed, 55 insertions(+), 2 deletions(-) diff --git a/target/hppa/cpu

[Qemu-devel] [PULL v4 09/43] target/hppa: Add control registers

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/hppa/target_cpu.h | 2 +- target/hppa/cpu.h| 23 +++ linux-user/main.c| 4 +-- linux-user/signal.c | 4 +-- target/hppa/gdbstub.c| 12 target/hppa/mem_helper.c | 2 +- target/hppa

[Qemu-devel] [PULL v4 17/43] target/hppa: Implement tlb_fill

2018-01-28 Thread Richard Henderson
However since HPPA has a software-managed TLB, and the relevant TLB manipulation instructions are not implemented, this does not actually do anything. Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 31 - target/hppa/int_helper.c | 14 +++- target/hppa/mem_helper.c | 16

[Qemu-devel] [PULL v4 08/43] target/hppa: Add space registers

2018-01-28 Thread Richard Henderson
Not used where they should be yet, but we can copy them. Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 1 + target/hppa/helper.c| 14 ++ target/hppa/translate.c | 73 + 3 files changed, 77 insertions(+), 11 deletions(-

[Qemu-devel] [PULL v4 12/43] target/hppa: Fill in hppa_cpu_do_interrupt/hppa_cpu_exec_interrupt

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.c | 2 + target/hppa/helper.c | 63 - target/hppa/int_helper.c | 176 ++ target/hppa/translate.c | 16 - target/hppa/Makefile.objs | 1 + 5 files changed, 192

[Qemu-devel] [PULL v4 07/43] target/hppa: Implement the system mask instructions

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/helper.h| 4 +++ target/hppa/op_helper.c | 14 target/hppa/translate.c | 96 - 3 files changed, 113 insertions(+), 1 deletion(-) diff --git a/target/hppa/helper.h b/target/hppa/helper.h

[Qemu-devel] [PULL v4 05/43] target/hppa: Split address size from register size

2018-01-28 Thread Richard Henderson
For system mode, we will need 64-bit virtual addresses even when we have 32-bit register sizes. Since the rest of QEMU equates TARGET_LONG_BITS with the address size, redefine everything related to register size in terms of a new TARGET_REGISTER_BITS. Signed-off-by: Richard Henderson --- target

[Qemu-devel] [PULL v4 06/43] target/hppa: Implement mmu_idx from IA privilege level

2018-01-28 Thread Richard Henderson
Most aspects of privilege are not yet handled. But this gives us the start from which to begin checking. Signed-off-by: Richard Henderson --- target/hppa/cpu.h | 19 + target/hppa/cpu.c | 2 +- target/hppa/translate.c | 55 ++-

[Qemu-devel] [PULL v4 10/43] target/hppa: Adjust insn mask for mfctl, w

2018-01-28 Thread Richard Henderson
While the E bit is only used for pa2.0 mfctl,w from sar, the otherwise reserved bit does not appear to be decoded. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c in

[Qemu-devel] [PULL v4 03/43] target/hppa: Disable gateway page emulation for system mode

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 31d9a2a31b..8e357cc60c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/tran

[Qemu-devel] [PULL v4 00/43] hppa-softmmu

2018-01-28 Thread Richard Henderson
6 14:24:25 +) are available in the Git repository at: git://github.com/rth7680/qemu.git tags/pull-hppa-20180128 for you to fetch changes up to 129ffd7265832fb748dc04e48dc761bfcd8508d3: target/hppa: Implement PROBE for system mode (2018-01-28 14:1

[Qemu-devel] [PULL v4 04/43] target/hppa: Define hardware exception types

2018-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 39 +++ linux-user/main.c| 26 ++--- target/hppa/helper.c | 61 ++-- target/hppa/mem_helper.c | 4 +++- target/hppa/op_helper.c |

[Qemu-devel] [PULL v4 01/43] target/hppa: Skeleton support for hppa-softmmu

2018-01-28 Thread Richard Henderson
From: Helge Deller With the addition of default-configs/hppa-softmmu.mak, this will compile. It is not enabled with this patch, however. Signed-off-by: Helge Deller Signed-off-by: Richard Henderson --- include/sysemu/arch_init.h | 1 + target/hppa/cpu.h | 1 + arch_init.c

[Qemu-devel] [PULL v4 02/43] target/hppa: Define the rest of the PSW

2018-01-28 Thread Richard Henderson
We don't actually do anything with most of the bits yet, but at least they have names and we have somewhere to store them. Signed-off-by: Richard Henderson --- target/hppa/cpu.h| 47 ++ target/hppa/helper.c | 53

Re: [Qemu-devel] [PATCH] linux-user: Use *at functions to implement interp_prefix

2018-01-28 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180128221510.13722-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH] linux-user: Use *at functions to implement interp_prefix === TEST SCRIPT BEGIN === #!/bin/b

[Qemu-devel] [PATCH] linux-user: Use *at functions to implement interp_prefix

2018-01-28 Thread Richard Henderson
From: Richard Henderson If the interp_prefix is a complete chroot, it may have a *lot* of files. Setting up the cache for this is quite expensive. For the most part, we can use the *at versions of various syscalls to attempt the operation in the prefix. For the few cases that remain, use facces

Re: [Qemu-devel] [PATCH 00/11] linux-user: improve NETLINK strace

2018-01-28 Thread Philippe Mathieu-Daudé
On Sun, Jan 28, 2018 at 8:12 AM, Guido Günther wrote: > Hi, > On Wed, Jan 24, 2018 at 10:01:15AM -0300, Philippe Mathieu-Daudé wrote: >> Few patches I'v been writting while trying to figure out this issue: >> http://lists.nongnu.org/archive/html/qemu-arm/2018-01/msg00514.html > > Whole series > >

Re: [Qemu-devel] [PATCH v3 00/22] re-factor softfloat and add fp16 functions

2018-01-28 Thread Emilio G. Cota
On Thu, Jan 25, 2018 at 12:59:56 +, Alex Bennée wrote: > Howard Spoelstra writes: (snip) > > Recent tcg optimisations had improved processor and floating point > > performance considerably, but that gain seems to be more than lost for > > the floating point performance. > > > > Any idea what i

Re: [Qemu-devel] [PATCH v2] migration: use s->threshold_size inside migration_update_counters

2018-01-28 Thread Juan Quintela
Wei Wang wrote: > Fixes: b15df1ae50 ("migration: cleanup stats update into function") > The threshold size is changed to be recorded in s->threshold_size. > > Signed-off-by: Wei Wang > Reviewed-by: Peter Xu Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH v2 1/1] migration/savevm.c: set MAX_VM_CMD_PACKAGED_SIZE to 1ul << 32

2018-01-28 Thread Juan Quintela
Daniel Henrique Barboza wrote: > MAX_VM_CMD_PACKAGED_SIZE is a constant used in qemu_savevm_send_packaged > and loadvm_handle_cmd_packaged to determine whether a package is too > big to be sent or received. qemu_savevm_send_packaged is called inside > postcopy_start (migration/migration.c) to send

Re: [Qemu-devel] [PATCH 2/2] migration: Route errors down through migration_channel_connect

2018-01-28 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Route async errors (especially from sockets) down through > migration_channel_connect and on to migrate_fd_connect where they > can be cleaned up. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH 1/2] migration: Allow migrate_fd_connect to take an Error *

2018-01-28 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Allow whatever is performing the connection to pass migrate_fd_connect > an error to indicate there was a problem during connection, an allow > us to clean up. > > The caller must free the error. > > Signed-off-by: Dr. Dav

Re: [Qemu-devel] [RFC v3 00/14] blockjobs: add explicit job management

2018-01-28 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180127020515.27137-1-js...@redhat.com Subject: [Qemu-devel] [RFC v3 00/14] blockjobs: add explicit job management === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total

[Qemu-devel] SDL2 UI behavior of switching views

2018-01-28 Thread Anatoly Trosinenko
When QEMU is run with GTK UI, it changes what is drawn on its single window when I press Ctrl-Alt-{1,2,3,4}. But when I use SDL2 UI, it opens multiple windows: a separate window per each view (display, monitor, serial, parallel). Is it by design or is it a bug? -- Best regards, Anatoly Trosinenko

Re: [Qemu-devel] [PATCH V1 1/1] tests: Add migration test for aarch64

2018-01-28 Thread Peter Maydell
On 26 January 2018 at 19:46, Dr. David Alan Gilbert wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: >> I think the correct fix here is that your test code should turn >> its MMU on. Trying to treat guest RAM as uncacheable doesn't work >> for Arm KVM guests (for the same reason that VGA

Re: [Qemu-devel] [PULL 1/1] kvm-all: Partially reverts 4fe6d78b2e to remove the cleanup call

2018-01-28 Thread Gal Hammer
Hi, Sorry for a bad patch and the problems it may have caused. On Wed, Jan 24, 2018 at 7:08 PM, Michael S. Tsirkin wrote: > On Wed, Jan 24, 2018 at 10:34:02AM +0100, Greg Kurz wrote: >> On Wed, 24 Jan 2018 10:14:57 +0100 >> Paolo Bonzini wrote: >> >> > On 24/01/2018 10:05, Greg Kurz wrote: >> >

Re: [Qemu-devel] [PATCH v3] tpm: add CRB device

2018-01-28 Thread Stefan Berger
On 01/26/2018 08:19 AM, no-re...@patchew.org wrote: Hi, This series failed build test on s390x host. Please find the details below. We can ignore this and the other emails' errors since the patch's dependencies are in my tpm-next tree.

Re: [Qemu-devel] [PATCH 00/11] linux-user: improve NETLINK strace

2018-01-28 Thread Guido Günther
Hi, On Wed, Jan 24, 2018 at 10:01:15AM -0300, Philippe Mathieu-Daudé wrote: > Few patches I'v been writting while trying to figure out this issue: > http://lists.nongnu.org/archive/html/qemu-arm/2018-01/msg00514.html Whole series Tested-By: Guido Günther > > Regards, > > Phil. > > Philippe M

Re: [Qemu-devel] [PATCH V4 0/7] CAN bus support for QEMU (SJA1000 PCI so far)

2018-01-28 Thread Pavel Pisa
Hello Paolo, On Friday 26 of January 2018 12:12:32 Paolo Bonzini wrote: > Coincidentially, I have some time on a flight next Monday. :) I > obviously cannot really _test_ anything, but I can at least do the > changes below and set up all the QOM boilerplate. thanks much for offer to help. Deniz