/* SPDX-License-Identifier: GPL-2.0-or-later * Copyright (c) 2015-2016 Cyril Hrubis */ #ifndef TST_CPU_H__ #define TST_CPU_H__ long tst_ncpus(void); long tst_ncpus_conf(void); long tst_ncpus_max(void); long tst_ncpus_available(void); #define VIRT_ANY 0 /* catch-all argument for tst_is_virt() */ #define VIRT_XEN 1 /* xen dom0/domU */ #define VIRT_KVM 2 /* only default virtual CPU */ #define VIRT_IBMZ 3 /* ibm system z */ #define VIRT_IBMZ_LPAR 4 /* ibm system z lpar */ #define VIRT_IBMZ_ZVM 5 /* ibm system z zvm */ #define VIRT_HYPERV 6 /* Microsoft Hyper-V */ #define VIRT_OTHER 0xffff /* unrecognized hypervisor */ int tst_is_virt(int virt_type); #endif /* TST_CPU_H__ */