2016-03-04 18:35:20 +00:00
|
|
|
/*
|
|
|
|
* libxl_capabilities.h: libxl capabilities generation
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2019-06-07 20:20:29 +00:00
|
|
|
#pragma once
|
2016-03-04 18:35:20 +00:00
|
|
|
|
2019-06-07 20:20:29 +00:00
|
|
|
#include <libxl.h>
|
2016-03-04 18:35:20 +00:00
|
|
|
|
2019-06-07 20:20:29 +00:00
|
|
|
#include "domain_capabilities.h"
|
|
|
|
#include "virfirmware.h"
|
2016-03-04 18:35:20 +00:00
|
|
|
|
|
|
|
|
2019-06-07 20:20:29 +00:00
|
|
|
#ifndef LIBXL_FIRMWARE_DIR
|
|
|
|
# define LIBXL_FIRMWARE_DIR "/usr/lib/xen/boot"
|
|
|
|
#endif
|
|
|
|
#ifndef LIBXL_EXECBIN_DIR
|
|
|
|
# define LIBXL_EXECBIN_DIR "/usr/lib/xen/bin"
|
|
|
|
#endif
|
2016-03-04 18:35:20 +00:00
|
|
|
|
|
|
|
/* Used for prefix of ifname of any network name generated dynamically
|
|
|
|
* by libvirt for Xen, and cannot be used for a persistent network name. */
|
2019-06-07 20:20:29 +00:00
|
|
|
#define LIBXL_GENERATED_PREFIX_XEN "vif"
|
2016-03-04 18:35:20 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCaps *
|
2016-03-04 18:35:20 +00:00
|
|
|
libxlMakeCapabilities(libxl_ctx *ctx);
|
|
|
|
|
2016-05-16 21:21:59 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
libxlMakeDomainCapabilities(virDomainCaps *domCaps,
|
|
|
|
virFirmware **firmwares,
|
2016-05-16 21:21:59 +00:00
|
|
|
size_t nfirmwares);
|
|
|
|
|
2016-03-04 18:35:20 +00:00
|
|
|
int
|
2020-02-22 12:56:19 +00:00
|
|
|
libxlDomainGetEmulatorType(const virDomainDef *def)
|
2022-07-18 11:02:19 +00:00
|
|
|
G_NO_INLINE;
|