Skip to content

Commit

Permalink
HV: Kconfig: enable CPU sharing by default
Browse files Browse the repository at this point in the history
The patch enables CPU sharing feature by default, the default scheduler is
set to SCHED_BVT;

Tracked-On: #4661

Signed-off-by: Victor Sun <victor.sun@intel.com>
  • Loading branch information
jsun26intel authored and wenlingz committed Apr 17, 2020
1 parent 4c7ffee commit d742be2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hypervisor/arch/x86/Kconfig
Expand Up @@ -25,7 +25,7 @@ config MULTIBOOT2

choice
prompt "ACRN Scheduler"
default SCHED_NOOP
default SCHED_BVT
help
Select the CPU scheduler to be used by the hypervisor

Expand Down
2 changes: 1 addition & 1 deletion hypervisor/scenarios/industry/vm_configurations.c
Expand Up @@ -39,7 +39,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = {
},
{ /* VM1 */
CONFIG_POST_STD_VM(1),
.vcpu_num = 1U,
.vcpu_num = 2U,
.vcpu_affinity = VM1_CONFIG_VCPU_AFFINITY,
.vuart[0] = {
.type = VUART_LEGACY_PIO,
Expand Down
2 changes: 1 addition & 1 deletion hypervisor/scenarios/industry/vm_configurations.h
Expand Up @@ -35,7 +35,7 @@
"i915.enable_gvt=1 idle=halt " \
SOS_BOOTARGS_DIFF

#define VM1_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(1U)}
#define VM1_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(0U), AFFINITY_CPU(1U)}
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U), AFFINITY_CPU(3U)}

#endif /* VM_CONFIGURATIONS_H */
3 changes: 2 additions & 1 deletion misc/acrn-config/xmls/config-xmls/whl-ipc-i5/industry.xml
Expand Up @@ -12,7 +12,7 @@

<FEATURES>
<RELOC desc="Enable hypervisor relocation">y</RELOC>
<SCHEDULER desc="The CPU scheduler to be used by the hypervisor.">SCHED_NOOP</SCHEDULER>
<SCHEDULER desc="The CPU scheduler to be used by the hypervisor.">SCHED_BVT</SCHEDULER>
<MULTIBOOT2 desc="Support boot ACRN from multiboot2 protocol.">y</MULTIBOOT2>
<HYPERV_ENABLED desc="Enable Hyper-V enlightenment">y</HYPERV_ENABLED>
<IOMMU_ENFORCE_SNP desc="IOMMU enforce snoop behavior of DMA operation.">n</IOMMU_ENFORCE_SNP>
Expand Down Expand Up @@ -99,6 +99,7 @@
<guest_flag>0</guest_flag>
</guest_flags>
<vcpu_affinity desc="vCPU affinity map. Each vCPU will pin to the selected pCPU ID. Please make sure each vCPU pin to different pCPU.">
<pcpu_id>0</pcpu_id>
<pcpu_id>1</pcpu_id>
</vcpu_affinity>
<clos configurable="0" desc="Class of Service for Cache Allocation Technology. Please refer SDM 17.19.2 for details and use with caution.">
Expand Down
3 changes: 2 additions & 1 deletion misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml
Expand Up @@ -12,7 +12,7 @@

<FEATURES>
<RELOC desc="Enable hypervisor relocation">y</RELOC>
<SCHEDULER desc="The CPU scheduler to be used by the hypervisor.">SCHED_NOOP</SCHEDULER>
<SCHEDULER desc="The CPU scheduler to be used by the hypervisor.">SCHED_BVT</SCHEDULER>
<MULTIBOOT2 desc="Support boot ACRN from multiboot2 protocol.">y</MULTIBOOT2>
<HYPERV_ENABLED desc="Enable Hyper-V enlightenment">y</HYPERV_ENABLED>
<IOMMU_ENFORCE_SNP desc="IOMMU enforce snoop behavior of DMA operation.">n</IOMMU_ENFORCE_SNP>
Expand Down Expand Up @@ -99,6 +99,7 @@
<guest_flag>0</guest_flag>
</guest_flags>
<vcpu_affinity desc="vCPU affinity map. Each vCPU will pin to the selected pCPU ID. Please make sure each vCPU pin to different pCPU.">
<pcpu_id>0</pcpu_id>
<pcpu_id>1</pcpu_id>
</vcpu_affinity>
<clos configurable="0" desc="Class of Service for Cache Allocation Technology. Please refer SDM 17.19.2 for details and use with caution.">
Expand Down

0 comments on commit d742be2

Please sign in to comment.