KVM: arm64: Add interface to support vCPU preempted check
virt inclusion category: feature bugzilla: 47624 CVE: NA -------------------------------- This is to fix some lock holder preemption issues. Some other locks implementation do a spin loop before acquiring the lock itself. Currently kernel has an interface of bool vcpu_is_preempted(int cpu). It takes the CPU as parameter and return true if the CPU is preempted. Then kernel can break the spin loops upon the retval of vcpu_is_preempted. As kernel has used this interface, So lets support it. Signed-off-by:Zengruan Ye <yezengruan@huawei.com> Reviewed-by:
Zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment