We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ad25e commit d561491Copy full SHA for d561491
arch/arm64/kvm/vgic/vgic-mmio-v3.c
@@ -530,6 +530,7 @@ static void vgic_mmio_write_invlpi(struct kvm_vcpu *vcpu,
530
unsigned long val)
531
{
532
struct vgic_irq *irq;
533
+ u32 intid;
534
535
/*
536
* If the guest wrote only to the upper 32bit part of the
@@ -541,9 +542,13 @@ static void vgic_mmio_write_invlpi(struct kvm_vcpu *vcpu,
541
542
if ((addr & 4) || !vgic_lpis_enabled(vcpu))
543
return;
544
545
+ intid = lower_32_bits(val);
546
+ if (intid < VGIC_MIN_LPI)
547
+ return;
548
+
549
vgic_set_rdist_busy(vcpu, true);
550
- irq = vgic_get_irq(vcpu->kvm, NULL, lower_32_bits(val));
551
+ irq = vgic_get_irq(vcpu->kvm, NULL, intid);
552
if (irq) {
553
vgic_its_inv_lpi(vcpu->kvm, irq);
554
vgic_put_irq(vcpu->kvm, irq);
0 commit comments