Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2024 01:18:00 +0100
From:      "=?iso-8859-1?B?TWljaGFlbCBTbPhnZWRhbA==?=" <michael@sloged.al>
To:        "freebsd-virtualization@FreeBSD.org" <freebsd-virtualization@FreeBSD.org>
Subject:   bhyve intel 530 integrated graphics error 
Message-ID:  <gxES.l1BY6Ym_vUi8D9urxKuWvQ@Zoka9TMijEmnc8h1QEfjMc2pA_dP_RxOrEsZw_uiNe4.xz>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

 

I’ve been trying to collect the necessary info online about how to do gpu
passthru with integrated intel graphics to win10, but can’t make it work.

 

 1. First tried with just passthru, and after 3-4 reboots, the display adapter
    shows up in win10 guest, but it won’t load properly.
 2. Tried adding the hd audio device as well, get bluescreen with
    “memory_management” stop code in guest
 3. Tried adding a gop rom from https://github.com/patmagauran/i915ovmfPkg -
    host crashed and got error below

 

I’m at a loss what to try next. Any ideas where I’m going wrong?

 

# tail /vm/win10ltsc/vm-bhyve.log       

Jan 17 00:49:02:  [primary disk: disk0.img]

Jan 17 00:49:02:  [primary disk dev: file]

Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections

Jan 17 00:49:02: booting

Jan 17 00:49:02:  [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m 8G -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 2:0,passthru,0/2/0,rom=
/vm/win10ltsc/i915ovmf.rom -U 8dff5c4a-b083-11ee-b2cd-78d004259091 -S]

Jan 17 00:49:02:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/
win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 6:0,fbuf,tcp=0.0.0.0:5900,w=
1920,h=1080 -s 7:0,xhci,tablet]

Jan 17 00:49:02:  [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]

Jan 17 00:49:02: starting bhyve (run 1)

Jan 17 00:49:04: bhyve exited with status 134

Jan 17 00:49:04: stopped

 

# tail /vm/win10ltsc/bhyve.log  

pci_fbuf: mmap_memseg failed

Assertion failed: (mr->name == memp->name), function unregister_mem, file /usr/
src/usr.sbin/bhyve/mem.c, line 344.

 

# uname -a

FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11
04:56:01 UTC 2023     root@amd64-builder.daemonology.net:/usr/obj/usr/src/
amd64.amd64/sys/GENERIC amd64


[-- Attachment #2 --]
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1229683544;
	mso-list-type:hybrid;
	mso-list-template-ids:-205384604 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-text:"%1\)";
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve been trying to collect the necessary info online about how to do gpu passthru with integrated intel graphics to win10, but can&#8217;t make it work.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><ol style='margin-top:0in' start=1 type=1><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'>First tried with just passthru, and after 3-4 reboots, the display adapter shows up in win10 guest, but it won&#8217;t load properly.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'>Tried adding the hd audio device as well, get bluescreen with &#8220;memory_management&#8221; stop code in guest<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'>Tried adding a gop rom from <a href="https://github.com/patmagauran/i915ovmfPkg">https://github.com/patmagauran/i915ovmfPkg</a>; - host crashed and got error below<o:p></o:p></li></ol><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m at a loss what to try next. Any ideas where I&#8217;m going wrong?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal># tail /vm/win10ltsc/vm-bhyve.log <o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: [primary disk: disk0.img]<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: [primary disk dev: file]<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: booting<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m 8G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 2:0,passthru,0/2/0,rom=/vm/win10ltsc/i915ovmf.rom -U 8dff5c4a-b083-11ee-b2cd-78d004259091 -S]<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 6:0,fbuf,tcp=0.0.0.0:5900,w=1920,h=1080 -s 7:0,xhci,tablet]<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:02: starting bhyve (run 1)<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:04: bhyve exited with status 134<o:p></o:p></p><p class=MsoNormal>Jan 17 00:49:04: stopped<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal># tail /vm/win10ltsc/bhyve.log <o:p></o:p></p><p class=MsoNormal>pci_fbuf: mmap_memseg failed<o:p></o:p></p><p class=MsoNormal>Assertion failed: (mr-&gt;name == memp-&gt;name), function unregister_mem, file /usr/src/usr.sbin/bhyve/mem.c, line 344.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal># uname -a<o:p></o:p></p><p class=MsoNormal>FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64<o:p></o:p></p></div></body></html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gxES.l1BY6Ym_vUi8D9urxKuWvQ>