diff options
author | Sean Christopherson <seanjc@google.com> | 2024-03-14 16:26:33 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-04-29 12:55:18 -0700 |
commit | 23ef21f58cf8bbecbe479015ef79baa15a0da0b8 (patch) | |
tree | 540e4c7f3a627a5c709ec61e615b3a7c89b650d4 /tools/testing/selftests/kvm/lib/test_util.c | |
parent | 1051e29cb9156789e908ab9565f59e7aba470d60 (diff) |
KVM: selftests: Fold x86's descriptor tables helpers into vcpu_init_sregs()
Now that the per-VM, on-demand allocation logic in kvm_setup_gdt() and
vcpu_init_descriptor_tables() is gone, fold them into vcpu_init_sregs().
Note, both kvm_setup_gdt() and vcpu_init_descriptor_tables() configured the
GDT, which is why it looks like kvm_setup_gdt() disappears.
Opportunistically delete the pointless zeroing of the IDT limit (it was
being unconditionally overwritten by vcpu_init_descriptor_tables()).
Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Link: https://lore.kernel.org/r/20240314232637.2538648-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/test_util.c')
0 files changed, 0 insertions, 0 deletions