mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-08 03:35:14 +00:00
hv/mod_irq: move IPI declarations out of x86/irq.h
They are moved into the new header file x86/notify.h. Tracked-On: #5825 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
ff732cfb2a
commit
6f0a7016d3
@ -96,20 +96,6 @@ struct x86_irq_data {
|
|||||||
|
|
||||||
struct intr_excp_ctx;
|
struct intr_excp_ctx;
|
||||||
|
|
||||||
struct acrn_vm;
|
|
||||||
|
|
||||||
typedef void (*smp_call_func_t)(void *data);
|
|
||||||
struct smp_call_info_data {
|
|
||||||
smp_call_func_t func;
|
|
||||||
void *data;
|
|
||||||
};
|
|
||||||
|
|
||||||
void smp_call_function(uint64_t mask, smp_call_func_t func, void *data);
|
|
||||||
bool is_notification_nmi(const struct acrn_vm *vm);
|
|
||||||
|
|
||||||
void setup_notification(void);
|
|
||||||
void setup_pi_notification(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Allocate a vectror and bind it to irq
|
* @brief Allocate a vectror and bind it to irq
|
||||||
*
|
*
|
||||||
|
23
hypervisor/include/arch/x86/notify.h
Normal file
23
hypervisor/include/arch/x86/notify.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 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);
|
||||||
|
bool is_notification_nmi(const struct acrn_vm *vm);
|
||||||
|
|
||||||
|
void setup_notification(void);
|
||||||
|
void setup_pi_notification(void);
|
||||||
|
|
||||||
|
#endif
|
@ -10,6 +10,7 @@
|
|||||||
#include <types.h>
|
#include <types.h>
|
||||||
#include <sbuf.h>
|
#include <sbuf.h>
|
||||||
#include <irq.h>
|
#include <irq.h>
|
||||||
|
#include <notify.h>
|
||||||
#include <page.h>
|
#include <page.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
#include <profiling.h>
|
#include <profiling.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user