config: add four per-vm bvt parameters

Add four per-vm bvt parameters as the initial bvt parameter values for
vCPU threads.
- bvt_weight
  The time sharing of a thread on CPU.
- bvt_warp_value
  Boost value of virtual time of a thread (time borrowed from future) to
  reduce Effective Virtual Time to prioritize the thread.
- bvt_warp_limit
  Max warp time in one warp.
- bvt_unwarp_period
  Min unwarp time after a warp.

Tracked-On: #8500
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Signed-off-by: Qiang Zhang <qiang4.zhang@intel.com>
This commit is contained in:
Qiang Zhang
2023-08-31 14:00:14 +08:00
committed by acrnsi-robot
parent 6a1d91c740
commit 04a4f31d28
3 changed files with 66 additions and 0 deletions

View File

@@ -42,6 +42,12 @@ enum thread_priority {
*/
struct sched_params {
uint32_t prio; /* The priority of a thread */
/* per thread parameters for bvt scheduler */
uint8_t bvt_weight; /* the weight of a thread */
int32_t bvt_warp_value; /* the warp reduce effective VT to boost priority */
uint32_t bvt_warp_limit; /* max time in one warp */
uint32_t bvt_unwarp_period; /* min unwarp time after a warp */
};
struct thread_object;