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

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

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

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

[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

[PATCH 3/3] kvm: s390: Exploiting generic userspace interface for cmma

2014-04-10 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 2/3] kvm: s390: make cmma usage conditionally

2014-04-10 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 --- arch/s390/include/asm

[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

[PULL 1/8] KVM: s390: also set guest pages back to stable on kexec/kdump

2014-04-09 Thread Christian Borntraeger
We need to reset the usage state of the pages on kexec/kdump, which use subcode 0 and 1. We will only do the cmma reset in the kernel, everything else is done in userspace as before. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/diag.c | 4 1 file changed, 4

[PULL 8/8] KVM: s390: Add proper dirty bitmap support to S390 kvm.

2014-04-09 Thread Christian Borntraeger
: Dominik Dingel din...@linux.vnet.ibm.com [Dominik Dingel: use gmap_test_and_clear_dirty, locking fixes] Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 51 +++- virt/kvm/kvm_main.c | 2 -- 2 files changed, 50

[PULL 0/8] KVM: s390: memory management and migration

2014-04-09 Thread Christian Borntraeger
. Christian Borntraeger (1): KVM: s390: also set guest pages back to stable on kexec/kdump Dominik Dingel (5): KVM: s390: Adding skey bit to mmu context KVM: s390: Clear storage keys KVM: s390: Allow skeys to be enabled

[PULL 5/8] KVM: s390: Don't enable skeys by default

2014-04-09 Thread Christian Borntraeger
Acked-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h| 3 +++ arch/s390/include/asm/mmu_context.h | 2 +- arch/s390/kvm/kvm-s390.c| 1 + arch/s390/kvm/priv.c| 14

[PULL 6/8] KVM: s390/mm: use software dirty bit detection for user dirty tracking

2014-04-09 Thread Christian Borntraeger
no non-dataplane..) Signed-off-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com [Dominik Dingel: fixups] Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgtable.h | 135

[PULL 4/8] KVM: s390: Allow skeys to be enabled for the current process

2014-04-09 Thread Christian Borntraeger
...@linux.vnet.ibm.com Acked-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgtable.h | 1 + arch/s390/mm/pgtable.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/arch/s390

[PULL 7/8] KVM: s390/mm: new gmap_test_and_clear_dirty function

2014-04-09 Thread Christian Borntraeger
...@linux.vnet.ibm.com Acked-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgtable.h | 2 ++ arch/s390/mm/pgtable.c | 21 + 2 files changed, 23 insertions(+) diff --git a/arch/s390/include/asm

[PULL 2/8] KVM: s390: Adding skey bit to mmu context

2014-04-09 Thread Christian Borntraeger
. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Acked-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/mmu.h | 2 ++ arch/s390/include/asm/mmu_context.h | 1 + arch/s390/include/asm/pgtable.h

[PULL 3/8] KVM: s390: Clear storage keys

2014-04-09 Thread Christian Borntraeger
code (diag 308) to not clear the keys. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Acked-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgalloc.h | 3 ++- arch/s390/kvm/diag.c| 6

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

2014-04-09 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/util/parse-events.l |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index 3432995..ca20da7 100644 --- a/tools/perf/util/parse-events.l +++ b/tools/perf/util

[PULL 0/2] small perf fixes

2014-04-09 Thread Christian Borntraeger
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 into perf/core (2014-03-19 08:05:47 +0100) in the git

[PULL 2/2] perf-kvm: fix of 'Min time' counting in report command

2014-04-09 Thread Christian Borntraeger
%1us 44us 16.49us ( +- 38.20% ) [..] Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- tools/perf/builtin-kvm.c |1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-kvm.c b/tools/perf

Re: [PULL 0/8] KVM: s390: memory management and migration

2014-04-09 Thread Christian Borntraeger
On 09/04/14 12:44, Christian Borntraeger wrote: Marcelo, Gleb, (Paolo,) The following changes since commit 7cbb39d4d4d530dff12f2ff06ed6c85c504ba91a: Merge tag 'kvm-3.15-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm (2014-04-02 14:50:10 -0700) are available in the git repository

[PULLv2] KVM: s390: memory management and migration

2014-04-09 Thread Christian Borntraeger
are either ACKed or written by the s390 maintainers. Christian Borntraeger (1): kvm/s390: also set guest pages back to stable on kexec/kdump Dominik Dingel (5): KVM: s390: Adding skey bit to mmu context KVM: s390

Re: [PATCH/RFC] s390: Provide a configuration and control device

2014-04-02 Thread Christian Borntraeger
On 01/04/14 16:47, Christian Borntraeger wrote: We want to configure several things in KVM that go beyond what ENABLE_CAP (we need payload) or ONE_REG (we need it for the VM and we need to do more complex actions) can provide. Instead of adding several s390 specific ioctls, lets provide

Re: [PATCH/RFC] s390: Provide a configuration and control device

2014-04-02 Thread Christian Borntraeger
On 02/04/14 10:39, Alexander Graf wrote: On 02.04.14 10:31, Christian Borntraeger wrote: On 01/04/14 16:47, Christian Borntraeger wrote: We want to configure several things in KVM that go beyond what ENABLE_CAP (we need payload) or ONE_REG (we need it for the VM and we need to do more

[PATCH 2/5] KVM: s390: Adding skey bit to mmu context

2014-04-02 Thread Christian Borntraeger
. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/mmu.h | 2 ++ arch/s390/include/asm/mmu_context.h | 1 + arch/s390/include/asm/pgtable.h | 41 - 3 files

[PATCH 4/5] KVM: s390: Allow skeys to be enabled for the current process

2014-04-02 Thread Christian Borntraeger
...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgtable.h | 1 + arch/s390/mm/pgtable.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h

[PATCH 3/5] KVM: s390: Clear storage keys

2014-04-02 Thread Christian Borntraeger
, but this will be used by lazy sske handling. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/pgalloc.h | 3 ++- arch/s390/mm/pgtable.c | 38 +++--- 2 files

[PATCH 5/5] KVM: s390: Don't enable skeys by default

2014-04-02 Thread Christian Borntraeger
Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h| 3 +++ arch/s390/include/asm/mmu_context.h | 2 +- arch/s390/kvm/kvm-s390.c| 1 + arch/s390/kvm/priv.c| 14 ++ arch/s390/kvm/trace.h | 14

[PATCH 1/5] KVM: s390: make cmma usage conditionally

2014-04-02 Thread Christian Borntraeger
should be enabled on vCPU creation, if it is already enabled for the complete vm, if this fails, the creation should fail, to be sure we have a consistent state. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com [Remove now unnecessary

[PATCH 0/5] cmma and lazy sske

2014-04-02 Thread Christian Borntraeger
Martin, shall we send out patch 1 via your tree or kvm? Should be still in for 3.15 Can you ACK patches 2-5? Dominik Dingel (5): KVM: s390: make cmma usage conditionally KVM: s390: Adding skey bit to mmu context KVM: s390: Clear storage keys KVM: s390: Allow skeys to be enabled for the

Re: [GIT PULL] KVM changes for 3.15 merge window

2014-04-02 Thread Christian Borntraeger
On 31/03/14 11:43, Paolo Bonzini wrote: Il 31/03/2014 10:30, Paolo Bonzini ha scritto: Linus, The following changes since commit 6d0abeca3242a88cab8232e4acd7e2bf088f3bc2: Linux 3.14-rc3 (2014-02-16 13:30:25 -0800) are available in the git repository at:

[PATCH/RFC] KVM: s390: Add S390 configuration and control kvm device

2014-04-01 Thread Christian Borntraeger
and KVM_SET_DEVICE_ATTR ioctls. Signed-off-by: Ekaterina Tumanova tuman...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/devices/s390_config.txt | 13 +++ arch/s390/include/asm/kvm_host.h | 6 + arch/s390/include/uapi/asm

[PATCH/RFC] s390x/kvm: implement and use QEMU config device for s390

2014-04-01 Thread Christian Borntraeger
CONFIG device respectively). This patch uses the Qemu CONFIG device to copy the qemu_name (if specified) into the kvm CONFIG device. Signed-off-by: Ekaterina Tumanova tuman...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Michael Mueller m

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