• 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 
12 #define VIRT_ANY	0	/* catch-all argument for tst_is_virt() */
13 #define VIRT_XEN	1	/* xen dom0/domU */
14 #define VIRT_KVM	2	/* only default virtual CPU */
15 #define VIRT_OTHER	0xffff	/* unrecognized hypervisor */
16 
17 int tst_is_virt(int virt_type);
18 
19 #endif	/* TST_CPU_H__ */
20