mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-03-18 11:04:12 +00:00
To improve the performance of the virtual device who utilizes iothread (such as virtio-blk), this patch sets iothread nice value to PRIO_MIN, so that it could get higher priority on scheduling. This patch does: - introduce `set_thread_priority` to set the priority of the current running thread. The priority could be any value in the range PRIO_MIN to PRIO_MAX. Lower numerical value causes more favorable scheduling. - set iothread nice value to PRIO_MIN. Tracked-On: #8612 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>