mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 01:37:59 +07:00
63338a38db
Implement jailhouse_paravirt() via device tree probing on architectures != x86. Will be used by the PCI core. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: jailhouse-dev@googlegroups.com Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-pci@vger.kernel.org Cc: virtualization@lists.linux-foundation.org Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Link: https://lkml.kernel.org/r/dae9fe0c6e63141c28ca90492fa5712b4c33ffb5.1520408357.git.jan.kiszka@siemens.com
36 lines
608 B
C
36 lines
608 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_HYPEVISOR_H
|
|
#define __LINUX_HYPEVISOR_H
|
|
|
|
/*
|
|
* Generic Hypervisor support
|
|
* Juergen Gross <jgross@suse.com>
|
|
*/
|
|
|
|
#ifdef CONFIG_X86
|
|
|
|
#include <asm/jailhouse_para.h>
|
|
#include <asm/x86_init.h>
|
|
|
|
static inline void hypervisor_pin_vcpu(int cpu)
|
|
{
|
|
x86_platform.hyper.pin_vcpu(cpu);
|
|
}
|
|
|
|
#else /* !CONFIG_X86 */
|
|
|
|
#include <linux/of.h>
|
|
|
|
static inline void hypervisor_pin_vcpu(int cpu)
|
|
{
|
|
}
|
|
|
|
static inline bool jailhouse_paravirt(void)
|
|
{
|
|
return of_find_compatible_node(NULL, NULL, "jailhouse,cell");
|
|
}
|
|
|
|
#endif /* !CONFIG_X86 */
|
|
|
|
#endif /* __LINUX_HYPEVISOR_H */
|