Commit b6717d3
committed
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]>1 parent beb2e44 commit b6717d3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12260 | 12260 | | |
12261 | 12261 | | |
12262 | 12262 | | |
12263 | | - | |
12264 | | - | |
12265 | 12263 | | |
12266 | 12264 | | |
12267 | 12265 | | |
| |||
12427 | 12425 | | |
12428 | 12426 | | |
12429 | 12427 | | |
| 12428 | + | |
| 12429 | + | |
12430 | 12430 | | |
12431 | 12431 | | |
12432 | 12432 | | |
| |||
0 commit comments