remote: add sysusers file to create 'libvirt' group
[libvirt.git] / tests / virhostcpumock.c
blob48147b25fc92dc1679b00dacebefc0654d2bee7e
1 /*
2 * Copyright (C) 2015 Red Hat, Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see
16 * <http://www.gnu.org/licenses/>.
20 #include <config.h>
22 #include "virhostcpu.h"
24 int
25 virHostCPUGetThreadsPerSubcore(virArch arch)
27 int threads_per_subcore = 0;
29 /* Emulate SMT=8 on POWER hardware */
30 if (ARCH_IS_PPC64(arch))
31 threads_per_subcore = 8;
33 return threads_per_subcore;