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:
@@ -834,6 +834,7 @@ mymain(void)
|
||||
"device_del", QMP_DEVICE_DELETED("hostdev0") QMP_OK);
|
||||
|
||||
DO_TEST_ATTACH("base-live", "interface-vdpa", false, true,
|
||||
"query-fdsets", "{\"return\":[{\"fdset-id\":99999}]}",
|
||||
"add-fd", "{ \"return\": { \"fdset-id\": 1, \"fd\": 95 }}",
|
||||
"netdev_add", QMP_OK, "device_add", QMP_OK);
|
||||
DO_TEST_DETACH("base-live", "interface-vdpa", false, false,
|
||||
|
||||
Reference in New Issue
Block a user