mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: add priority based scheduler
This patch adds a new priority based scheduler to support vCPU scheduling based on their pre-configured priorities. A vCPU can be running only if there is no higher priority vCPU running on the same pCPU. Tracked-On: #6571 Signed-off-by: Jie Deng <jie.deng@intel.com>
This commit is contained in:
@@ -41,6 +41,7 @@ struct per_cpu_region {
|
||||
struct sched_noop_control sched_noop_ctl;
|
||||
struct sched_iorr_control sched_iorr_ctl;
|
||||
struct sched_bvt_control sched_bvt_ctl;
|
||||
struct sched_prio_control sched_prio_ctl;
|
||||
struct thread_object idle;
|
||||
struct host_gdt gdt;
|
||||
struct tss_64 tss;
|
||||
|
@@ -169,6 +169,7 @@ struct acrn_vm_config {
|
||||
* GUEST_FLAG_LAPIC_PASSTHROUGH
|
||||
* We could add more guest flags in future;
|
||||
*/
|
||||
uint32_t vm_prio; /* The priority for VM vCPU scheduling */
|
||||
struct acrn_vm_mem_config memory; /* memory configuration of VM */
|
||||
struct epc_section epc; /* EPC memory configuration of VM */
|
||||
uint16_t pci_dev_num; /* indicate how many PCI devices in VM */
|
||||
|
Reference in New Issue
Block a user