i386/pc: factor out cxl range end to helper
commit55668e409bcaf04e6af7acb44037d5f18c6b786e
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 19 Jul 2022 17:00:08 +0000 (19 18:00 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Jul 2022 14:40:58 +0000 (26 10:40 -0400)
treea55003c547cc4390e0d009c7a79c50e4ac20d2b0
parent5ff62e2afedf5c984048f90a881794622a9eb3e8
i386/pc: factor out cxl range end to helper

Move calculation of CXL memory region end to separate helper.

This is in preparation to a future change that removes CXL range
dependency on the CXL memory region, with the goal of allowing
pc_pci_hole64_start() to be called before any memory region are
initialized.

Cc: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220719170014.27028-6-joao.m.martins@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c