mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 05:02:24 +00:00
This patch makes the following changes: - Remove the 4th VM - Make the default vcpu num of RTVM as 2 --- v1 -> v2: Modify CONFIG_MAX_VM_NUM to 3U + KATA Tracked-On: #3925 Signed-off-by: Yan, Like <like.yan@intel.com> Signed-off-by: Kaige Fu <kaige.fu@intel.com>
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VM_CONFIGURATIONS_H
|
|
#define VM_CONFIGURATIONS_H
|
|
|
|
#include <misc_cfg.h>
|
|
|
|
#define CONFIG_MAX_VM_NUM (3U + CONFIG_MAX_KATA_VM_NUM)
|
|
|
|
/* 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)
|
|
|
|
#define SOS_VM_BOOTARGS SOS_ROOTFS \
|
|
"rw rootwait " \
|
|
"console=tty0 " \
|
|
SOS_CONSOLE \
|
|
"consoleblank=0 " \
|
|
"no_timer_check " \
|
|
"quiet loglevel=3 " \
|
|
"i915.nuclear_pageflip=1 " \
|
|
"i915.avail_planes_per_pipe=0x01010F " \
|
|
"i915.domain_plane_owners=0x011111110000 " \
|
|
"i915.enable_gvt=1 " \
|
|
SOS_BOOTARGS_DIFF
|
|
|
|
#define VM1_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(1U)}
|
|
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U), AFFINITY_CPU(3U)}
|
|
|
|
#endif /* VM_CONFIGURATIONS_H */
|