mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-30 06:54:48 +00:00
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:
parent
71f75ebf23
commit
2e4d7eb527
@ -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);
|
||||
|
@ -52,6 +52,7 @@
|
||||
#define GUEST_FLAG_IO_COMPLETION_POLLING (1UL << 2U) /* Whether need hypervisor poll IO completion */
|
||||
#define GUEST_FLAG_CLOS_REQUIRED (1UL << 3U) /* Whether CLOS is required */
|
||||
#define GUEST_FLAG_HIDE_MTRR (1UL << 4U) /* Whether hide MTRR from VM */
|
||||
#define GUEST_FLAG_RT (1UL << 5U) /* Whether the vm is RT-VM */
|
||||
|
||||
/**
|
||||
* @brief Hypercall
|
||||
|
Loading…
Reference in New Issue
Block a user