mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
hv: vmconfig: format guest flag with prefix GUEST_FLAG_
To make the code more readable. Tracked-On: #1842 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -47,11 +47,11 @@
|
||||
#endif
|
||||
|
||||
/* Generic VM flags from guest OS */
|
||||
#define SECURE_WORLD_ENABLED (1UL << 0U) /* Whether secure world is enabled */
|
||||
#define LAPIC_PASSTHROUGH (1UL << 1U) /* Whether LAPIC is passed through */
|
||||
#define IO_COMPLETION_POLLING (1UL << 2U) /* Whether need hypervisor poll IO completion */
|
||||
#define CLOS_REQUIRED (1UL << 3U) /* Whether CLOS is required */
|
||||
#define HIDE_MTRR (1UL << 4U) /* Whether hide MTRR from VM */
|
||||
#define GUEST_FLAG_SECURE_WORLD_ENABLED (1UL << 0U) /* Whether secure world is enabled */
|
||||
#define GUEST_FLAG_LAPIC_PASSTHROUGH (1UL << 1U) /* Whether LAPIC is passed through */
|
||||
#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 */
|
||||
|
||||
/**
|
||||
* @brief Hypercall
|
||||
@@ -347,7 +347,7 @@ struct acrn_create_vm {
|
||||
uint8_t GUID[16];
|
||||
|
||||
/* VM flag bits from Guest OS, now used
|
||||
* SECURE_WORLD_ENABLED (1UL<<0)
|
||||
* GUEST_FLAG_SECURE_WORLD_ENABLED (1UL<<0)
|
||||
*/
|
||||
uint64_t vm_flag;
|
||||
|
||||
|
Reference in New Issue
Block a user