]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
KVM: PPC: First magic page steps
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:53 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:46 +0000 (10:50 +0200)
We will be introducing a method to project the shared page in guest context.
As soon as we're talking about this coupling, the shared page is colled magic
page.

This patch introduces simple defines, so the follow-up patches are easier to
read.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
include/linux/kvm_para.h

index 1674da8134cb5a127e5b638729212528f64cb072..e1da77579e65630ee557a894815bae68a5bbb1e7 100644 (file)
@@ -287,6 +287,8 @@ struct kvm_vcpu_arch {
        u64 dec_jiffies;
        unsigned long pending_exceptions;
        struct kvm_vcpu_arch_shared *shared;
+       unsigned long magic_page_pa; /* phys addr to map the magic page to */
+       unsigned long magic_page_ea; /* effect. addr to map the magic page to */
 
 #ifdef CONFIG_PPC_BOOK3S
        struct hlist_head hpte_hash_pte[HPTEG_HASH_NUM_PTE];
index 3b8080e1843f39dba8c9b3b78e82e3ec9bfa8106..ac2015a2501242f685c9bc34db6ff885170bad4b 100644 (file)
@@ -18,6 +18,7 @@
 #define KVM_HC_VAPIC_POLL_IRQ          1
 #define KVM_HC_MMU_OP                  2
 #define KVM_HC_FEATURES                        3
+#define KVM_HC_PPC_MAP_MAGIC_PAGE      4
 
 /*
  * hypercalls use architecture specific