mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-03 01:44:55 +00:00
dm: add option "lapic_pt" to create VM for realtime scenarios
New option "--lapic_pt" added to create VM with local apic passthrough, for realtime scenarios. When the option is set, a VM is created with LAPIC_PASSTHROUGH. The option is not set by default. Tracked-On: #2351 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -138,6 +138,14 @@ vm_create(const char *name, uint64_t req_buf)
|
||||
else
|
||||
create_vm.vm_flag &= (~SECURE_WORLD_ENABLED);
|
||||
|
||||
if (lapic_pt) {
|
||||
create_vm.vm_flag |= LAPIC_PASSTHROUGH;
|
||||
create_vm.vm_flag |= IOREQ_COMPLETION_POLLING;
|
||||
} else {
|
||||
create_vm.vm_flag &= (~LAPIC_PASSTHROUGH);
|
||||
create_vm.vm_flag &= (~IOREQ_COMPLETION_POLLING);
|
||||
}
|
||||
|
||||
create_vm.req_buf = req_buf;
|
||||
while (retry > 0) {
|
||||
error = ioctl(ctx->fd, IC_CREATE_VM, &create_vm);
|
||||
|
Reference in New Issue
Block a user