mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Move check for chardev backends which can't be hotplugged out of the monitor
The upcoming refactor of the monitor code will make the hotplug code paths use the same generator we have for commandline -chardev backends which doesn't refuse to format certain backends which can't be hotplugged. To prepare for this we add a check to qemuHotplugChardevAttach() refusing such hotplug and remove 'qemumonitorjsontest' test cases which will not make sense any more. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -652,12 +652,6 @@ qemuMonitorJSONTestAttachChardev(virDomainXMLOption *xmlopt,
|
||||
"{'id':'alias','backend':{'type':'spicevmc',"
|
||||
"'data':{'type':'vdagent'}}}");
|
||||
|
||||
chr->type = VIR_DOMAIN_CHR_TYPE_PIPE;
|
||||
CHECK("pipe", true, NULL);
|
||||
|
||||
chr->type = VIR_DOMAIN_CHR_TYPE_STDIO;
|
||||
CHECK("stdio", true, NULL);
|
||||
|
||||
chr->type = VIR_DOMAIN_CHR_TYPE_PTY;
|
||||
CHECK("pty missing path", true,
|
||||
"{'id':'alias','backend':{'type':'pty','data':{}}}");
|
||||
|
||||
Reference in New Issue
Block a user