From nobody Thu May 30 22:19:13 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vr0zq63Mpz5LXN8 for ; Thu, 30 May 2024 22:19:51 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vr0zq3zwYz4ZZX for ; Thu, 30 May 2024 22:19:51 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2bf59381a11so1112172a91.1 for ; Thu, 30 May 2024 15:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717107590; x=1717712390; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=A6aCmlEjPC3RK0aMrzuMCh+p6OAx+iSyEatq+CDdG4g=; b=aeCG6sMdREYxYObFIBnqGrrzeJwfbBZvU75+hNuZW6S7r7V8i/iQFMsIR/LQXDOI57 Di8cUBEoywIIHQ1vgBNh5MSwwiOsEH5tc0D8vK17egQnTpbr6nv8CqsaJueHiF1ImaIy kz0ddgjAR6SXWA4/+GI6xyxa/c/5Klcc/2Uw98pMAREFjdIEy713LYzm+0Fi+sRzvcY+ kJ34W5w8iAAi6xMgeGMG07gF0OR9lM26URJh1K1pzh/MCGiRIRoGo5p6/2YFR+HkcYrJ 23tCc8Uv8NQNNW+Z54MS+je5PGzOwnQD9t7Za/aLG6sTQ6uB4sYeLYshhDUTAuVvJZY7 4xGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717107590; x=1717712390; 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=A6aCmlEjPC3RK0aMrzuMCh+p6OAx+iSyEatq+CDdG4g=; b=tl+Ma4dA9YDdVtVGAVxJnkRds2cWcSYWG9B5WZ1YKQth7Bxi1v2T/3lVz93JV0g631 kTgB7wZyfAwuHT5v6Cikc45oRepgroxFFxlyt5nSZCyGO/VQRJKqSowDLsjRLmoeizW4 4JlKfYyTcusmTwRk5JDb29UfBa9JTW3ACK2L9Vd6h0VEGEf3yR8O7RW3ZoyAndty6Awf C7DVM1/vpesSPpekc21eQxZlhVm75xilcjIwWT+KIo7+RKL21QNxezu13CLxYDOGSGiS pfWGlGi1OT2PFxIhWuMvDJebym9d/IgVvkdrjPUXbyP6I2sLTJTuVtKkL+a/nfKpHpJZ Eatg== X-Forwarded-Encrypted: i=1; AJvYcCUSUU88mRtSvO3GL6S1owZfRPODFawccWBB/shrjix+zrHsVmwRafOalDS8Sq51hfYmaA2fGRDnYt6xTBmW/MFlRfefYN1xIS8SDO6hnoVScf1y X-Gm-Message-State: AOJu0Yxm4I/zhtD/6w3idKvDEO7EwniKNUA+3hHjoMFrDFh/4ZDQzH9S Xv0LSdLIziN0ijG3oJx70YQu0EvAObS2dBCV/eUSKncrgnxQGaOWyM1X/I7JkHM8GxlV/Q7Ahm+ L299FY3vH17iX0Dzei+fnxSHc8+MT/WSs X-Google-Smtp-Source: AGHT+IFIDo88ggZbzvcHsDB3gnaGLen8mKFwSPy4PbN8Wk11d0Qmnoq34qn2PMuTo2T0NP+mS16uW3GAcJMoobJtCq8= X-Received: by 2002:a17:90a:d593:b0:2c1:bb0c:9af4 with SMTP id 98e67ed59e1d1-2c1dc4b479cmr117106a91.0.1717107589894; Thu, 30 May 2024 15:19:49 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Fri, 31 May 2024 00:19:13 +0200 Message-ID: Subject: Re: [RFC] virtio testing framework To: Tomek CEDRO Cc: emil@etsalapatis.com, Virtualisation on FreeBSD Content-Type: multipart/alternative; boundary="000000000000efd9f60619b343ea" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Vr0zq3zwYz4ZZX --000000000000efd9f60619b343ea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Can someone explain to me what the purpose of what you are talking about ? On Thu, May 30, 2024 at 10:38=E2=80=AFPM Tomek CEDRO wro= te: > Awesome!! Congrats :-) > > Here is some example of running NuttX RTOS on RV in a web browser using > TinyEMU + VirtIO :-) > > https://github.com/lupyuen/nuttx-tinyemu > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > On Thu, May 30, 2024, 22:16 Emil Tsalapatis wrote: > >> Hi everyone, >> >> while developing a virtiofs kernel driver I have written a debug >> virtio transport to test virtio drivers inside a VM without requiring >> nested virtualization or support from the host. The transport allows >> paravirt devices to be emulated in local userspace instead of a host, so= we >> can create paravirt devices and test them as necessary. For virtiofs in >> particular, it allows us to reuse the existing FUSE tests since we can n= ow >> run both the virtiofs driver and the FUSE server (which is normally in t= he >> host) in a single machine. >> >> I have uploaded the WIP code [here ]= , >> and an overview of the design [here >> ]. The >> patch has a ways to go, and currently only supports virtio-blk device >> emulation as a PoC, but feedback is welcome and appreciated. Please also >> let me know if there is interest in using this for testing other virtio >> devices apart from virtiofs. >> >> --Emil >> > --=20 Mario. --000000000000efd9f60619b343ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can someone explain to me what the purpose of what you are talking about ?


On Thu, May 30, 2024 at 10:38=E2=80=AFPM Tomek CEDRO <tomek@cedro.info> wrote:
Awesome= !! Congrats :-)

Here is = some example of running NuttX RTOS on RV in a web browser using TinyEMU + V= irtIO :-)


--
CeDeROM, SQ7M= HZ, http://www.to= mek.cedro.info

On Thu, May 30, 2024, 22:16 Emil Tsalapatis <emil@etsalapatis.com= > wrote:
=
Hi everyone,

=C2=A0 =C2=A0 while developing a virti= ofs kernel driver I have written a debug virtio transport to test virtio dr= ivers inside a VM without requiring nested virtualization or support from= =20 the host. The transport allows paravirt devices to be emulated in local=20 userspace instead of a host, so we can create paravirt devices and test=20 them as necessary. For virtiofs in particular, it allows us to reuse the existing FUSE tests since we can now run both the virtiofs driver and=20 the FUSE server (which is normally in the host) in a single machine.

I have uploaded the WIP code [here], and an o= verview of the design [here]. The patch has a ways to go, and currently only supports virtio-blk=20 device emulation as a PoC, but feedback is welcome and appreciated.=20 Please also let me know if there is interest in using this for testing=20 other virtio devices apart from virtiofs.

= --Emil


--
Mario.
--000000000000efd9f60619b343ea--