KVM: VMX: use fix_rmode_seg() to fix all code/data segments
authorGleb Natapov <gleb@redhat.com>
Wed, 12 Dec 2012 17:10:52 +0000 (19:10 +0200)
committerGleb Natapov <gleb@redhat.com>
Sun, 23 Dec 2012 12:01:18 +0000 (14:01 +0200)
commitbeb853ffeccbfa626f30038e816d61187103c455
treecedb2df0f6e3c3b82b8576b6b514935654d663f1
parentc6ad115348035f474d6fb81005bb4764bdd128ef
KVM: VMX: use fix_rmode_seg() to fix all code/data segments

The code for SS and CS does the same thing fix_rmode_seg() is doing.
Use it instead of hand crafted code.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c