mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: vlapic: code clean-up
* rename `vlapic_set_intr_ready` to `vlapic_accept_intr` * replace calling of `vlapic_intr_edge` with `vlapic_set_intr` * remove `vlapic_intr_level` and `vlapic_intr_edge` Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -194,31 +194,6 @@ void vlapic_set_intr(struct acrn_vcpu *vcpu, uint32_t vector, bool level);
|
||||
|
||||
#define LAPIC_TRIG_LEVEL true
|
||||
#define LAPIC_TRIG_EDGE false
|
||||
/**
|
||||
* @brief Pend level-trigger mode virtual interrupt to vCPU.
|
||||
*
|
||||
* @param[in] vcpu Pointer to target vCPU data structure
|
||||
* @param[in] vector Vector to be injected.
|
||||
*
|
||||
*/
|
||||
static inline void
|
||||
vlapic_intr_level(struct acrn_vcpu *vcpu, uint32_t vector)
|
||||
{
|
||||
vlapic_set_intr(vcpu, vector, LAPIC_TRIG_LEVEL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pend edge-trigger mode virtual interrupt to vCPU.
|
||||
*
|
||||
* @param[in] vcpu Pointer to target vCPU data structure
|
||||
* @param[in] vector Vector to be injected.
|
||||
*
|
||||
*/
|
||||
static inline void
|
||||
vlapic_intr_edge(struct acrn_vcpu *vcpu, uint32_t vector)
|
||||
{
|
||||
vlapic_set_intr(vcpu, vector, LAPIC_TRIG_EDGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Triggers LAPIC local interrupt(LVT).
|
||||
|
Reference in New Issue
Block a user