mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
HV:refine 'apic_page' & 'pir_desc' in 'struct acrn_vlapic'
- update 'apic_page' field in 'struct acrn_vlapic', from pointer type to 'struct lapic_regs' type. - delete 'pir' and update 'pir_desc' to 'vlapic_pir_desc' type. - fix potential memory leak in 'vlapic_create()' should free allocated memory in case of registering mmio handler failure. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -167,7 +167,7 @@ struct lapic_regs {
|
||||
/* reserved */ PAD4;
|
||||
uint32_t dcr_timer; PAD3;
|
||||
/* reserved */ PAD4;
|
||||
};
|
||||
} __aligned(CPU_PAGE_SIZE);
|
||||
|
||||
enum LAPIC_REGISTERS {
|
||||
LAPIC_ID = 0x2,
|
||||
|
||||
Reference in New Issue
Block a user