mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
qemu: Remove unused 'qemuProcessRebootAllowed'
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
1 parent
771f17c907
commit
8effae01b9
2 files changed
-20
No files matched your search
@@ -6880,24 +6880,6 @@ qemuProcessPrepareDomainHostdevs(virDomainObj *vm,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuProcessRebootAllowed:
|
||||
* @def: domain definition
|
||||
*
|
||||
* This function encapsulates the logic which dictated whether '-no-reboot' was
|
||||
* used instead of '-no-shutdown' which is used QEMU versions which don't
|
||||
* support the 'set-action' QMP command.
|
||||
*/
|
||||
bool
|
||||
qemuProcessRebootAllowed(const virDomainDef *def)
|
||||
{
|
||||
return def->onReboot != VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY ||
|
||||
def->onPoweroff != VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY ||
|
||||
(def->onCrash != VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY &&
|
||||
def->onCrash != VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROY);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
qemuProcessUpdateSEVInfo(virDomainObj *vm)
|
||||
{
|
||||
|
||||
@@ -258,8 +258,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuProcessQMP, qemuProcessQMPFree);
|
||||
|
||||
int qemuProcessQMPStart(qemuProcessQMP *proc);
|
||||
|
||||
bool qemuProcessRebootAllowed(const virDomainDef *def);
|
||||
|
||||
void qemuProcessCleanupMigrationJob(virQEMUDriver *driver,
|
||||
virDomainObj *vm);
|
||||
|
||||
|
||||
Reference in new issue
Block a user