diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-03 11:32:56 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:09 +0200 |
commit | 7508e16c9f2a20f7721d7bc47c33a7b34c873a2c (patch) | |
tree | dac48c9ea56f69f4d8b9759aa51349bad0f3abdc /arch/powerpc/include | |
parent | cb24c50826e0722bffb0674f088954cd4980818b (diff) | |
download | op-kernel-dev-7508e16c9f2a20f7721d7bc47c33a7b34c873a2c.zip op-kernel-dev-7508e16c9f2a20f7721d7bc47c33a7b34c873a2c.tar.gz |
KVM: PPC: Add feature bitmap for magic page
We will soon add SR PV support to the shared page, so we need some
infrastructure that allows the guest to query for features KVM exports.
This patch adds a second return value to the magic mapping that
indicated to the guest which features are available.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/kvm_para.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h index 7438ab3..43c1b22 100644 --- a/arch/powerpc/include/asm/kvm_para.h +++ b/arch/powerpc/include/asm/kvm_para.h @@ -47,6 +47,8 @@ struct kvm_vcpu_arch_shared { #define KVM_FEATURE_MAGIC_PAGE 1 +#define KVM_MAGIC_FEAT_SR (1 << 0) + #ifdef __KERNEL__ #ifdef CONFIG_KVM_GUEST |