mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 22:17:03 +00:00
Improve SMP call to support ACRN shell to operate RTVM. before, the RTVM CPU can't be kicked off by notification IPI, so some shell commands can't support it, like rdmsr/wrmsr, memory/registers dump. So INIT will be used for RTVM, which LAPIC is pass-thru. Tracked-On: #8207 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
24 lines
437 B
C
24 lines
437 B
C
/*
|
|
* Copyright (C) 2020-2022 Intel Corporation.
|
|
*
|
|
* 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 handle_smp_call(void);
|
|
void setup_pi_notification(void);
|
|
|
|
#endif
|