[lkml]   [2008]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Host<->guest channel interface advice needed
    On Wednesday 26 November 2008, Gleb Natapov wrote:
    > The interfaces that are being considered are netlink socket (only datagram
    > semantics, linux specific), new socket family or character device with
    > different minor number for each channel. Which one better suits for
    > the purpose?  Is there other kind of interface to consider? New socket
    > family looks like a good choice, but it would be nice to hear other
    > opinions before starting to work on it.

    I think a socket and a pty both look reasonable here, but one important
    aspect IMHO is that you only need a new kernel driver for the guest, if
    you just use the regular pty support or Unix domain sockets in the host.

    Obviously, there needs to be some control over permissions, as a guest
    most not be able to just open any socket or pty of the host, so a
    reasonable approach might be that the guest can only create a socket
    or pty that can be opened by the host, but not vice versa. Alternatively,
    you create the socket/pty in host userspace and then allow passing that
    down into the guest, which creates a virtio device from it.

    Arnd <><
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2008-11-26 14:07    [W:0.022 / U:15.596 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site