aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/riscv/processor.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-03-14 23:26:36 +0000
committerSean Christopherson <[email protected]>2024-04-29 19:55:21 +0000
commit0f53a0245068e09b3b31e7f43ace0ab9edd066ef (patch)
tree5e59c531e4d01f51944dd16d2ccde50527f6fee6 /tools/testing/selftests/kvm/lib/riscv/processor.c
parentKVM: selftests: Add macro for TSS selector, rename up code/data macros (diff)
downloadkernel-0f53a0245068e09b3b31e7f43ace0ab9edd066ef.tar.gz
kernel-0f53a0245068e09b3b31e7f43ace0ab9edd066ef.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/riscv/processor.c')
0 files changed, 0 insertions, 0 deletions