hv: Pass address of vioapic struct to register_mmio_emulation_handler

Changes the mmio handler data from that of the acrn_vm struct to
the acrn_vioapic.

Add nr_pins and base_addr to the acrn_vioapic data structure.

Tracked-On: #4151
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Acked-by: Eddie Dong <eddie.dong@Intel.com>
This commit is contained in:
Sainath Grandhi
2020-02-12 16:13:06 -08:00
committed by wenlingz
parent dd6c80c305
commit 2fe3004202
2 changed files with 19 additions and 23 deletions

View File

@@ -51,6 +51,8 @@
struct acrn_vioapic {
struct acrn_vm *vm;
spinlock_t mtx;
uint32_t base_addr;
uint32_t nr_pins;
uint32_t id;
bool ready;
uint32_t ioregsel;