Re: [Qemu-devel] [RFC v6 15/27] monitor: let suspend/resume work even with QMPs

2018-01-21 Thread Peter Xu
On Fri, Jan 12, 2018 at 02:28:32PM +, Stefan Hajnoczi wrote: > On Fri, Jan 12, 2018 at 12:51:49PM +0800, Peter Xu wrote: > > On Mon, Jan 08, 2018 at 04:49:36PM +, Stefan Hajnoczi wrote: > > > On Mon, Dec 25, 2017 at 11:26:13AM +0800, Peter Xu wrote: > > > > On Thu, Dec 21, 2017 at 07:27:38P

Re: [Qemu-devel] [RFC v6 14/27] monitor: let suspend_cnt be thread safe

2018-01-21 Thread Peter Xu
On Fri, Jan 12, 2018 at 03:48:10PM -0600, Eric Blake wrote: > On 12/19/2017 02:45 AM, Peter Xu wrote: > > Monitor code now can be run in more than one thread. Let it be thread > > safe when accessing suspend_cnt counter. > > > > Signed-off-by: Peter Xu > > --- > > monitor.c | 13 +++-- >

Re: [Qemu-devel] [PULL v4 09/29] pci/shpc: Move function to generic header file

2018-01-21 Thread Yuval Shaia
On Thu, Jan 18, 2018 at 03:51:17PM -0600, Eric Blake wrote: > On 01/18/2018 02:44 PM, Michael S. Tsirkin wrote: > > From: Yuval Shaia > > > > This function should be declared in generic header file so we can > > utilize it. > > > > Reviewed-by: Philippe Mathieu-Daudé > > Signed-off-by: Yuval Sh

Re: [Qemu-devel] [PATCH] monitor: Remove legacy "-mon default=on" parameter

2018-01-21 Thread Thomas Huth
On 19.12.2017 17:17, Thomas Huth wrote: > The "default" parameter of the "-mon" option is useless since > QEMU v2.4.0, and marked as deprecated since QEMU v2.8.0. That > should have been long enough to let people update their scripts, > so time to remove it now. > > Signed-off-by: Thomas Huth > -

[Qemu-devel] [Bug 1744654] [NEW] commit: 4fe6d78 "virtio: postpone the execution of event_notifier_cleanup function" will cause vhost-user device crash

2018-01-21 Thread Changpeng Liu
Public bug reported: The new commit: 4fe6d78 break the existing vhost-user devices, such as vhost-user-scsi/blk and vhost-vsocks when exit the host driver, kvm_io_ioeventfd_del will hit the abort(). ** Affects: qemu Importance: Undecided Status: New ** Tags: vhost-user virtio --

Re: [Qemu-devel] [RFC v6 12/27] qmp: negotiate QMP capabilities

2018-01-21 Thread Peter Xu
On Fri, Jan 12, 2018 at 02:57:23PM -0600, Eric Blake wrote: > On 12/19/2017 02:45 AM, Peter Xu wrote: > > After this patch, we will allow QMP clients to enable QMP capabilities > > when sending the first "qmp_capabilities" command. Originally we are > > starting QMP session with no arguments like:

Re: [Qemu-devel] [PATCH v6 0/3] vhost: two fixes and used_memslots refactoring

2018-01-21 Thread Zhoujian (jay)
> So please simply rebase on top of master now. > Hi Michael, Having done that and pls help to review again. Regards, Jay

[Qemu-devel] [PATCH] raw: Disable probing if image format is given by driver-specific options

2018-01-21 Thread Lin Ma
If the user specifies image format through driver-specific options, The format probing should be prohibited and the warning message should not be printed. e.g.: $ qemu-system-x86_64 ... -drive file.file.filename=disk0.raw,file.driver=raw ... WARNING: Image format was not specified for 'disk0.raw'

Re: [Qemu-devel] [PATCH v4 2/7] target/m68k: add MC68040 MMU

2018-01-21 Thread Laurent Vivier
Le 21/01/2018 à 20:57, Rob Landley a écrit : > On 01/18/2018 01:38 PM, Laurent Vivier wrote: >> Only add MC68040 MMU page table processing and related >> registers (Special Status Word, Translation Control Register, >> User Root Pointer and Supervisor Root Pointer). >> >> Transparent Translation Re

[Qemu-devel] [PATCH v7 1/2] vhost: fix memslot limit check

2018-01-21 Thread Jay Zhou
Since used_memslots will be updated to the actual value after registering memory listener for the first time, move the memslots limit checking to the right place. Reviewed-by: Igor Mammedov Signed-off-by: Jay Zhou --- hw/virtio/vhost.c | 19 --- 1 file changed, 12 insertions(+),

Re: [Qemu-devel] [PATCH v10 04/14] migration: Start of multiple fd work

2018-01-21 Thread Peter Xu
On Wed, Jan 10, 2018 at 01:47:13PM +0100, Juan Quintela wrote: > We create new channels for each new thread created. We send through > them in a packed struct. This way we can check we connect the right > channels in both sides. > > Signed-off-by: Juan Quintela > > -- > Split SocketArgs into in

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

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

[Qemu-devel] [PATCH v7 0/2] vhost: used_memslots limit check fixes and refactoring

2018-01-21 Thread Jay Zhou
v6 -> v7: rebase on the master Jay Zhou (2): vhost: fix memslot limit check vhost: used_memslots refactoring hw/virtio/vhost-backend.c | 15 +++- hw/virtio/vhost-user.c| 77 ++- hw/virtio/vhost.c | 30 -

Re: [Qemu-devel] [RFC PATCH v4 13/23] cpus: only take BQL for sleeping threads

2018-01-21 Thread Pavel Dovgalyuk
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > On 19/01/2018 13:36, Pavel Dovgalyuk wrote: > >> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > >> On 19/01/2018 13:25, Pavel Dovgalyuk wrote: > > It means, that I'll have to fix all the has_work function to avoid > > races, > >

Re: [Qemu-devel] [RFC PATCH 1/6] machine: add a deprecated_reason property

2018-01-21 Thread Thomas Huth
On 22.01.2018 03:10, Philippe Mathieu-Daudé wrote: > Hi Thomas, > >> This series introduces 5 different flavors of deprecation >> messages: >> >> * "Too old" >> * "Unmaintained" >> * "The ZCU102 machine has the same features supported" >> * "Use the \"pc\" machine instead" >> * "Obsoleted by the \

[Qemu-devel] [PATCH v2 4/4] memory: do explicit cleanup when remove listeners

2018-01-21 Thread Peter Xu
When unregister memory listeners, we should call, e.g., region_del() (and possibly other undo operations) on every existing memory region sections there, otherwise we may leak resources that are held during the region_add(). This patch undo the stuff for the listeners, which emulates the case when

[Qemu-devel] [PATCH v2 2/4] arm: postpone device listener unregister

2018-01-21 Thread Peter Xu
It's a preparation for follow-up patch to call region_del() in memory_listener_unregister(), otherwise all device addr attached with kvm_devices_head will be reset before calling kvm_arm_set_device_addr. Signed-off-by: Peter Xu --- target/arm/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[Qemu-devel] [PATCH v2 1/4] vhost: add traces for memory listeners

2018-01-21 Thread Peter Xu
Trace these operations on two memory listeners. It helps to verify the new memory listener fix, and good to keep them there. Signed-off-by: Peter Xu --- hw/virtio/trace-events | 6 ++ hw/virtio/vhost.c | 7 +++ 2 files changed, 13 insertions(+) diff --git a/hw/virtio/trace-events

[Qemu-devel] [PATCH v2 3/4] vfio: listener unregister before unset container

2018-01-21 Thread Peter Xu
After next patch, listener unregister will need the container to be alive. Let's move this unregister phase to be before unset container, since that operation will free the backend container in kernel, otherwise we'll get these after next patch: qemu-system-x86_64: VFIO_UNMAP_DMA: -22 qemu-system

[Qemu-devel] [PATCH v2 0/4] memory/vfio: notify region_del() when unregister listeners

2018-01-21 Thread Peter Xu
v2 - add begin() hooks [Paolo] - move vfio patch to front [Paolo] - one more patch for arm devlistener unregister [Paolo] - one more patch for vhost traces - removing RFC tag This series fixes bug reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1531393 The first patch only adds trac

Re: [Qemu-devel] [RFC 0/2] memory/vfio: notify region_del() when unregister listeners

2018-01-21 Thread Peter Xu
On Fri, Jan 19, 2018 at 12:41:01PM +0100, Paolo Bonzini wrote: > On 19/01/2018 09:42, Peter Xu wrote: > > I encountered an event loss problem during unplugging vfio devices: > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1531393 > > > > I thought it should be a simple VT-d issue but I was

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

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

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

2018-01-21 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 40/43] target/hppa: Enable MTTCG

2018-01-21 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 79763b254c..3df3ebd19d 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -42,6 +42,12 @@ #define TARGET_P

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-21 Thread Jason Wang
On 2018年01月20日 01:20, Stefan Hajnoczi wrote: I don't propose any new idea. I just want to know what's the advantage of vhost-pci over zerocopy. Both needs one time of copy, the difference is the vhost-pci did it inside a guest but zerocopy did in on host. Exitless VM2VM communication is desira

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

2018-01-21 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

Re: [Qemu-devel] [PATCH] target/m68k: fix TCG variable double free

2018-01-21 Thread Richard Henderson
On 01/19/2018 03:44 AM, Laurent Vivier wrote: > t64 is also unconditionally freed after the switch () { ... } > > Signed-off-by: Laurent Vivier > --- > target/m68k/translate.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Richard Henderson r~

[Qemu-devel] [PULL 34/43] target/hppa: Use MMU_DEBUG_LOAD when reloading for CR[IIR]

2018-01-21 Thread Richard Henderson
Bypass any tlb protection checks, as this is not a "real" access to memory per the architecture. Signed-off-by: Richard Henderson --- target/hppa/int_helper.c | 2 +- target/hppa/mem_helper.c | 19 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/target/hppa/i

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

2018-01-21 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 36/43] target/hppa: Fix comment

2018-01-21 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 6cf4e370

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

2018-01-21 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 41/43] hw/hppa: Implement DINO system board

2018-01-21 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 29/43] target/hppa: Add system registers to gdbstub

2018-01-21 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 35/43] target/hppa: Increase number of temp regs

2018-01-21 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 c064c9d17b..6cf4e37062

[Qemu-devel] [PULL 33/43] qom: Add MMU_DEBUG_LOAD

2018-01-21 Thread Richard Henderson
This lets us tell bottom levels of virtual memory translation routines that the access is from within QEMU itself and bypass certain tests. Cc: Andreas Färber Signed-off-by: Richard Henderson --- include/qom/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/qom

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

2018-01-21 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 8884754f05..74f78ab4e0 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@

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

2018-01-21 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 31/43] target/hppa: Implement B,GATE insn

2018-01-21 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 8a87b8a9b3..797

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

2018-01-21 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 b207ae192a..a311a464bf 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2301,7 +2301,8 @

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

2018-01-21 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 25/43] target/hppa: Implement LCI

2018-01-21 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 bbef2f0d7f..b207ae192a 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2451,6 +2451

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

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

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

2018-01-21 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 19/43] target/hppa: Implement the interval timer

2018-01-21 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 27/43] target/hppa: Implement halt and reset instructions

2018-01-21 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 23/43] target/hppa: Implement LDWA

2018-01-21 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 44e566837d..5b49cc5332 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.

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

2018-01-21 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 22/43] target/hppa: Implement P*TLB and P*TLBE insns

2018-01-21 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 18/43] target/hppa: Implement external interrupts

2018-01-21 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 16/43] target/hppa: Implement IASQ

2018-01-21 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 12/43] target/hppa: Fill in hppa_cpu_do_interrupt/hppa_cpu_exec_interrupt

2018-01-21 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 14/43] target/hppa: Use space registers in data operations

2018-01-21 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 20/43] target/hppa: Log unimplemented instructions

2018-01-21 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 cad661e39f..7334206b44 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -4207,6 +4207,8 @@ static DisasJu

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

2018-01-21 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| 29 - target/hppa/int_helper.c | 12 target/hppa/mem_helper.c | 14

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

2018-01-21 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 05/43] target/hppa: Split address size from register size

2018-01-21 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 10/43] target/hppa: Adjust insn mask for mfctl, w

2018-01-21 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 04/43] target/hppa: Define hardware exception types

2018-01-21 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 09/43] target/hppa: Add control registers

2018-01-21 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 03/43] target/hppa: Disable gateway page emulation for system mode

2018-01-21 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 06/43] target/hppa: Implement mmu_idx from IA privilege level

2018-01-21 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 07/43] target/hppa: Implement the system mask instructions

2018-01-21 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 13/43] target/hppa: Implement unaligned access trap

2018-01-21 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/cpu.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index ca619578dd..6b2d22118d 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -48,6 +48,21 @@ static void hpp

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

2018-01-21 Thread Richard Henderson
: Merge remote-tracking branch 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2018-01-19 16:35:25 +) are available in the Git repository at: git://github.com/rth7680/qemu.git tags/pull-hppa-20180121 for you to fetch changes up to 350e2a714ac8db559b255f9e8fe91c

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

2018-01-21 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

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

2018-01-21 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 01/43] target/hppa: Skeleton support for hppa-softmmu

2018-01-21 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

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-01-21 Thread Jason Wang
On 2018年01月19日 21:06, Stefan Hajnoczi wrote: These patches implement the virtio-vhost-user device design that I have described here: https://stefanha.github.io/virtio/vhost-user-slave.html#x1-2830007 Thanks for the patches, looks rather interesting and similar to split device model used by X

[Qemu-devel] (v2. forward to qemu )-Panic with ext4, nbd, qemu-img, block

2018-01-21 Thread Hongzhi, Song
Hello, I create a virtual disk-image using qemu-img. And then I use /dev/nbd to map the image. I mount the /dev/nbd to a local dir with ext4-format Finally, I have some trouble about ext4-filesystem and block device, with using demand of rsync or dd to write the image. Reproduce :     qemu

Re: [Qemu-devel] [RFC PATCH 1/6] machine: add a deprecated_reason property

2018-01-21 Thread Philippe Mathieu-Daudé
Hi Thomas, > This series introduces 5 different flavors of deprecation > messages: > > * "Too old" > * "Unmaintained" > * "The ZCU102 machine has the same features supported" > * "Use the \"pc\" machine instead" > * "Obsoleted by the \"40p\" machine" > > Can we clearly document guidelines and ex

[Qemu-devel] [Bug 1725707] Re: QEMU sends excess VNC data to websockify even when network is poor

2018-01-21 Thread jamiedo2nn
Reference: https://github.com/novnc/noVNC/issues/431#issuecomment-71883085 QEMU uses many more (30x) operations with much smaller amounts of data than other VNC server, perhaps this leads to the different result. ** Bug watch added: github.com/novnc/noVNC/issues #431 https://github.com/novnc/n

Re: [Qemu-devel] [PATCH v2 4/5] tpm: add CRB device

2018-01-21 Thread Philippe Mathieu-Daudé
On 01/21/2018 02:46 AM, Stefan Berger wrote: > On 01/20/2018 07:54 AM, Philippe Mathieu-Daudé wrote: >> On 01/19/2018 11:11 AM, Marc-André Lureau wrote: >>> tpm_crb is a device for TPM 2.0 Command Response Buffer (CRB) >>> Interface as defined in TCG PC Client Platform TPM Profile (PTP) >>> Specifi

Re: [Qemu-devel] [PATCH v2 4/5] tpm: add CRB device

2018-01-21 Thread Stefan Berger
On 01/21/2018 02:24 PM, Marc-Andre Lureau wrote: Hi On Sun, Jan 21, 2018 at 6:46 AM, Stefan Berger wrote: On 01/20/2018 07:54 AM, Philippe Mathieu-Daudé wrote: On 01/19/2018 11:11 AM, Marc-André Lureau wrote: tpm_crb is a device for TPM 2.0 Command Response Buffer (CRB) Interface as defined

[Qemu-devel] [PATCH v3] ppc: Deprecate qemu-system-ppcemb

2018-01-21 Thread Thomas Huth
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 known recent use case for this

Re: [Qemu-devel] [PATCH v4 2/7] target/m68k: add MC68040 MMU

2018-01-21 Thread Rob Landley
On 01/18/2018 01:38 PM, Laurent Vivier wrote: > Only add MC68040 MMU page table processing and related > registers (Special Status Word, Translation Control Register, > User Root Pointer and Supervisor Root Pointer). > > Transparent Translation Registers, DFC/SFC and pflush/ptest > will be added l

Re: [Qemu-devel] [PATCH v2 4/5] tpm: add CRB device

2018-01-21 Thread Marc-Andre Lureau
Hi On Sun, Jan 21, 2018 at 6:46 AM, Stefan Berger wrote: > On 01/20/2018 07:54 AM, Philippe Mathieu-Daudé wrote: >> >> On 01/19/2018 11:11 AM, Marc-André Lureau wrote: >>> >>> tpm_crb is a device for TPM 2.0 Command Response Buffer (CRB) >>> Interface as defined in TCG PC Client Platform TPM Prof

Re: [Qemu-devel] [PATCH] Revert "smbus: do not immediately complete commands"

2018-01-21 Thread Hervé Poussineau
Le 19/01/2018 à 22:15, Corey Minyard a écrit : On 01/19/2018 08:07 AM, Corey Minyard wrote: On 01/18/2018 09:17 PM, Michael S. Tsirkin wrote: On Thu, Jan 18, 2018 at 07:55:41PM -0600, miny...@acm.org wrote: From: Corey Minyard This reverts commit 880b1ffe6ec2f0ae25cc4175716227ad275e8b8a. Th

Re: [Qemu-devel] [PATCH v8 16/17] hw/arm/exynos4210: implement SDHCI Spec v2

2018-01-21 Thread Krzysztof Kozlowski
On Thu, Jan 18, 2018 at 03:31:07PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > Acked-by: Alistair Francis > --- > Krzysztof kindly checked those values with Manaul, the Samsung datasheet :) > > hw/arm/exynos4210.c | 21 +++-- > 1 file changed,

[Qemu-devel] [PATCH v6 2/4] cryptodev: add vhost support

2018-01-21 Thread Jay Zhou
From: Gonglei Impliment the vhost-crypto's funtions, such as startup, stop and notification etc. Introduce an enum QCryptoCryptoDevBackendOptionsType in order to identify the cryptodev vhost backend is vhost-user or vhost-kernel-module (If exist). At this point, the cryptdoev-vhost-user works.

[Qemu-devel] [PATCH v6 3/4] cryptodev-vhost-user: add crypto session handler

2018-01-21 Thread Jay Zhou
From: Gonglei Introduce two vhost-user meassges: VHOST_USER_CREATE_CRYPTO_SESSION and VHOST_USER_CLOSE_CRYPTO_SESSION. At this point, the QEMU side support crypto operation in cryptodev host-user backend. Signed-off-by: Gonglei Signed-off-by: Longpeng(Mike) Signed-off-by: Jay Zhou --- backen

[Qemu-devel] [PATCH v6 0/4] cryptodev: add vhost support

2018-01-21 Thread Jay Zhou
From: Gonglei I posted the RFC verion a few months ago for DPDK vhost-crypto implmention, and now it's time to send the formal version. Because we need an user space scheme for better performance. The vhost user crypto server side patches had been sent to DPDK community, pls see [RFC PATCH 0/6]

[Qemu-devel] [PATCH v6 4/4] cryptodev-vhost-user: set the key length

2018-01-21 Thread Jay Zhou
From: Gonglei Signed-off-by: Gonglei --- backends/cryptodev-vhost-user.c | 4 include/sysemu/cryptodev-vhost-user.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-user.c index 7bd0929..11b834b 100644 --- a/backends/c

[Qemu-devel] [PATCH v6 1/4] cryptodev: add vhost-user as a new cryptodev backend

2018-01-21 Thread Jay Zhou
From: Gonglei Usage: -chardev socket,id=charcrypto0,path=/path/to/your/socket -object cryptodev-vhost-user,id=cryptodev0,chardev=charcrypto0 -device virtio-crypto-pci,id=crypto0,cryptodev=cryptodev0 Signed-off-by: Gonglei Signed-off-by: Longpeng(Mike) Signed-off-by: Jay Zhou --- backends/

Re: [Qemu-devel] [PATCH] ppc/pnv: fix PnvChip redefinition in

2018-01-21 Thread David Gibson
On Fri, Jan 19, 2018 at 09:15:11AM +0100, Cédric Le Goater wrote: > 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 st

Re: [Qemu-devel] [PATCHv2 00/10] sun4u: APB tidy-up/rename and tracepoint conversions

2018-01-21 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180121091154.17426-1-mark.cave-ayl...@ilande.co.uk Subject: [Qemu-devel] [PATCHv2 00/10] sun4u: APB tidy-up/rename and tracepoint conversions === TEST SCRIPT BEGIN === #!/

[Qemu-devel] [PATCHv2 10/10] sparc64: convert hw/sparc64/sparc64.c from DPRINTF macros to trace events

2018-01-21 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko --- hw/sparc64/sparc64.c| 85 - hw/sparc64/trace-events | 18 +++ 2 files changed, 52 insertions(+), 51 deletions(-) diff --git a/hw/sparc6

[Qemu-devel] [PATCHv2 09/10] sabre: convert from SABRE_DPRINTF macro to trace-events

2018-01-21 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland CC: Michael S. Tsirkin CC: Marcel Apfelbaum Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko [for addition of trace-events to hw/pci-host] Acked-by: Michael S. Tsirkin --- Makefile.objs| 1 + hw/pci-host/sabre.c | 32 ++-

[Qemu-devel] [PATCHv2 03/10] apb: rename APB functions to use sabre prefix

2018-01-21 Thread Mark Cave-Ayland
As hinted in the comment at the top of the file, the naming convention for the APB types/QOM functions isn't correct. As a starting point we can at least rename the APB type and related functions to improve the readability of apb.c. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Da

[Qemu-devel] [PATCHv2 06/10] apb: rename QOM type from TYPE_APB to TYPE_SABRE

2018-01-21 Thread Mark Cave-Ayland
Similarly rename the corresponding APBState typedef to SabreState. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko --- hw/pci-host/apb.c | 30 +++--- hw/sparc64/sun4u.c| 6 +++--- include/hw/pci-host/apb.h

[Qemu-devel] [PATCHv2 00/10] sun4u: APB tidy-up/rename and tracepoint conversions

2018-01-21 Thread Mark Cave-Ayland
This patchset is the next round of sun4u tidy-ups mostly centered around the APB (PCI host bridge). In its current form apb.c contains both the PCI host bridge and the secondary PCI bridge, so we split the PCI bridge into a new file and move it under hw/pci-bridge. To order to avoid further confus

[Qemu-devel] [PATCHv2 08/10] apb: rename apb.c to sabre.c

2018-01-21 Thread Mark Cave-Ayland
This is the final stage in correcting the naming convention with respect to sabre, APB and PBM. It is effectively a file rename from apb.c to sabre.c along with touching up a few constants to remove the remaining references to APB. Note that as part of the rename process the configuration variable

[Qemu-devel] [PATCHv2 01/10] apb: split simba PCI bridge into hw/pci-bridge/simba.c

2018-01-21 Thread Mark Cave-Ayland
Move the QOM type and macros into a new include/hw/pci-bridge/simba.h file, and add a new CONFIG_SIMBA Makefile.objs variable which is enabled for sparc64-softmmu builds only. Signed-off-by: Mark Cave-Ayland CC: Michael S. Tsirkin CC: Marcel Apfelbaum Reviewed-by: Philippe Mathieu-Daudé Acked-

Re: [Qemu-devel] [PATCH] sun4u: implement power device

2018-01-21 Thread Mark Cave-Ayland
On 20/01/18 20:10, Artyom Tarasenko wrote: Hi Mark, On Mon, Jan 15, 2018 at 9:58 PM, Mark Cave-Ayland wrote: This inbuilt device contains a single 4-byte register, of which bit 24 is used to power down the machine on a real Ultra 5. The power device exists at offset 0x724000 on a real machi

[Qemu-devel] [PATCHv2 07/10] sun4u: rename apb variables and constants

2018-01-21 Thread Mark Cave-Ayland
In order to reflect the previous change of TYPE_APB to TYPE_SABRE, update the corresponding variable names to keep the terminology consistent. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko --- hw/sparc64/sun4u.c | 41 +---

[Qemu-devel] [PATCHv2 04/10] apb: change pbm_pci_host prefix functions to use sabre_pci prefix

2018-01-21 Thread Mark Cave-Ayland
This is the proper name for the PBM host bridge as referenced in the Sun documentation. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko --- hw/pci-host/apb.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/pci-h

[Qemu-devel] [PATCHv2 02/10] simba: rename PBMPCIBridge and QOM types to reflect simba naming

2018-01-21 Thread Mark Cave-Ayland
Here we rename PBMPCIBridge to SimbaPCIBridge and the QOM type from TYPE_PBM_PCI_BRIDGE to TYPE_SIMBA_PCI_BRIDGE in improve the clarity of the device name. Also touch up the relevant spots in apb.c and various other function names as appropriate. Signed-off-by: Mark Cave-Ayland Reviewed-by: Phil

[Qemu-devel] [PATCHv2 05/10] apb: QOMify sabre PCI host bridge

2018-01-21 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko --- hw/pci-host/apb.c | 6 +++--- include/hw/pci-host/apb.h | 14 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c index 98