diff options
author | Sean Christopherson <[email protected]> | 2024-06-05 16:19:11 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-08-22 11:25:48 -0700 |
commit | b6717d35d8597d19f44736f11963e3bd5b8881b4 (patch) | |
tree | 694104331bcbe5b3fd04d136d57d242a03612620 /lib/crypto/mpi/mpiutil.c | |
parent | beb2e446046f8dd96bbeed3267b5f26bf1926ef9 (diff) |
KVM: x86: Stuff vCPU's PAT with default value at RESET, not creation
Move the stuffing of the vCPU's PAT to the architectural "default" value
from kvm_arch_vcpu_create() to kvm_vcpu_reset(), guarded by !init_event,
to better capture that the default value is the value "Following Power-up
or Reset". E.g. setting PAT only during creation would break if KVM were
to expose a RESET ioctl() to userspace (which is unlikely, but that's not
a good reason to have unintuitive code).
No functional change.
Reviewed-by: Xiaoyao Li <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Reviewed-by: Zhao Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions