aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-07-29 08:47:49 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:50:46 -0400
commit5c6cedf488a1144ac4f683f3ea1a642533d1dcd2 (patch)
tree658f90bfde8dfef9c53675d5b114d9761869822c /arch/powerpc/include
parent2a342ed57756ad5d8af5456959433884367e5ab2 (diff)
KVM: PPC: Add PV guest critical sections
When running in hooked code we need a way to disable interrupts without clobbering any interrupts or exiting out to the hypervisor. To achieve this, we have an additional critical field in the shared page. If that field is equal to the r1 register of the guest, it tells the hypervisor that we're in such a critical section and thus may not receive any interrupts. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_para.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index 556fd59ee0f1..4577e7b6dff1 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -24,6 +24,7 @@
24#include <linux/of.h> 24#include <linux/of.h>
25 25
26struct kvm_vcpu_arch_shared { 26struct kvm_vcpu_arch_shared {
27 __u64 critical; /* Guest may not get interrupts if == r1 */
27 __u64 sprg0; 28 __u64 sprg0;
28 __u64 sprg1; 29 __u64 sprg1;
29 __u64 sprg2; 30 __u64 sprg2;