KVM: selftests: Allocate x86's GDT during VM creation
authorSean Christopherson <seanjc@google.com>
Thu, 14 Mar 2024 23:26:31 +0000 (16:26 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 29 Apr 2024 19:55:17 +0000 (12:55 -0700)
commit2a511ca994933ba02309c65401d88cbf4f19630e
treed091b6b65dcb8e8d65eda07a3a5a5537fbac1d45
parent44c93b27726928a7b28eca233f7a504b92bc8f88
KVM: selftests: Allocate x86's GDT during VM creation

Allocate the GDT during creation of non-barebones VMs instead of waiting
until the first vCPU is created, as the whole point of non-barebones VMs
is to be able to run vCPUs, i.e. the GDT is going to get allocated no
matter what.

Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Link: https://lore.kernel.org/r/20240314232637.2538648-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c