hv: use kick-mode in per-cpu to control kick pCPU

INIT signal has been used to kick off the partitioned pCPU, like RTVM,
whose LAPIC is pass-through. notification IPI is used to kick off
sharing pCPU.

Add mode_to_kick_pcpu in per-cpu to control the way of kicking
pCPU.

Tracked-On: #8207
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Minggui Cao
2022-08-18 15:50:10 +08:00
committed by acrnsi-robot
parent 39cdf6f7a6
commit 2c140addaf
11 changed files with 32 additions and 49 deletions

View File

@@ -126,4 +126,6 @@ void send_single_ipi(uint16_t pcpu_id, uint32_t vector);
*/
void send_single_init(uint16_t pcpu_id);
void kick_pcpu(uint16_t pcpu_id);
#endif /* ARCH_X86_LAPIC_H */

View File

@@ -54,6 +54,7 @@ struct per_cpu_region {
uint32_t lapic_id;
uint32_t lapic_ldr;
uint32_t softirq_servicing;
uint32_t mode_to_kick_pcpu;
struct smp_call_info_data smp_call_info;
struct list_head softirq_dev_entry_list;
#ifdef PROFILING_ON