2017-03-08 15:32:46 +03:00
/*
* This library is free software ; you can redistribute it and / or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your option ) any later version .
*
* This library is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* Lesser General Public License for more details .
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library . If not , see
* < http : //www.gnu.org/licenses/>.
*/
# include <config.h>
2017-07-21 15:24:51 +03:00
# include "conf/cpu_conf.h"
# include "cpu/cpu.h"
2017-03-08 15:32:46 +03:00
# include "qemu/qemu_capabilities.h"
2018-12-13 17:53:50 +03:00
# define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
2017-03-08 15:32:46 +03:00
# include "qemu/qemu_capspriv.h"
2017-07-21 15:24:51 +03:00
# include "testutilshostcpus.h"
2017-07-21 16:09:54 +03:00
# include "virarch.h"
2017-03-08 15:32:46 +03:00
2021-03-11 10:16:13 +03:00
virCPUDef *
2019-10-14 15:45:03 +03:00
virQEMUCapsProbeHostCPU ( virArch hostArch G_GNUC_UNUSED ,
2021-03-11 10:16:13 +03:00
virDomainCapsCPUModels * models G_GNUC_UNUSED )
2017-03-08 15:32:46 +03:00
{
2017-07-21 15:24:51 +03:00
const char * model = getenv ( " VIR_TEST_MOCK_FAKE_HOST_CPU " ) ;
2017-03-08 15:32:46 +03:00
2017-07-21 15:24:51 +03:00
return testUtilsHostCpusGetDefForModel ( model ) ;
2017-03-08 15:32:46 +03:00
}