mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-04 21:29:43 +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. */
|
/* Bitmask of guest flags that can be programmed by device model. Other bits are set by hypervisor only. */
|
||||||
#if (SERVICE_VM_NUM == 0)
|
#if (SERVICE_VM_NUM == 0)
|
||||||
#define DM_OWNED_GUEST_FLAG_MASK 0UL
|
#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
|
#else
|
||||||
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH \
|
#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)
|
| GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING | GUEST_FLAG_PMU_PASSTHROUGH)
|
||||||
|
Loading…
Reference in New Issue
Block a user