summaryrefslogtreecommitdiff
path: root/include/linux/hypervisor.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-10-01 19:16:16 -0700
committerDan Williams <dan.j.williams@intel.com>2022-10-01 19:16:16 -0700
commit305a72efa791c826fe84768ca55e31adc4113ea8 (patch)
tree35c72646ea4b81528d73d3d79650004abed3285b /include/linux/hypervisor.h
parent53fc59511fc4c567342b2ef3f7b99a086430e0b4 (diff)
parent6a02124c87f0b61dcaaeb65e7fd406d8afb40fd4 (diff)
Merge branch 'for-6.1/nvdimm' into libnvdimm-for-next
Add v6.1 content on top of some straggling updates that missed v6.0.
Diffstat (limited to 'include/linux/hypervisor.h')
-rw-r--r--include/linux/hypervisor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/hypervisor.h b/include/linux/hypervisor.h
index fc08b433c856..9efbc54e35e5 100644
--- a/include/linux/hypervisor.h
+++ b/include/linux/hypervisor.h
@@ -32,4 +32,12 @@ static inline bool jailhouse_paravirt(void)
#endif /* !CONFIG_X86 */
+static inline bool hypervisor_isolated_pci_functions(void)
+{
+ if (IS_ENABLED(CONFIG_S390))
+ return true;
+
+ return jailhouse_paravirt();
+}
+
#endif /* __LINUX_HYPEVISOR_H */