Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2025 02:39:01 +0200
From:      Tomek CEDRO <tomek@cedro.info>
To:        Jonathan Vasquez <jon@xyinn.org>
Cc:        "virtualization@freebsd.org" <virtualization@freebsd.org>, =?UTF-8?Q?Corvin_K=C3=B6hne?= <corvink@freebsd.org>
Subject:   Re: GPU Passthrough on FreeBSD 14.3 (AMD Radeon RX 6900 XT and Windows 10 Pro)
Message-ID:  <CAFYkXjmmsNb1dNoq3ebm%2BVVTgVFyoDB7LHBaCKTq-VduYxp4=w@mail.gmail.com>
In-Reply-To: <6QpHOGTzqnqxLPCDMcDbChlobQw-mVGWb2BjQk-K7kyE3OjuLCCFLGn5nVpgEvlr3xaipUzLMWz1JaESXx9W6w7aXNyAXN5wbuoS8eaWkcU=@xyinn.org>
References:  <6CV-OY6BcErrWRit9jSpi6fWsYBG3E_Z3u6eTLPcz6foPAZV1gQpZYaZTR7JA_1ot5RQVqrWQaLxJFySXjspIhSbBJGxmckcDQyzxhALNus=@xyinn.org> <GXXvtGkj6StE4BIkkGS7gd01j9K7K3IIGkBOHHqgomnZuNxo-5Sz4WjNKV6HYi5HhPXeBIwsdkAuR71i7hJ8QEPaH4bqkhrTIaA2ti0IXoE=@xyinn.org> <MN2PR20MB3168842FD4AAADEB8A29DC5DFE3EA@MN2PR20MB3168.namprd20.prod.outlook.com> <fb59ninGeo2cCSN7tULNr1ZaXzLFaZn1Lh_SuGWMBCv63RAbqgZetMhn63dppXM7quUBuGF8U9N8-furgb-088Gn-LHr9-e9JYUPvHIvuqU=@xyinn.org> <FIR4iioBciiFZPGzeCeKoY_RKIdxeWWraK2Dr98ag7G7X6n2u5CWtBc2GT7CAzc9sq9JUREXfr7tbj9Bpd341cp7YxJFyM04FczcztnSb_I=@xyinn.org> <09-JQGKdIKMMp4u22KT_U_n7lXzFRKrK3mODyLvhee7a7pYyagqdi1mbgVTeq5QIe_ZrbGfkM4I03ocsBCj6ogh04hKyCcDdY65EtlrysuI=@xyinn.org> <mCYFvsvCiJxYxJBB5ZoCDpZvD1K9kurQRfAA7xyg5YykjoH-NoSqP_an0mexDVQ07wj1JOulA9imS1ss-zf4RSGSo4OMluxlovFwe7C5Y8c=@xyinn.org> <HQJQz0Hozvec21gKyTxzLVEzEtV-bgFo-_bznYjO5YCz-lcTXzmXextt-EoWDx7MgOtkgbj1W0mlfMiOpFkblnHtj4shaRNC-aBACusnasY=@xyinn.org> <d776efc6caa4655932c5826a5254726b54f0922e.camel@FreeBSD.org> <inDvuzB_9hEMrB7OHgJcDcta8GMaEPxvzilpw8LycZgSoch8FY1lzGtOmipyv4IYHwucW6Hdm7qv3c1M9TjZMbaZws7Yzi8zlxZSZ3ZV0PA=@xyinn.org> <6QpHOGTzqnqxLPCDMcDbChlobQw-mVGWb2BjQk-K7kyE3OjuLCCFLGn5nVpgEvlr3xaipUzLMWz1JaESXx9W6w7aXNyAXN5wbuoS8eaWkcU=@xyinn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 18, 2025 at 2:05=E2=80=AFAM Jonathan Vasquez <jon@xyinn.org> wr=
ote:
> Hey all,
> I've done some more testing and improved my post. I pretty much got a ful=
l blown gaming set up working. It has it's qwirks but definitely can play g=
ames on this VM now. I no longer use RDP at all. Since passthrough is worki=
ng, I just plugged in my monitor directly into the GFX card. Once you start=
 the bhyve VM, you will get video out at full power (- w/e performance lose=
 we have due to running in a VM). But I'm not getting any lag or stuttering=
 due to RDP/VNC stuff. Since I have a KVM, I was able to pass through my mo=
bo's USB stuff to the VM which means the KVM allows me to use my keyboard/m=
ouse in the VM, and I can even use Ethernet and sound as well since the KVM=
 has a headphone jack. So with all of that, I have everything I need to pla=
y games on this VM with the AMD Radeon RX 6900 XT. The nice thing is that t=
hings are just going to get better on FreeBSD from here :). Please check ou=
t the info on my page again and let me know if anyone has any questions.
>
> I'm sure that we will get improvements in the future for:
> - Resizable BAR support
> - Fixing any issues with slowness with some games (probably a byproduct o=
f something else going on)
> - Any weird graphical/artifact issues in - some - circumstances. Although=
 it seems when I do get graphical issues, it's only temporary and doesn't m=
ake the game completely unplayable.
>
> @Tomek CEDRO
>
> I'm not against getting this documentation into the handbook, but from my=
 little work on getting some documentation updates into the handbook, there=
 are specific guidelines that need to be followed with language used, struc=
ture, etc, and there are a lot of side things that I didn't describe in my =
document. All of this would probably need to be fully fleshed out and polis=
hed before something of this magnitude would be accepted as an official cha=
pter or section in the handbook. Although I agree that it's very valuable i=
nformation and a highly sought after use case I would think.. at least it w=
as for me. I was thinking this technology would be out of reach for me for =
many many more years, but I'm happy that the day has finally come, and on m=
y favorite OS, FreeBSD. Let's go!!

Congratz! :-) Nice to see you play Cyberpunk2077 and Witcher3 that are
from Poland where I live! Cyberpunk Not Dead! =3D)

Jonathan, I did not find detailed information about the monitors setup
for the host and the guest on your blog post:

https://xyinn.org/blog/freebsd/freebsd_bhyve_gpu_passthrough_amd

So you are using two GPUs on the host machine, on-board for the host,
and the PCI-E for the guest?

Is it possible to use both host and guest on the same GPU? I guess not
because BSD uses kernel driver and that cannot be unloaded and then
reloaded on the guest enter/exit and so KVM is necessary?

Another question is why this will not work for Intel and Nvidia GPUs?
I have onboard Intel and PCI-E RTX5070 from Nvidia :-P

You can add video about this setup on your YT channel :-)

Thanks for sharing the success story and hints on how to repeat! :-)

Tomek

ps/2: I really miss the good GPU/GFX support in bhyve, that is we
could reuse existing GPU and screen for the guest with no VNC, RDP, or
Passthrough+KVM :-P

--=20
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjmmsNb1dNoq3ebm%2BVVTgVFyoDB7LHBaCKTq-VduYxp4=w>