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

Commit 4b7ae55d authored by Alexander Graf's avatar Alexander Graf Committed by Benjamin Herrenschmidt
Browse files

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.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 0186fd03
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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[];