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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle lctl[g]() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle_set_clock() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/s390/kvm/priv.c

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/gaccess.h | 81 - 1 file changed, 81 deletions(-) diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle_test_block() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/s390/kvm/priv.c

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Add kerneldoc comment to kvm_s390_real_to_abs() and change the code so it matches the coding style of the rest of gaccess.h. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/gaccess.h | 24

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

2014-04-15 Thread Christian Borntraeger
From: Jens Freimann Convert local irqs in __do_deliver_interrupt() to new guest access functions. Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- arch/s390/kvm/interrupt.c | 81 +-- 1 file changed, 43 insertions(+), 38

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle_lpsw[e]() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/s390/kvm

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert __sigp_set_prefix() and handle_set_prefix() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 20 arch/s390/kvm/sigp.c | 12 +++- 2

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle_stfl() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kvm/priv.c b

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

2014-04-15 Thread Christian Borntraeger
From: Jens Freimann 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 Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 59 +++- arch/s390/kvm

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

2014-04-15 Thread Christian Borntraeger
Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/gaccess.h | 95 +++-- 1 file changed, 93 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h index ae3cb63..917aeaa 100644 --- a/arch/s390/kvm

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 12 - arch/s390/kvm/gaccess.c | 109 +++ arch/s390/kvm/gaccess.h | 2 + arch

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert pfault code to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Dominik Dingel Signed-off-by: Christian Borntraeger --- arch/s390/kvm/diag.c | 9 - arch/s390/kvm/kvm-s390.c | 5 +++-- 2 files changed, 7 insertions(+), 7

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert __do_deliver_interrupt() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/interrupt.c | 82 +-- 1 file changed, 44 insertions

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

2014-04-15 Thread Christian Borntraeger
rrently do not perform any access checks, since there is no use case (yet?). Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/Makefile | 4 +- arch/s390/kvm/gaccess.c | 536 arc

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Convert handle_store_cpu_address() to new guest access functions. Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a

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

2014-04-15 Thread Christian Borntraeger
w).t = 1; /* set dat bit */ Signed-off-by: Heiko Carstens Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/ptrace.h | 44 ++ 1 file changed, 44 insertions(+) diff --git a/arch/s390/include

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

2014-04-15 Thread Christian Borntraeger
From: Heiko Carstens Make test_vfacility() available for other files. This is needed for the new guest access functions, which test if certain facilities are available for a guest. Signed-off-by: Heiko Carstens Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390

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

2014-04-15 Thread Christian Borntraeger
ect vcpu's last exception if needed. Signed-off-by: Heiko Carstens Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 1 + arch/s390/kvm/kvm-s390.h | 33 + 2 files changed, 34 insertions(+) diff --

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

2014-04-15 Thread Christian Borntraeger
Acked-by: Alexander Graf Signed-off-by: Christian Borntraeger --- 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 | 1

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

2014-04-15 Thread Christian Borntraeger
eviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/ctl_reg.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/s390/include/asm/ctl_reg.h b/arch/s390/include/asm/ctl_reg.h index 4e63f1a..31ab9f3 100644 --- a/arch/s3

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

2014-04-15 Thread Christian Borntraeger
;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 Signed-off-by: Christian Borntraeger [remove now unnecessary calls to age_table_reset_pgste] --- arch/s390/include/asm/kvm_host.h | 1 +

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

2014-04-15 Thread Christian Borntraeger
ing 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 Signed-off-by: Christian Borntraeger --- arch/s390/kvm

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

2014-04-15 Thread Christian Borntraeger
g base s390 are either ACKed or written by the s390 maintainers - One 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 Hilden

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

2014-04-15 Thread Christian Borntraeger
stens Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- include/linux/kvm_host.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7d21cf9..471d140 100644 --- a/include/linux/kvm_host.h

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

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

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 >> >> Trace events potentially can have a '-' in their trace system name, >> e.g. kvm on s390 defines kvm-s390:* tracepoint

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 >>> >>> Trace events potentially can have a '-' in their trace

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

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 c

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

2014-04-22 Thread Christian Borntraeger
From: Dominik Dingel 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 Signed-off-by: Christian Borntraeger --- Documentation/virtual/kvm/devices/vm.txt | 16 arch

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

2014-04-22 Thread Christian Borntraeger
Acked-by: Alexander Graf Signed-off-by: Christian Borntraeger --- Documentation/virtual/kvm/api.txt| 8 ++--- Documentation/virtual/kvm/devices/vm.txt | 10 ++ arch/s390/kvm/kvm-s390.c | 54 include/uapi/linux/kvm.h | 1

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

2014-04-22 Thread Christian Borntraeger
ase KVM patch "KVM: add kvm_is_error_gpa() helper" - One patch introduces the notion of VM device attributes ---- Christian Borntraeger (1): KVM: s390: Drop pending interrupts on guest exit Cornelia Huck (1): KVM

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 g

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)

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 cu

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

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_pre

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 >> >> Trace events potentially can have a '-' in their trace system name, >> e.g. kvm on s390 defines kvm-s390:* tracepoint

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

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

2014-04-24 Thread Christian Borntraeger
ions(+), 6 deletions(-) > I gave both patches some testing on s390, 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 -- To

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin kvm stat support is currently conditional on i386/x86_64. Let's abstract this into a HAVE_KVM_STAT_SUPPORT flag, so that other architectures can support kvm stat as well. Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntr

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin Use the symbolic translation tables from sie.h for decoding diag, sigp and sie exit codes. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/trace.h | 32

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

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin This patch defines CPUINFO_PROC for s390 and implements get_cpuid(). Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- tools/perf/arch/s390/Makefile | 1 + tools/perf/arch/s390/util/header.c | 17

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

2014-04-25 Thread Christian Borntraeger
arch-depended things. Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- tools/perf/builtin-kvm.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/bu

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

2014-04-25 Thread Christian Borntraeger
: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/x86/include/uapi/asm/kvm.h | 8 tools/perf/builtin-kvm.c| 10 -- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin This patch allows perf to record SIE trace events, decode them and print performance statistics. Commands perf kvm stat record, report and stat are supported. Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch

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

2014-04-25 Thread Christian Borntraeger
Usage of tables with 'end of sequence' marker can simplify get_exit_reason() function. Also patch introduces a define_exit_reasons_table, which makes easier to define new tables. Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- tool

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

2014-04-25 Thread Christian Borntraeger
that may cause a SIE intercept. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/uapi/asm/sie.h | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/s390

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin The current trace definition doesn't work very well with the perf tool. Perf shows a "insn_to_mnemonic not found" message. Let's handle the decoding completely in a parseable format. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger R

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

2014-04-25 Thread Christian Borntraeger
From: Alexander Yarygin 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 Signed-off-by: Christian Borntraeger --- tools/perf/builtin-

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

2014-04-25 Thread Christian Borntraeger
: Christian Borntraeger --- 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 a/arch/s390/include/uapi/asm/sie.h b/arch/s390/include/uapi/asm/sie.h new file mode 100644 index

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

2014-04-28 Thread Christian Borntraeger
*" > invalid or unsupported event: '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 Tested-by

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

[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
-by: David Hildenbrand Reviewed-by: Dominik Dingel Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 2 + arch/s390/kvm/kvm-s390.c | 123 ++- arch/s390/kvm/trace-s390.h | 22

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

2014-04-29 Thread Christian Borntraeger
the exception data accordingly. Signed-off-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/gaccess.c | 28 arch/s390/kvm/gaccess.h | 1 + 2 files changed, 29 insertions(+) diff --git a/arch/s390/kvm/gaccess.c b/arch

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

2014-04-29 Thread Christian Borntraeger
From: Thomas Huth 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 Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/priv.c | 3 +++ 1 file changed, 3 insertions

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

2014-04-29 Thread Christian Borntraeger
-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/intercept.c | 55 ++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index 30e1c5e

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

2014-04-29 Thread Christian Borntraeger
From: Thomas Huth Add a check for low-address protection to the PFMF handler and convert real-addresses to absolute if necessary, as it is defined in the Principles of Operations specification. Signed-off-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger

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

2014-04-29 Thread Christian Borntraeger
these functions. Signed-off-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/diag.c | 2 +- arch/s390/kvm/intercept.c | 3 +-- arch/s390/kvm/interrupt.c | 2 +- arch/s390/kvm/kvm-s390.c | 16 ++-- arch/s390/kvm/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_blo

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 Thanks. Applied to KVM/s390 fix

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

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 fr

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, "i

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 Given all your work, What about From: Paolo Bonzini plus "Based on an inital patch from Christian Borntraeger" > > When starting lots of dataplane devices the bootup takes very long on > Christian

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

2014-05-06 Thread Christian Borntraeger
From: Thomas Huth Add an interface to inject clock comparator and CPU timer interrupts into the guest. This is needed for handling the external interrupt interception. Signed-off-by: Thomas Huth Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger

[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
we either have to inject the interrupts manually or we should drop to userspace in case of errors. Signed-off-by: Thomas Huth Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 5 +++- arch/s390/kvm/intercept.c

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

2014-05-06 Thread Christian Borntraeger
From: Dan Carpenter 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 Signed-off-by: Christian Borntraeger --- arch/s390/kvm

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

2014-05-15 Thread Christian Borntraeger
From: Cornelia Huck s390 has acquired irqfd support with commit "KVM: s390: irq routing for adapter interrupts" (84223598778ba08041f4297fda485df83414d57e) but failed to announce it. Let's fix that. Signed-off-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-of

[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://git.k

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 befor

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

2014-05-16 Thread Christian Borntraeger
well. Signed-off-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/priv.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index

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

2014-05-16 Thread Christian Borntraeger
that may cause a SIE intercept. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/include/uapi/asm/sie.h | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/s390

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

2014-05-16 Thread Christian Borntraeger
Acked-by: Christian Borntraeger --- 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 ++ arch/s390/kvm/kvm-s390.h | 8 +++- arch/s390/kvm/priv.c

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

2014-05-16 Thread Christian Borntraeger
From: Thomas Huth Use the new helper function kvm_arch_fault_in_page() for faulting-in the guest pages and only inject addressing errors when we've really hit a bad address (and return other error codes to userspace instead). Signed-off-by: Thomas Huth Reviewed-by: Christian Borntr

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

2014-05-16 Thread Christian Borntraeger
From: Michael Mueller The patch adds functionality to retrieve the IBC configuration by means of function sclp_get_ibc(). Signed-off-by: Michael Mueller Acked-by: Cornelia Huck Acked-by: Heiko Carstens Acked-by: Christian Borntraeger --- arch/s390/include/asm/sclp.h | 1 + drivers/s390

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

2014-05-16 Thread Christian Borntraeger
host faults from taking place which does have implications on keys vs PGSTE. Signed-off-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger --- arch/s390/mm/pgtable.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/arch/s390/mm/pgtable.c b/arch

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

2014-05-16 Thread Christian Borntraeger
on will be done automatically by the SIE when preparing the start of the target cpu. Signed-off-by: David Hildenbrand Reviewed-by: Cornelia Huck CC: Thomas Huth [Adopt external call injection to check for sigp interpretion] Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/

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

2014-05-16 Thread Christian Borntraeger
Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/intercept.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index bd607cf..ddc69f5 100644 --- a/arch/s390/kvm/intercept.c

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

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin Use the symbolic translation tables from sie.h for decoding diag, sigp and sie exit codes. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/trace.h | 32

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

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin The current trace definition doesn't work very well with the perf tool. Perf shows a "insn_to_mnemonic not found" message. Let's handle the decoding completely in a parseable format. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger R

[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 tags/kvm-s390-20140516

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

2014-05-16 Thread Christian Borntraeger
: Christian Borntraeger --- 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 a/arch/s390/include/uapi/asm/sie.h b/arch/s390/include/uapi/asm/sie.h new file mode 100644 index

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

2014-05-16 Thread Christian Borntraeger
before). Signed-off-by: Thomas Huth Reviewed-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/kvm-s390.c | 32 +--- arch/s390/kvm/kvm-s390.h | 1 + 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a

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 wrote: >> >> I have seen the slides from Eduardo which he presented during this years >> DevConf in Brno and made my comments according the s390x imple

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

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

2014-05-30 Thread Christian Borntraeger
From: Thomas Huth 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 while we're at it, change

[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 tags/kvm-s390-20

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

2014-05-30 Thread Christian Borntraeger
iewed-by: Christian Borntraeger --- 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-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -950,7 +950,7 @

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

2014-05-30 Thread Christian Borntraeger
From: Thomas Huth 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 Reviewed-by: Cornelia Huck --- arch/s390/kvm/gaccess.c | 53

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

2014-05-30 Thread Christian Borntraeger
Wang Reviewed-by: Christian Borntraeger Reviewed-by: Cornelia Huck Tested-by: Matthew Rosato Signed-off-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 1 + arch/s390/kvm/kvm-s390.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/s390/includ

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

2014-05-30 Thread Christian Borntraeger
: David Hildenbrand Reviewed-by: Cornelia Huck Reviewed-by: Christian Borntraeger --- arch/s390/kvm/interrupt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index bf0d9bc..90c8de2 100644 --- 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 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. As the action_flags are

Re: [PATCH] virtio-blk: set QUEUE_ORDERED_DRAIN by default

2009-08-21 Thread Christian Borntraeger
ed-off-by: Christoph Hellwig Make sense to me. Reviewed-by: Christian Borntraeger [...] > - /* If barriers are supported, tell block layer that queue is ordered */ > + /* > + * If barriers are supported, tell block layer that queue is ordered. > + * > + *

[PATCH] kvm-s390: fix memsize >=4G on linus git head

2009-09-21 Thread Christian Borntraeger
Avi, Marcelo, commit 628eb9b8a8f3ef31d8316112a4596b1a21b38159 KVM: s390: streamline memslot handling introduced kvm_s390_vcpu_get_memsize. This broke guests >=4G, since this function returned an int. This patch changes the return value to a long. Signed-off-by: Christian Borntrae

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