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 ef02af3 commit 1e749f1Copy full SHA for 1e749f1
arch/arm64/kvm/vgic/vgic-mmio-v3.c
@@ -580,6 +580,7 @@ static void vgic_mmio_write_invlpi(struct kvm_vcpu *vcpu,
580
unsigned long val)
581
{
582
struct vgic_irq *irq;
583
+ u32 intid;
584
585
/*
586
* If the guest wrote only to the upper 32bit part of the
@@ -591,9 +592,13 @@ static void vgic_mmio_write_invlpi(struct kvm_vcpu *vcpu,
591
592
if ((addr & 4) || !vgic_lpis_enabled(vcpu))
593
return;
594
595
+ intid = lower_32_bits(val);
596
+ if (intid < VGIC_MIN_LPI)
597
+ return;
598
+
599
vgic_set_rdist_busy(vcpu, true);
600
- irq = vgic_get_irq(vcpu->kvm, NULL, lower_32_bits(val));
601
+ irq = vgic_get_irq(vcpu->kvm, NULL, intid);
602
if (irq) {
603
vgic_its_inv_lpi(vcpu->kvm, irq);
604
vgic_put_irq(vcpu->kvm, irq);
0 commit comments