pointer to "spice" device by virNodeDeviceLookupByName

Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API? What «name» I should use for? Thanks a lot! -- Андрей Фокин

On Wed, Mar 18, 2020 at 01:10:41PM +0300, Андрей Фокин wrote:
Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API? What «name» I should use for?
The virNodeDevicePtr APIs are for getting information about physical devices on a host. spice is not a device, it is a remote framebuffer protocol used by QEMU So the question doesn't really make any sense. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Thanks, clear! But may be is a method to get XML description for spice params, like it could be possible for physical devices?
Среда, 18 марта 2020, 13:21 +03:00 от Daniel P. Berrangé <berrange@redhat.com>: On Wed, Mar 18, 2020 at 01:10:41PM +0300, Андрей Фокин wrote:
Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API? What «name» I should use for?
The virNodeDevicePtr APIs are for getting information about physical devices on a host.
spice is not a device, it is a remote framebuffer protocol used by QEMU
So the question doesn't really make any sense.
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| BRG, Andrey Fokin

On Wed, Mar 18, 2020 at 01:25:28PM +0300, Andrey Fokin wrote:
Thanks, clear! But may be is a method to get XML description for spice params, like it could be possible for physical devices?
virDomainGetXMLDesc() will give you the XML config for the guest. You can get specific data from this using many common XML APIs. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Found that. Thanks David! BRG, Andrey Fokin
Среда, 18 марта 2020, 13:27 +03:00 от Daniel P. Berrangé <berrange@redhat.com>: On Wed, Mar 18, 2020 at 01:25:28PM +0300, Andrey Fokin wrote:
Thanks, clear! But may be is a method to get XML description for spice params, like it could be possible for physical devices?
virDomainGetXMLDesc() will give you the XML config for the guest. You can get specific data from this using many common XML APIs.
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (3)
-
Andrey Fokin
-
Daniel P. Berrangé
-
Андрей Фокин