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 7EDA352885; Tue, 6 Dec 2022 17:10:34 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id CFA04527F3; Tue, 6 Dec 2022 17:10:31 +0000 (UTC) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by atuin.qyliss.net (Postfix) with ESMTPS id DF45D52828 for ; Tue, 6 Dec 2022 17:10:27 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id ud5so7816915ejc.4 for ; Tue, 06 Dec 2022 09:10:27 -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=+wgD5H5pcFhjnjaIcCDGpV7vi4cgdNNdwwDwYRvko4I=; b=hUsJyR5soXBmLZe7be6Bn+GGrL5CvDih2uZGdPGepQ8xtvXnp4BxgeYbNyFCm+j/1Q rDhhQcqS3+ZPEn2kAyBlOp7mXO1eTb2CsD9DcWbsdYecXqFjUBbWTkr/IHKYurrKQjWr Wpy6QEZEVNDkpVxpDnpPTcbBkzdwgRLllsHQIfAYBdpHPObe2NOMGYmK/nhQ6Y6McSma 1EL0QyCfLv8pe7g+bVmVJ7n4+FhvleVzXOUtKgHPGhUZ7o5xEFmTf89WggAROYAeTSOv qlO+BygtVoQsB17eheWxuZ2F60gCrSVIF82s0lV2gHogp4F/02f49N5efjxxbJ5iMUFF 3i0g== 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=+wgD5H5pcFhjnjaIcCDGpV7vi4cgdNNdwwDwYRvko4I=; b=ffDhmwSDzeNTe0R/9oUGYszJTXCN71ztoBmkESpnjw80fuJ+PN5xRXip9M3c+CIXhA rCa5/gqckOEWeX6daVIRhBw72b1irL/kAwjitl6rMdc+OHFHFv88yLQRV3qAM8W5DvpA 0DY9xKXl1SYkrYfjdOmH9gwKb9EAACqNiyWG6l/qYGB13GegceFnIZd2aarIP5OguwVZ YK8AaZp+lDIKRWx1xos+mvgIkl7kapxGbUqhYnCr2+WRxA42VnfDNPiSNHpUFYAHk7HV bGkXsqhMqP6TNhdX85LtB2wY5xooAwWHlsrucqRdyggFatqC69/yfzcW3HdmChn995pv yvKw== X-Gm-Message-State: ANoB5pl5SKqlYUvf5AATuxkNc7j8JeJohXuzB7SOryuwHqKpC8M7ybWw Lv1II7XEsAq9WzeQMSDji/swU9T8UALPutb8AAU= X-Google-Smtp-Source: AA0mqf4RM4EWMm/pQVnaRdbYomaBm0rgT9JLav1+ddfDtRAZMwKs/Rg7oWTklffi4aSCTorJ3wUEAQ== X-Received: by 2002:a17:906:4cc1:b0:7ae:50c6:fd0a with SMTP id q1-20020a1709064cc100b007ae50c6fd0amr39710037ejt.184.1670346623217; Tue, 06 Dec 2022 09:10:23 -0800 (PST) Received: from x220.qyliss.net (p54b8e1f2.dip0.t-ipconnect.de. [84.184.225.242]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm7704162ejt.13.2022.12.06.09.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:10:22 -0800 (PST) Received: by x220.qyliss.net (Postfix, from userid 1000) id 3899899B; Tue, 6 Dec 2022 17:10:22 +0000 (UTC) Date: Tue, 6 Dec 2022 17:10:22 +0000 From: Alyssa Ross To: Vadim Likholetov Subject: Re: Firefox appVM patches and appVM refactoring Message-ID: <20221206171022.5kwkddpjet3q7ks4@x220> References: <20221206152011.lhk7jc64nqtkd7xo@x220> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j55p5nvfvgxcdcuj" Content-Disposition: inline In-Reply-To: Message-ID-Hash: DSZ6GOVN5KFGDPIHAI5HWHPO7GRCFGZZ X-Message-ID-Hash: DSZ6GOVN5KFGDPIHAI5HWHPO7GRCFGZZ 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: --j55p5nvfvgxcdcuj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 06, 2022 at 05:57:19PM +0200, Vadim Likholetov wrote: > I=E2=80=99ve done this =E2=80=94 I have patched cloud-hypervisor to have > three console devices =E2=80=94 serial, console and user-console, but than > decided that this patches will never go to C-H mainline so got back > with more traditional approach with tmux :) I'd be pretty optimistic about the chances of a patch that just made it so you could provide multiple consoles the same way you can provide multiple block devices. Like "--console pty file=3D/path/to/console.out" on the command like to make two consoles, one going to a pty and the other to a file. In Spectrum, the way I'd see such an approach working is that by default there'd be a single console that gave you a shell inside the VM, and if you needed other consoles for other reasons (e.g. if you had an application running on the console, like Lynx) you'd configure another console in the VM configuration. But as we move more towards graphical applications, it will probably become rare to need a secondary console for application interaction like that. To get a non-root shell from the root console though, I think it should be enough to just: # s6-applyuidgid -u 1000 -g 1000 sh (Adding tmux to the VM in development to be able to hop between multiple shell sessions would be a reasonable thing to do, of course.) > > On 6 Dec 2022, at 17:20, Alyssa Ross wrote: > > > > On Mon, Dec 05, 2022 at 12:42:35AM +0200, Vadim Likholetov wrote: > >> Cloud-hypervisor has virtual hardware limitations -- it supports only = one > >> console device and only one serial device. > >> SpectrumOS is using serial device for kernel logs of appVM and console > >> device as a console. > >> To have access both to root-executed part and to user-executed part of= the > >> VM payload, I installed a tmux on console. > >> Now, when you're running vm-console command you get access to the tmux > >> and have the ability to switch between root and user consoles, > >> that can be useful during debugging VM payload. > > > > I wonder what it would take to make cloud-hypervisor support multiple > > virtio-console devices=E2=80=A6 I suspect it wouldn't be too hard, sinc= e it > > already supports multiples of every other virtio device just fine=E2=80= =A6 > > --j55p5nvfvgxcdcuj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmOPd3wACgkQ+dvtSFmy ccCMdQ/9E0jNjSZQdGXIIGC7AMfItSlrU5JHexpmNWmsmJBcSgItgKIPHugg1DST W7DEyDxTBHU0YXnk3wgnm1s7Mic8ShCOQOR8WBiq9BoZM0HkwOzfcpaaAdx0ocxB iItWC7zFeZHimHOgv/iNrx6VJ7UPocjd7KyeKQHAJr6npYaa5LaCD3EWm7u+Zalr FToRjK0XIKl28sHJyBGZzyR8Fjz8EXlexeHABg/JF6BEj9bTUFUaXMNKv19vVXTZ uqNATcDK9vtN8DUUDO5lnT5RguVfSTLT3ordb1yEm9C+yls0gEqe0ucoFOZvQv+L iksvq1fKvAAMQrpb2FRKLTdhKYpGBvGblIzC+y0p/MYAxicBMcQdMGc2vkS0NQ3m DMUcE3kb9dWfh6mLv9BaW8IsJgLZLaVwYfRFAz4/7rh5l8WdVtyyFEbJzl71GPf5 dh7mvG5qrlpfeqE+73VXnH7qbAb1yCHGG/T00ODZujFkIrZA0whQrcldxNQ1jq+u 8OivzNx9do14U3W36whV1lIxkNCRxL0XTTAp3VsbwnZgBb4SH75dfuN/qupGkIf2 RO28g9OZlPKpuegkW1WZRYqGoE00+dMS+9A2QICPXOafU/oqxZ8j7pArXjg6r2ov MXPurgRcrE9OVtuTaK/FLdy2DT7vdG9lOB9ok8PmXb/iqWqQAlk= =bbLp -----END PGP SIGNATURE----- --j55p5nvfvgxcdcuj--