DM: Add new flag GUEST_FLAG_RT for RTVM

This flag indicates that if the vm is RTVM.
And if a vm has GUEST_FLAG_LAPIC_PASSTHROUGH flag set,
we must set the GUEST_FLAG_RT at the same time.

Tracked-On: #2865
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu
2019-03-27 13:23:37 +00:00
committed by ACRN System Integration
parent 71f75ebf23
commit 2e4d7eb527
2 changed files with 2 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ vm_create(const char *name, uint64_t req_buf)
if (lapic_pt) {
create_vm.vm_flag |= GUEST_FLAG_LAPIC_PASSTHROUGH;
create_vm.vm_flag |= GUEST_FLAG_RT;
create_vm.vm_flag |= GUEST_FLAG_IO_COMPLETION_POLLING;
} else {
create_vm.vm_flag &= (~GUEST_FLAG_LAPIC_PASSTHROUGH);