Skip to content

Commit

Permalink
intrng: add hypervisor root entry
Browse files Browse the repository at this point in the history
A hypervisor driver which can be presented to INTRNG as a root-PIC is
known.  As such add INTR_ROOT_HYPER for hypervisor drivers to share.  It
is doubtful multiple hypervisors could be interacted with at the same
time, hence a single entry for them to share.
  • Loading branch information
ehem committed Sep 23, 2024
1 parent ddc1ab5 commit e46dcf0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/arm/include/intr.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
enum root_type {
INTR_ROOT_IRQ = 0,

#if 0

Check failure on line 49 in sys/arm/include/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

if this code is redundant consider removing it
INTR_ROOT_HYPER,
#endif

INTR_ROOT_COUNT /* MUST BE LAST */
};

Expand Down
4 changes: 4 additions & 0 deletions sys/arm64/include/intr.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ enum root_type {
INTR_ROOT_IRQ = 0,
INTR_ROOT_FIQ = 1,

#if 0

Check failure on line 38 in sys/arm64/include/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

if this code is redundant consider removing it
INTR_ROOT_HYPER,
#endif

INTR_ROOT_COUNT /* MUST BE LAST */
};

Expand Down
4 changes: 4 additions & 0 deletions sys/riscv/include/intr.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
enum root_type {
INTR_ROOT_IRQ = 0,

#if 0

Check failure on line 41 in sys/riscv/include/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

if this code is redundant consider removing it
INTR_ROOT_HYPER,
#endif

INTR_ROOT_COUNT /* MUST BE LAST */
};

Check warning on line 47 in sys/riscv/include/intr.h

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit e46dcf0

Please sign in to comment.