From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: KVM <kvm@vger.kernel.org>, Gleb Natapov <gleb@kernel.org>,
Alexander Graf <agraf@suse.de>,
Cornelia Huck <cornelia.huck@de.ibm.com>,
Jens Freimann <jfrei@linux.vnet.ibm.com>,
linux-s390 <linux-s390@vger.kernel.org>,
Christian Borntraeger <borntraeger@de.ibm.com>
Subject: [GIT PULL 01/15] KVM: s390: add defines for pfault init delivery code
Date: Tue, 26 Aug 2014 10:28:13 +0200 [thread overview]
Message-ID: <1409041707-39938-2-git-send-email-borntraeger@de.ibm.com> (raw)
In-Reply-To: <1409041707-39938-1-git-send-email-borntraeger@de.ibm.com>
From: Jens Freimann <jfrei@linux.vnet.ibm.com>
Get rid of open coded values for pfault init.
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
arch/s390/kvm/interrupt.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index f4c819b..6c9428e 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -26,6 +26,7 @@
#define IOINT_SSID_MASK 0x00030000
#define IOINT_CSSID_MASK 0x03fc0000
#define IOINT_AI_MASK 0x04000000
+#define PFAULT_INIT 0x0600
static void deliver_ckc_interrupt(struct kvm_vcpu *vcpu);
@@ -376,8 +377,9 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
case KVM_S390_INT_PFAULT_INIT:
trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, inti->type, 0,
inti->ext.ext_params2);
- rc = put_guest_lc(vcpu, 0x2603, (u16 *) __LC_EXT_INT_CODE);
- rc |= put_guest_lc(vcpu, 0x0600, (u16 *) __LC_EXT_CPU_ADDR);
+ rc = put_guest_lc(vcpu, EXT_IRQ_CP_SERVICE,
+ (u16 *) __LC_EXT_INT_CODE);
+ rc |= put_guest_lc(vcpu, PFAULT_INIT, (u16 *) __LC_EXT_CPU_ADDR);
rc |= write_guest_lc(vcpu, __LC_EXT_OLD_PSW,
&vcpu->arch.sie_block->gpsw, sizeof(psw_t));
rc |= read_guest_lc(vcpu, __LC_EXT_NEW_PSW,
--
1.8.4.2
next prev parent reply other threads:[~2014-08-26 8:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 8:28 [GIT PULL 00/15] KVM: s390: Features and fixes for next (3.18) Christian Borntraeger
2014-08-26 8:28 ` Christian Borntraeger [this message]
2014-08-26 8:28 ` [GIT PULL 02/15] KVM: s390: factor out get_ilc() function Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 03/15] KVM: clarify the idea of kvm_dirty_regs Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 04/15] KVM: s390: clear kvm_dirty_regs when dropping to user space Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 05/15] KVM: s390: no special machine check delivery Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 06/15] KVM: s390: synchronize more registers with kvm_run Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 07/15] KVM: s390: implement KVM_REQ_TLB_FLUSH and make use of it Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 08/15] KVM: s390: return -EFAULT if lowcore is not mapped during irq delivery Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 09/15] KVM: s390: don't use kvm lock in interrupt injection code Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 10/15] KVM: s390/mm: readd address parameter to pgste_ipte_notify Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 11/15] KVM: s390/mm: readd address parameter to gmap_do_ipte_notify Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 12/15] KVM: s390/mm: cleanup gmap function arguments, variable names Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 13/15] KVM: s390/mm: use radix trees for guest to host mappings Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 14/15] KVM: s390/mm: support gmap page tables with less than 5 levels Christian Borntraeger
2014-08-26 8:28 ` [GIT PULL 15/15] KVM: s390/mm: remove outdated gmap data structures Christian Borntraeger
2014-08-26 11:40 ` [GIT PULL 00/15] KVM: s390: Features and fixes for next (3.18) Paolo Bonzini
2014-08-26 11:59 ` Christian Borntraeger
2014-08-26 12:26 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409041707-39938-2-git-send-email-borntraeger@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=agraf@suse.de \
--cc=cornelia.huck@de.ibm.com \
--cc=gleb@kernel.org \
--cc=jfrei@linux.vnet.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox