[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 08/18] s390x: protvirt: KVM intercept changes
From: |
Janosch Frank |
Subject: |
[PATCH v5 08/18] s390x: protvirt: KVM intercept changes |
Date: |
Wed, 26 Feb 2020 07:20:28 -0500 |
Secure guests no longer intercept with code 4 for an instruction
interception. Instead they have codes 104 and 108 for secure
instruction interception and secure instruction notification
respectively.
The 104 mirrors the 4 interception.
The 108 is a notification interception to let KVM and QEMU know that
something changed and we need to update tracking information or
perform specific tasks. It's currently taken for the following
instructions:
* stpx (To inform about the changed prefix location)
* sclp (On incorrect SCCB values, so we can inject a IRQ)
* sigp (All but "stop and store status")
* diag308 (Subcodes 0/1)
Signed-off-by: Janosch Frank <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
---
target/s390x/kvm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
index 1d6fd6a27b..eec0b92479 100644
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
@@ -115,6 +115,8 @@
#define ICPT_CPU_STOP 0x28
#define ICPT_OPEREXC 0x2c
#define ICPT_IO 0x40
+#define ICPT_PV_INSTR 0x68
+#define ICPT_PV_INSTR_NOTIFICATION 0x6c
#define NR_LOCAL_IRQS 32
/*
@@ -1693,6 +1695,8 @@ static int handle_intercept(S390CPU *cpu)
(long)cs->kvm_run->psw_addr);
switch (icpt_code) {
case ICPT_INSTRUCTION:
+ case ICPT_PV_INSTR:
+ case ICPT_PV_INSTR_NOTIFICATION:
r = handle_instruction(cpu, run);
break;
case ICPT_PROGRAM:
--
2.20.1
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, (continued)
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, David Hildenbrand, 2020/02/26
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, Cornelia Huck, 2020/02/26
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, Janosch Frank, 2020/02/26
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, Christian Borntraeger, 2020/02/26
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, David Hildenbrand, 2020/02/26
- Re: [PATCH v5 07/18] s390x: protvirt: Inhibit balloon when switching to protected mode, Halil Pasic, 2020/02/27
[PATCH v5 09/18] s390x: Add SIDA memory ops, Janosch Frank, 2020/02/26
[PATCH v5 13/18] s390x: protvirt: Move diag 308 data over SIDAD, Janosch Frank, 2020/02/26
[PATCH v5 12/18] s390x: protvirt: Set guest IPL PSW, Janosch Frank, 2020/02/26
[PATCH v5 11/18] s390x: protvirt: SCLP interpretation, Janosch Frank, 2020/02/26
[PATCH v5 08/18] s390x: protvirt: KVM intercept changes,
Janosch Frank <=
[PATCH v5 10/18] s390x: protvirt: Move STSI data over SIDAD, Janosch Frank, 2020/02/26
[PATCH v5 15/18] s390x: protvirt: Move IO control structures over SIDA, Janosch Frank, 2020/02/26
[PATCH v5 16/18] s390x: protvirt: Handle SIGP store status correctly, Janosch Frank, 2020/02/26
[PATCH v5 18/18] docs: Add protvirt docs, Janosch Frank, 2020/02/26
[PATCH v5 17/18] s390x: Add unpack facility feature to GA1, Janosch Frank, 2020/02/26
[PATCH v5 14/18] s390x: protvirt: Disable address checks for PV guest IO emulation, Janosch Frank, 2020/02/26
[PATCH v5 03/18] s390x: protvirt: Add diag308 subcodes 8 - 10, Janosch Frank, 2020/02/26
Re: [PATCH v5 00/18] s390x: Protected Virtualization support, Cornelia Huck, 2020/02/26