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,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 71AFB4253F; Wed, 30 Nov 2022 08:51:24 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id CB3F242586; Wed, 30 Nov 2022 08:51:21 +0000 (UTC) Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by atuin.qyliss.net (Postfix) with ESMTPS id 3F8EB42585 for ; Wed, 30 Nov 2022 08:51:17 +0000 (UTC) Received: by mail-lf1-x135.google.com with SMTP id bp15so25804764lfb.13 for ; Wed, 30 Nov 2022 00:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=w1Vma7RM3Ahhg3R9D2r5NK/lzzc0+k0eEwyeRCLAbJs=; b=B+dpCcM1FzzJSJRKGyjBiKF8L4sHp2lbblv/Jl1y+zakPvoLhDE287yyVidozeR8Xy zjgnB+xxFVPPlhYuf8/Z0bttq5JHRlEk0MTJ9JaQjy9flRP2RUjg1QoDYaXnp5BpdFjd QhaTZw5u6xB3jXNt6CzAlhw0FNvd4jdp6vrBGr7HUysOJGjhzvTv+c/07oFB0+OJJXKT xHh7E8BRLrvCYmUPUw0elUiZf5qnvUIU0aMndWC7Mef2FRJ6vCQ2tKciynelm5KrBdFG P+9h0nd3HvGNehjpgS9oLW0/O9mVM1NNmPcg0EeRlJTgIpK7KLAd7c2CvoZAO9KvcVVo Pqqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w1Vma7RM3Ahhg3R9D2r5NK/lzzc0+k0eEwyeRCLAbJs=; b=RxGe9eetm0YsQHOSX3xd3YvO3+sSoOb2JDZCgD6xKvXtMyDQSO+26AoXh0NEf/Vga8 10akMe03ar7BYoV7OiY2xGnEIxTGszKMON65bLnwPhJX8clzjW1cOLUU6GTIOH9vYEA0 j2yQ3l9NPHE0Osb5ZQtyorttobUE9Gtv68s00T131rmiKORYZ2rQLVgQwosKiRe0csH0 3qHLgUgFvKbdCsvX2CFVVd6dbwvlgFRzrN6RIP6JYcPQU16oidJ4J3CPKSdiqvrpJ47q seaRr3ENs8czqzBdSs7GaCD89+eJUeI/9NMsf47Min4zS1SI+yeCGDPezpuUT3+b7OVi Vnog== X-Gm-Message-State: ANoB5pl8I9R+9eGQhEpSz1EnLDddB3ra62jct9RRjzTMzKQYwp77wLV/ c7YijNW9Q2EWzbagZVjBBLF5O1qbPGL+7L6M X-Google-Smtp-Source: AA0mqf4Sy/Mjj54ZQgK2L+QaU0ijEkyWthsus9iSX/yNlQTiwEjXTjP9/23sp1/ilpv7YKb9p7V4Iw== X-Received: by 2002:ac2:46f8:0:b0:4af:5088:8fa3 with SMTP id q24-20020ac246f8000000b004af50888fa3mr21282128lfo.538.1669798270849; Wed, 30 Nov 2022 00:51:10 -0800 (PST) Received: from x220.qyliss.net ([109.204.204.138]) by smtp.gmail.com with ESMTPSA id f14-20020a05651c03ce00b0027998486803sm69349ljp.130.2022.11.30.00.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 00:51:10 -0800 (PST) Received: by x220.qyliss.net (Postfix, from userid 1000) id 036B98EA6A; Wed, 30 Nov 2022 08:51:09 +0000 (UTC) Date: Wed, 30 Nov 2022 08:51:09 +0000 From: Alyssa Ross To: Vadim Likholetov Subject: Re: Enabling forwarding Wayland from appVM to host with waypipe Message-ID: <20221130085109.wkcwpr54roqvhe4l@x220> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rwwevyv6mbtpw7ho" Content-Disposition: inline In-Reply-To: Message-ID-Hash: 4CKKX5ND5F344O26S3GIC6GANXUSJNXO X-Message-ID-Hash: 4CKKX5ND5F344O26S3GIC6GANXUSJNXO X-MailFrom: alyssa.ross@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: --rwwevyv6mbtpw7ho Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. :) --rwwevyv6mbtpw7ho Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmOHGXYACgkQ+dvtSFmy ccAxTBAAk1iT3QJhX9laGURW56joads2bs1xTz5VjDaod+/P/k1KoFmdBNeGFy6S o8na3l5MbjYZJkOBruaMYNtaJ6lHk0Bk/WTwhYYlUbtf6RM9yqmjq1v9THrV3bHK tUgtrgyZuSxFzI58pitGee7GyIej1N2FHx8F/71H7ZZCDLxjNxFg2XUrF5MCmlY8 lC3km1pQ2MX2V6dbSgltnSaq9VxgarA9lNZsFGQOSSFvhebo3ZsGTZgbB5pJCcvx 7wlAq6jIDS47ysDeKhhlq5TWU3ZRY+9VyNPSXOQDGn0BCyMN+2gnssZJl2pC7JLG LPRD6dswJ+QXGYx+XFDGtcByjqCeHgESasSzYkoLKwYdJhO1ql1LebpDScugrLpR mHFVwUOIVOz+RZkgsR3QxT94jXAxjSamHUv1+5W4XeYEoqMhgMPitwRH+pp3H5W7 27vMJR1OV29zDsvQ+gV8FXqgSDZT4TMqV9yavQj7uOVEUMhColvPMFwBG9R/3VcM qUg/ajoN5dzjp4D8eNcSwHK3SPVuVUYYyl2Ywf3BjaOzTcn0Sj/qKJ6ISL8Vfg2c YDtP76RIs640ZrewcEvramDgtdmV4c2G+heSPvnu4gascH7Le4u3+RS1rFdTTZ/3 2tKAsyEPOP9p1jyTJFWwDqNK0yjci309N1oinlCsmGm1W6ZXpvw= =Ywxx -----END PGP SIGNATURE----- --rwwevyv6mbtpw7ho--