summary refs log tree commit diff stats
path: root/hw/core/machine-qmp-cmds.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-11-06 15:00:27 +0000
committerPeter Maydell <peter.maydell@linaro.org>2023-11-06 15:00:27 +0000
commit212c5fe1914a192b01f337b7392fca75a7ab4071 (patch)
treed0248f5b6b68f3a67e43c8fb54d87d87a9cf3ff7 /hw/core/machine-qmp-cmds.c
parent806f71eecf643d029099e57fae2199f678845d98 (diff)
downloadfocaccia-qemu-212c5fe1914a192b01f337b7392fca75a7ab4071.tar.gz
focaccia-qemu-212c5fe1914a192b01f337b7392fca75a7ab4071.zip
hw/i386/intel_iommu: vtd_slpte_nonzero_rsvd(): assert no overflow
We support only 3- and 4-level page-tables, which is firstly checked in
vtd_decide_config(), then setup in vtd_init(). Than level fields are
checked by vtd_is_level_supported().

So here we can't have level out from 1..4 inclusive range. Let's assert
it. That also explains Coverity that we are not going to overflow the
array.

CID: 1487158, 1487186
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Maksim Davydov <davydov-max@yandex-team.ru>
Message-id: 20231017125941.810461-2-vsementsov@yandex-team.ru
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/machine-qmp-cmds.c')
0 files changed, 0 insertions, 0 deletions