summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorAni Sinha2022-02-23 15:33:22 +0100
committerMichael S. Tsirkin2022-03-04 14:30:52 +0100
commit63670bd3fce3d0c033d939d1b2b7a5f6834d0cf3 (patch)
treece299d54ef39f165e79f9e011334db959d04c25a /include/hw
parenthw/smbios: fix overlapping table handle numbers with large memory vms (diff)
downloadqemu-63670bd3fce3d0c033d939d1b2b7a5f6834d0cf3.tar.gz
qemu-63670bd3fce3d0c033d939d1b2b7a5f6834d0cf3.tar.xz
qemu-63670bd3fce3d0c033d939d1b2b7a5f6834d0cf3.zip
hw/smbios: add assertion to ensure handles of tables 19 and 32 do not collide
Since change dcf359832eec02 ("hw/smbios: fix table memory corruption with large memory vms") we reserve additional space between handle numbers of tables 17 and 19 for large VMs. This may cause table 19 to collide with table 32 in their handle numbers for those large VMs. This change adds an assertion to ensure numbers do not collide. If they do, qemu crashes with useful debug information for taking additional steps. Signed-off-by: Ani Sinha <ani@anisinha.ca> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20220223143322.927136-8-ani@anisinha.ca> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions