2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 11:43:54 +08:00
linux-next/arch/arm64/kvm/vgic
Ricardo Koller cafe7e544d KVM: arm64: vgic: Check that new ITEs could be saved in guest memory
Try to improve the predictability of ITS save/restores by failing
commands that would lead to failed saves. More specifically, fail any
command that adds an entry into an ITS table that is not in guest
memory, which would otherwise lead to a failed ITS save ioctl. There
are already checks for collection and device entries, but not for
ITEs.  Add the corresponding check for the ITT when adding ITEs.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220510001633.552496-2-ricarkol@google.com
2022-05-16 13:58:04 +01:00
..
trace.h KVM: arm64: Move virt/kvm/arm to arch/arm64 2020-05-16 15:03:59 +01:00
vgic-debug.c KVM: arm64: vgic: Remove unnecessary type castings 2022-04-06 10:42:55 +01:00
vgic-init.c KVM/arm64 updates for Linux 5.16 2022-01-07 10:42:19 -05:00
vgic-irqfd.c KVM: arm64: vgic: Add memcg accounting to vgic allocations 2021-10-17 11:25:55 +01:00
vgic-its.c KVM: arm64: vgic: Check that new ITEs could be saved in guest memory 2022-05-16 13:58:04 +01:00
vgic-kvm-device.c KVM: Use 'unsigned long' as kvm_for_each_vcpu()'s index 2021-12-08 04:24:15 -05:00
vgic-mmio-v2.c KVM: Use 'unsigned long' as kvm_for_each_vcpu()'s index 2021-12-08 04:24:15 -05:00
vgic-mmio-v3.c KVM/arm64 updates for Linux 5.16 2022-01-07 10:42:19 -05:00
vgic-mmio.c KVM: arm64: vgic: Read HW interrupt pending state from the HW 2022-02-11 11:01:12 +00:00
vgic-mmio.h KVM: arm64: Constify kvm_io_gic_ops 2021-12-06 08:34:06 +00:00
vgic-v2.c Merge branch kvm-arm64/vgic-fixes-5.17 into kvmarm-master/next 2021-12-16 12:54:12 +00:00
vgic-v3.c KVM/arm64 fixes for 5.17, take #1 2022-01-28 07:45:15 -05:00
vgic-v4.c KVM: Use 'unsigned long' as kvm_for_each_vcpu()'s index 2021-12-08 04:24:15 -05:00
vgic.c KVM: arm64: fix typos in comments 2022-03-18 14:04:15 +00:00
vgic.h KVM: arm64: vgic: Drop vgic_check_ioaddr() 2021-10-11 09:31:42 +01:00