• A
    virtio-serial-bus: Add a port 'name' property for port discovery in guests · 160600fd
    Amit Shah 提交于
    The port 'id' or number is internal state between the guest kernel and
    our bus implementation. This is invocation-dependent and isn't part of
    the guest-host ABI.
    
    To correcly enumerate and map ports between the host and the guest, the
    'name' property is used.
    
    Example:
    
        -device virtserialport,name=org.qemu.port.0
    
    This invocation will get us a char device in the guest at:
    
        /dev/virtio-ports/org.qemu.port.0
    
    which can be a symlink to
    
        /dev/vport0p3
    
    This 'name' property is exposed by the guest kernel in a sysfs
    attribute:
    
        /sys/kernel/virtio-ports/vport0p3/name
    
    A simple udev script can pick up this name and create the symlink
    mentioned above.
    Signed-off-by: NAmit Shah <amit.shah@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    160600fd
virtio-serial.c 2.7 KB