File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 41
41
#define IOEOI 0x40
42
42
43
43
#define REDIR_ENTRIES_HW 120 /* SOS align with native ioapic */
44
- #define REDIR_ENTRIES_UOS 24 /* UOS pins*/
45
44
#define RTBL_RO_BITS ((uint64_t)(IOAPIC_RTE_REM_IRR | IOAPIC_RTE_DELIVS))
46
45
47
46
#define ACRN_DBG_IOAPIC 6
@@ -568,7 +567,7 @@ vioapic_pincount(struct vm *vm)
568
567
if (is_vm0 (vm ))
569
568
return REDIR_ENTRIES_HW ;
570
569
else
571
- return REDIR_ENTRIES_UOS ;
570
+ return VIOAPIC_RTE_NUM ;
572
571
}
573
572
574
573
int vioapic_mmio_access_handler (struct vcpu * vcpu , struct mem_io * mmio ,
Original file line number Diff line number Diff line change 63
63
#define REQUEST_READ 0
64
64
#define REQUEST_WRITE 1
65
65
66
+ /* IOAPIC device model info */
67
+ #define VIOAPIC_RTE_NUM 48 /* vioapic pins */
68
+
69
+ #if VIOAPIC_RTE_NUM < 24
70
+ #error "VIOAPIC_RTE_NUM must be larger than 23"
71
+ #endif
72
+
66
73
/* Generic VM flags from guest OS */
67
74
#define SECURE_WORLD_ENABLED (1UL<<0) /* Whether secure world is enabled */
68
75
You can’t perform that action at this time.
0 commit comments