Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment