From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 51A0F429C5; Wed, 30 Nov 2022 10:14:49 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 11CA74294A; Wed, 30 Nov 2022 10:14:47 +0000 (UTC) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by atuin.qyliss.net (Postfix) with ESMTPS id 144B0429B8 for ; Wed, 30 Nov 2022 10:14:45 +0000 (UTC) Received: by mail-lf1-x12a.google.com with SMTP id b3so26191612lfv.2 for ; Wed, 30 Nov 2022 02:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ogerkJQseezQjYD87cgT9ytEgHsB1+cr4OffjPr7EDA=; b=HJCwkb5RnI9pEeyby6UpknbaSlNwO55mL6YFWBANEidpzwY1aU7wzjukCkDkTnZUbT a5233rwUuMV9O1VYQ5UuyqSKVS3XvdiVJUT6kTaLCqsYMorRomuCAWzX4ngeTgY+z777 eVGyeSHLh2TFbKL2Uyq4ItGa7hjYS/PRm42Hpbi0Arky69bfRd6VRSLC/GZKKU8+FKOy L+hJQo4GRKuWGjUESr8EaTFbJUJQvJBQt2T9/2VQuGXW2JvogazPpF38zHgDcdyHUGuE tlNRlgeeyWjcGuZswEIIwN0H9LgDYkPGjsxvETrQfDQe+Y10nMhrNSIx6T4eWaUxXwxK OWew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ogerkJQseezQjYD87cgT9ytEgHsB1+cr4OffjPr7EDA=; b=QAmiEN1/ERDf0v7JA6Yk11JhlzzjU7/5giz7UE0yZlNkSbweNlbeAqKxfDkJVJPpDL FqFMdmQEGR33fUi1+F09YZDMPVIFt6DKo46CgS/54ad16PcXVlMlkMB0XFiX+ixjev5T 5BdfTiPNRIcKPdk+X1DW6BGqsX3+V4QZUJDR9/W5QtbzPo9ybLvCVz9897Bt23OoHfM9 tr0ZJNxbQE83PT5GjODYSfb368FUKiaLGe4PGjp8o8Qux6GIVRpJ/Hb4nOw0HW64aU73 IPzxNhjnsEtkIMrxOIt2y9HkIF7svRZmzEcD0VtQujJ9ElEKuCfigou3Duk1F6KpAN/V 7GKw== X-Gm-Message-State: ANoB5pnl1SoR+GPOWfzUJFXBt1kXIE3vd1TswKSt7JgZG3yQUJRNs6fl hh4jI4MBUAQHxtjWXbcV6BhJWu34JlIELsatqzjsWg== X-Google-Smtp-Source: AA0mqf55VZqL98G79+WVNEJMl7EyNgDSEkqYrCcKIGlZMsagZ12pncNpa9hh6+H739mC4rGLjtjkHDKMqgMJBHEAA/A= X-Received: by 2002:ac2:4bd2:0:b0:4a2:61b0:8d28 with SMTP id o18-20020ac24bd2000000b004a261b08d28mr13793278lfq.600.1669803279297; Wed, 30 Nov 2022 02:14:39 -0800 (PST) MIME-Version: 1.0 References: <20221130085109.wkcwpr54roqvhe4l@x220> In-Reply-To: <20221130085109.wkcwpr54roqvhe4l@x220> From: Vadim Likholetov Date: Wed, 30 Nov 2022 12:14:28 +0200 Message-ID: Subject: Re: Enabling forwarding Wayland from appVM to host with waypipe To: Alyssa Ross Content-Type: multipart/alternative; boundary="0000000000004eca9105eead5f47" Message-ID-Hash: GOA22UKHMCFP5YMDSZBXJDM5IL4DPML5 X-Message-ID-Hash: GOA22UKHMCFP5YMDSZBXJDM5IL4DPML5 X-MailFrom: vadim.likholetov@unikie.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-0 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1 CC: devel@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --0000000000004eca9105eead5f47 Content-Type: text/plain; charset="UTF-8" Thank you for the feedback! I managed to make foot terminal working in my setup -- the issue was in lack of compositor ( weston in my case) on the guest, looks like it's the common issue for wayland programs, so now I have competitive advantage over virtio-gpu setup :) I also think that having socket-only approach in Spectrum is not a bad idea cause it is enabling remote access and networking easy for virtual machines and applications. On Wed, Nov 30, 2022 at 10:51 AM Alyssa Ross wrote: > On Wed, Nov 30, 2022 at 09:12:50AM +0200, Vadim Likholetov wrote: > > This patchset enables forwarding Wayland connections from appVM to the > host > > with the help of waypipe tool. > > > > It doesn't reqire major changes in Spectrum and tries to utilise existing > > packages and solutions. > > Main idea is to create VSOCK virtual device on the start of appVM and use > > this virtual socket to connect host and guest. > > > > On the host side I implement vm-start-way tool that is based on vm-start, > > but does necessary preparations for wayland forwarfing. > > > > The guest VM is appvm-hello-waypipe and described in hello-waypipe.nix > > file. > > > > To test it boot the Spectrum and do 'vm-start-way appvm-hello-waypipe'. > > Be patient and in couple of seconds will appear a terminal window from > > appVM. > > > > This patches are for test the concept, so possibly redisign is needed for > > production use. > > Thanks for sharing these! > > You've done a great job fitting it into the Spectrum codebase. > > Since you mentioned in your previous email that the same applications > are broken with Waypipe and virtio-gpu, I think that virtio-gpu still > looks like the way to go, since it would allow optimisations like shared > memory between guest and host that wouldn't be possible with a pure > socket-based approach like Waypipe. > > But lots of people come to Spectrum looking for advice and inspiration for > their own custom Wayland-in-VM setups, and often they're more interested in > Waypipe, so it'll be great to be able to point them here. > > > ps sorry for mess in the mailing list > > No worries. :) > --0000000000004eca9105eead5f47 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the feedback!
I managed t= o make foot terminal working in my setup -- the issue was in lack of compos= itor ( weston in my case) on the guest, looks like it's the common issu= e for wayland programs, so now I have competitive advantage over virtio-gpu= setup :)
I also think that having socket-only approach in Sp= ectrum is not a bad idea cause it is =C2=A0 enabling remote access and netw= orking=C2=A0 easy for virtual machines and applications.
On Wed, N= ov 30, 2022 at 10:51 AM Alyssa Ross <alyssa.ross@unikie.com> wrote:
On Wed, Nov 30, 2022 at 09:12:50AM +0200, Vadi= m Likholetov wrote:
> This patchset enables forwarding Wayland connections from appVM to the= host
> with the help of waypipe tool.
>
> It doesn't reqire major changes in Spectrum and tries to utilise e= xisting
> packages and solutions.
> Main idea is to create VSOCK virtual device on the start of appVM and = use
> this virtual socket to connect host and guest.
>
> On the host side I implement vm-start-way tool that is based on vm-sta= rt,
> but does necessary preparations for wayland forwarfing.
>
> The guest VM is appvm-hello-waypipe and described in=C2=A0 hello-waypi= pe.nix
> file.
>
> To test it boot the Spectrum and do 'vm-start-way appvm-hello-wayp= ipe'.
> Be patient and in couple of seconds will appear a terminal window from=
> appVM.
>
> This patches are for test the concept, so possibly redisign is needed = for
> production use.

Thanks for sharing these!

You've done a great job fitting it into the Spectrum codebase.

Since you mentioned in your previous email that the same applications
are broken with Waypipe and virtio-gpu, I think that virtio-gpu still
looks like the way to go, since it would allow optimisations like shared memory between guest and host that wouldn't be possible with a pure
socket-based approach like Waypipe.

But lots of people come to Spectrum looking for advice and inspiration for<= br> their own custom Wayland-in-VM setups, and often they're more intereste= d in
Waypipe, so it'll be great to be able to point them here.

> ps sorry for mess in the mailing list

No worries. :)
--0000000000004eca9105eead5f47--