From: Gleb Natapov Date: Wed, 25 Jul 2012 12:49:42 +0000 (+0300) Subject: KVM: x86 emulator: drop unneeded call to get_segment() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99245b507dc3b1b2815d6a6cb4e94a6b7018a24b;p=pandora-kernel.git KVM: x86 emulator: drop unneeded call to get_segment() setup_syscalls_segments() calls get_segment() and than overwrites all but one of the structure fields and this one should also be overwritten anyway, so we can drop call to get_segment() and avoid a couple of vmreads on vmx. Also drop zeroing ss/cs structures since most of the fields are set anyway. Just set those that were not set explicitly. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- Reading git-diff-tree failed