hw/apci: handle 64-bit MMIO regions correctly
commit16de88a4164f2e580b3b2ee67d1b9ac1dace1711
authorMarcel Apfelbaum <marcel@redhat.com>
Sun, 17 Jul 2016 16:53:13 +0000 (17 19:53 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jul 2016 21:07:09 +0000 (29 00:07 +0300)
tree98483d9d02333e0f7ad0bef422da6ae9bee5c167
parent2df5a7b52f2b1923f59f47da4ac2fc5501b4bd3c
hw/apci: handle 64-bit MMIO regions correctly

In build_crs(), the calculation and merging of the ranges already happens
in 64-bit, but the entry boundaries are silently truncated to 32-bit in the
call to aml_dword_memory(). Fix it by handling the 64-bit MMIO ranges separately.
This fixes 64-bit BARs behind PXBs.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c