OSDN Git Service

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)
commit1ecaabed4e4a0d1027eadd54eb0e179350a79f99
treee5cbd3b01a1f0a16fab3fa81545eaef7804ed9a0
parenta06230b62b898e51cfb1de256b2042a09a691f58
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