2016-02-15 18:08:02 +00: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 16:12:37 +00:00
|
|
|
#pragma once
|
2016-02-15 18:08:02 +00:00
|
|
|
|
2019-06-18 16:12:37 +00:00
|
|
|
#include "domain_addr.h"
|
|
|
|
#include "domain_conf.h"
|
|
|
|
#include "qemu_conf.h"
|
|
|
|
#include "qemu_capabilities.h"
|
2016-02-15 18:08:02 +00:00
|
|
|
|
2018-01-30 17:06:36 +00:00
|
|
|
int qemuDomainGetSCSIControllerModel(const virDomainDef *def,
|
|
|
|
const virDomainControllerDef *cont,
|
2021-03-11 07:16:13 +00:00
|
|
|
virQEMUCaps *qemuCaps);
|
2016-02-15 18:08:02 +00:00
|
|
|
|
2018-01-30 19:19:47 +00:00
|
|
|
int qemuDomainSetSCSIControllerModel(const virDomainDef *def,
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainControllerDef *cont,
|
|
|
|
virQEMUCaps *qemuCaps);
|
2018-01-30 19:19:47 +00:00
|
|
|
|
2018-01-30 15:45:43 +00:00
|
|
|
int qemuDomainFindSCSIControllerModel(const virDomainDef *def,
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainDeviceInfo *info);
|
2018-01-30 15:45:43 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int qemuDomainAssignAddresses(virDomainDef *def,
|
|
|
|
virQEMUCaps *qemuCaps,
|
|
|
|
virQEMUDriver *driver,
|
|
|
|
virDomainObj *obj,
|
2016-06-16 15:15:53 +00:00
|
|
|
bool newDomain)
|
2016-11-03 20:33:32 +00:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
2016-02-15 18:08:02 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int qemuDomainEnsurePCIAddress(virDomainObj *obj,
|
|
|
|
virDomainDeviceDef *dev,
|
|
|
|
virQEMUDriver *driver)
|
2016-11-03 20:33:32 +00:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
2016-09-07 16:29:30 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void qemuDomainFillDeviceIsolationGroup(virDomainDef *def,
|
|
|
|
virDomainDeviceDef *dev)
|
2017-06-02 13:19:04 +00:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void qemuDomainReleaseDeviceAddress(virDomainObj *vm,
|
|
|
|
virDomainDeviceInfo *info);
|
2016-02-15 18:08:02 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int qemuDomainAssignMemoryDeviceSlot(virQEMUDriver *driver,
|
|
|
|
virDomainObj *vm,
|
|
|
|
virDomainMemoryDef *mem);
|
2016-11-01 05:07:09 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void qemuDomainReleaseMemoryDeviceSlot(virDomainObj *vm,
|
|
|
|
virDomainMemoryDef *mem);
|
2021-02-08 14:21:16 +00:00
|
|
|
|
2017-10-12 12:27:29 +00:00
|
|
|
int qemuDomainEnsureVirtioAddress(bool *releaseAddr,
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainObj *vm,
|
2021-06-11 14:25:48 +00:00
|
|
|
virDomainDeviceDef *dev);
|