aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/riscv/processor.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-03-14 16:26:36 -0700
committerSean Christopherson <seanjc@google.com>2024-04-29 12:55:21 -0700
commit0f53a0245068e09b3b31e7f43ace0ab9edd066ef (patch)
tree5e59c531e4d01f51944dd16d2ccde50527f6fee6 /tools/testing/selftests/kvm/lib/riscv/processor.c
parentf18ef97fc60217f648a910835c895cf27ba75a03 (diff)
KVM: selftests: Init x86's segments during VM creation
Initialize x86's various segments in the GDT during creation of relevant VMs instead of waiting until vCPUs come along. Re-installing the segments for every vCPU is both wasteful and confusing, as is installing KERNEL_DS multiple times; NOT installing KERNEL_DS for GS is icing on the cake. Reviewed-by: Ackerley Tng <ackerleytng@google.com> Link: https://lore.kernel.org/r/20240314232637.2538648-18-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/riscv/processor.c')
0 files changed, 0 insertions, 0 deletions