you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 2 months ago (1 child)

Is it that slow outside of a VM? Either way, this seems like a very sensible patch.

  • source
  • hideshow 1 child comment
  • [–] 4 points 2 months ago* (last edited 2 months ago)

    It's only slightly faster. cpuid is a serialising instruction, which means all the instructions before it have to complete, removing any gains from pipelining and out of order execution. However for a VM this also triggers a VM exit, where the hypervisor takes over to modify the values for the guest.

  • source
  • parent