]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Split segments reload in vmx_load_host_state()
authorLaurent Vivier <Laurent.Vivier@bull.net>
Thu, 23 Aug 2007 14:33:11 +0000 (16:33 +0200)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:24 +0000 (10:18 +0200)
commitd60f75aa5302ef42c716e0ccfcefacc5ed7294c7
treee499626bab90fc75a9c0cc97e96c68a7fd4bbaa3
parent9a37f54a79e23381c001838e5d68069c424aa999
KVM: VMX: Split segments reload in vmx_load_host_state()

vmx_load_host_state() bundles fs, gs, ldt, and tss reloading into
one in the hope that it is infrequent. With smp guests, fs reloading is
frequent due to fs being used by threads.

Unbundle the reloads so reduce expensive gs reloads.

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c