hv: revert NMI notification by INIT signal

NMI is used to notify LAPIC-PT RTVM, to kick its CPU into hypervisor.
But NMI could be used by system devices, like PMU (Performance Monitor
Unit). So use INIT signal as the partition CPU notification function, to
replace injecting NMI.

Also remove unused NMI as notification related code.

Tracked-On: #6966
Acked-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
This commit is contained in:
Minggui Cao
2021-12-17 14:02:01 +08:00
committed by acrnsi-robot
parent b72202e976
commit 3b1deda0eb
11 changed files with 53 additions and 102 deletions

View File

@@ -12,7 +12,7 @@
#define NEED_RESCHEDULE (1U)
#define DEL_MODE_NMI (1U)
#define DEL_MODE_INIT (1U)
#define DEL_MODE_IPI (2U)
#define THREAD_DATA_SIZE (256U)
@@ -24,7 +24,7 @@ enum thread_object_state {
};
enum sched_notify_mode {
SCHED_NOTIFY_NMI,
SCHED_NOTIFY_INIT,
SCHED_NOTIFY_IPI
};