lkml.org 
[lkml]   [2023]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] KVM: x86: Remove duplicated calls of reverse_cpuid_check()
From
On Tue, Feb 21, 2023, Binbin Wu wrote:
> Remove duplicated calls of reverse_cpuid_check() in __kvm_cpu_cap_mask()
> and kvm_cpu_cap_{clear, set, get}().

I want to keep the checks even though they are redundant. There is no runtime
cost, and the intent of the direct calls in the "upper" helpers is as much to
document their usage constraints (input feature must be a compile-time constant)
as it is to enforce correctness.

\
 
 \ /
  Last update: 2023-03-27 00:30    [W:0.036 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site