aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2017-07-06 16:40:21 +0200
committerCornelia Huck <cohuck@redhat.com>2017-08-30 18:23:25 +0200
commit1c5deaec77870961f6575e946d5af7a7d0831e57 (patch)
tree6894274d1d727a53b59cdfe9cb9b725f46b46345 /target
parent5838d65770aea0bc7d4f26bc4e5efbd0e5aeaa7a (diff)
downloadqemu-1c5deaec77870961f6575e946d5af7a7d0831e57.zip
qemu-1c5deaec77870961f6575e946d5af7a7d0831e57.tar.gz
qemu-1c5deaec77870961f6575e946d5af7a7d0831e57.tar.bz2
s390x: chsc nt2 events are pci-only
The nt2 event class is pci-only - don't look for events if pci is not in the active cpu model. Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target')
-rw-r--r--target/s390x/ioinst.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/s390x/ioinst.c b/target/s390x/ioinst.c
index 51fbea6..3fa3301 100644
--- a/target/s390x/ioinst.c
+++ b/target/s390x/ioinst.c
@@ -599,6 +599,22 @@ static int chsc_sei_nt0_have_event(void)
return 0;
}
+static int chsc_sei_nt2_get_event(void *res)
+{
+ if (s390_has_feat(S390_FEAT_ZPCI)) {
+ return pci_chsc_sei_nt2_get_event(res);
+ }
+ return 1;
+}
+
+static int chsc_sei_nt2_have_event(void)
+{
+ if (s390_has_feat(S390_FEAT_ZPCI)) {
+ return pci_chsc_sei_nt2_have_event();
+ }
+ return 0;
+}
+
#define CHSC_SEI_NT0 (1ULL << 63)
#define CHSC_SEI_NT2 (1ULL << 61)
static void ioinst_handle_chsc_sei(ChscReq *req, ChscResp *res)