From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- src/kernel/tests/include/tst_cpu.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/kernel/tests/include/tst_cpu.h (limited to 'src/kernel/tests/include/tst_cpu.h') diff --git a/src/kernel/tests/include/tst_cpu.h b/src/kernel/tests/include/tst_cpu.h new file mode 100644 index 0000000..c83a582 --- /dev/null +++ b/src/kernel/tests/include/tst_cpu.h @@ -0,0 +1,19 @@ +/* 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); + +#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_OTHER 0xffff /* unrecognized hypervisor */ + +int tst_is_virt(int virt_type); + +#endif /* TST_CPU_H__ */ -- cgit v1.2.3-55-g7522