aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2009-05-20 09:34:55 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:32:42 -0400
commit9ace903d171db7dc2fed96e44ac62b6f4c3ccb3d (patch)
tree50668cde71950831339d601a3bfeabe49657770e /arch/s390/include/asm
parent3032b925f00ba2653f7695d356d6f8284c82038d (diff)
KVM: s390: infrastructure to kick vcpus out of guest state
To ensure vcpu's come out of guest context in certain cases this patch adds a s390 specific way to kick them out of guest context. Currently it kicks them out to rerun the vcpu_run path in the s390 code, but the mechanism itself is expandable and with a new flag we could also add e.g. kicks to userspace etc. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/kvm_host.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h
index 1cd02f6073a0..0a784f6f9c90 100644
--- a/arch/s390/include/asm/kvm_host.h
+++ b/arch/s390/include/asm/kvm_host.h
@@ -182,8 +182,9 @@ struct kvm_s390_interrupt_info {
182}; 182};
183 183
184/* for local_interrupt.action_flags */ 184/* for local_interrupt.action_flags */
185#define ACTION_STORE_ON_STOP 1 185#define ACTION_STORE_ON_STOP (1<<0)
186#define ACTION_STOP_ON_STOP 2 186#define ACTION_STOP_ON_STOP (1<<1)
187#define ACTION_RELOADVCPU_ON_STOP (1<<2)
187 188
188struct kvm_s390_local_interrupt { 189struct kvm_s390_local_interrupt {
189 spinlock_t lock; 190 spinlock_t lock;