]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: consolidate segment accessors
authorAvi Kivity <avi@redhat.com>
Wed, 27 Apr 2011 10:20:30 +0000 (13:20 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:47:39 +0000 (08:47 -0400)
commit9e17427875c94eda29ecc2494658bcfebda11f40
tree29d6843cbe1c66a04c11dad24169ec5e1318e53d
parentfd6acc1af38aea786240adb7b2c48ae964f78eac
KVM: x86 emulator: consolidate segment accessors

Instead of separate accessors for the segment selector and cached descriptor,
use one accessor for both.  This simplifies the code somewhat.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c