|
@@ -52,12 +52,13 @@ static struct kvm_s390_sie_block *sie_block(struct pt_regs *regs)
|
|
|
|
|
|
static bool is_in_guest(struct pt_regs *regs)
|
|
static bool is_in_guest(struct pt_regs *regs)
|
|
{
|
|
{
|
|
- unsigned long ip = instruction_pointer(regs);
|
|
|
|
-
|
|
|
|
if (user_mode(regs))
|
|
if (user_mode(regs))
|
|
return false;
|
|
return false;
|
|
-
|
|
|
|
- return ip == (unsigned long) &sie_exit;
|
|
|
|
|
|
+#if defined(CONFIG_KVM) || defined(CONFIG_KVM_MODULE)
|
|
|
|
+ return instruction_pointer(regs) == (unsigned long) &sie_exit;
|
|
|
|
+#else
|
|
|
|
+ return false;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
static unsigned long guest_is_user_mode(struct pt_regs *regs)
|
|
static unsigned long guest_is_user_mode(struct pt_regs *regs)
|