[vbox-dev] Patch to fix kernel API changes in 4.17

Sérgio Basto sergio at serjux.com
Wed Apr 25 23:42:57 GMT 2018


On Mon, 2018-04-16 at 11:28 -0500, Larry Finger wrote:
> Kernel 4.17.0-rc1 has just been released. It contains one API change
> that is 
> fixed in the attached patch.
> 
> The change is that pci_get_bus_and_slot() has been removed in favor
> of
> pci_get_domain_bus_and_slot(). It appears that VirtualBox only uses
> domain number 0, thus pci_get_domain_bus_and_slot(0, bus, devfn)
> is a suitable replacement for pci_get_bus_and_slot(bus, devfn).
> 
> The resulting code compiles; however, I do not use PCI passthru,
> which
> I think means that I have not actually tested the code.
> 
> This patch released under a combined MIT/GPLv2 license.

Thanks ! , it fixes the build with kernel-4.17.0-rc2.git1 and vbox
5.2.10 (last release )

-- 
Sérgio M. B.



More information about the vbox-dev mailing list