From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 25 Mar 2023 00:39:54 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pfr0j-00DeIn-KC for lore@lore.pengutronix.de; Sat, 25 Mar 2023 00:39:54 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pfr0j-0000Jd-Gh; Sat, 25 Mar 2023 00:39:53 +0100 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfr0c-0000JP-NZ for distrokit@pengutronix.de; Sat, 25 Mar 2023 00:39:46 +0100 Received: from mgr by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pfr0c-0008In-H6 for distrokit@pengutronix.de; Sat, 25 Mar 2023 00:39:46 +0100 Date: Sat, 25 Mar 2023 00:39:46 +0100 From: Michael Grzeschik To: distrokit@pengutronix.de Message-ID: <20230324233946.GE6000@pengutronix.de> References: <789b2ce216f3f6daff09efcd17b41cda7cec1ec4.camel@pengutronix.de> <20230302080647.2124306-1-m.grzeschik@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gMR3gsNFwZpnI/Ts" Content-Disposition: inline In-Reply-To: <20230302080647.2124306-1-m.grzeschik@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [DistroKit] [PATCH v2] x86_64: run: add 9p support X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false --gMR3gsNFwZpnI/Ts Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Care to apply? On Thu, Mar 02, 2023 at 09:06:47AM +0100, Michael Grzeschik wrote: >- copy the 9p rules from platform v7a and make 9p default > >Signed-off-by: Michael Grzeschik >--- >v1 -> v2: added explicit msize to 9p parameters > > configs/platform-x86_64/run | 23 ++++++++++++++++++++++- > 1 file changed, 22 insertions(+), 1 deletion(-) > >diff --git a/configs/platform-x86_64/run b/configs/platform-x86_64/run >index c39d5a7b..f3f4c346 100755 >--- a/configs/platform-x86_64/run >+++ b/configs/platform-x86_64/run >@@ -67,6 +67,12 @@ fi > > BASE_CMDLINE=3D"console=3DttyS0,115200 loglevel=3D5 systemd.log_level=3Dw= arning systemd.show_status=3Dauto" > >+if [ -d "${PTXDIST_PLATFORMDIR}/root/.virtfs_metadata" ]; then >+ security_model=3D"mapped-file" >+else >+ security_model=3D"none" >+fi >+ > # Machine to emulate > QEMU_ARGS=3D( -L ${PTXDIST_PLATFORMDIR}/sysroot-host/share/qemu/ -machine= pc-q35-2.12 -smp 2 -cpu host -accel kvm -m 1G -s ) > # disable graphics output >@@ -97,7 +103,22 @@ run_qemu_hda() { > -append "root=3D/dev/vda console=3DttyS0,115200 rw ${BASE_CMDLINE}" > } > >-target=3D"${1:-hda}" >+# >+# This needs: >+# CONFIG_NET_9P_VIRTIO=3Dy >+# CONFIG_9P_FS=3Dy >+# >+run_qemu_9p() { >+ exec ${QEMU_EXEC} \ >+ "${QEMU_ARGS[@]}" \ >+ -fsdev local,id=3Drootfs,path=3D${PTXDIST_PLATFORMDIR}/root,security_mo= del=3D"${security_model}" \ >+ -device virtio-9p-pci,msize=3D16777216,fsdev=3Drootfs,mount_tag=3D/dev/= root \ >+ "${QEMU_EXTRA_ARGS[@]}" \ >+ "${QEMU_LINUX_ARGS[@]}" \ >+ -append "root=3D/dev/root rw rootfstype=3D9p rootflags=3Dtrans=3Dvirtio= ${BASE_CMDLINE}" >+} >+ >+target=3D"${1:-9p}" > > #set -x > run_qemu_${target} >--=20 >2.30.2 > > > --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --gMR3gsNFwZpnI/Ts Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElXvEUs6VPX6mDPT8C+njFXoeLGQFAmQeNJYACgkQC+njFXoe LGT0WxAAi9Sz5ge7ugUPpEHkxqGsv6iewPhXAHPHEOpAKW8iSZ7Psl+/ZxSmhkQ5 yRF8CKMiimUJh4RxVt/ZOhM4sDSwscCpim5iMAeehytjigos/gKDfK+nWaFfXCsY +n9zTWhV4bjl9TuqcmfjAIY29s1YWo22CfnvxLlRAzdxIQK2fGKpicMmavCL0snK cpwgatDuZtL+54FYVjVDwt60iYJRU+1USGBxWWIOTiq0wReUTmgPWmCLbCmdJzBz d1jEdIQTH8I3SnlVAoWhVkKqO9E/PrEJJS3w3GEkHSivQ+BS5eBA/s1IjIr8j9mR qQMvEyhmBqOLLg+F1CIrQUlfMNYYleoIrYQlJhwgVjSHCR8WfEcH63MsKdg/9gRG 4OGKoO8g8tAjQ9p9yFvEQOHFMwjnsi2uLCH2HY5nDZj/y+UsAJxVDUxT7unjlC4Q YGPym3y3SfAkMFClBd2iGszDZkiOnH2ZVMmS+74GWFgG/rbO/vRoyxXy7z0o2fic 2r3CLyFoQXEUhpDgEukt9gFdx755A1tuexYkRmmk0XusaA0wJ6ZeRDSV2JOgGsFK WCzROEQNilZ4ouRgkefUNc9IE3LM2M7FKy07WArxg/5KKjdzo2BV4Bwm8nhZsc5i 6fUbGM23KlMR21KZsmMChHeeqeecrKqUQsWUUpP0Hi1p+cDyQ6Q= =3O7B -----END PGP SIGNATURE----- --gMR3gsNFwZpnI/Ts--