Skip to content
  • Avi Kivity's avatar
    smp: speed up cpu_count() · a9f949c7
    Avi Kivity authored
    
    
    cpu_count() is used in important places, like vmexit.flat's measuring
    loop, yet it is ridiculously slow as it talks to the firmware config
    interface.
    
    Speed it up by reading the value from memory.
    
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    a9f949c7