mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-09 15:36:47 +00:00
HV: Kconfig: enable CPU sharing by default
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>
This commit is contained in:
parent
345cb77376
commit
09212cf4b6
@ -24,7 +24,7 @@ config MULTIBOOT2
|
|||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "ACRN Scheduler"
|
prompt "ACRN Scheduler"
|
||||||
default SCHED_NOOP
|
default SCHED_BVT
|
||||||
help
|
help
|
||||||
Select the CPU scheduler to be used by the hypervisor
|
Select the CPU scheduler to be used by the hypervisor
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = {
|
|||||||
},
|
},
|
||||||
{ /* VM1 */
|
{ /* VM1 */
|
||||||
CONFIG_POST_STD_VM(1),
|
CONFIG_POST_STD_VM(1),
|
||||||
.vcpu_num = 1U,
|
.vcpu_num = 2U,
|
||||||
.vcpu_affinity = VM1_CONFIG_VCPU_AFFINITY,
|
.vcpu_affinity = VM1_CONFIG_VCPU_AFFINITY,
|
||||||
.vuart[0] = {
|
.vuart[0] = {
|
||||||
.type = VUART_LEGACY_PIO,
|
.type = VUART_LEGACY_PIO,
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
"i915.enable_gvt=1 idle=halt " \
|
"i915.enable_gvt=1 idle=halt " \
|
||||||
SOS_BOOTARGS_DIFF
|
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)}
|
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U), AFFINITY_CPU(3U)}
|
||||||
|
|
||||||
#endif /* VM_CONFIGURATIONS_H */
|
#endif /* VM_CONFIGURATIONS_H */
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<FEATURES>
|
<FEATURES>
|
||||||
<RELOC desc="Enable hypervisor relocation">y</RELOC>
|
<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>
|
<MULTIBOOT2 desc="Support boot ACRN from multiboot2 protocol.">y</MULTIBOOT2>
|
||||||
<HYPERV_ENABLED desc="Enable Hyper-V enlightenment">y</HYPERV_ENABLED>
|
<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>
|
<IOMMU_ENFORCE_SNP desc="IOMMU enforce snoop behavior of DMA operation.">n</IOMMU_ENFORCE_SNP>
|
||||||
@ -99,6 +99,7 @@
|
|||||||
<guest_flag>0</guest_flag>
|
<guest_flag>0</guest_flag>
|
||||||
</guest_flags>
|
</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.">
|
<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>
|
<pcpu_id>1</pcpu_id>
|
||||||
</vcpu_affinity>
|
</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.">
|
<clos configurable="0" desc="Class of Service for Cache Allocation Technology. Please refer SDM 17.19.2 for details and use with caution.">
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<FEATURES>
|
<FEATURES>
|
||||||
<RELOC desc="Enable hypervisor relocation">y</RELOC>
|
<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>
|
<MULTIBOOT2 desc="Support boot ACRN from multiboot2 protocol.">y</MULTIBOOT2>
|
||||||
<HYPERV_ENABLED desc="Enable Hyper-V enlightenment">y</HYPERV_ENABLED>
|
<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>
|
<IOMMU_ENFORCE_SNP desc="IOMMU enforce snoop behavior of DMA operation.">n</IOMMU_ENFORCE_SNP>
|
||||||
@ -99,6 +99,7 @@
|
|||||||
<guest_flag>0</guest_flag>
|
<guest_flag>0</guest_flag>
|
||||||
</guest_flags>
|
</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.">
|
<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>
|
<pcpu_id>1</pcpu_id>
|
||||||
</vcpu_affinity>
|
</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.">
|
<clos configurable="0" desc="Class of Service for Cache Allocation Technology. Please refer SDM 17.19.2 for details and use with caution.">
|
||||||
|
Loading…
Reference in New Issue
Block a user