mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: move GICv2M SPI base to leave room for legacy IRQs
Move the GICv2M MSI frame SPI base from 32 to 128 to avoid conflicts with platform device interrupts. While at it, rename the constants to make it explicit that they are associated with the GICv2m MSI Frame. Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
cb5aaca809
commit
3e339439a4
@@ -1569,7 +1569,7 @@ impl CpuManager {
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
{
|
||||
use arch::layout::{GIC_V2M_COMPATIBLE, SPI_BASE, SPI_NUM};
|
||||
use arch::layout::{GIC_V2M_COMPATIBLE, GICV2M_SPI_BASE, GICV2M_SPI_NUM};
|
||||
|
||||
/* Notes:
|
||||
* Ignore Local Interrupt Controller Address at byte offset 36 of MADT table.
|
||||
@@ -1645,8 +1645,8 @@ impl CpuManager {
|
||||
msi_frame_id: 0,
|
||||
base_address: vgic_config.msi_addr,
|
||||
flags: 1,
|
||||
spi_count: SPI_NUM as u16,
|
||||
spi_base: SPI_BASE as u16,
|
||||
spi_count: GICV2M_SPI_NUM as u16,
|
||||
spi_base: GICV2M_SPI_BASE as u16,
|
||||
};
|
||||
madt.append(gic_msi_frame);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user