mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-30 19:05:33 +00:00
Currently, the previous configurations about guest_flags set by DM will not be cleared when shutdown the vm. Then it might bring issue for the next dm-launched vm. For example, if we create one vm with LAPIC_PASSTHROUGH flag and shutdown it. Then the next dm-launched vm will has the LAPIC_PASSTHROUGH flag set no matter whether we set it in DM. This patch clears all the DM set flags when shtudown vm. Tracked-On: #2991 Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
18 lines
502 B
C
18 lines
502 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VM_CONFIGURATIONS_H
|
|
#define VM_CONFIGURATIONS_H
|
|
|
|
#define CONFIG_MAX_VM_NUM 2U
|
|
|
|
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
|
|
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \
|
|
GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING)
|
|
|
|
|
|
#endif /* VM_CONFIGURATIONS_H */
|