mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
dm: adapt mptable generation for VM with lapic pt
- don't generate io apic entry for vm with lapic pt. Tracked-On: #2351 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
e2cecfb560
commit
8925da64d9
@ -88,6 +88,7 @@ char *elf_file_name;
|
||||
uint8_t trusty_enabled;
|
||||
char *mac_seed;
|
||||
bool stdio_in_use;
|
||||
bool lapic_pt;
|
||||
|
||||
static int virtio_msix = 1;
|
||||
static bool debugexit_enabled;
|
||||
|
@ -335,6 +335,8 @@ mptable_build(struct vmctx *ctx, int ncpu)
|
||||
curraddr += sizeof(*mpeb) * MPE_NUM_BUSES;
|
||||
mpch->entry_count += MPE_NUM_BUSES;
|
||||
|
||||
/* Don't generate io_apic entry for VM with lapic pt */
|
||||
if (!lapic_pt) {
|
||||
mpei = (io_apic_entry_ptr)curraddr;
|
||||
mpt_build_ioapic_entries(mpei, 0);
|
||||
curraddr += sizeof(*mpei);
|
||||
@ -345,6 +347,7 @@ mptable_build(struct vmctx *ctx, int ncpu)
|
||||
mpt_build_ioint_entries(mpie, 0);
|
||||
curraddr += sizeof(*mpie) * ioints;
|
||||
mpch->entry_count += ioints;
|
||||
}
|
||||
|
||||
mpie = (int_entry_ptr)curraddr;
|
||||
mpt_build_localint_entries(mpie);
|
||||
|
@ -45,6 +45,7 @@ extern char *elf_file_name;
|
||||
extern char *vmname;
|
||||
extern bool stdio_in_use;
|
||||
extern char *mac_seed;
|
||||
extern bool lapic_pt;
|
||||
|
||||
int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,
|
||||
int *vcpu);
|
||||
|
Loading…
Reference in New Issue
Block a user