KVM: Use kvm_{read,write}_guest_virt() to read and write segment descriptors
authorMikhail Ershov <Mike.Ershov@gmail.com>
Wed, 19 Aug 2009 10:08:07 +0000 (14:08 +0400)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:52 +0000 (10:46 +0300)
commitd9048d3278ed4d395e63899257c3fa377693968b
tree8a1b95d5bb939690ab03513efcc6cd4bff9ab923
parent7bdb588827265bf42dd420e95d34275c83603568
KVM: Use kvm_{read,write}_guest_virt() to read and write segment descriptors

Segment descriptors tables can be placed on two non-contiguous pages.
This patch makes reading segment descriptors by linear address.

Signed-off-by: Mikhail Ershov <Mike.Ershov@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c