mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Add flags checking in DomainCoreDump
This commit is contained in:
parent
d9b46a0d04
commit
1c84237852
@ -2345,7 +2345,8 @@ getCompressionType(struct qemud_driver *driver)
|
|||||||
|
|
||||||
static int qemudDomainCoreDump(virDomainPtr dom,
|
static int qemudDomainCoreDump(virDomainPtr dom,
|
||||||
const char *path,
|
const char *path,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
int flags)
|
||||||
|
{
|
||||||
struct qemud_driver *driver = dom->conn->privateData;
|
struct qemud_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
int resume = 0, paused = 0;
|
int resume = 0, paused = 0;
|
||||||
@ -2353,6 +2354,8 @@ static int qemudDomainCoreDump(virDomainPtr dom,
|
|||||||
virDomainEventPtr event = NULL;
|
virDomainEventPtr event = NULL;
|
||||||
qemuDomainObjPrivatePtr priv;
|
qemuDomainObjPrivatePtr priv;
|
||||||
|
|
||||||
|
virCheckFlags(VIR_DUMP_LIVE | VIR_DUMP_CRASH, -1);
|
||||||
|
|
||||||
qemuDriverLock(driver);
|
qemuDriverLock(driver);
|
||||||
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
|
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user