[PATCH 4/4] HV: Remove unused function send_dest_ipi_mask


Kaige Fu
 

There are no callers of send_dest_ipi_mask. This patch
removes it.

Signed-off-by: Kaige Fu <kaige.fu@...>
---
hypervisor/arch/x86/lapic.c | 22 ----------------------
hypervisor/include/arch/x86/lapic.h | 8 --------
2 files changed, 30 deletions(-)

diff --git a/hypervisor/arch/x86/lapic.c b/hypervisor/arch/x86/lapic.c
index cb8eb3f4..55c0d7ee 100644
--- a/hypervisor/arch/x86/lapic.c
+++ b/hypervisor/arch/x86/lapic.c
@@ -230,28 +230,6 @@ send_startup_ipi(enum intr_cpu_startup_shorthand cpu_startup_shorthand,
msr_write(MSR_IA32_EXT_APIC_ICR, icr.value);
}

-void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector)
-{
- union apic_icr icr;
- uint16_t pcpu_id;
- uint32_t mask = dest_mask;
-
- icr.value_32.lo_32 = vector | (INTR_LAPIC_ICR_PHYSICAL << 11U);
-
- pcpu_id = ffs64(mask);
-
- while (pcpu_id < MAX_PCPU_NUM) {
- bitmap32_clear_nolock(pcpu_id, &mask);
- if (is_pcpu_active(pcpu_id)) {
- icr.value_32.hi_32 = per_cpu(lapic_id, pcpu_id);
- msr_write(MSR_IA32_EXT_APIC_ICR, icr.value);
- } else {
- pr_err("pcpu_id %d not in active!", pcpu_id);
- }
- pcpu_id = ffs64(mask);
- }
-}
-
void send_single_ipi(uint16_t pcpu_id, uint32_t vector)
{
union apic_icr icr;
diff --git a/hypervisor/include/arch/x86/lapic.h b/hypervisor/include/arch/x86/lapic.h
index ca721d89..a7e65c8c 100644
--- a/hypervisor/include/arch/x86/lapic.h
+++ b/hypervisor/include/arch/x86/lapic.h
@@ -141,14 +141,6 @@ void send_startup_ipi(enum intr_cpu_startup_shorthand cpu_startup_shorthand,
uint16_t dest_pcpu_id,
uint64_t cpu_startup_start_address);

-/**
- * @brief Send an IPI to multiple pCPUs
- *
- * @param[in] dest_mask The mask of destination physical cpus
- * @param[in] vector The vector of interrupt
- */
-void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector);
-
/**
* @brief Send an IPI to a single pCPU
*
--
2.20.0

Join acrn-dev@lists.projectacrn.org to automatically receive all group messages.