Skip to contentSkip to conversation

Add fields to PACA

PATCH In review Alexander Graf 1 participant 1 message Sep 29, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 22/27 Add fields to PACA

For KVM we need to store some information in the PACA, so we need to extend it.

This patch adds KVM SLB shadow related entries to the PACA and a field that indicates if we're inside a guest.

---
 arch/powerpc/include/asm/paca.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/paca.h +9 -0
index 7d8514c..5e9b4ef 100644
@@ -129,6 +129,15 @@ struct paca_struct {
 	u64 system_time;		/* accumulated system TB ticks */
 	u64 startpurr;			/* PURR/TB value snapshot */
 	u64 startspurr;			/* SPURR value snapshot */
+
+#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
+	struct  {
+		u64     esid;
+		u64     vsid;
+	} kvm_slb[64];			/* guest SLB */
+	u8 kvm_slb_max;			/* highest used guest slb entry */
+	u8 kvm_in_guest;		/* are we inside the guest? */
+#endif
 };
 
 extern struct paca_struct paca[];
Signature · 1 line
1.6.0.2