mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu_fd: Don't rely on fdset id allocation by qemu
If we use our own fdset ID when hot-adding a fdset we can vastly simplify our internals. As a stop-gap when a fdset would be added behind libvirt's back we'll validated that the fdset to be added is not yet used. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -725,7 +725,6 @@ qemuMonitorJSONTestAttachChardev(virDomainXMLOption *xmlopt,
|
||||
|
||||
{
|
||||
g_autoptr(virDomainChrSourceDef) chr = virDomainChrSourceDefNew(xmlopt);
|
||||
qemuDomainChrSourcePrivate *charpriv = QEMU_DOMAIN_CHR_SOURCE_PRIVATE(chr);
|
||||
|
||||
chr->data.file.path = g_strdup("/test/path");
|
||||
|
||||
@@ -743,12 +742,6 @@ qemuMonitorJSONTestAttachChardev(virDomainXMLOption *xmlopt,
|
||||
|
||||
chrdev.source = chr;
|
||||
ignore_value(testQemuPrepareHostBackendChardevOne(&dev, chr, NULL));
|
||||
if (qemuFDPassTransferMonitorFake(charpriv->sourcefd) < 0)
|
||||
ret = -1;
|
||||
|
||||
if (qemuFDPassTransferMonitorFake(charpriv->logfd) < 0)
|
||||
ret = -1;
|
||||
|
||||
CHECK("file", false,
|
||||
"{'id':'alias','backend':{'type':'file','data':{'out':'/dev/fdset/monitor-fake',"
|
||||
"'append':true,"
|
||||
|
||||
Reference in New Issue
Block a user