aboutsummaryrefslogtreecommitdiff
path: root/linux-user/semihost.c
diff options
context:
space:
mode:
authorAni Sinha <anisinha@redhat.com>2023-10-11 16:23:35 +0530
committerMichael S. Tsirkin <mst@redhat.com>2023-10-22 05:18:17 -0400
commit4076bc86a3afd626338f2e3d018f6b884a972143 (patch)
tree6c674c69c2cab20974b687e702ed38c3fd23716b /linux-user/semihost.c
parentf02a4b8e6431598612466f76aac64ab492849abf (diff)
downloadqemu-4076bc86a3afd626338f2e3d018f6b884a972143.zip
qemu-4076bc86a3afd626338f2e3d018f6b884a972143.tar.gz
qemu-4076bc86a3afd626338f2e3d018f6b884a972143.tar.bz2
hw/i386/cxl: ensure maxram is greater than ram size for calculating cxl range
pc_get_device_memory_range() finds the device memory size by calculating the difference between maxram and ram sizes. This calculation makes sense only when maxram is greater than the ram size. Make sure we check for that before calling pc_get_device_memory_range(). Signed-off-by: Ani Sinha <anisinha@redhat.com> Message-Id: <20231011105335.42296-1-anisinha@redhat.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'linux-user/semihost.c')
0 files changed, 0 insertions, 0 deletions