KVM: Drop kvm_get_gdt() in favor of generic linux function
Linux now has native_store_gdt() to do the same. Use it instead of kvm local version. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -233,7 +233,7 @@ unsigned long segment_base(u16 selector)
|
||||
if (selector == 0)
|
||||
return 0;
|
||||
|
||||
kvm_get_gdt(&gdt);
|
||||
native_store_gdt(&gdt);
|
||||
table_base = gdt.address;
|
||||
|
||||
if (selector & 4) { /* from ldt */
|
||||
|
Reference in New Issue
Block a user