diff options
| author | Sean Christopherson <[email protected]> | 2024-06-05 23:19:11 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-08-22 18:25:48 +0000 |
| commit | b6717d35d8597d19f44736f11963e3bd5b8881b4 (patch) | |
| tree | 694104331bcbe5b3fd04d136d57d242a03612620 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | x86/cpu: KVM: Move macro to encode PAT value to common header (diff) | |
| download | kernel-b6717d35d8597d19f44736f11963e3bd5b8881b4.tar.gz kernel-b6717d35d8597d19f44736f11963e3bd5b8881b4.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
