• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright (c) 2015-2016 Cyril Hrubis <chrubis@suse.cz>
3  */
4 
5 #ifndef TST_CPU_H__
6 #define TST_CPU_H__
7 
8 long tst_ncpus(void);
9 long tst_ncpus_conf(void);
10 long tst_ncpus_max(void);
11 long tst_ncpus_available(void);
12 
13 #define VIRT_ANY	0	/* catch-all argument for tst_is_virt() */
14 #define VIRT_XEN	1	/* xen dom0/domU */
15 #define VIRT_KVM	2	/* only default virtual CPU */
16 #define VIRT_IBMZ	3	/* ibm system z */
17 #define VIRT_IBMZ_LPAR	4	/* ibm system z lpar */
18 #define VIRT_IBMZ_ZVM	5	/* ibm system z zvm */
19 #define VIRT_HYPERV	6	/* Microsoft Hyper-V */
20 #define VIRT_OTHER	0xffff	/* unrecognized hypervisor */
21 
22 int tst_is_virt(int virt_type);
23 
24 #endif	/* TST_CPU_H__ */
25