hv: vlapic: wrap APICv accept interrupt API

The APICv ops is decided once the APICv feature on the physical platform is detected.
We will use apicv_advanced_ops if the physical platform support fully APICv feature;
otherwise, we will use apicv_basic_ops.
This patch only wrap the accept interrupt API for them.

Tracked-On: #1842
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2019-03-20 22:05:17 +08:00
committed by wenlingz
parent 7852719a86
commit 846b5cf6b7
4 changed files with 77 additions and 51 deletions

View File

@@ -110,6 +110,7 @@ struct acrn_vlapic {
uint32_t lvt_last[VLAPIC_MAXLVT_INDEX + 1];
} __aligned(PAGE_SIZE);
void vlapic_set_apicv_ops(void);
/**
* @brief virtual LAPIC