xen_pt: Present the size of 64 bit BARs correctly
commitdc9e46a29aad8ba5d2fb0871268baa9c7edc0f95
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 14 May 2018 09:57:46 +0000 (14 10:57 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 18 May 2018 18:03:19 +0000 (18 11:03 -0700)
tree371427e1fb46bf1a63e5f392546b69ed453a1f06
parent70c292afdffe9176a3255cc32d723ddd673dab52
xen_pt: Present the size of 64 bit BARs correctly

The full size of the BAR is stored in the lower PCIIORegion.size. The
upper PCIIORegion.size is 0.  Calculate the size of the upper half
correctly from the lower half otherwise the size read by the guest will
be incorrect.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen_pt_config_init.c