mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-13 17:34:12 +00:00
Adjust kick_vcpu logic and move to common scope. Moves also vcpu_make_request to common scope and adds vcpu_has_pending_request and vcpu_take_request helpers. Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Reviewed-by: Li Fei <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
26 lines
525 B
C
26 lines
525 B
C
/*
|
|
* Copyright (C) 2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef COMMON_NOTIFY_H
|
|
#define COMMON_NOTIFY_H
|
|
|
|
#include <types.h>
|
|
#include <asm/notify.h>
|
|
|
|
typedef void (*smp_call_func_t)(void *data);
|
|
|
|
struct smp_call_info_data {
|
|
smp_call_func_t func;
|
|
void *data;
|
|
};
|
|
|
|
void init_smp_call(void);
|
|
void handle_smp_call(void);
|
|
void smp_call_function(uint64_t mask, smp_call_func_t func, void *data);
|
|
void kick_notification(__unused uint32_t irq, __unused void *data);
|
|
|
|
#endif /* COMMON_NOTIFY_H */
|