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 B8B0941F46; Wed, 30 Nov 2022 07:13:14 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id A34AC41EBD; Wed, 30 Nov 2022 07:13:11 +0000 (UTC) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by atuin.qyliss.net (Postfix) with ESMTPS id D71F241F37 for ; Wed, 30 Nov 2022 07:13:08 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id c1so25541525lfi.7 for ; Tue, 29 Nov 2022 23:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1z9vMLJWlRwED3TrotXva+FJc14e/jo6P8PpqJrV05c=; b=djjsrYb4nq70Pcs+6FcelTSDMyfjS2oDSLbarCXId62hT4IxgAd/LCczu4l7+9Ffqg DY2j/lT19cdvS2IRunIK+gJPcwNgkncnDTug54mJY1vzMu1zOay7Wi1jjIxFA9S0u3AK hw0yu8XMD+Kq/1mRK8Ou9JvnqQzjyqtwiCa8n2Mloukc0RH3scIiySQP+ArnUBCbOAKn 2UPbr7mG332Wn7pZg14N6MFImzj3MfWCpw9yyYjzpDf6epp/YcTbXxJ3AGmmUKlA7fxN r3jbrDqEIzkPC51NTE0e0O2hOzgw/GPQs1sc0EnG/7D1Kkv9F7Fyb9EZnRtvUfeXHiPJ oMaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1z9vMLJWlRwED3TrotXva+FJc14e/jo6P8PpqJrV05c=; b=NZSiLioxPN2YajtCXTwmdbDOo/YdoQ6S66FyxktJmfRxNmWZnPO+mueqxlOuiMm4Gf fty+fy0/z3s1dEb+9VhNoI6pubg1fL6xNYRzKW4epsA4H7SflBvc6tkMgbTNQdLuauo1 g85iKiNKe4NoCEb4yG/ezsSfyRtQmUHKR5IYw6IWgOnpDsIgYhpAj1kCrWaWK7TFYdOU 12zbMrpkDAe11Dd5w0ox7l2ACMLNJxbmLI5tBd3SpvhS/568TSMhM+xnDXf+LB/LnX8W 3bKK+MgwvnLPJOyf3FF9HSMaYT+EE0T9EcD6No9J+yXyLIfkdakBGfrfI3tTMeiLRCa7 OiEg== X-Gm-Message-State: ANoB5plGLXObSYbAHx/30jGXKi5p/TYep7frqVwcI7G+Gj4QD3nQX9ov KOXxcFz9dyvaeyvZ1vyy2GmmCx/HoTJr/O04Uc5klcnSDtUagoNE X-Google-Smtp-Source: AA0mqf6/WewfiKL0ghDyunW2Yr73mEpGDwY/cvizw7/gsaVtKkDxTLlUyKQvwjRmJpE6PNQzWarezPsIchB32x8OaqY= X-Received: by 2002:a05:6512:16a4:b0:4b2:5c79:ae9c with SMTP id bu36-20020a05651216a400b004b25c79ae9cmr18009603lfb.619.1669792382177; Tue, 29 Nov 2022 23:13:02 -0800 (PST) MIME-Version: 1.0 From: Vadim Likholetov Date: Wed, 30 Nov 2022 09:12:50 +0200 Message-ID: Subject: Enabling forwarding Wayland from appVM to host with waypipe To: devel@spectrum-os.org Content-Type: multipart/alternative; boundary="000000000000c9e6e605eeaad5ba" Message-ID-Hash: NRIMCTVF4HI4QLRUGGJBRRSJVWZPWTBC X-Message-ID-Hash: NRIMCTVF4HI4QLRUGGJBRRSJVWZPWTBC 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 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: --000000000000c9e6e605eeaad5ba Content-Type: text/plain; charset="UTF-8" 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. ps sorry for mess in the mailing list --000000000000c9e6e605eeaad5ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.<= br>

On the host side I implement vm-start-way tool that = is based on vm-start, but does necessary preparations for wayland forwarfin= g.

The guest VM is appvm-hello-waypipe and describ= ed in =C2=A0hello-waypipe.nix file.

To test it boo= t the Spectrum and do 'vm-start-way appvm-hello-waypipe'.
Be patient and in couple of seconds will appear a terminal window from app= VM.

This patches are for test the concept, so poss= ibly redisign is needed for production use.

ps sor= ry for mess in the mailing list
--000000000000c9e6e605eeaad5ba--