summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/kvm.h
diff options
context:
space:
mode:
authorCarsten Otte <carsteno@de.ibm.com>2009-11-19 14:21:16 +0100
committerAvi Kivity <avi@redhat.com>2009-12-03 09:32:25 +0200
commitd7b0b5eb3000c6fb902f08c619fcd673a23d8fab (patch)
tree4c7aa92657435c687f98383aaea5ce15ee9fba9c /arch/s390/include/asm/kvm.h
parent3cfc3092f40bc37c57ba556cfd8de4218f2135ab (diff)
KVM: s390: Make psw available on all exits, not just a subset
This patch moves s390 processor status word into the base kvm_run struct and keeps it up-to date on all userspace exits. The userspace ABI is broken by this, however there are no applications in the wild using this. A capability check is provided so users can verify the updated API exists. Cc: stable@kernel.org Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/kvm.h')
-rw-r--r--arch/s390/include/asm/kvm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/include/asm/kvm.h b/arch/s390/include/asm/kvm.h
index 3dfcaeb5d7f4..82b32a100c7d 100644
--- a/arch/s390/include/asm/kvm.h
+++ b/arch/s390/include/asm/kvm.h
@@ -1,6 +1,5 @@
#ifndef __LINUX_KVM_S390_H
#define __LINUX_KVM_S390_H
-
/*
* asm-s390/kvm.h - KVM s390 specific structures and definitions
*
@@ -15,6 +14,8 @@
*/
#include <linux/types.h>
+#define __KVM_S390
+
/* for KVM_GET_REGS and KVM_SET_REGS */
struct kvm_regs {
/* general purpose regs for s390 */