Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2019 13:44:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 205549] bhyve pci passthru stops working after guest is restarted
Message-ID:  <bug-205549-27103-Sc0yLbBVp8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-205549-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-205549-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549

--- Comment #13 from julien M <julien.mstr320@gmail.com> ---
(In reply to arkadyi from comment #12)
If you are running 12.0, you have to apply the patches in that order:
 1) patch with revision 348778=20
 2) patch with revision 348779
 3) patch with D20623


(In reply to  John Baldwin from comment #11)
Retested with your last revision. The problem still exists.

BEFORE installing Ubuntu 18.04 on Bhyve (first launch):
$ pciconf -r ppt4 0x3f

145c1022 00100007 0c033000 00800010
d9b00004 00000000 00000000 00000000
00000000 00000000 00000000 50071458
00000000 00000048 00000000 00000325

WHILE the install is running (and passthru is working):
$ pciconf -r ppt4 0x3f

145c1022 00100407 0c033000 00800010
d9b00004 00000000 00000000 00000000
00000000 00000000 00000000 50071458
00000000 00000048 00000000 00000325

AFTER VM POWER OFF:
$ pciconf -r ppt4 0x3f

145c1022 00100003 0c033000 00800010
d9b00004 00000000 00000000 00000000
00000000 00000000 00000000 50071458
00000000 00000048 00000000 00000325


AFTER VM START (for the 2nd time):
$ pciconf -r ppt4 0x3f

145c1022 00100407 0c033000 00800010
d9b00004 00000000 00000000 00000000
00000000 00000000 00000000 50071458
00000000 00000048 00000000 00000325

CHANGES: 00100007 =3D> 00100407

I don't know if I'm missing something? Patches all succeeded except one whi=
ch
had to be modified manually. Kernel + world were rebuilt and reinstalled (e=
ven
though that's overkill).


PS:=20
In my case, the 3 passthroughs are just meant to get the USB passthru for m=
ouse
and keyboard.

This is the device to be passed:
ppt2@pci0:8:0:0:        class=3D0x130000 card=3D0x145a1022 chip=3D0x145a102=
2 rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Advanced Micro Devices, Inc. [AMD]'
    device     =3D 'Zeppelin/Raven/Raven2 PCIe Dummy Function'
    class      =3D non-essential instrumentation
ppt3@pci0:8:0:2:        class=3D0x108000 card=3D0x14561022 chip=3D0x1456102=
2 rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Advanced Micro Devices, Inc. [AMD]'
    device     =3D 'Family 17h (Models 00h-0fh) Platform Security Processor'
    class      =3D encrypt/decrypt
ppt4@pci0:8:0:3:        class=3D0x0c0330 card=3D0x50071458 chip=3D0x145c102=
2 rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Advanced Micro Devices, Inc. [AMD]'
    device     =3D 'Family 17h (Models 00h-0fh) USB 3.0 Host Controller'
    class      =3D serial bus
    subclass   =3D USB

The only usefull one is then pci0:8:0:3 but I was under the impression that=
 you
have to pass everything or nothing, not just one "device" of the group "8:0=
:X".

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205549-27103-Sc0yLbBVp8>