summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorwanghaibin <wanghaibin.wang@huawei.com>2017-10-26 17:23:03 +0200
committerChristoffer Dall <christoffer.dall@linaro.org>2017-10-29 03:25:06 +0100
commitb92382620e33c9f1bcbcd7c169262b9bf0525871 (patch)
tree348fe223141e12c8878019e002b47f80dc6b84e5 /tools/lib
parentf9b269f3098121b5d54aaf822e0898c8ed1d3fec (diff)
downloadlinux-b92382620e33c9f1bcbcd7c169262b9bf0525871.tar.gz
linux-b92382620e33c9f1bcbcd7c169262b9bf0525871.tar.bz2
linux-b92382620e33c9f1bcbcd7c169262b9bf0525871.zip
KVM: arm/arm64: vgic-its: Fix return value for device table restore
If ITT only contains invalid entries, vgic_its_restore_itt returns 1 and this is considered as an an error in vgic_its_restore_dte. Also in case the device table only contains invalid entries, the table restore fails and this is not correct. This patch fixes those 2 issues: - vgic_its_restore_itt now returns <= 0 values. If all ITEs are invalid, this is considered as successful. - vgic_its_restore_device_tables also returns <= 0 values. We also simplify the returned value computation in handle_l1_dte. Signed-off-by: wanghaibin <wanghaibin.wang@huawei.com> Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions