]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit1aa366163b8b69f660cf94fd5062fa44859e4318
tree29d6843cbe1c66a04c11dad24169ec5e1318e53d
parent0a434bb2bf094f463ca3ca71ac42cea9e423048f
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