[AArch64] Pending IRQ is enqueued twice when maintenance retry finds no free LR

Aperta
#396 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Start in src/device/irqchip/gicv3/mod.rs: read handle_maintenace_interrupt() and inject_irq() together to see which path inserts the pending IRQ and what inject_irq() does when no LR is free. Then compare the GICv2 flow in src/device/irqchip/gicv2/gic.rs at the maintenance handler and inject_irq(). The fix is done when each pending interrupt has a single owner for queue insertion and the retry path cannot enqueue it twice; no test is named, so verify by tracing both call paths.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

aarch64

Description

In the GICv3 virtual interrupt injection path, a pending interrupt can be
enqueued twice when it is retried from a maintenance interrupt and no List
Register (LR) is available.

The issue is present in the official v0.6 source:

  • Version: v0.6
  • Commit: e25fc10da62eef09e1dbd6ed8b15fb9a0dfcef59
  • File:
    src/device/irqchip/gicv3/mod.rs

Relevant code:

Note

The same queue ownership issue also exists in the GICv2 implementation in
v0.6.

When all GICH List Registers are occupied, inject_irq() already re-enqueues
the interrupt and returns false. The GICv2
handle_maintenace_interrupt() then enqueues the same interrupt again.

Relevant code:

The same single-owner rule for pending-queue insertion should therefore be
reviewed for both GICv3 and GICv2.

Lingua principale
Rust
Stelle
209
Fork
62
Merge medio
1g 21h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di syswonder/hvisor

Tutte le issue di syswonder/hvisor

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.