hv: change several APIs to void type

Change these 6 APIs to void type:
  init_default_irqs
  interrupt_init
  early_init_lapic
  init_lapic
  init_iommu
  destroy_iommu_domain
It has checked the argument of destroy_iommu_domain in shutdown_vm,
then no need to check it again inside destroy_iommu_domain.

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Mingqiang Chi
2018-07-17 09:41:08 +08:00
committed by wenlingz
parent 8017ebdf82
commit aa2b2d80d4
8 changed files with 24 additions and 58 deletions

View File

@@ -180,7 +180,7 @@ static void map_lapic(void)
lapic_info.xapic.vaddr = HPA2HVA(lapic_info.xapic.paddr);
}
int early_init_lapic(void)
void early_init_lapic(void)
{
/* Get local APIC base address */
lapic_base_msr.value = msr_read(MSR_IA32_APIC_BASE);
@@ -207,11 +207,9 @@ int early_init_lapic(void)
ASSERT(lapic_base_msr.fields.x2APIC_enable == 0U,
"Disable X2APIC in BIOS");
}
return 0;
}
int init_lapic(uint16_t pcpu_id)
void init_lapic(uint16_t pcpu_id)
{
/* Set the Logical Destination Register */
write_lapic_reg32(LAPIC_LOGICAL_DESTINATION_REGISTER,
@@ -236,8 +234,6 @@ int init_lapic(uint16_t pcpu_id)
/* Ensure there are no ISR bits set. */
clear_lapic_isr();
return 0;
}
void save_lapic(struct lapic_regs *regs)