diff options
author | Eric Auger | 2017-10-26 17:23:06 +0200 |
---|---|---|
committer | Christoffer Dall | 2017-10-29 03:25:06 +0100 |
commit | c2385eaa6c5a87cdc4e04ed589ae103ca3297c84 (patch) | |
tree | 712404cee49dc091b21b2923b531697197a940c8 /sound/pci/aw2 | |
parent | c9b51bb60d944067f36f67750e19c18c3cc2697c (diff) |
KVM: arm/arm64: vgic-its: Check GITS_BASER Valid bit before saving tables
At the moment we don't properly check the GITS_BASER<n>.Valid
bit before saving the collection and device tables.
On vgic_its_save_collection_table() we use the GITS_BASER gpa
field whereas the Valid bit should be used.
On vgic_its_save_device_tables() there is no check. This can
cause various bugs, among which a subsequent fault when accessing
the table in guest memory.
Let's systematically check the Valid bit before doing anything.
We also uniformize the code between save and restore.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'sound/pci/aw2')
0 files changed, 0 insertions, 0 deletions