KVM: selftests: Allocate x86's TSS at VM creation
authorSean Christopherson <seanjc@google.com>
Thu, 14 Mar 2024 23:26:34 +0000 (16:26 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 29 Apr 2024 19:55:19 +0000 (12:55 -0700)
commita2834e6e0b98bc89b874aef15c99b23db5f438df
tree486f7c756cbd97241961b0be24a73d0959a4eec8
parent23ef21f58cf8bbecbe479015ef79baa15a0da0b8
KVM: selftests: Allocate x86's TSS at VM creation

Allocate x86's per-VM TSS at creation of a non-barebones VM.  Like the
GDT, the TSS is needed to actually run vCPUs, i.e. every non-barebones VM
is all but guaranteed to allocate the TSS sooner or later.

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