smp: speed up cpu_count()
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:
Avi Kivity <avi@redhat.com>
Please register or sign in to comment