Re: [PATCH] vhost: Add polling mode

2014-08-20 Thread Christian Borntraeger
On 10/08/14 10:30, Razya Ladelsky wrote: From: Razya Ladelsky ra...@il.ibm.com Date: Thu, 31 Jul 2014 09:47:20 +0300 Subject: [PATCH] vhost: Add polling mode When vhost is waiting for buffers from the guest driver (e.g., more packets to send in vhost-net's transmit queue), it normally goes

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 07/08/14 15:40, Paolo Bonzini wrote: Il 07/08/2014 11:59, Christian Borntraeger ha scritto: Paolo, are you willing to apply to kvm/queue? I asked a question, but anyway... not until the end of the merge window and my small vacation. :) Paolo Absolutely, was on vacation myself

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 07/08/14 15:39, Paolo Bonzini wrote: Il 05/08/2014 16:44, Christian Borntraeger ha scritto: We currently track the pid of the task that runs the VCPU in vcpu_load. Since we call vcpu_load for all kind of ioctls on a CPU, this causes hickups due to synchronize_rcu if one CPU is modified

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 11:27, Paolo Bonzini wrote: Il 19/08/2014 10:38, Christian Borntraeger ha scritto: The patch may be okay, but I'm worried that it might be hiding a bug in QEMU. On s390 we call KVM_S390_INITIAL_RESET from several reset functions, e.g. during CPU creation. This is the first

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 11:53, Paolo Bonzini wrote: Il 19/08/2014 11:47, Christian Borntraeger ha scritto: On 19/08/14 11:27, Paolo Bonzini wrote: Il 19/08/2014 10:38, Christian Borntraeger ha scritto: The patch may be okay, but I'm worried that it might be hiding a bug in QEMU. On s390 we call

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 12:03, Paolo Bonzini wrote: Il 19/08/2014 11:59, Christian Borntraeger ha scritto: Its only for the interrupts that are cpu local (like pending IPIs). In addition, we would do that only for the reset case (with an interface that can be used for migration). Right now

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 12:31, Paolo Bonzini wrote: Il 19/08/2014 12:09, Christian Borntraeger ha scritto: I'm not sure, this does seem like a workaround for another limitation after all... Gleb? Yes. We want to get rid of KVM_S390_INITIAL_RESET in QEMU. This comes from a time, when we had another

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 18/08/14 07:02, Wanpeng Li wrote: Hi Christian, On Tue, Aug 05, 2014 at 04:44:14PM +0200, Christian Borntraeger wrote: We currently track the pid of the task that runs the VCPU in vcpu_load. Since we call vcpu_load for all kind of ioctls on a CPU, this causes hickups due to synchronize_rcu

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 14:14, David Hildenbrand wrote: Il 19/08/2014 13:28, David Hildenbrand ha scritto: Looking at the code, kvm_cpu_synchronize_state() seems to do these ioctls in the vcpu thread (e.g. comming from cpu_synchronize_all_states()), any reasons why kvm_cpu_synchronize_post_reset()

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-19 Thread Christian Borntraeger
On 19/08/14 16:23, David Hildenbrand wrote: On 19/08/14 14:14, David Hildenbrand wrote: Il 19/08/2014 13:28, David Hildenbrand ha scritto: Looking at the code, kvm_cpu_synchronize_state() seems to do these ioctls in the vcpu thread (e.g. comming from cpu_synchronize_all_states()), any

[PATCH] KVM: avoid unnecessary synchronize_rcu

2014-08-19 Thread Christian Borntraeger
We dont have to wait for a grace period if there is no oldpid that we are going to free. putpid also checks for NULL, so this patch only fences synchronize_rcu. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- virt/kvm/kvm_main.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-07 Thread Christian Borntraeger
On 07/08/14 10:21, Raghavendra K T wrote: On 08/05/2014 08:14 PM, Christian Borntraeger wrote: We currently track the pid of the task that runs the VCPU in vcpu_load. Since we call vcpu_load for all kind of ioctls on a CPU, this causes hickups due to synchronize_rcu if one CPU is modified

[PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl

2014-08-05 Thread Christian Borntraeger
of yielding, so let's update the pid only in the KVM_RUN ioctl. In addition, don't do a synchronize_rcu on startup (pid == 0). This speeds up guest boot time on s390 noticably for some configs, e.g. HZ=100, no full state tracking, 64 guest cpus 32 host cpus. Signed-off-by: Christian Borntraeger

[GIT PULL 2/2] KVM: s390: rework broken SIGP STOP interrupt handling

2014-07-31 Thread Christian Borntraeger
-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com [some additional patch description] --- arch/s390/kvm/interrupt.c | 3 +++ 1 file changed, 3

[GIT PULL 1/2] KVM: s390: Fix memory leak on busy SIGP stop

2014-07-31 Thread Christian Borntraeger
commit 7dfc63cf977447e09b1072911c22564f900fc578 (KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time) introduced a memory leak if a sigp stop is already pending. Free the allocated inti structure. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: David

[GIT PULL 0/2] KVM: s390: Fixes for kvm/next (3.17)

2014-07-31 Thread Christian Borntraeger
) with Linux as a guest. So no need for cc stable Christian Borntraeger (1): KVM: s390: Fix memory leak on busy SIGP stop David Hildenbrand (1): KVM: s390: rework broken SIGP STOP interrupt handling arch/s390/kvm/interrupt.c | 3

[PATCH/RFC] KVM: perf/stat: Properly show submicrosecond times

2014-07-31 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/builtin-kvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 43367eb..fe92dfd 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c

[RFC] increase perf kvm stat accuracy

2014-07-31 Thread Christian Borntraeger
On my s390 kvm system most of the kvm exits are in the range of 0 or 1 microseconds. Can we increase the accuracy by 2 additional digits? Opinions? Christian Borntraeger (1): KVM: perf/stat: Properly show submicrosecond times tools/perf/builtin-kvm.c | 8 1 file changed, 4

Re: [Qemu-devel] [PATCH/RFC 4/5] s390x/kvm: test whether a cpu is STOPPED when checking has_work

2014-07-29 Thread Christian Borntraeger
On 28/07/14 16:22, Alexander Graf wrote: On 28.07.2014, at 16:16, David Hildenbrand d...@linux.vnet.ibm.com wrote: On 10.07.14 15:10, Christian Borntraeger wrote: From: David Hildenbrand d...@linux.vnet.ibm.com If a cpu is stopped, it must never be allowed to run and no interrupt may

Re: [GIT PULL 8/9] KVM: s390: advertise KVM_CAP_S390_IRQCHIP

2014-07-22 Thread Christian Borntraeger
On 22/07/14 10:32, Paolo Bonzini wrote: Il 21/07/2014 21:14, Christian Borntraeger ha scritto: From: Cornelia Huck cornelia.h...@de.ibm.com We should advertise all capabilities, including those that can be enabled. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian

Re: [GIT PULL 0/5] KVM: s390: Let user space control the cpu states

2014-07-21 Thread Christian Borntraeger
On 18/07/14 16:49, Paolo Bonzini wrote: Il 15/07/2014 15:27, Christian Borntraeger ha scritto: Paolo, The following changes since commit 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23: arch: x86: kvm: x86.c: Cleaning up variable is set more than once (2014-06-30 16:52:04 +0200) are available

[GIT PULL 9/9] KVM: s390: add ipte to trace event decoding

2014-07-21 Thread Christian Borntraeger
IPTE intercept can happen, let's decode that. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/uapi/asm/sie.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/include/uapi/asm/sie.h b/arch/s390/include

[GIT PULL 7/9] KVM: s390: document KVM_CAP_S390_IRQCHIP

2014-07-21 Thread Christian Borntraeger
From: Cornelia Huck cornelia.h...@de.ibm.com Let's document that this is a capability that may be enabled per-vm. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 6/9] KVM: document target of capability enablement

2014-07-21 Thread Christian Borntraeger
...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index a41465b..7ab41e9

[GIT PULL 1/9] KVM: s390: cleanup handle_wait by reusing kvm_vcpu_block

2014-07-21 Thread Christian Borntraeger
uses these functions, so no checks are lost. The flag timer_due can be removed - kvm_cpu_has_pending_timer() tests whether the timer is pending, thus the vcpu is correctly woken up. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 5/9] KVM: s390: remove the tasklet used by the hrtimer

2014-07-21 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com We can get rid of the tasklet used for waking up a VCPU in the hrtimer code but wakeup the VCPU directly. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck

[GIT PULL 2/9] KVM: s390: remove _bh locking from local_int.lock

2014-07-21 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com local_int.lock is not used in a bottom-half handler anymore, therefore we can turn it into an ordinary spin_lock at all occurrences. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 8/9] KVM: s390: advertise KVM_CAP_S390_IRQCHIP

2014-07-21 Thread Christian Borntraeger
From: Cornelia Huck cornelia.h...@de.ibm.com We should advertise all capabilities, including those that can be enabled. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 3/9] KVM: s390: remove _bh locking from start_stop_lock

2014-07-21 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com The start_stop_lock is no longer acquired when in atomic context, therefore we can convert it into an ordinary spin_lock. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Acked

[GIT PULL 0/9] KVM: s390: Fixes and cleanups for 3.17

2014-07-21 Thread Christian Borntraeger
Christian Borntraeger (1): KVM: s390: add ipte to trace event decoding Cornelia Huck (3): KVM: document target of capability enablement KVM: s390: document KVM_CAP_S390_IRQCHIP KVM: s390: advertise KVM_CAP_S390_IRQCHIP David Hildenbrand (5): KVM: s390

[GIT PULL 4/9] KVM: s390: move vcpu wakeup code to a central point

2014-07-21 Thread Christian Borntraeger
in immediate reschedules after schedule() in some scenarios. The wakeup code doesn't require the local_int.lock to be held. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off

[GIT PULL 0/5] KVM: s390: Let user space control the cpu states

2014-07-15 Thread Christian Borntraeger
Paolo, The following changes since commit 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23: arch: x86: kvm: x86.c: Cleaning up variable is set more than once (2014-06-30 16:52:04 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git

[GIT PULL 1/5] KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time

2014-07-15 Thread Christian Borntraeger
for a user space driven VCPU state change (to avoid race conditions). Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 4/5] KVM: prepare for KVM_(S|G)ET_MP_STATE on other architectures

2014-07-15 Thread Christian Borntraeger
of KVM_(S|G)ET_MP_STATE by s390. Fix a spelling error (KVM_SET_MP_STATE vs. KVM_SET_MPSTATE) on the way. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian

[GIT PULL 3/5] KVM: s390: remove __cpu_is_stopped and expose is_vcpu_stopped

2014-07-15 Thread Christian Borntraeger
-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 7 +-- arch/s390/kvm/kvm-s390.h | 4 ++-- 2 files

[GIT PULL 2/5] KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop

2014-07-15 Thread Christian Borntraeger
setting the cpu state to STOPPED while holding the local irq lock. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 5/5] KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control

2014-07-15 Thread Christian Borntraeger
the ioctl KVM_SET_MP_STATE, we can disable manual changing of the VCPU state and trust user space to do the right thing. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off

[PATCH/RFC 2/5] KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop

2014-07-10 Thread Christian Borntraeger
setting the cpu state to STOPPED while holding the local irq lock. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH/RFC 0/5] KVM: s390: Let user space control the cpu states

2014-07-10 Thread Christian Borntraeger
Paolo, here is a preview of a rework of CPU state on s390x. Since we extend MP_STATE I wanted to send an RFC upfront. I will wait for some feedback and send a proper pull request in the next week: - This series enables the KVM_SET_MP_STATE ioctl on s390 to make the cpu state settable by

[PATCH/RFC 3/5] KVM: s390: remove __cpu_is_stopped and expose is_vcpu_stopped

2014-07-10 Thread Christian Borntraeger
-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 7 +-- arch/s390/kvm/kvm-s390.h | 4 ++-- 2 files

[PATCH/RFC 0/5] s390x/kvm: track the logical cpu state in QEMU and propagate it to kvm

2014-07-10 Thread Christian Borntraeger
This is the qemu part of kernel series Let user space control the cpu states Christian Borntraeger (1): update linux headers with with cpustate changes David Hildenbrand (4): s390x/kvm: introduce proper states for s390 cpus s390x/kvm: proper use of the cpu states OPERATING and STOPPED

[PATCH/RFC 1/5] KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time

2014-07-10 Thread Christian Borntraeger
for a user space driven VCPU state change (to avoid race conditions). Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH/RFC 4/5] KVM: prepare for KVM_(S|G)ET_MP_STATE on other architectures

2014-07-10 Thread Christian Borntraeger
of KVM_(S|G)ET_MP_STATE by s390. Fix a spelling error (KVM_SET_MP_STATE vs. KVM_SET_MPSTATE) on the way. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian

[PATCH/RFC 2/5] s390x/kvm: introduce proper states for s390 cpus

2014-07-10 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com [folded Jason's patch into David's patch to avoid add/remove same lines] --- hw/s390x/s390-virtio.c | 32

[PATCH/RFC 4/5] s390x/kvm: test whether a cpu is STOPPED when checking has_work

2014-07-10 Thread Christian Borntraeger
. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- target-s390x/cpu.c | 6 ++ target-s390x/kvm.c | 5 + 2 files

[PATCH/RFC 3/5] s390x/kvm: proper use of the cpu states OPERATING and STOPPED

2014-07-10 Thread Christian Borntraeger
synchronization with the kvm part, we need to track the real logical state of a cpu. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae

[PATCH/RFC 5/5] s390x/kvm: propagate s390 cpu state to kvm

2014-07-10 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- target-s390x/cpu.c | 3 +++ target-s390x/cpu.h | 5 + target-s390x/kvm.c | 33

[PATCH/RFC 5/5] KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control

2014-07-10 Thread Christian Borntraeger
the ioctl KVM_SET_MP_STATE, we can disable manual changing of the VCPU state and trust user space to do the right thing. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off

[PATCH/RFC 1/5] update linux headers with with cpustate changes

2014-07-10 Thread Christian Borntraeger
Will do a proper headers sync when ready Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- linux-headers/linux/kvm.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index f5d2c38..9b584da 100644

[GIT PULL 2/6] KVM: s390: Enable DAT support for TPROT handler

2014-05-30 Thread Christian Borntraeger
From: Thomas Huth th...@linux.vnet.ibm.com The TPROT instruction can be used to check the accessability of storage for any kind of logical addresses. So far, our handler only supported real addresses. This patch now also enables support for addresses that have to be translated via DAT first. And

[GIT PULL 0/6] KVM: s390: Fixes and cleanups for 3.16

2014-05-30 Thread Christian Borntraeger
Paolo, The following changes since commit 1f854112553a1d65363ab27d4ee3dfb4b27075fb: KVM: vmx: DR7 masking on task switch emulation is wrong (2014-05-22 17:47:18 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git

[GIT PULL 4/6] KVM: s390: check the given debug flags, not the set ones

2014-05-30 Thread Christian Borntraeger
-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index e519860..06d1888 100644 --- a/arch/s390/kvm/kvm

[GIT PULL 1/6] KVM: s390: Add a generic function for translating guest addresses

2014-05-30 Thread Christian Borntraeger
From: Thomas Huth th...@linux.vnet.ibm.com This patch adds a function for translating logical guest addresses into physical guest addresses without touching the memory at the given location. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com

[GIT PULL 6/6] KVM: s390: Intercept the tprot instruction

2014-05-30 Thread Christian Borntraeger
. Signed-off-by: Nick Wang jfw...@us.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Tested-by: Matthew Rosato mjros...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm

[GIT PULL 5/6] KVM: s390: a VCPU is already started when delivering interrupts

2014-05-30 Thread Christian Borntraeger
anyway. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm

[GIT PULL 3/6] KVM: s390: clean up interrupt injection in sigp code

2014-05-30 Thread Christian Borntraeger
From: Jens Freimann jf...@linux.vnet.ibm.com We have all the logic to inject interrupts available in kvm_s390_inject_vcpu(), so let's use it instead of injecting irqs manually to the list in sigp code. SIGP stop is special because we have to check the action_flags before injecting the interrupt.

Re: [Qemu-devel] KVM call agenda for 2014-05-27

2014-05-26 Thread Christian Borntraeger
On 21/05/14 23:43, Juan Quintela wrote: Hi Please, send any topic that you are interested in covering. (mostly) Michael Mueller - CPU models on s390 and other platforms. Interfaces/requirements/Contraints etc. Thanks, Juan. Call details: 15:00 CEST

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-22 Thread Christian Borntraeger
On 22/05/14 10:53, Paolo Bonzini wrote: Il 22/05/2014 10:23, Michael Mueller ha scritto: On Wed, 21 May 2014 15:22:35 +0200 Alexander Graf ag...@suse.de wrote: I have seen the slides from Eduardo which he presented during this years DevConf in Brno and made my comments according the s390x

Re: [PATCH v1 RFC 0/6] KVM: s390: cpu model implementation

2014-05-16 Thread Christian Borntraeger
On 13/05/14 16:58, Michael Mueller wrote: The proposed patch set implements S390 cpu model support in kvm. A cpu model is defined by a triple comprizing the cpu type , the cpu facility set and instruction blocking control. A consumer requests a feasible combination of that that triple before

[GIT PULL 02/12] KVM: s390: Improve is_valid_psw()

2014-05-16 Thread Christian Borntraeger
of the S390 KVM code as well. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/priv.c | 5 - 2 files changed, 5 insertions

[GIT PULL 08/12] KVM: s390: decoder of SIE intercepted instructions

2014-05-16 Thread Christian Borntraeger
with the subset of instructions that may cause a SIE intercept. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390

[GIT PULL 12/12] KVM: s390: split SIE state guest prefix field

2014-05-16 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 4 +++- arch/s390/kvm/diag.c | 2 +- arch/s390/kvm/gaccess.h | 8 arch/s390/kvm/kvm-s390.c | 10

[GIT PULL 05/12] KVM: s390: Improved MVPG partial execution handler

2014-05-16 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/intercept.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git

[GIT PULL 11/12] s390/sclp: add sclp_get_ibc function

2014-05-16 Thread Christian Borntraeger
...@de.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/sclp.h | 1 + drivers/s390/char/sclp_early.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/s390/include/asm/sclp.h b/arch/s390/include/asm/sclp.h index 943d434..1aba89b

[GIT PULL 01/12] KVM: s390: correct locking for s390_enable_skey

2014-05-16 Thread Christian Borntraeger
that it prevents any host faults from taking place which does have implications on keys vs PGSTE. Signed-off-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/mm/pgtable.c | 22 +++--- 1 file changed, 7 insertions

[GIT PULL 10/12] KVM: s390: interpretive execution of SIGP EXTERNAL CALL

2014-05-16 Thread Christian Borntraeger
interpretion] Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 4 +++- arch/s390/kvm/intercept.c| 4 arch/s390/kvm/interrupt.c| 30 ++ arch/s390/kvm/kvm-s390.c | 2 +- arch/s390/kvm/kvm-s390.h

[GIT PULL 03/12] KVM: s390: Avoid endless loops of specification exceptions

2014-05-16 Thread Christian Borntraeger
. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/intercept.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm

[GIT PULL 07/12] KVM: s390: Use trace tables from sie.h.

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin yary...@linux.vnet.ibm.com Use the symbolic translation tables from sie.h for decoding diag, sigp and sie exit codes. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h

[GIT PULL 09/12] KVM: s390: Use intercept_insn decoder in trace event

2014-05-16 Thread Christian Borntraeger
Acked-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/trace.h | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/s390/kvm/trace.h b/arch/s390

[GIT PULL 00/12] KVM: s390: features and fixes for 3.16

2014-05-16 Thread Christian Borntraeger
Paolo, the following changes since commit d9f89b88f5102ce235b75a5907838e3c7ed84b97: KVM: x86: Fix CR3 reserved bits check in long mode (2014-05-12 20:04:01 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git

[GIT PULL 06/12] KVM: s390: add sie exit reasons tables

2014-05-16 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/uapi/asm/sie.h | 212 +++ 1 file changed, 212 insertions(+) create mode 100644 arch/s390/include/uapi/asm/sie.h diff --git

[GIT PULL 04/12] KVM: s390: Introduce helper function for faulting-in a guest page

2014-05-16 Thread Christian Borntraeger
undetected error conditions before). Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 32

[GIT PULL 1/1] KVM: s390: announce irqfd capability

2014-05-15 Thread Christian Borntraeger
Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 2 +- arch/s390/kvm/kvm-s390.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation

[GIT PULL 0/1] KVM: s390: Fix for 3.15

2014-05-15 Thread Christian Borntraeger
Paolo, here is a fix for kvm/master targetting 3.15 The following changes since commit 5367742ad5321dd38058420adb4750ed9c7ead1e: Merge tag 'signed-for-3.15' of git://github.com/agraf/linux-2.6 into kvm-master (2014-05-13 18:15:16 +0200) are available in the git repository at:

[GIT PULL 2/3] KVM: s390: Add clock comparator and CPU timer IRQ injection

2014-05-06 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 2 ++ arch/s390/kvm/interrupt.c | 32 include/uapi/linux/kvm.h | 2 ++ 3 files changed, 36

[GIT PULL 0/3] KVM: s390: Fixes

2014-05-06 Thread Christian Borntraeger
Paolo, Gleb, the s390 queue has 3 fixes scheduled for 3.16. The EFAULT fix fixes a bug that is only in kvm/next, and the other fixes are long standing non-critical problems so no cc stable. Please apply. The following changes since commit 57b5981cd38cbca3554c5e663b2361d9adea70c2: Merge tag

[GIT PULL 3/3] KVM: s390: Fix external interrupt interception

2014-05-06 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 5 +++- arch/s390/kvm/intercept.c| 49 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm

[GIT PULL 1/3] KVM: s390: return -EFAULT if copy_from_user() fails

2014-05-06 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/guestdbg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/guestdbg.c b/arch/s390/kvm/guestdbg.c index 757ccef..3e8d409 100644 --- a/arch/s390/kvm/guestdbg.c +++ b/arch/s390/kvm/guestdbg.c

Re: [patch] KVM: s390: return -EFAULT if copy_from_user() fails

2014-05-05 Thread Christian Borntraeger
On 03/05/14 22:18, Dan Carpenter wrote: When copy_from_user() fails, this code returns the number of bytes remaining instead of a negative error code. The positive number is returned to the user but otherwise it is harmless. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Thanks.

Re: [PATCH 08/11] perf kvm: allow for variable string sizes

2014-05-05 Thread Christian Borntraeger
David, thanks for the review. Are you ok with this change as well? The alternative is to shorten our descriptions (in 1/11 s390: add sie exit reasons tables), which would make the trace output less comprehensible, though. Christian On 25/04/14 11:12, Christian Borntraeger wrote: From

Re: [PATCH/RFC 00/11] perf/s390/kvm: trace events, perf kvm stat

2014-05-05 Thread Christian Borntraeger
On 02/05/14 20:14, David Ahern wrote: On 5/2/14, 3:16 AM, Jiri Olsa wrote: [...] CC-ing David Ahern I don't have the original emails, but looking at https://lkml.org/lkml/2014/4/25/331 [PATCH 01/11] s390: add sie exit reasons tables [PATCH 02/11] KVM: s390: Use trace tables from sie.h

Re: [PATCH 11/11] perf kvm: add stat support on s390

2014-05-05 Thread Christian Borntraeger
On 25/04/14 11:12, Christian Borntraeger wrote: +#if defined(__i386__) || defined(__x86_64__) else if (!strcmp(kvm-report_event, mmio)) kvm-events_ops = mmio_events; else if (!strcmp(kvm-report_event, ioport)) kvm-events_ops = ioport_events; +#endif

Re: [PATCH v4] kvm/irqchip: Speed up KVM_SET_GSI_ROUTING

2014-05-05 Thread Christian Borntraeger
On 28/04/14 18:39, Paolo Bonzini wrote: From: Christian Borntraeger borntrae...@de.ibm.com Given all your work, What about From: Paolo Bonzini pbonz...@redhat.com plus Based on an inital patch from Christian Borntraeger When starting lots of dataplane devices the bootup takes very long

Re: [GIT PULL 1/6] KVM: s390: Handle MVPG partial execution interception

2014-04-30 Thread Christian Borntraeger
On 30/04/14 10:07, Heiko Carstens wrote: On Tue, Apr 29, 2014 at 03:36:43PM +0200, Christian Borntraeger wrote: +static int handle_mvpg_pei(struct kvm_vcpu *vcpu) +{ +unsigned long hostaddr, srcaddr, dstaddr; +psw_t *psw = vcpu-arch.sie_block-gpsw; +struct mm_struct *mm = current

Re: [PATCH v4] kvm/irqchip: Speed up KVM_SET_GSI_ROUTING

2014-04-29 Thread Christian Borntraeger
On 28/04/14 18:39, Paolo Bonzini wrote: From: Christian Borntraeger borntrae...@de.ibm.com When starting lots of dataplane devices the bootup takes very long on Christian's s390 with irqfd patches. With larger setups he is even able to trigger some timeouts in some components. Turns out

[GIT PULL 0/6] KVM: s390: Fixes and single VCPU speedup

2014-04-29 Thread Christian Borntraeger
Paolo, Gleb, please consider belows pull request for 3.16. Thanks Christian The following changes since commit 198c74f43f0f5473f99967aead30ddc622804bc1: KVM: MMU: flush tlb out of mmu lock when write-protect the sptes (2014-04-23 17:49:52 -0300) are available in the git repository at:

[GIT PULL 6/6] KVM: s390: enable IBS for single running VCPUs

2014-04-29 Thread Christian Borntraeger
-cpu guests. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Dominik Dingel din...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 2 + arch/s390/kvm/kvm

[GIT PULL 2/6] KVM: s390: Add a function for checking the low-address protection

2014-04-29 Thread Christian Borntraeger
of protection, it also sets up the exception data accordingly. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.c | 28 arch/s390/kvm

[GIT PULL 4/6] KVM: s390: Add low-address protection to TEST BLOCK

2014-04-29 Thread Christian Borntraeger
From: Thomas Huth th...@linux.vnet.ibm.com TEST BLOCK is also subject to the low-address protection, so we need to check the destination address in our handler. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian

[GIT PULL 1/6] KVM: s390: Handle MVPG partial execution interception

2014-04-29 Thread Christian Borntraeger
user pages. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/intercept.c | 55 ++- 1 file changed, 54 insertions(+), 1

[GIT PULL 3/6] KVM: s390: Fixes for PFMF

2014-04-29 Thread Christian Borntraeger
Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 27f9051..a47157b 100644 --- a/arch/s390/kvm

[GIT PULL 5/6] KVM: s390: introduce kvm_s390_vcpu_{start,stop}

2014-04-29 Thread Christian Borntraeger
not be touched outside of these functions. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/diag.c | 2 +- arch/s390/kvm/intercept.c | 3 +-- arch/s390/kvm

Re: [PATCH 1/3] perf tools: parse tracepooints with '-' in system name

2014-04-28 Thread Christian Borntraeger
: 'kvm-s390:*' This patch adds an extra rule to event_legacy_tracepoint which handles those cases. Without the patch, perf will not accept such tracepoints in the -e option. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Tested-by: Christian Borntraeger borntrae...@de.ibm.com Acked

[PATCH 05/11] perf kvm: Intoduce HAVE_KVM_STAT_SUPPORT flag

2014-04-25 Thread Christian Borntraeger
-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/arch/x86/Makefile | 1 + tools/perf/builtin-kvm.c | 6 +++--- tools/perf/config/Makefile | 4 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/perf/arch

[PATCH 02/11] KVM: s390: Use trace tables from sie.h.

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin yary...@linux.vnet.ibm.com Use the symbolic translation tables from sie.h for decoding diag, sigp and sie exit codes. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h

[PATCH/RFC 00/11] perf/s390/kvm: trace events, perf kvm stat

2014-04-25 Thread Christian Borntraeger
The goal of this series is to - enable perf kvm stat on s390 - get rid of a perf warning insn_to_mnemonic not found when it tries to decode s390 perf trace events Review feedback is welcome. In addition, The patch set touches s390/kvm code and perf code. So any feedback on which tree to use for

[PATCH 10/11] perf: allow to use cpuinfo on s390

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin yary...@linux.vnet.ibm.com This patch defines CPUINFO_PROC for s390 and implements get_cpuid(). Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH 07/11] perf kvm: Refactoring of cpu_isa_config()

2014-04-25 Thread Christian Borntraeger
be used to init arch-depended things. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/builtin-kvm.c | 37 + 1 file changed

[PATCH 09/11] perf kvm: use defines of kvm events

2014-04-25 Thread Christian Borntraeger
literals. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/x86/include/uapi/asm/kvm.h | 8 tools/perf/builtin-kvm.c| 10 -- 2 files changed

[PATCH 11/11] perf kvm: add stat support on s390

2014-04-25 Thread Christian Borntraeger
Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/uapi/asm/kvm.h | 7 ++ tools/perf/MANIFEST | 3 + tools/perf/arch/s390/Makefile| 1 + tools/perf/builtin-kvm.c | 151 ++- 4

<    1   2   3   4   5   6   7   8   9   10   >