Gioh Kim 8eae9570d1 KVM: SVM: ignore type when setting segment registers
Commit 19bca6ab75d8 ("KVM: SVM: Fix cross vendor migration issue with
unusable bit") added checking type when setting unusable.
So unusable can be set if present is 0 OR type is 0.
According to the AMD processor manual, long mode ignores the type value
in segment descriptor. And type can be 0 if it is read-only data segment.
Therefore type value is not related to unusable flag.

This patch is based on linux-next v4.12.0-rc3.

Signed-off-by: Gioh Kim <gi-oh.kim@profitbricks.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-05-30 17:17:22 +02:00
..
2017-05-03 19:28:27 +02:00
2017-05-03 19:28:27 +02:00
2017-05-04 19:15:35 -07:00
2017-05-08 17:15:13 -07:00
2017-05-08 19:03:25 -07:00
2017-05-08 17:15:13 -07:00
2017-03-28 08:54:48 +02:00
2017-05-08 17:15:13 -07:00
2017-05-19 08:04:25 +02:00