2016-02-15 13:08:02 -05:00
|
|
|
/*
|
|
|
|
* qemu_domain_address.h: QEMU domain address
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2016 Red Hat, Inc.
|
|
|
|
* Copyright (C) 2006 Daniel P. Berrange
|
|
|
|
*
|
|
|
|
* 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-18 11:12:37 -05:00
|
|
|
#pragma once
|
2016-02-15 13:08:02 -05:00
|
|
|
|
2019-06-18 11:12:37 -05:00
|
|
|
#include "qemu_conf.h"
|
|
|
|
#include "qemu_capabilities.h"
|
2016-02-15 13:08:02 -05:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
int qemuDomainAssignAddresses(virDomainDef *def,
|
|
|
|
virQEMUCaps *qemuCaps,
|
|
|
|
virQEMUDriver *driver,
|
|
|
|
virDomainObj *obj,
|
2016-06-16 17:15:53 +02:00
|
|
|
bool newDomain)
|
2016-11-03 16:33:32 -04:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
2016-02-15 13:08:02 -05:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
int qemuDomainEnsurePCIAddress(virDomainObj *obj,
|
2021-11-18 14:50:28 +01:00
|
|
|
virDomainDeviceDef *dev)
|
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
2016-09-07 12:29:30 -04:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
void qemuDomainFillDeviceIsolationGroup(virDomainDef *def,
|
|
|
|
virDomainDeviceDef *dev)
|
2017-06-02 15:19:04 +02:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
void qemuDomainReleaseDeviceAddress(virDomainObj *vm,
|
|
|
|
virDomainDeviceInfo *info);
|
2016-02-15 13:08:02 -05:00
|
|
|
|
2021-11-18 14:50:28 +01:00
|
|
|
int qemuDomainAssignMemoryDeviceSlot(virDomainObj *vm,
|
2021-03-11 08:16:13 +01:00
|
|
|
virDomainMemoryDef *mem);
|
2016-11-01 06:07:09 +01:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
void qemuDomainReleaseMemoryDeviceSlot(virDomainObj *vm,
|
|
|
|
virDomainMemoryDef *mem);
|
2021-02-08 15:21:16 +01:00
|
|
|
|
2017-10-12 14:27:29 +02:00
|
|
|
int qemuDomainEnsureVirtioAddress(bool *releaseAddr,
|
2021-03-11 08:16:13 +01:00
|
|
|
virDomainObj *vm,
|
2021-06-11 16:25:48 +02:00
|
|
|
virDomainDeviceDef *dev);
|