KVM: x86 emulator: drop unneeded call to get_segment()
authorGleb Natapov <gleb@redhat.com>
Wed, 25 Jul 2012 12:49:42 +0000 (15:49 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 26 Jul 2012 09:21:29 +0000 (12:21 +0300)
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 <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found