]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: Replace get_{gdt,idt}_base() by get_{gdt,idt}()
authorEric Auger <eric.auger@redhat.com>
Thu, 6 Feb 2020 10:47:08 +0000 (11:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Feb 2020 19:09:38 +0000 (20:09 +0100)
commitd44e54d045b3c9666ccb007fd36c05356bbc0877
treee5cbd3b01a1f0a16fab3fa81545eaef7804ed9a0
parent48a21e47e9e556bfce1fc02329cfd3af6e5f6605
selftests: KVM: Replace get_{gdt,idt}_base() by get_{gdt,idt}()

get_gdt_base() and get_idt_base() only return the base address
of the descriptor tables. Soon we will need to get the size as well.
Change the prototype of those functions so that they return
the whole desc_ptr struct instead of the address field.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Wei Huang <wei.huang2@amd.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/x86_64/vmx.c