aboutsummaryrefslogtreecommitdiff
path: root/include/tst_cpu.h
blob: 0724975f039c32f2342f46a2be3389e12f3e460c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2015-2016 Cyril Hrubis <chrubis@suse.cz>
 */

#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__ */