Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4d56c8a7 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: VMX: Only save/restore MSR_K6_STAR if necessary



Intel hosts only support syscall/sysret in long more (and only if efer.sce
is enabled), so only reload the related MSR_K6_STAR if the guest will
actually be able to use it.

This reduces vmexit cost by about 500 cycles (6400 -> 5870) on my setup.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 35cc7f97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment