Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beb03f14 authored by Alexander Graf's avatar Alexander Graf Committed by Avi Kivity
Browse files

KVM: PPC: First magic page steps



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: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 28e83b4f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -287,6 +287,8 @@ struct kvm_vcpu_arch {
	u64 dec_jiffies;
	u64 dec_jiffies;
	unsigned long pending_exceptions;
	unsigned long pending_exceptions;
	struct kvm_vcpu_arch_shared *shared;
	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
#ifdef CONFIG_PPC_BOOK3S
	struct hlist_head hpte_hash_pte[HPTEG_HASH_NUM_PTE];
	struct hlist_head hpte_hash_pte[HPTEG_HASH_NUM_PTE];
+1 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@
#define KVM_HC_VAPIC_POLL_IRQ		1
#define KVM_HC_VAPIC_POLL_IRQ		1
#define KVM_HC_MMU_OP			2
#define KVM_HC_MMU_OP			2
#define KVM_HC_FEATURES			3
#define KVM_HC_FEATURES			3
#define KVM_HC_PPC_MAP_MAGIC_PAGE	4


/*
/*
 * hypercalls use architecture specific
 * hypercalls use architecture specific