• V
    util: Allow to query the presence of host CPU bitmaps · 1be35910
    Viktor Mihajlovski 提交于
    The functions to retrieve online and present host CPU information
    are only supported on Linux for the time being.
    
    This leads to runtime errors if these function are used on other
    platforms. To avoid that, code in higher levels using the functions
    must replicate the conditional compilation in higher level which
    is error prone (and is plainly spoken ugly).
    
    Adding a function virHostCPUHasBitmap that can be used to check
    for host CPU bitmap support.
    
    NB: There are other functions including the host CPU count that
    are lacking support on all platforms, but they are too essential
    in order to be bypassed.
    Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
    1be35910
virhostcpu.h 2.0 KB