• Amit Shah's avatar
    virtio: console: Associate each port with a char device · fb08bd27
    Amit Shah authored
    The char device will be used as an interface by applications on the
    guest to communicate with apps on the host.
    
    The devices created are placed in /dev/vportNpn where N is the
    virtio-console device number and n is the port number for that device.
    
    One dynamic major device number is allocated for each device and minor
    numbers are allocated for the ports contained within that device.
    
    The file operation for the char devs will be added in the following
    commits.
    Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    fb08bd27
virtio_console.c 23.5 KB