Skip to content

Commit 88bed66

Browse files
jsun26intelwenlingz
authored andcommitted
HV: refine usage of idle=halt in sos cmdline
The parameter of "idle=halt" for SOS cmdline is only needed when cpu sharing is enabled, otherwise it will impact SOS power. Tracked-On: #4329 Signed-off-by: Victor Sun <victor.sun@intel.com>
1 parent 510a093 commit 88bed66

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

hypervisor/include/arch/x86/vm_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
#define MAX_VM_OS_NAME_LEN 32U
2424
#define MAX_MOD_TAG_LEN 32U
2525

26+
#ifdef CONFIG_SCHED_NOOP
27+
#define SOS_IDLE ""
28+
#else
29+
#define SOS_IDLE "idle=halt "
30+
#endif
31+
2632
#define PCI_DEV_TYPE_PTDEV (1U << 0U)
2733
#define PCI_DEV_TYPE_HVEMUL (1U << 1U)
2834
#define PCI_DEV_TYPE_SOSEMUL (1U << 2U)

hypervisor/scenarios/hybrid/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"i915.avail_planes_per_pipe=0x010700 " \
3838
"i915.domain_plane_owners=0x011100001111 " \
3939
"i915.enable_gvt=1 " \
40+
SOS_IDLE \
4041
SOS_BOOTARGS_DIFF
4142

4243
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U)}

hypervisor/scenarios/industry/vm_configurations.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"i915.nuclear_pageflip=1 " \
3333
"i915.avail_planes_per_pipe=0x01010F " \
3434
"i915.domain_plane_owners=0x011111110000 " \
35-
"i915.enable_gvt=1 idle=halt " \
35+
"i915.enable_gvt=1 " \
36+
SOS_IDLE \
3637
SOS_BOOTARGS_DIFF
3738

3839
#define VM1_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(0U), AFFINITY_CPU(1U)}

hypervisor/scenarios/sdc/vm_configurations.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"i915.nuclear_pageflip=1 " \
3333
"i915.avail_planes_per_pipe=0x01010F " \
3434
"i915.domain_plane_owners=0x011111110000 " \
35-
"i915.enable_gvt=1 idle=halt " \
35+
"i915.enable_gvt=1 " \
36+
SOS_IDLE \
3637
SOS_BOOTARGS_DIFF
3738

3839
#if CONFIG_MAX_KATA_VM_NUM > 0

0 commit comments

Comments
 (0)