dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
47 lines
799 B
C
47 lines
799 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 */
|
|
|
|
static inline bool hypervisor_isolated_pci_functions(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_S390))
|
|
return true;
|
|
|
|
if (IS_ENABLED(CONFIG_LOONGARCH))
|
|
return true;
|
|
|
|
return jailhouse_paravirt();
|
|
}
|
|
|
|
#endif /* __LINUX_HYPEVISOR_H */
|