pci: split code to size BARs from pci_add_device
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 22 Mar 2018 13:59:00 +0000 (14:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Mar 2018 09:19:06 +0000 (10:19 +0100)
commita1a6d59862f4b40a30aebba7ef49509b8ed91a7d
tree94397d4c45b408f4152cc57c4d113968c0639fd8
parenteb3dd90e40898b2a95ada9b8c11d11a96e58d9cf
pci: split code to size BARs from pci_add_device

So that it can be called from outside in order to get the size of regular PCI
BARs. This will be required in order to map the BARs from PCI devices into PVH
Dom0 p2m.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/pci.c
xen/include/xen/pci.h