From nobody Mon Feb 13 11:07:42 2023 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 4PFhQL3djLz3q39J for ; Mon, 13 Feb 2023 11:07:54 +0000 (UTC) (envelope-from me@jarradhope.com) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFhQK5rF0z3nvN for ; Mon, 13 Feb 2023 11:07:53 +0000 (UTC) (envelope-from me@jarradhope.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=jarradhope-com.20210112.gappssmtp.com header.s=20210112 header.b=B411hYym; spf=none (mx1.freebsd.org: domain of me@jarradhope.com has no SPF policy when checking 2607:f8b0:4864:20::112e) smtp.mailfrom=me@jarradhope.com; dmarc=none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-52f0001ff8eso58848547b3.4 for ; Mon, 13 Feb 2023 03:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jarradhope-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wxPSWtErVmt2Y0RtM2o7GQuFbSqBjHrqtYh0lPl+2So=; b=B411hYym3sSrOTWRs5/BKhhHzMSuh6p9dWelAAOTammpC9oVCsjfe34XQTR8NlZIiY Zc7+4dNjjqRqLOcyT4SYhV8usszGUtSUxkRvnYPAZKtnXWfQwVOqFQoAuRKakmKi0hmD 0tM7RZgukhmnPz667j4v7BuHNfuzrWYdhuie9chm02Lp3ZwNhca6vc9f5r07B8GcKKNM JzDam1lDq951NK7txs8vHt5aSdw/ENTxGDXl4c8WA4NToO5+dM2R/eK2V2Fo8sZDvw1M yIXJzSQS9+rQURHUxUUh5oJb057mHTNROrPOulxj7N0PtRdf1XUc8vc6xa8Hv6yhawuF LOgw== 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=wxPSWtErVmt2Y0RtM2o7GQuFbSqBjHrqtYh0lPl+2So=; b=JlLwYnSlwGZfo9Yae2UYJYKm7UNOr1xcE/ou4cnYymc9cqjwWUGxqlpKeXB8z8ocrn 3Vm6i/+QJ3aPVFoNjD3s1cOZihg33Q6cCCTCuBj//HfuehFiWpWSwDKLB3lbFPyjoqUh JKz+Zte27+En74efPUdZelPmHi5+eQ5zaEDQzcXvO8yUV1f55hQnnWM39OTpKB7rhstk ZT8pE7rcZly8o0FTQoNyww14jHnrOrR5ADfhMylpy5rLyQvwKE6WTx9Xi6fN8wW4FKHX NC6SzXyIFJHQG9yp57VgBZ00HkzKmRHPDXd4iG/yluzgprzt7HZ8ZsOCdmxXkehN2H26 n8MA== X-Gm-Message-State: AO0yUKXGTnLA7+6BmUaJgFeeuFoaQwZ1w3g5hJonzOVmXtoZ7EgvROVN uY2Kmtl8kLu7ju5m0vemIq+PVe5iQswwJef5YnmTZbl65YoyY23RFe0= X-Google-Smtp-Source: AK7set8EUzZBtuCGf4B9w1hey2QqVtYIo4wSz6N82KtrER3btr/VeKGFxEKkXFbPXn2+JX3Eo1vo6DR+HlOnTmP3j0g= X-Received: by 2002:a81:73c3:0:b0:527:4a1:df0c with SMTP id o186-20020a8173c3000000b0052704a1df0cmr2591717ywc.4.1676286472823; Mon, 13 Feb 2023 03:07:52 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Jarrad Hope Date: Mon, 13 Feb 2023 12:07:42 +0100 Message-ID: Subject: Inter-VM Communication under Bhyve? To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c13b2105f492db42" X-Spamd-Result: default: False [-2.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[jarradhope-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112e:from]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[jarradhope-com.20210112.gappssmtp.com:+]; DMARC_NA(0.00)[jarradhope.com]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[me]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PFhQK5rF0z3nvN X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000c13b2105f492db42 Content-Type: text/plain; charset="UTF-8" Does Bhyve support a form of shared memory between VMs for low-latency inter-vm communication? I am interested in implementing something similar to Xen's vchan, it relies on Xen's grant reference table mechanism and event channels associated with the shared memory region (ring buffer) The purpose for doing so is to create secure communication between VM's ala Qube's qrexec protocol. https://www.cs.uic.edu/~xzhang/vchan/ https://mirage.io/blog/introducing-vchan https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/io/libxenvchan.h;hb=HEAD https://www.qubes-os.org/doc/qrexec-internals/ --000000000000c13b2105f492db42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Does Bhyve support a form of shared memory between VM= s for low-latency inter-vm communication?

I am int= erested in implementing something similar to Xen's vchan, it relies on Xen's grant reference=20 table mechanism and event channels associated with the shared memory regio= n (ring buffer)

--000000000000c13b2105f492db42--