Blame SOURCES/kvm-s390x-Return-specification-exception-for-unimplement.patch

1359fb
From f6f56692227952864edcb0dc841cde6238470cf8 Mon Sep 17 00:00:00 2001
1359fb
From: Cornelia Huck <cohuck@redhat.com>
1359fb
Date: Mon, 21 Jan 2019 17:05:59 +0100
1359fb
Subject: [PATCH 14/14] s390x: Return specification exception for unimplemented
1359fb
 diag 308 subcodes
1359fb
1359fb
RH-Author: Cornelia Huck <cohuck@redhat.com>
1359fb
Message-id: <20190121170559.19471-1-cohuck@redhat.com>
1359fb
Patchwork-id: 84074
1359fb
O-Subject: [RHEL-7.6.z qemu-kvm-ma PATCH] s390x: Return specification exception for unimplemented diag 308 subcodes
1359fb
Bugzilla: 1668424
1359fb
RH-Acked-by: Thomas Huth <thuth@redhat.com>
1359fb
RH-Acked-by: David Hildenbrand <david@redhat.com>
1359fb
RH-Acked-by: John Snow <jsnow@redhat.com>
1359fb
1359fb
From: Janosch Frank <frankja@linux.ibm.com>
1359fb
1359fb
The architecture specifies specification exceptions for all
1359fb
unavailable subcodes.
1359fb
1359fb
The presence of subcodes is indicated by checking some query subcode.
1359fb
For example 6 will indicate that 3-6 are available. So future systems
1359fb
might call new subcodes to check for new features. This should not
1359fb
trigger a hw error, instead we return the architectured specification
1359fb
exception.
1359fb
1359fb
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
1359fb
Cc: qemu-stable@nongnu.org
1359fb
Message-Id: <20190111113657.66195-3-frankja@linux.ibm.com>
1359fb
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
1359fb
Reviewed-by: David Hildenbrand <david@redhat.com>
1359fb
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
1359fb
(cherry picked from commit 37dbd1f4d4805edcd18d94eb202bb3461b3cd52d)
1359fb
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
1359fb
---
1359fb
 target/s390x/diag.c | 2 +-
1359fb
 1 file changed, 1 insertion(+), 1 deletion(-)
1359fb
1359fb
diff --git a/target/s390x/diag.c b/target/s390x/diag.c
1359fb
index a755837..50b58df 100644
1359fb
--- a/target/s390x/diag.c
1359fb
+++ b/target/s390x/diag.c
1359fb
@@ -182,7 +182,7 @@ out:
1359fb
         }
1359fb
         return;
1359fb
     default:
1359fb
-        hw_error("Unhandled diag308 subcode %" PRIx64, subcode);
1359fb
+        s390_program_interrupt(env, PGM_SPECIFICATION, ILEN_AUTO, ra);
1359fb
         break;
1359fb
     }
1359fb
 }
1359fb
-- 
1359fb
1.8.3.1
1359fb