KVM: SVM: Set the 'g' bit of the cs selector for cross-vendor migration
authorAmit Shah <amit.shah@redhat.com>
Mon, 27 Oct 2008 09:04:17 +0000 (09:04 +0000)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:48 +0000 (16:51 +0200)
commit25022acc3dd5f0b54071c7ba7c371860f2971b52
tree819a2ae0e14c8f22050ad847a42e4f9058f9f273
parentb8222ad2e52fd2c0c4e5e1c53e65d131f911b767
KVM: SVM: Set the 'g' bit of the cs selector for cross-vendor migration

The hardware does not set the 'g' bit of the cs selector and this breaks
migration from amd hosts to intel hosts. Set this bit if the segment
limit is beyond 1 MB.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c