From nobody Wed Jan 22 18:14:18 2025 X-Original-To: freebsd-arm@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 4YdXKv0wTSz5krCY for ; Wed, 22 Jan 2025 18:14:59 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 4YdXKt4cMsz40NL for ; Wed, 22 Jan 2025 18:14:58 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-21a7ed0155cso119562135ad.3 for ; Wed, 22 Jan 2025 10:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737569697; x=1738174497; 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=aU8sgbgIKw+XqnoiLRUI6UklDY6TdnT5B6uYv1EF784=; b=bj1pFjpjtWqwkXxtmbsBqSjkMtXt2WC8zi+lzTlOgPT10yvEhbu4JtOppaac4NilqN 0Lh/eDfVUVlN28Ob5tuZygHhztxWM78CuKrzeA8v9CH6mOiY8iDu1Ygt8U9l/87WHL7r u1INa/f4yAMl1F+hyTHnC09tQw1/EzC6Pcwq5f2ZGb1FZ/FTYg53GT/QVw0TUEBa7ba9 1is2JDqpgckttO4lWanwXKB4rJSwQOYM3ee2JM956iZPeK85kp4s+OvMrguw2IuqlB18 ObNyhZoBXDwi0LxYVV92arfK2XxGPdf5L7O09dnx7mDIdGGEkf4a5rqgM5WxD2BE4OQY EpYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737569697; x=1738174497; 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=aU8sgbgIKw+XqnoiLRUI6UklDY6TdnT5B6uYv1EF784=; b=WnC2k5oZ20JY9tpYLOV/wyqtyhHHK94/23E9XscDROBcEAYiKYNK3YzwiWUQ1WQT4o 9YaG+N8c1Zv8pg2A10TYA8ZoyeDh5ALFrixBXNqZeNunux0JiUxyFu4bADOTq6MTe3x7 HFn07YFkTau6sSEGD/jG/NMcpZQbJfF/9ylLKybupk3qHn4EYqRTdo4XCzLAEj2s00at 97S0HEgY3YVUkXoAg8ait4BvTG/QW3QajcE+zsZlZTOOBYNqD1IiAxz5LX0kKfFgGCnT 8hOkBb6wgAJarYPKEnMUl4NaoDPMFfEBE3E0w/XCfJLhQcGTtolqxgRozI1VkEr3wLj8 6Nzg== X-Gm-Message-State: AOJu0YwQq9vKT3T3ymvGKrdRf497c/Tm4jeLA6Sq2gyPHEprop8mjgfC obfb3crTaKrsf4l63L++504jd3Db34Nij2ymz+cAivTd6PhcKAMnU3l9bKZuAOkINprKmNyBWC8 FTv9Ii2TmUZNNRm/yKo8AAEEJ5HOS1r3ioEA= X-Gm-Gg: ASbGncsT+NMwwDdTlWl9qt0MqzxqLwLoKLLFilL/CEHMFf5N1BULE8mBQ1Tzlrys0H8 xnFqcaORxoleDNHSmueaGghmAZSe+hxq8qq4edpSwqSPWQ45Oxw== X-Google-Smtp-Source: AGHT+IEMNrY0pCqExMbQABfu78MSjqbz/vgHs42ls3WV/hS6vApiAg83CFZ9+wm60WCbTMYYfZ41VqI6ZpTmFJQ64SI= X-Received: by 2002:a05:6a20:3d90:b0:1db:ddba:8795 with SMTP id adf61e73a8af0-1eb215f4a74mr38325296637.36.1737569696915; Wed, 22 Jan 2025 10:14:56 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Wed, 22 Jan 2025 19:14:18 +0100 X-Gm-Features: AbW1kvacfdsahGYZRLYsFD_VFf7G_UUJ_RI5SEFaMxs5c_S1kAeSRLu_9XWYxkA Message-ID: Subject: Re: How well work bhyve for arm64 at this time ? and it is able to passthru the GPU ? To: Andrew Turner Cc: freebsd-arm Content-Type: multipart/alternative; boundary="0000000000008ead22062c4f78d6" X-Rspamd-Queue-Id: 4YdXKt4cMsz40NL 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] --0000000000008ead22062c4f78d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I've found this old document,dated 2016,where the Linaro team says to have upstreamed the patches to passthru a gpu on arm64 for the boards that supporters the gicV3 specifications : https://old.linaro.org/blog/kvm-pciemsi-passthrough-armarm64/ Those patches work if we use qemu and kvm. They don't explain which arm64 boards are supported. I don't understand what is the context in which those patches work. And what's the situation today ? I presume that the board should have the PCIe bus ? Maybe boards like Ampere or ThunderX2 or the Radxa Orion O6 ? If I use those boards with qemu and kvm,could I make the passthru of the GPU ? Anyway,I presume that on that high level arm boards,the bhyve developer could add the necessary patches to allow the passthru of the gpu ? Are there some plans to do it ? On Wed, Jan 22, 2025 at 5:31=E2=80=AFPM Andrew Turner wrote: > On 2025-01-22 15:08, Mario Marietto wrote: > > Hello. > > > > Someone these days is playing with bhyve for arm64 ? I didn't have the > > time to try it,but I'm interested to well work at this time and above > > all,if it is able to pass through the GPU used by the host,let's say > > FreeBSD installed on some capable Arm64 board,to a guest,let's say > > Linux as guest OS. I doubt that it can be done,but I really want to > > know the answer. > > There is currently no device passthrough on arm64. > > Andrew > --=20 Mario. --0000000000008ead22062c4f78d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
He= llo.

I've found this old document,dated 2016,w= here the Linaro team says to have upstreamed the patches to passthru a gpu = on arm64 for the boards that supporters the gicV3 specifications :


Those patches work = if we use qemu and kvm. They don't explain which arm64 boards are suppo= rted.

I don't understand what is the context i= n which those patches work. And what's the situation today ?
= I presume that the board should have the PCIe bus ? Maybe boards like Amper= e or ThunderX2 or the Radxa Orion O6 ?

If I use th= ose boards with qemu and kvm,could I make the passthru of the GPU ?

Anyway,I presume that on that high level arm boards,= the bhyve developer could add the necessary patches to allow the passthru o= f the gpu ? Are there some plans to do it ?

On Wed, Jan 22, 2= 025 at 5:31=E2=80=AFPM Andrew Turner <andrew@fubar.geek.nz> wrote:
On 2025-01-22 15:08, Mario Mari= etto wrote:
> Hello.
>
> Someone these days is playing with bhyve for arm64 ? I didn't have= the
> time to try it,but I'm interested to well work at this time and ab= ove
> all,if it is able to pass through the GPU used by the host,let's s= ay
> FreeBSD installed on some capable Arm64 board,to a guest,let's say=
> Linux as guest OS. I doubt that it can be done,but I really want to > know the answer.

There is currently no device passthrough on arm64.

Andrew


--
Ma= rio.
--0000000000008ead22062c4f78d6--