[Spice-devel] SPICE_CHANNEL_TUNNEL
Charles.Tsai-蔡清海-研究發展部
charles.tsai at cloudena.com
Mon Mar 26 01:35:06 PDT 2012
Hi Yonit,
I am currently implementing a printing redirect based on the Virio framework. Can I use tunnel channel to forward printing file from the guest OS to the client?
If I can do it, is there any API that I can call from the guest OS to inject the printing data into the tunnel channel?
Right now, I am debugging the printing channel based on the VirtIO framework and I found the VirtIO is extremely unstable. Sometimes, it works and sometimes it fails.
VirtIO is fairly buggy. Is tunnel channel being used or is it a just a experiment(proof of concept)?
-----Original Message-----
From: Yonit Halperin [mailto:yhalperi at redhat.com]
Sent: Monday, March 26, 2012 3:32 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Alon Levy; spice-devel at lists.freedesktop.org
Subject: Re: [Spice-devel] SPICE_CHANNEL_TUNNEL
Hi,
On 03/23/2012 11:59 AM, Charles.Tsai-蔡清海-研究發展部 wrote:
> Alon,
>
> I read the spice code and found a spice tunnel channel there. What is the purpose of the tunnel channel? Is it for network tunneling?
> What is the use case for tunnel channel in spice?
The tunnel was intended for redirecting a virtual network in the guest to the client. Its main use was for network printer redirection.
The idea was to have a dedicated nic in the guest whose packets where handled by a library based on slirp (it is still downloadable from spice-space.org). Instead of using BSD sockets, you could register other socket callbacks to this library, e.g., callbacks in the tunnel worker. These callbacks forwarded the connections meta data and the application layer of the packets to the client.
Regards,
Yonit.
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list