mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-07 16:07:03 +00:00
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>
23 lines
425 B
C
23 lines
425 B
C
/*
|
|
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef NOTIFY_H
|
|
#define NOTIFY_H
|
|
|
|
typedef void (*smp_call_func_t)(void *data);
|
|
struct smp_call_info_data {
|
|
smp_call_func_t func;
|
|
void *data;
|
|
};
|
|
|
|
struct acrn_vm;
|
|
void smp_call_function(uint64_t mask, smp_call_func_t func, void *data);
|
|
|
|
void setup_notification(void);
|
|
void setup_pi_notification(void);
|
|
|
|
#endif
|