diff options
author | Sean Christopherson <[email protected]> | 2024-03-14 16:26:32 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-04-29 12:55:17 -0700 |
commit | 1051e29cb9156789e908ab9565f59e7aba470d60 (patch) | |
tree | a004851d96f8d22da3a4b29cb42d54e464881e26 /include/linux/overflow.h | |
parent | 2a511ca994933ba02309c65401d88cbf4f19630e (diff) |
KVM: selftests: Drop superfluous switch() on vm->mode in vcpu_init_sregs()
Replace the switch statement on vm->mode in x86's vcpu_init_sregs()'s with
a simple assert that the VM has a 48-bit virtual address space. A switch
statement is both overkill and misleading, as the existing code incorrectly
implies that VMs with LA57 would need different to configuration for the
LDT, TSS, and flat segments. In all likelihood, the only difference that
would be needed for selftests is CR4.LA57 itself.
Reviewed-by: Ackerley Tng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions