[Spice-devel] RFC spicevmc chardev backend

Alon Levy alevy at redhat.com
Mon Aug 2 07:14:24 PDT 2010


This is basically translation of spicevmc.c virtio-serial device into a
chardev. Probably the way it should have been implemented from the start.

Usage is for instance:
 -chardev spicevmc,name=vdiport,id=vdiport -device virtserial,chardev=vdiport,name=com.redhat.spice.0

Which is equivalent (right now both are in there) to:
 -device spicevmc

while the former is longer it will allow reuse of this chardev for other things,
and separates the device proper (in this case no need to define a new device at all,
and for smartcard the device will not need to contain any spice bits) from the
spice channel logic. For smart card it will look something like this:
 -chardev spicevmc,name=usb-ccid,id=usb-ccid -device usb-ccid,chardev=usb-ccid




More information about the Spice-devel mailing list