[PATCH 1/3] kvm: s390: Per-vm kvm device controls

2014-04-10 Thread Christian Borntraeger
...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt| 8 ++--- Documentation/virtual/kvm/devices/vm.txt | 6 arch/s390/kvm/kvm-s390.c | 54 include/uapi/linux/kvm.h

[PATCH 0/3] Introduce per-vm kvm device attributes

2014-04-10 Thread Christian Borntraeger
Marcelo, Gleb, Alex, this is a followup to the recent discussion (re config device) To avoid a bunch of new ioctl, lets reuse the device attributes on the VM device. All of these attributes are architecture specific. Patch1 introduces the interface, Patch2 makes CMMA configurable Patch3 uses the

Re: [PATCH 1/3] kvm: s390: Per-vm kvm device controls

2014-04-10 Thread Christian Borntraeger
On 10/04/14 13:29, Alexander Graf wrote: On 10.04.14 13:16, Christian Borntraeger wrote: From: Dominik Dingel din...@linux.vnet.ibm.com We sometimes need to get/set attributes specific to a virtual machine and so need something else than ONE_REG. Let's copy the KVM_DEVICE approach

[PATCH 29/47] KVM: s390: convert handle_stidp()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_stidp() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c | 7

[PATCH 20/47] KVM: s390: convert kvm_s390_store_status_unloaded()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert kvm_s390_store_status_unloaded() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch

[PATCH 13/47] KVM: s390/sclp: correctly set eca siif bit

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Check if siif is available before setting. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/sclp.h | 7

[PATCH 03/47] KVM: s390: Exploiting generic userspace interface for cmma

2014-04-15 Thread Christian Borntraeger
From: Dominik Dingel din...@linux.vnet.ibm.com To enable CMMA and to reset its state we use the vm kvm_device ioctls, encapsulating attributes within the KVM_S390_VM_MEM_CTRL group. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae

[PATCH 44/47] KVM: s390: no timer interrupts when single-stepping a guest

2014-04-15 Thread Christian Borntraeger
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/guestdbg.c | 2 ++ arch/s390/kvm/interrupt.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/s390/kvm/guestdbg.c b/arch/s390

[PATCH 19/47] KVM: s390: convert handle_prog()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_prog() to new guest access functions. Also make the code a bit more readable and look at the return code of write_guest_lc() which was missing before. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Christian

[PATCH 43/47] KVM: s390: move timer interrupt checks into own functions

2014-04-15 Thread Christian Borntraeger
-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/interrupt.c | 38 -- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git

[PATCH 45/47] KVM: s390: Drop pending interrupts on guest exit

2014-04-15 Thread Christian Borntraeger
On hard exits (abort, sigkill) we have have some kvm_s390_interrupt_info structures hanging around. Delete those on exit to avoid memory leaks. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com CC: sta...@vger.kernel.org Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com --- arch/s390

[PATCH 35/47] s390: rename and split lowcore field per_perc_atmid

2014-04-15 Thread Christian Borntraeger
Freimann jf...@linux.vnet.ibm.com Acked-by: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/lowcore.h | 6 -- arch/s390/kernel/asm-offsets.c | 5 +++-- arch/s390/kernel/entry.S| 4 ++-- arch/s390/kernel

[PATCH 46/47] KVM: s390: replace TDB_ADDR by __LC_PGM_TDB

2014-04-15 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com The generically assembled low core labels already contain the address for the TDB. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com

[PATCH 39/47] KVM: s390: emulate stctl and stctg

2014-04-15 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com Introduce the methods to emulate the stctl and stctg instruction. Added tracing code. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 2

[PATCH 42/47] KVM: s390: add documentation for diag 501

2014-04-15 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com Added documentation for diag 501, stating that no subfunctions are provided and no parameters are used. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian

[PATCH 47/47] KVM: s390: Factor out handle_itdb to handle TX aborts

2014-04-15 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com Factor out the new function handle_itdb(), which copies the ITDB into guest lowcore to fully handle a TX abort. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian

[PATCH 41/47] KVM: s390: hardware support for guest debugging

2014-04-15 Thread Christian Borntraeger
debugging it. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 53 - arch/s390/include/uapi/asm/kvm.h | 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/guestdbg.c

[PATCH 31/47] KVM: s390: convert handle_stsi()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_stsi() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c | 9

[PATCH 36/47] s390: add fields to lowcore definition

2014-04-15 Thread Christian Borntraeger
...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kernel/asm-offsets.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/s390/kernel/asm-offsets.c b/arch/s390/kernel/asm-offsets.c index 32a284d..5e55d2a 100644 --- a/arch/s390/kernel/asm-offsets.c +++ b/arch

[PATCH 37/47] KVM: s390: extract irq parameters of intercepted program irqs

2014-04-15 Thread Christian Borntraeger
in addition to any program interrupt. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 18 +-- arch/s390/kvm/intercept.c| 65 +++- 2 files

[PATCH 34/47] s390: fix name of lowcore field at offset 0xa3

2014-04-15 Thread Christian Borntraeger
...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/lowcore.h | 4 ++-- arch/s390/kernel/asm-offsets.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h index bbf8141

[PATCH 40/47] KVM: s390: kernel header addition for guest debugging

2014-04-15 Thread Christian Borntraeger
From: David Hildenbrand d...@linux.vnet.ibm.com This patch adds the structs to the kernel headers needed to pass information from/to userspace in order to debug a guest on s390 with hardware support. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[PATCH 38/47] KVM: s390: deliver program irq parameters and use correct ilc

2014-04-15 Thread Christian Borntraeger
can be injected in addition to any program interrupt and uses the correct instruction length code (depending on the interception code) for the injection of program interrupts. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH 26/47] KVM: s390: convert handle_tpi()

2014-04-15 Thread Christian Borntraeger
a page boundary. If a protection exception happens while accessing any of the pages, the instruction is suppressed and may not have modified any memory contents. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm

[PATCH 23/47] KVM: s390: convert handle_store_prefix()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_store_prefix() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm

[PATCH 27/47] KVM: s390: reinject io interrupt on tpi failure

2014-04-15 Thread Christian Borntraeger
...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 6 ++ arch/s390/kvm/kvm-s390.h | 2 ++ arch/s390/kvm/priv.c | 10 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm

[PATCH 30/47] KVM: s390: convert handle lctl[g]()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle lctl[g]() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c

[PATCH 22/47] KVM: s390: convert handle_set_clock()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_set_clock() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c

[PATCH 32/47] KVM: s390: remove old guest access functions

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.h | 81

[PATCH 25/47] KVM: s390: convert handle_test_block()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_test_block() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm

[PATCH 33/47] KVM: s390: cleanup kvm_s390_real_to_abs()

2014-04-15 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.h | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h index ed4749e..1079c8f 100644 --- a/arch/s390/kvm/gaccess.h +++ b/arch/s390/kvm

[PATCH 16/47] KVM: s390: convert local irqs in __do_deliver_interrupt()

2014-04-15 Thread Christian Borntraeger
From: Jens Freimann jf...@linux.vnet.ibm.com Convert local irqs in __do_deliver_interrupt() to new guest access functions. Signed-off-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 81

[PATCH 28/47] KVM: s390: convert handle_lpsw[e]()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_lpsw[e]() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c

[PATCH 21/47] KVM: s390: convert __sigp_set_prefix()/handle_set_prefix()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert __sigp_set_prefix() and handle_set_prefix() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH 17/47] KVM: s390: convert handle_stfl()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_stfl() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c | 6

[PATCH 04/47] KVM: s390: allow injecting every kind of interrupt

2014-04-15 Thread Christian Borntraeger
From: Jens Freimann jf...@linux.vnet.ibm.com Add a new data structure and function that allows to inject all kinds of interrupt as defined in the PoP Signed-off-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm

[PATCH 11/47] KVM: s390: add lowcore access functions

2014-04-15 Thread Christian Borntraeger
...@de.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 --- arch/s390/kvm/gaccess.h | 95 +++-- 1 file changed, 93 insertions(+), 2 deletions

[PATCH 14/47] KVM: s390: make use of ipte lock

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 12 - arch/s390/kvm/gaccess.c

[PATCH 18/47] KVM: s390: convert pfault code

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert pfault code to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/diag.c

[PATCH 15/47] KVM: s390: convert __do_deliver_interrupt()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert __do_deliver_interrupt() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm

[PATCH 12/47] KVM: s390: add architecture compliant guest access functions

2014-04-15 Thread Christian Borntraeger
. These functions currently do not perform any access checks, since there is no use case (yet?). Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/Makefile | 4

[PATCH 24/47] KVM: s390: convert handle_store_cpu_address()

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens heiko.carst...@de.ibm.com Convert handle_store_cpu_address() to new guest access functions. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390

[PATCH 07/47] s390/ptrace: add struct psw and accessor function

2014-04-15 Thread Christian Borntraeger
(psw).t = 1; /* set dat bit */ Signed-off-by: Heiko Carstens heiko.carst...@de.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 --- arch/s390/include/asm/ptrace.h | 44

[PATCH 06/47] KVM: s390: export test_vfacility()

2014-04-15 Thread Christian Borntraeger
cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 2 +- arch/s390/kvm/kvm-s390.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index fe2396c..4b1df68 100644

[PATCH 10/47] KVM: s390: add 'pgm' member to kvm_vcpu_arch and helper function

2014-04-15 Thread Christian Borntraeger
() which can inject vcpu's last exception if needed. Signed-off-by: Heiko Carstens heiko.carst...@de.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 | 1 + arch/s390/kvm/kvm-s390.h | 33

[PATCH 01/47] KVM: s390: Per-vm kvm device controls

2014-04-15 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Alexander Graf ag...@suse.de Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt| 8 ++--- Documentation/virtual/kvm/devices/vm.txt | 6 arch/s390/kvm/kvm-s390

[PATCH 08/47] s390/ctl_reg: add union type for control register 0

2014-04-15 Thread Christian Borntraeger
Carstens heiko.carst...@de.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 --- arch/s390/include/asm/ctl_reg.h | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 02/47] KVM: s390: make cmma usage conditionally

2014-04-15 Thread Christian Borntraeger
vCPU creation. It can't be switched off once enabled. All subsequently created vCPUs will be enabled for CMMA according to the CMMA state of the VM. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com [remove now unnecessary calls

[PATCH 09/47] KVM: s390: add kvm_s390_logical_to_effective() helper

2014-04-15 Thread Christian Borntraeger
mode). Depending on the vcpu's addressing mode the upper 40 bits (24 bit addressing mode), 33 bits (31 bit addressing mode) or no bits (64 bit addressing mode) will be zeroed and the remaining bits will be returned. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Signed-off-by: Christian

[PATCH 00/47] KVM: s390: additional features and fixes

2014-04-15 Thread Christian Borntraeger
base KVM patch KVM: add kvm_is_error_gpa() helper Christian Christian Borntraeger (1): KVM: s390: Drop pending interrupts on guest exit Cornelia Huck (1): KVM: s390: reinject io interrupt on tpi failure David Hildenbrand (8): KVM: s390: extract irq parameters of intercepted program irqs

[PATCH 05/47] KVM: add kvm_is_error_gpa() helper

2014-04-15 Thread Christian Borntraeger
-off-by: Heiko Carstens heiko.carst...@de.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 --- include/linux/kvm_host.h | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [PULL 0/2] small perf fixes

2014-04-15 Thread Christian Borntraeger
On 09/04/14 16:21, Christian Borntraeger wrote: Ingo, Arnaldo, two fixes indentified during kvm on s390 development are available since commit 538592ff0b008237ae88f5ce5fb1247127dc3ce5: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux

Re: [PATCH 3/3] migration dirtybitmap support ARMv7

2014-04-16 Thread Christian Borntraeger
On 16/04/14 10:13, Marc Zyngier wrote: Hi Mario, On 16/04/14 02:24, Mario Smarduch wrote: Hi Eric, Mark - what repository should I use to pick up Eric patches? The initial posting was there: https://lists.cs.columbia.edu/pipermail/kvmarm/2014-April/008791.html Reading Eric's

Re: [PULL 1/2] perf/tool: Fix usage of trace events with '-' in trace system name.

2014-04-16 Thread Christian Borntraeger
On 16/04/14 15:00, Jiri Olsa wrote: On Wed, Apr 09, 2014 at 04:21:58PM +0200, Christian Borntraeger wrote: From: Alexander Yarygin yary...@linux.vnet.ibm.com Trace events potentially can have a '-' in their trace system name, e.g. kvm on s390 defines kvm-s390:* tracepoints. tools/perf could

Re: [PULL 1/2] perf/tool: Fix usage of trace events with '-' in trace system name.

2014-04-16 Thread Christian Borntraeger
On 16/04/14 15:28, Christian Borntraeger wrote: On 16/04/14 15:00, Jiri Olsa wrote: On Wed, Apr 09, 2014 at 04:21:58PM +0200, Christian Borntraeger wrote: From: Alexander Yarygin yary...@linux.vnet.ibm.com Trace events potentially can have a '-' in their trace system name, e.g. kvm on s390

Re: [PATCH] perf/tool: Fix usage of trace events with '-' in trace system name.

2014-04-17 Thread Christian Borntraeger
On 17/04/14 13:32, Jiri Olsa wrote: On Tue, Mar 25, 2014 at 11:15:29AM +0100, Paolo Bonzini wrote: Il 24/03/2014 21:49, Christian Borntraeger ha scritto: event_legacy_tracepoint: +PE_NAME '-' PE_NAME ':' PE_NAME +{ + struct parse_events_evlist *data = _data; + struct list_head *list

commit 0bf1457f0cfca7b mm: vmscan: do not swap anon pages just because free+file is low causes heavy performance regression on paging

2014-04-22 Thread Christian Borntraeger
While preparing/testing some KVM on s390 patches for the next merge window (target is kvm/next which is based on 3.15-rc1) I faced a very severe performance hickup on guest paging (all anonymous memory). All memory bound guests are in D state now and the system is barely unusable. Reverting

[GIT PULL 10/54] KVM: s390: Exploiting generic userspace interface for cmma

2014-04-22 Thread Christian Borntraeger
From: Dominik Dingel din...@linux.vnet.ibm.com To enable CMMA and to reset its state we use the vm kvm_device ioctls, encapsulating attributes within the KVM_S390_VM_MEM_CTRL group. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae

[GIT PULL 08/54] KVM: s390: Per-vm kvm device controls

2014-04-22 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Alexander Graf ag...@suse.de Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt| 8 ++--- Documentation/virtual/kvm/devices/vm.txt | 10 ++ arch/s390/kvm/kvm

[GIT PULL 0/54] KVM: s390: Features and Fixes for 3.16

2014-04-22 Thread Christian Borntraeger
introduces the notion of VM device attributes Christian Borntraeger (1): KVM: s390: Drop pending interrupts on guest exit Cornelia Huck (1): KVM: s390: reinject io interrupt on tpi failure David Hildenbrand (8): KVM: s390

Re: commit 0bf1457f0cfca7b mm: vmscan: do not swap anon pages just because free+file is low causes heavy performance regression on paging

2014-04-22 Thread Christian Borntraeger
On 22/04/14 12:55, Christian Borntraeger wrote: While preparing/testing some KVM on s390 patches for the next merge window (target is kvm/next which is based on 3.15-rc1) I faced a very severe performance hickup on guest paging (all anonymous memory). All memory bound guests are in D state

Re: commit 0bf1457f0cfca7b mm: vmscan: do not swap anon pages just because free+file is low causes heavy performance regression on paging

2014-04-22 Thread Christian Borntraeger
On 22/04/14 17:06, Johannes Weiner wrote: Hi Christian, On Tue, Apr 22, 2014 at 12:55:37PM +0200, Christian Borntraeger wrote: While preparing/testing some KVM on s390 patches for the next merge window (target is kvm/next which is based on 3.15-rc1) I faced a very severe performance

Re: [PATCH 1/2] KVM: async_pf: kill the unnecessary use_mm/unuse_mm async_pf_execute()

2014-04-22 Thread Christian Borntraeger
On 21/04/14 15:25, Oleg Nesterov wrote: async_pf_execute() has no reasons to adopt apf-mm, gup(current, mm) should work just fine even if current has another or NULL -mm. Recently kvm_async_page_present_sync() was added insedie the use_mm section, but it seems that it doesn't need current-mm

Re: [PATCH 2/2] KVM: async_pf: mm-mm_users can not pin apf-mm

2014-04-22 Thread Christian Borntraeger
On 21/04/14 15:26, Oleg Nesterov wrote: get_user_pages(mm) is simply wrong if mm-mm_users == 0 and exit_mmap/etc was already called (or is in progress), mm-mm_count can only pin mm-pgd and mm_struct itself. Change kvm_setup_async_pf/async_pf_execute to inc/dec mm-mm_users.

Re: [PATCH 1/2] KVM: async_pf: kill the unnecessary use_mm/unuse_mm async_pf_execute()

2014-04-22 Thread Christian Borntraeger
On 22/04/14 22:15, Christian Borntraeger wrote: On 21/04/14 15:25, Oleg Nesterov wrote: async_pf_execute() has no reasons to adopt apf-mm, gup(current, mm) should work just fine even if current has another or NULL -mm. Recently kvm_async_page_present_sync() was added insedie the use_mm

Re: [PATCH] perf/tool: Fix usage of trace events with '-' in trace system name.

2014-04-23 Thread Christian Borntraeger
On 17/04/14 16:40, Jiri Olsa wrote: On Mon, Mar 24, 2014 at 09:49:00PM +0100, Christian Borntraeger wrote: From: Alexander Yarygin yary...@linux.vnet.ibm.com Trace events potentially can have a '-' in their trace system name, e.g. kvm on s390 defines kvm-s390:* tracepoints. tools/perf could

Re: [PATCH] perf/tool: Fix usage of trace events with '-' in trace system name.

2014-04-23 Thread Christian Borntraeger
On 23/04/14 13:45, Jiri Olsa wrote: On Mon, Apr 21, 2014 at 07:43:50PM +0400, Alexander Yarygin wrote: [...] And a bit of offtopic :) Apparently, s390 doesn't have syscalls:*, so some of the tests don't work properly (or maybe I missed something? I set CONFIG_FTRACE_SYSCALLS to 'y' in my

Re: [PATCH 0/2] KVM: async_pf: use_mm/mm_users fixes

2014-04-24 Thread Christian Borntraeger
, seems fine. I think patch2 really does fix a bug. So if Paolo, Marcelo, Gleb agree (maybe do a test on x86 for async_pf) both patches are good to go. Given that somebody tests this on x86: Acked-by: Christian Borntraeger borntrae...@de.ibm.com -- To unsubscribe from this list: send the line

[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

[PATCH 06/11] perf kvm: simplify of exit reasons tables definitions

2014-04-25 Thread Christian Borntraeger
...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/builtin-kvm.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 202b9b0..9b97737 100644 --- a/tools/perf

[PATCH 03/11] KVM: s390: decoder of SIE intercepted instructions

2014-04-25 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

[PATCH 04/11] KVM: s390: Use intercept_insn decoder in trace event

2014-04-25 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

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin yary...@linux.vnet.ibm.com This makes it possible for other architectures to decode to different string lengths. Needed by follow-up patch perf kvm: add stat support on s390. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[PATCH 01/11] s390: add sie exit reasons tables

2014-04-25 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

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

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

[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

[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

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