2018-12-13 13:32:06 +00: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/>.
|
|
|
|
*/
|
2008-05-16 16:51:30 +00:00
|
|
|
|
2018-12-13 14:53:50 +00:00
|
|
|
#ifndef LIBVIRT_TESTUTILSQEMU_H
|
|
|
|
# define LIBVIRT_TESTUTILSQEMU_H
|
2018-12-13 13:32:06 +00:00
|
|
|
|
|
|
|
# ifdef WITH_QEMU
|
|
|
|
|
|
|
|
# include "capabilities.h"
|
|
|
|
# include "virfilecache.h"
|
|
|
|
# include "domain_conf.h"
|
|
|
|
# include "qemu/qemu_capabilities.h"
|
|
|
|
# include "qemu/qemu_conf.h"
|
2008-05-16 16:51:30 +00:00
|
|
|
|
2016-05-10 09:35:43 +00:00
|
|
|
enum {
|
|
|
|
GIC_NONE = 0,
|
|
|
|
GIC_V2,
|
|
|
|
GIC_V3,
|
|
|
|
GIC_BOTH,
|
|
|
|
};
|
|
|
|
|
2008-05-16 16:51:30 +00:00
|
|
|
virCapsPtr testQemuCapsInit(void);
|
2013-03-31 18:03:42 +00:00
|
|
|
virDomainXMLOptionPtr testQemuXMLConfInit(void);
|
2014-06-27 14:39:27 +00:00
|
|
|
|
2018-04-04 07:17:52 +00:00
|
|
|
|
|
|
|
virQEMUCapsPtr qemuTestParseCapabilitiesArch(virArch arch,
|
|
|
|
const char *capsFile);
|
2016-06-15 12:35:18 +00:00
|
|
|
virQEMUCapsPtr qemuTestParseCapabilities(virCapsPtr caps,
|
|
|
|
const char *capsFile);
|
2015-03-23 16:19:28 +00:00
|
|
|
|
|
|
|
extern virCPUDefPtr cpuDefault;
|
|
|
|
extern virCPUDefPtr cpuHaswell;
|
2016-09-13 20:27:09 +00:00
|
|
|
extern virCPUDefPtr cpuPower8;
|
2017-05-17 14:39:16 +00:00
|
|
|
extern virCPUDefPtr cpuPower9;
|
2016-08-04 11:16:55 +00:00
|
|
|
|
|
|
|
void qemuTestSetHostArch(virCapsPtr caps,
|
|
|
|
virArch arch);
|
|
|
|
void qemuTestSetHostCPU(virCapsPtr caps,
|
|
|
|
virCPUDefPtr cpu);
|
2015-03-23 16:19:28 +00:00
|
|
|
|
2015-09-15 06:16:02 +00:00
|
|
|
int qemuTestDriverInit(virQEMUDriver *driver);
|
|
|
|
void qemuTestDriverFree(virQEMUDriver *driver);
|
2017-07-19 15:01:56 +00:00
|
|
|
int qemuTestCapsCacheInsert(virFileCachePtr cache,
|
2015-09-09 14:03:14 +00:00
|
|
|
virQEMUCapsPtr caps);
|
|
|
|
|
2016-05-10 09:35:43 +00:00
|
|
|
int testQemuCapsSetGIC(virQEMUCapsPtr qemuCaps,
|
|
|
|
int gic);
|
2018-04-18 08:47:31 +00:00
|
|
|
|
|
|
|
char *testQemuGetLatestCapsForArch(const char *dirname,
|
|
|
|
const char *arch,
|
|
|
|
const char *suffix);
|
|
|
|
|
2018-12-13 13:32:06 +00:00
|
|
|
# endif
|
|
|
|
|
2018-12-13 14:53:50 +00:00
|
|
|
#endif /* LIBVIRT_TESTUTILSQEMU_H */
|