linux/arch/arm64/kvm/vgic
Wei-Lin Chang af040a9a29 KVM: arm64: nv: Fix MI line level calculation in vgic_v3_nested_update_mi()
The state of the vcpu's MI line should be asserted when its
ICH_HCR_EL2.En is set and ICH_MISR_EL2 is non-zero. Using bitwise AND
(&=) directly for this calculation will not give us the correct result
when the LSB of the vcpu's ICH_MISR_EL2 isn't set. Correct this by
directly computing the line level with a logical AND operation.

Signed-off-by: Wei-Lin Chang <r09922117@csie.ntu.edu.tw>
Link: https://lore.kernel.org/r/20250625084709.3968844-1-r09922117@csie.ntu.edu.tw
[maz: drop the level check from the original code]
Signed-off-by: Marc Zyngier <maz@kernel.org>
2025-06-26 08:01:45 +01:00
..
trace.h
vgic-debug.c KVM: arm64: vgic-debug: Avoid dereferencing NULL ITE pointer 2025-05-30 10:24:49 +01:00
vgic-init.c KVM/arm64 fixes for 6.16, take #1 2025-06-02 03:05:29 -04:00
vgic-irqfd.c KVM: arm64: fix kdoc warnings in W=1 builds 2024-08-02 18:58:03 +00:00
vgic-its.c KVM/arm64 fixes for 6.16, take #1 2025-06-02 03:05:29 -04:00
vgic-kvm-device.c KVM: arm64: use kvm_trylock_all_vcpus when locking all vCPUs 2025-05-27 12:16:41 -04:00
vgic-mmio-v2.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio-v3.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio.h KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace 2022-07-17 11:55:33 +01:00
vgic-v2.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-v3-nested.c KVM: arm64: nv: Fix MI line level calculation in vgic_v3_nested_update_mi() 2025-06-26 08:01:45 +01:00
vgic-v3.c Merge branch 'kvm-arm64/pv-cpuid' into kvmarm/next 2025-03-19 14:53:16 -07:00
vgic-v4.c KVM: arm64: Resolve vLPI by host IRQ in vgic_v4_unset_forwarding() 2025-05-30 09:11:29 +01:00
vgic.c KVM: arm64: nv: Add Maintenance Interrupt emulation 2025-03-03 14:57:10 -08:00
vgic.h KVM: arm64: vgic-its: Add debugfs interface to expose ITS tables 2025-05-19 16:10:02 +01:00