backup: Wire up qemu full pull backup commands over QMP
[libvirt/ericb.git] / tests / qemucpumock.c
blob501738df36b1052738d437ff00d58c80b6b2adae
1 /*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library. If not, see
14 * <http://www.gnu.org/licenses/>.
17 #include <config.h>
20 #include "conf/cpu_conf.h"
21 #include "cpu/cpu.h"
22 #include "qemu/qemu_capabilities.h"
23 #define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
24 #include "qemu/qemu_capspriv.h"
25 #include "testutilshostcpus.h"
26 #include "virarch.h"
29 virCPUDefPtr
30 virQEMUCapsProbeHostCPU(virArch hostArch ATTRIBUTE_UNUSED,
31 virDomainCapsCPUModelsPtr models ATTRIBUTE_UNUSED)
33 const char *model = getenv("VIR_TEST_MOCK_FAKE_HOST_CPU");
35 return testUtilsHostCpusGetDefForModel(model);