[PATCH/RFC 2/2] KVM: push down irq_save from kvm_guest_exit

2015-04-28 Thread Christian Borntraeger
adoptions. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/powerpc/kvm/book3s_hv.c | 2 ++ arch/powerpc/kvm/book3s_pr.c | 2 ++ arch/powerpc/kvm/booke.c | 4 ++-- arch/s390/kvm/kvm-s390.c | 2 ++ arch/x86/kvm/x86.c | 2 ++ include/linux/kvm_host.h | 4 6

[PATCH/RFC 1/2] KVM: Push down irq_save to architectures before kvm_guest_enter

2015-04-28 Thread Christian Borntraeger
a no-op change (interrupts are disabled slighty longer). Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/powerpc/kvm/book3s_hv.c | 2 ++ arch/s390/kvm/kvm-s390.c | 4 ++-- include/linux/kvm_host.h | 14 -- 3 files changed, 12 insertions(+), 8 deletions

[PATCH/RFC 1/2] KVM: Push down irq_save to architectures before kvm_guest_enter

2015-04-28 Thread Christian Borntraeger
a no-op change (interrupts are disabled slighty longer). Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/powerpc/kvm/book3s_hv.c | 2 ++ arch/s390/kvm/kvm-s390.c | 4 ++-- include/linux/kvm_host.h | 14 -- 3 files changed, 12 insertions(+), 8 deletions

Re: [Qemu-devel] [PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities

2015-04-27 Thread Christian Borntraeger
Am 27.04.2015 um 10:55 schrieb Michael Mueller: On Mon, 27 Apr 2015 10:11:37 +0200 Christian Borntraeger borntrae...@de.ibm.com wrote: Am 13.04.2015 um 15:56 schrieb Michael Mueller: [...] +FAC_TRANSACTIONAL_EXE = 73, +/* + * The store-hypervisor-information

Re: [Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-27 Thread Christian Borntraeger
Am 27.04.2015 um 11:43 schrieb Michael Mueller: On Mon, 27 Apr 2015 10:15:47 +0200 Christian Borntraeger borntrae...@de.ibm.com wrote: Am 13.04.2015 um 15:56 schrieb Michael Mueller: [...] +static int cpu_model_get(KVMState *s, uint64_t attr, uint64_t addr) +{ +int rc = -ENOSYS

Re: [Qemu-devel] [PATCH v5 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions

2015-04-27 Thread Christian Borntraeger
Am 13.04.2015 um 15:56 schrieb Michael Mueller: This patch implements the QMP command 'query-cpu-definitions' in the S390 context. The command returns a list of cpu definitions in the current host context. A runnable and migratable cpu model has the related attributes set to true. The order

Re: [Qemu-devel] [PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities

2015-04-27 Thread Christian Borntraeger
Am 13.04.2015 um 15:56 schrieb Michael Mueller: [...] +FAC_TRANSACTIONAL_EXE = 73, +/* + * The store-hypervisor-information facility #74 is + * z/VM related and when added to be handled by QEMU + * when hosted on LPAR. (see: SC24-6179-05 page 953) + */

Re: [Qemu-devel] [PATCH v5 09/17] target-s390x: Define S390 CPU model specific facility lists

2015-04-27 Thread Christian Borntraeger
Am 13.04.2015 um 15:56 schrieb Michael Mueller: --- a/target-s390x/cpu-models.c +++ b/target-s390x/cpu-models.c @@ -76,3 +87,4 @@ S390_PROC_DEF(2827-ga1, CPU_S390_2827_GA1, IBM zEnterprise EC12 GA1) S390_PROC_DEF(2827-ga2, CPU_S390_2827_GA2, IBM zEnterprise EC12 GA2)

Re: [Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-27 Thread Christian Borntraeger
Am 13.04.2015 um 15:56 schrieb Michael Mueller: [...] +static int cpu_model_get(KVMState *s, uint64_t attr, uint64_t addr) +{ +int rc = -ENOSYS; +struct kvm_device_attr dev_attr = { +.group = KVM_S390_VM_CPU_MODEL, +.attr = attr, +.addr = addr, Would it make

Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines

2015-04-27 Thread Christian Borntraeger
Am 13.04.2015 um 15:56 schrieb Michael Mueller: --- a/target-s390x/cpu-models.c +++ b/target-s390x/cpu-models.c @@ -88,3 +88,85 @@ S390_PROC_DEF(2827-ga2, CPU_S390_2827_GA2, IBM zEnterprise EC12 GA2) [...] +int set_s390_cpu_alias(const char *name, const char *model) +{ +S390CPUAlias

Re: [Qemu-devel] [PATCH v5 00/17] s390x cpu model implementation

2015-04-27 Thread Christian Borntraeger
-by: Christian Borntraeger borntrae...@de.ibm.com for the series. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] KVM: s390: remove delayed reallocation of page tables for KVM

2015-04-27 Thread Christian Borntraeger
Am 27.04.2015 um 16:03 schrieb Alexander Graf: On 04/27/2015 03:57 PM, Martin Schwidefsky wrote: On Mon, 27 Apr 2015 15:48:42 +0200 Alexander Graf ag...@suse.de wrote: On 04/23/2015 02:13 PM, Martin Schwidefsky wrote: On Thu, 23 Apr 2015 14:01:23 +0200 Alexander Graf ag...@suse.de wrote:

[PATCH] KVM: s390: remove delayed reallocation of page tables for KVM

2015-04-23 Thread Christian Borntraeger
control is set the page tables for all processes are allocated as full 4K pages, even for processes that do not need it. Signed-off-by: Martin Schwidefsky schwidef...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/mmu.h | 4 +- arch/s390

[PATCH] page table bugfix for s390/kvm

2015-04-23 Thread Christian Borntraeger
Paolo, Alex, we plan to submit this fixup via Martins s390 tree (as it is all in common s390 memory management). It fixes a fundamental design bug in our page table handling. Some background: Normal page tables are 2kb. For KVM we need a special page table extension that creates another 2k after

Re: [PATCH] KVM: s390: remove delayed reallocation of page tables for KVM

2015-04-23 Thread Christian Borntraeger
Am 23.04.2015 um 13:37 schrieb Alexander Graf: Am 23.04.2015 um 13:08 schrieb Christian Borntraeger borntrae...@de.ibm.com: From: Martin Schwidefsky schwidef...@de.ibm.com Replacing a 2K page table with a 4K page table while a VMA is active for the affected memory region

Re: [PATCH] KVM: s390: remove delayed reallocation of page tables for KVM

2015-04-23 Thread Christian Borntraeger
Am 23.04.2015 um 14:01 schrieb Alexander Graf: Am 23.04.2015 um 13:43 schrieb Christian Borntraeger borntrae...@de.ibm.com: Am 23.04.2015 um 13:37 schrieb Alexander Graf: Am 23.04.2015 um 13:08 schrieb Christian Borntraeger borntrae...@de.ibm.com: From: Martin Schwidefsky schwidef

Re: [RFC PATCH 0/3] Report guest steal time in host

2015-04-22 Thread Christian Borntraeger
Am 22.04.2015 um 12:24 schrieb Naveen N. Rao: Steal time accounts the time duration during which a guest vcpu was ready to run, but was not scheduled to run by the hypervisor. This is particularly relevant in cloud environment where customers would want to use this as an indicator that their

[PATCH] KVM: s390: Fix for kvm/master (target 4.1)

2015-04-15 Thread Christian Borntraeger
Paolo, here is a small fix for a regression that came in during the merge window. If affects only guests older than 3.12 when running on z196 or newer and transparent huge pages are used in the guest. As it is only one patch I prepared no signed tag - let me know if you prefer to have one.

[PATCH] KVM: s390: disable RRBM again

2015-04-15 Thread Christian Borntraeger
commit b273921356df (KVM: s390: enable more features that need no hypervisor changes) also enabled RRBM. Turns out that this instruction does need some KVM code, so lets disable that bit again. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed-by: David Hildenbrand d

[GIT PULL 8/8] KVM: s390: migrate vcpu interrupt state

2015-03-31 Thread Christian Borntraeger
-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 61 + arch/s390/kvm/interrupt.c | 140 ++ arch

[GIT PULL 4/8] KVM: s390: deliver floating interrupts in order of priority

2015-03-31 Thread Christian Borntraeger
and a corresponding spin lock. This patch adds a separate list per interrupt type. An exception to this are service signal and machine check interrupts, as there can be only one pending interrupt at a time. Signed-off-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[GIT PULL 6/8] KVM: s390: add ioctl to inject local interrupts

2015-03-31 Thread Christian Borntraeger
...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 56 +++ arch/s390/kvm/kvm-s390.c | 10 +++ include/uapi/linux/kvm.h | 3

[GIT PULL 2/8] KVM: s390: enable more features that need no hypervisor changes

2015-03-31 Thread Christian Borntraeger
architectural mode. --- handled by SIE. KVM will retry SIE 80 The decimal-floating-point packed-conversion facility is installed in the z/Architecture architectural mode. --- handled by SIE Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Tested-by: Michael Mueller m

[GIT PULL 0/8] KVM: s390: Features and fixes for 4.1 (kvm/next)

2015-03-31 Thread Christian Borntraeger
a spinlock (cc stable) 2.2 Rework floating interrupts to follow the priorities 2.3 Allow to inject all local interrupts via new ioctl 2.4 allow to get/set the full local irq state, e.g. for migration and introspection Christian

[GIT PULL 5/8] KVM: s390: cpu timer irq priority

2015-03-31 Thread Christian Borntraeger
, the cpu timer and the clock comparator are to be checked for common code kvm_cpu_has_pending_timer(), although the cpu timer is only stepped when the guest is being executed. Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off

[GIT PULL 1/8] KVM: s390: store the breaking-event address on pgm interrupts

2015-03-31 Thread Christian Borntraeger
and also store the breaking event address in case of manual program interrupt injection. Reviewed-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae

[GIT PULL 7/8] KVM: s390: refactor vcpu injection function

2015-03-31 Thread Christian Borntraeger
Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm/interrupt.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions

[GIT PULL 3/8] KVM: s390: fix get_all_floating_irqs

2015-03-31 Thread Christian Borntraeger
giving up the lock. Cc: sta...@vger.kernel.org # 3.18+: 69a8d4562638 KVM: s390: no need to hold... Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Jens Freimann jf...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck

Re: [GIT PULL 3/8] KVM: s390: fix get_all_floating_irqs

2015-03-31 Thread Christian Borntraeger
Am 31.03.2015 um 16:12 schrieb Heiko Carstens: On Tue, Mar 31, 2015 at 03:01:58PM +0200, Christian Borntraeger wrote: From: Jens Freimann jf...@linux.vnet.ibm.com This fixes a bug introduced with commit c05c4186bbe4 (KVM: s390: add floating irq controller). get_all_floating_irqs() does

[GIT PULLv2] KVM: s390: Features and fixes for 4.1 (kvm/next)

2015-03-31 Thread Christian Borntraeger
a spinlock (cc stable) 2.2 Rework floating interrupts to follow the priorities 2.3 Allow to inject all local interrupts via new ioctl 2.4 allow to get/set the full local irq state, e.g. for migration and introspection Christian

[PULL diff] diff to previous pull request

2015-03-31 Thread Christian Borntraeger
From: Jens Freimann jf...@linux.vnet.ibm.com - change __user u8 to u8 __user - avoid unnecessary casts - use capability numbers 113 and 114 diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index ee2dfdc..9de4726 100644 --- a/arch/s390/kvm/interrupt.c +++

Re: [PATCH v4 07/15] target-s390x: Update linux-headers/asm-s390/kvm.h

2015-03-30 Thread Christian Borntraeger
Am 30.03.2015 um 16:28 schrieb Michael Mueller: Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com --- linux-headers/asm-s390/kvm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Looks like a leftover. Drop that patch and rename ibc_range to ibc in the other

[GIT PULL 04/11] KVM: s390: Guest's memory access functions get access registers

2015-03-18 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/diag.c | 4 +-- arch/s390/kvm/gaccess.c | 4 +-- arch/s390/kvm/gaccess.h | 14 + arch/s390/kvm

[GIT PULL 07/11] KVM: s390: Add MEMOP ioctls for reading/writing guest memory

2015-03-18 Thread Christian Borntraeger
to prevent that the guest can trigger huge copy_from/to_user transfers. QEMU currently only requests up to one or two pages so far, so 16*4kB seems to be a reasonable limit here. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 00/11] KVM: s390: Features and fixes for 4.1 (kvm/next)

2015-03-18 Thread Christian Borntraeger
Paolo, Marcelo, here is the followup pull request. As Marcelo has not yet pushed out queue or next to git.kernel.org, this request is based on the previous s390 pull request and should merge without conflicts. For details see tag description. Christian The following changes since commit

[GIT PULL 09/11] KVM: s390: Create ioctl for Getting/Setting guest storage keys

2015-03-18 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 58 ++ arch/s390/kvm/kvm-s390.c | 123 ++ include/uapi/linux/kvm.h

[GIT PULL 01/11] KVM: s390: Spelling s/intance/instance/

2015-03-18 Thread Christian Borntraeger
From: Geert Uytterhoeven geert+rene...@glider.be Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be Message-Id: 1425932832-6244-1-git-send-email-geert+rene...@glider.be Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.h | 2 +- 1 file changed, 1

[GIT PULL 06/11] KVM: s390: Add access register mode

2015-03-18 Thread Christian Borntraeger
of the access register translation. See the Access-Register Introduction section of the chapter 5 Program Execution in Principles of Operations for more details. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[GIT PULL 11/11] KVM: s390: represent SIMD cap in kvm facility

2015-03-18 Thread Christian Borntraeger
-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 1 - arch/s390/kvm/kvm-s390.c | 19 +++ arch/s390/kvm/kvm-s390.h | 11 +++ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/arch/s390/include/asm

[GIT PULL 03/11] KVM: s390: Fix low-address protection for real addresses

2015-03-18 Thread Christian Borntraeger
yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.c | 11 ++- arch/s390

[GIT PULL 10/11] KVM: s390: drop SIMD bit from kvm_s390_fac_list_mask

2015-03-18 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 0dc22ba..42b8a25 100644 --- a/arch/s390

[GIT PULL 02/11] KVM: s390: cleanup jump lables in kvm_arch_init_vm

2015-03-18 Thread Christian Borntraeger
From: Dominik Dingel din...@linux.vnet.ibm.com As all cleanup functions can handle their respective NULL case there is no need to have more than one error jump label. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian

[GIT PULL 08/11] KVM: s390: introduce post handlers for STSI

2015-03-18 Thread Christian Borntraeger
. Reviewed-by: Eric Farman far...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Ekaterina Tumanova tuman...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 28

[GIT PULL 05/11] KVM: s390: Optimize paths where get_vcpu_asce() is invoked

2015-03-18 Thread Christian Borntraeger
. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.c

Re: [PATCH/RFC 5/9] KVM: s390: introduce post handlers for STSI

2015-03-16 Thread Christian Borntraeger
Am 16.03.2015 um 12:55 schrieb Paolo Bonzini: On 16/03/2015 09:51, Christian Borntraeger wrote: From: Ekaterina Tumanova tuman...@linux.vnet.ibm.com The Store System Information (STSI) instruction currently collects all information it relays to the caller in the kernel. Some information

Re: [PATCH/RFC 4/9] KVM: s390: Add MEMOP ioctls for reading/writing guest memory

2015-03-16 Thread Christian Borntraeger
Am 16.03.2015 um 13:16 schrieb Cornelia Huck: On Mon, 16 Mar 2015 09:51:40 +0100 Christian Borntraeger borntrae...@de.ibm.com wrote: From: Thomas Huth th...@linux.vnet.ibm.com On s390, we've got to make sure to hold the IPTE lock while accessing logical memory. So let's add an ioctl

[PATCH/RFC 6/9] KVM: s390: Guest's memory access functions get access registers

2015-03-16 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/diag.c | 4 +-- arch/s390/kvm/gaccess.c | 8 ++--- arch/s390/kvm/gaccess.h | 16 +- arch/s390/kvm/intercept.c | 4 +-- arch/s390/kvm/kvm-s390.c

[PATCH/RFC 4/9] KVM: s390: Add MEMOP ioctls for reading/writing guest memory

2015-03-16 Thread Christian Borntraeger
to prevent that the guest can trigger huge copy_from/to_user transfers. QEMU currently only requests up to one or two pages so far, so 16*4kB seems to be a reasonable limit here. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[PATCH/RFC 2/9] KVM: s390: cleanup jump lables in kvm_arch_init_vm

2015-03-16 Thread Christian Borntraeger
From: Dominik Dingel din...@linux.vnet.ibm.com As all cleanup functions can handle their respective NULL case there is no need to have more than one error jump label. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch

[PATCH/RFC 7/9] KVM: s390: Optimize paths where get_vcpu_asce() is invoked

2015-03-16 Thread Christian Borntraeger
. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.c | 25 - 1 file changed, 12

[PATCH/RFC 8/9] KVM: s390: Add access register mode

2015-03-16 Thread Christian Borntraeger
of the access register translation. See the Access-Register Introduction section of the chapter 5 Program Execution in Principles of Operations for more details. Signed-off-by: Alexander Yarygin yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[PATCH/RFC 5/9] KVM: s390: introduce post handlers for STSI

2015-03-16 Thread Christian Borntraeger
. Reviewed-by: Eric Farman far...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Ekaterina Tumanova tuman...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 28

[PATCH/RFC 0/9] Next bunch of KVM/s390x changes for next

2015-03-16 Thread Christian Borntraeger
Paolo, Marcelo, Alex, this is my current patch queue that I want to send for the next pull request. As it contains 3 API extensions - KVM: s390: introduce post handlers for STSI - KVM: s390: Create ioctl for Getting/Setting guest storage keys - KVM: s390: Add MEMOP ioctls for reading/writing

[PATCH/RFC 9/9] KVM: s390: Create ioctl for Getting/Setting guest storage keys

2015-03-16 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 58 ++ arch/s390/kvm/kvm-s390.c | 122 ++ include/uapi/linux/kvm.h

[PATCH/RFC 3/9] KVM: s390: Fix low-address protection for real addresses

2015-03-16 Thread Christian Borntraeger
yary...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/gaccess.c | 11 ++- arch/s390/kvm/gaccess.h | 2 +- arch/s390/kvm/priv.c| 4

[PATCH/RFC 1/9] KVM: s390: Spelling s/intance/instance/

2015-03-16 Thread Christian Borntraeger
From: Geert Uytterhoeven geert+rene...@glider.be Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be Message-Id: 1425932832-6244-1-git-send-email-geert+rene...@glider.be Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.h | 2 +- 1 file changed, 1

Re: [PATCH 3/3] KVM: For the symbols used locally only should be static type.

2015-03-13 Thread Christian Borntraeger
Am 13.03.2015 um 10:39 schrieb Xiubo Li: This patch fix the following sparse warnings: for file virt/kvm/kvm_main.c: warning: symbol 'halt_poll_ns' was not declared. Should it be static? Signed-off-by: Xiubo Li lixi...@cmss.chinamobile.com --- virt/kvm/kvm_main.c | 2 +- 1 file

[PATCH] KVM: MAINTAINERS: add file arch/x86/kernel/kvm.c|kvmclock.c

2015-03-12 Thread Christian Borntraeger
The KVM list should be CCed on changes for arch/x86/kernel/kvm.c and arch/x86/kernel/kvmclock.c Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ddc5a8c..80e3488 100644

Re: [PATCH trivial] KVM: s390: Spelling s/intance/instance/

2015-03-10 Thread Christian Borntraeger
Am 09.03.2015 um 21:27 schrieb Geert Uytterhoeven: Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- arch/s390/kvm/kvm-s390.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index

Re: [PATCH] KVM: make halt_poll_ns static

2015-03-09 Thread Christian Borntraeger
Am 03.03.2015 um 22:46 schrieb Christian Borntraeger: [...] halt_poll_ns is used only locally. Make it static and remove the initializer. diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 34310a8..58bc2a9 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -66,7

[GIT PULL 16/20] KVM: s390: Allocate and save/restore vector registers

2015-03-06 Thread Christian Borntraeger
-off-by: Eric Farman far...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 10 ++ arch/s390/include/asm/kvm_host.h

[GIT PULL 12/20] KVM: s390: perform vcpu model setup in a function

2015-03-06 Thread Christian Borntraeger
of vcpu setup to allow kvm facility tests. There is no need to protect the cpu model setup with a lock since the attributes can't be changed anymore as soon the first vcpu is online. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 07/20] KVM: s390: fix handling of write errors in the tpi handler

2015-03-06 Thread Christian Borntraeger
reinjected. Therefore the dequeued interrupt is lost. This patch fixes the problem while cleaning up the function and making the cc and rc logic easier to handle. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Cc: sta...@vger.kernel.org # 3.16+ Signed-off-by: Christian Borntraeger borntrae

[GIT PULL 02/20] KVM: s390/cpacf: Fix kernel bug under z/VM

2015-03-06 Thread Christian Borntraeger
[ 386.098814] [0070476a] system_call+0xd6/0x258 [ 386.098815] [03fffc7400a2] 0x3fffc7400a2 Lets add an extable entry and provide a zeroed config in that case. Reported-by: Stefan Zimmermann s...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed

[GIT PULL 04/20] KVM: s390: include guest facilities in kvm facility test

2015-03-06 Thread Christian Borntraeger
not offer them. The userspace interface is not affected by this change. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 12 ++-- arch/s390/kvm/kvm-s390.c | 30

[GIT PULL 01/20] KVM: s390/cpacf: Enable key wrapping by default

2015-03-06 Thread Christian Borntraeger
From: Tony Krowiak akrow...@linux.vnet.ibm.com z/VM and LPAR enable key wrapping by default, lets do the same on KVM. Signed-off-by: Tony Krowiak akrow...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 10 +++--- 1 file changed

[GIT PULL 03/20] KVM: s390: fix in memory copy of facility lists

2015-03-06 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com The facility lists were not fully copied. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[GIT PULL 08/20] KVM: s390: reinjection of irqs can fail in the tpi handler

2015-03-06 Thread Christian Borntraeger
and returns -EFAULT in this special case. This error is not recoverable, so let's fail hard. This can later be avoided by not dequeuing the interrupt but working directly on the locked list. Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Cc: sta...@vger.kernel.org # 3.16+ Signed-off-by: Christian

[GIT PULL 15/20] KVM: s390: Use the read_guest_abs() in guest debug functions

2015-03-06 Thread Christian Borntraeger
yary...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/guestdbg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[GIT PULL 05/20] KVM: s390: non-LPAR case obsolete during facilities mask init

2015-03-06 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com With patch include guest facilities in kvm facility test it is no longer necessary to have special handling for the non-LPAR case. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 06/20] KVM: s390: Zero out current VMDB of STSI before including level3 data.

2015-03-06 Thread Christian Borntraeger
Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/priv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 3511169..c7fee9d 100644 --- a/arch/s390/kvm/priv.c +++ b/arch

[GIT PULL 17/20] KVM: s390: Vector exceptions

2015-03-06 Thread Christian Borntraeger
d...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 1 + arch/s390/kvm/intercept.c| 1 + arch/s390/kvm/interrupt.c| 1 + 3 files changed, 3 insertions

[GIT PULL 14/20] KVM: s390: fix instruction interception trace point

2015-03-06 Thread Christian Borntraeger
: kvm_s390_intercept_instruction: [FAILED TO PARSE]... So let's add parentheses around the instruction parser macro to fix the format parsing. Acked-by: Christian Borntraeger borntrae...@de.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com

[GIT PULL 00/20] KVM: s390: Features and Fixes for 4.1 (kvm/next)

2015-03-06 Thread Christian Borntraeger
. Alexander Yarygin (1): KVM: s390: Use the read_guest_abs() in guest debug functions Christian Borntraeger (1): KVM: s390/cpacf: Fix kernel bug under z/VM David Hildenbrand (3): KVM: s390: fix handling of write errors in the tpi handler KVM: s390: reinjection

[GIT PULL 20/20] KVM: s390: Enable vector support for capable guest

2015-03-06 Thread Christian Borntraeger
data exception that would otherwise occur when a vector instruction is issued by the guest operating system. Signed-off-by: Eric Farman far...@linux.vnet.ibm.com Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm

[GIT PULL 13/20] KVM: s390: Fix trivial typo in comments

2015-03-06 Thread Christian Borntraeger
From: Yannick Guerrini yguerr...@tomshardware.fr Change 'architecuture' to 'architecture' Signed-off-by: Yannick Guerrini yguerr...@tomshardware.fr Message-Id: 1424989004-14412-1-git-send-email-yguerr...@tomshardware.fr Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390

[GIT PULL 18/20] KVM: s390: Add new SIGP order to kernel counters

2015-03-06 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 1 + arch/s390/kvm/kvm-s390.c | 1 + arch/s390/kvm/sigp.c | 3 +++ 3 files changed, 5 insertions(+) diff

[GIT PULL 09/20] KVM: s390: Nullify instruction for certain program exceptions

2015-03-06 Thread Christian Borntraeger
Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Acked-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm

[GIT PULL 10/20] KVM: s390: Forward PSW to next instruction for addressing exceptions

2015-03-06 Thread Christian Borntraeger
instruction. Having fixed this issue, we can now also enable the TPROT interpretation facility again which had been disabled because of this problem. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae

[GIT PULL 19/20] KVM: s390: Machine Check

2015-03-06 Thread Christian Borntraeger
Reviewed-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/kernel/asm-offsets.c | 1 + arch/s390/kvm/interrupt.c | 4 arch/s390/kvm/kvm-s390.c | 29

[GIT PULL 11/20] KVM: s390: Use insn_length() to calculate length of instruction

2015-03-06 Thread Christian Borntraeger
Huth th...@linux.vnet.ibm.com Reviewed-by: Jens Freimann jf...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 7 +++ 1 file

Re: [GIT PULL 0/5] KVM: s390: Fixups for changes in merge window for 4.0

2015-03-05 Thread Christian Borntraeger
Am 05.03.2015 um 09:41 schrieb Christian Borntraeger: Can you generate pull against current master? $ git pull --ff-only git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git Can you use git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git tags/kvm-s390-master

Re: [GIT PULL 0/5] KVM: s390: Fixups for changes in merge window for 4.0

2015-03-05 Thread Christian Borntraeger
Am 05.03.2015 um 02:07 schrieb Marcelo Tosatti: On Wed, Mar 04, 2015 at 12:41:49PM +0100, Christian Borntraeger wrote: Paolo, Marcelo, here is a pull request for kvm/master targetting 4.0. It is based on 4.0-rc1 as I want all patches in an upcoming pull request against kvm/next as well

[GIT PULL 2/5] KVM: s390/cpacf: Fix kernel bug under z/VM

2015-03-04 Thread Christian Borntraeger
[ 386.098814] [0070476a] system_call+0xd6/0x258 [ 386.098815] [03fffc7400a2] 0x3fffc7400a2 Lets add an extable entry and provide a zeroed config in that case. Reported-by: Stefan Zimmermann s...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Reviewed

[GIT PULL 4/5] KVM: s390: include guest facilities in kvm facility test

2015-03-04 Thread Christian Borntraeger
not offer them. The userspace interface is not affected by this change. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 12 ++-- arch/s390/kvm/kvm-s390.c | 30

[GIT PULL 3/5] KVM: s390: fix in memory copy of facility lists

2015-03-04 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com The facility lists were not fully copied. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[GIT PULL 5/5] KVM: s390: non-LPAR case obsolete during facilities mask init

2015-03-04 Thread Christian Borntraeger
From: Michael Mueller m...@linux.vnet.ibm.com With patch include guest facilities in kvm facility test it is no longer necessary to have special handling for the non-LPAR case. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com

[GIT PULL 0/5] KVM: s390: Fixups for changes in merge window for 4.0

2015-03-04 Thread Christian Borntraeger
/cpacf: Enable/disable protected key functions for kvm guest) commit 45c9b47c588 (KVM: s390/CPACF: Choose crypto control block format) which all have been merged during the merge window for 4.0. Christian Borntraeger (1): KVM: s390

[GIT PULL 1/5] KVM: s390/cpacf: Enable key wrapping by default

2015-03-04 Thread Christian Borntraeger
From: Tony Krowiak akrow...@linux.vnet.ibm.com z/VM and LPAR enable key wrapping by default, lets do the same on KVM. Signed-off-by: Tony Krowiak akrow...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 10 +++--- 1 file changed

Re: [GIT PULL 0/5] KVM: s390: Fixups for changes in merge window for 4.0

2015-03-04 Thread Christian Borntraeger
Am 04.03.2015 um 12:41 schrieb Christian Borntraeger: Paolo, Marcelo, here is a pull request for kvm/master targetting 4.0. It is based on 4.0-rc1 as I want all patches in an upcoming pull request against kvm/next as well to avoid nasty merge conflicts with other changes that we have

Re: [PATCH] KVM: make halt_poll_ns static

2015-03-03 Thread Christian Borntraeger
Am 03.03.2015 um 22:42 schrieb Bandan Das: Christian Borntraeger borntrae...@de.ibm.com writes: halt_poll_ns is used only locally. Make it static. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] KVM: make halt_poll_ns static

2015-02-27 Thread Christian Borntraeger
halt_poll_ns is used only locally. Make it static. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 34310a8..58bc2a9 100644 --- a/virt/kvm

Re: [PATCH] KVM/s390: Fix trivial typo in comments

2015-02-27 Thread Christian Borntraeger
Am 26.02.2015 um 23:16 schrieb Yannick Guerrini: Change 'architecuture' to 'architecture' Signed-off-by: Yannick Guerrini yguerr...@tomshardware.fr Thanks, applied. --- arch/s390/kvm/gaccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kvm/gaccess.c

Re: [PATCH for stable] x86/spinlocks/paravirt: Fix memory corruption on unlock

2015-02-25 Thread Christian Borntraeger
Am 25.02.2015 um 11:08 schrieb Ingo Molnar: * Greg KH gre...@linuxfoundation.org wrote: It's: d6abfdb20223 x86/spinlocks/paravirt: Fix memory corruption on unlock Yes, This is the original patch. Please note I have taken out the READ_ONCE changes from the original patch to avoid build

Re: [Qemu-devel] [RFC PATCH v2 04/15] cpu-model/s390: Introduce S390 CPU models

2015-02-23 Thread Christian Borntraeger
Am 23.02.2015 um 13:56 schrieb Christian Borntraeger: Am 20.02.2015 um 16:22 schrieb Alexander Graf: Am 20.02.2015 um 16:00 schrieb Michael Mueller m...@linux.vnet.ibm.com: On Fri, 20 Feb 2015 14:54:23 +0100 Alexander Graf ag...@suse.de wrote: +/* machine related properties */ +typedef

Re: [Qemu-devel] [RFC PATCH v2 04/15] cpu-model/s390: Introduce S390 CPU models

2015-02-23 Thread Christian Borntraeger
Am 20.02.2015 um 16:22 schrieb Alexander Graf: Am 20.02.2015 um 16:00 schrieb Michael Mueller m...@linux.vnet.ibm.com: On Fri, 20 Feb 2015 14:54:23 +0100 Alexander Graf ag...@suse.de wrote: +/* machine related properties */ +typedef struct S390CPUMachineProps { +uint16_t class;

Re: [GIT PULL] locking fixes

2015-02-23 Thread Christian Borntraeger
Am 21.02.2015 um 02:51 schrieb Linus Torvalds: So here's my try at fixing READ_ONCE() so that it is happy with 'const' sources. It is entirely untested. Comments/testing? Christian, I guess I could just have forced a cast instead of the union. I'd like you to take a look at this, because

Re: [PATCH] kvm: add halt_poll_ns module parameter

2015-02-09 Thread Christian Borntraeger
Am 06.02.2015 um 13:48 schrieb Paolo Bonzini: This patch introduces a new module parameter for the KVM module; when it is present, KVM attempts a bit of polling on every HLT before scheduling itself out via kvm_vcpu_block. This parameter helps a lot for latency-bound workloads---in

[GIT PULL 1/7] KVM: s390: floating irqs: fix user triggerable endless loop

2015-02-09 Thread Christian Borntraeger
...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: David Hildenbrand d...@linux.vnet.ibm.com Cc: sta...@vger.kernel.org # v3.15+ Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/kvm/interrupt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[GIT PULL 4/7] KVM: s390/CPACF: Choose crypto control block format

2015-02-09 Thread Christian Borntraeger
accordingly. This is a host only change for z13 and does not affect the guest view. Signed-off-by: Tony Krowiak akrow...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 2 ++ arch/s390/kvm/kvm-s390.c | 49

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