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:
Liang Yi 2021-03-02 17:25:53 +08:00 committed by wenlingz
parent ff732cfb2a
commit 6f0a7016d3
3 changed files with 24 additions and 14 deletions

View File

@ -96,20 +96,6 @@ struct x86_irq_data {
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
*

View 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

View File

@ -10,6 +10,7 @@
#include <types.h>
#include <sbuf.h>
#include <irq.h>
#include <notify.h>
#include <page.h>
#include <timer.h>
#include <profiling.h>