mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-28 11:43:56 +00:00
HV: remove rewrite of PMU guest flag in acrn dm
Exclude "GUEST_FLAG_PMU_PASSTHROUGH" from DM_OWNED_GUEST_FLAG_MASK in case device model rewrite the value in release mode, reserve it in debug mode. Signed-off-by: hangliu1 <hang1.liu@linux.intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Tracked-On:#6690
This commit is contained in:
parent
c5289bca83
commit
bfd5445700
@ -56,6 +56,9 @@
|
||||
/* Bitmask of guest flags that can be programmed by device model. Other bits are set by hypervisor only. */
|
||||
#if (SERVICE_VM_NUM == 0)
|
||||
#define DM_OWNED_GUEST_FLAG_MASK 0UL
|
||||
#elif defined(CONFIG_RELEASE)
|
||||
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH \
|
||||
| GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING)
|
||||
#else
|
||||
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH \
|
||||
| GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING | GUEST_FLAG_PMU_PASSTHROUGH)
|
||||
|
Loading…
Reference in New Issue
Block a user