powerpc: Include asm/reg.h in asm/svm.h

is_secure_guest() uses mfmsr().

Don't rely on users to include asm/reg.h, include
it in asm/svm.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/482c82c8a29d5fb3ea279b34f107e0e775001344.1646767214.git.christophe.leroy@csgroup.eu
This commit is contained in:
Christophe Leroy 2022-03-08 20:20:22 +01:00 committed by Michael Ellerman
parent 07071346bb
commit eb4713c40a
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@
#ifdef CONFIG_PPC_SVM
#include <asm/reg.h>
static inline bool is_secure_guest(void)
{
return mfmsr() & MSR_S;