Commit fb71c79
committed
KVM: x86: Snapshot the host's DEBUGCTL in common x86
Move KVM's snapshot of DEBUGCTL to kvm_vcpu_arch and take the snapshot in
common x86, so that SVM can also use the snapshot.
Opportunistically change the field to a u64. While bits 63:32 are reserved
on AMD, not mentioned at all in Intel's SDM, and managed as an "unsigned
long" by the kernel, DEBUGCTL is an MSR and therefore a 64-bit value.
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Cc: stable@vger.kernel.org
Reviewed-and-tested-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20250227222411.3490595-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent d0eac42 commit fb71c79
4 files changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
783 | 784 | | |
784 | 785 | | |
785 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
1517 | | - | |
1518 | | - | |
1519 | 1517 | | |
1520 | 1518 | | |
1521 | 1519 | | |
1522 | 1520 | | |
1523 | 1521 | | |
1524 | 1522 | | |
1525 | | - | |
1526 | | - | |
1527 | 1523 | | |
1528 | 1524 | | |
1529 | 1525 | | |
| |||
7458 | 7454 | | |
7459 | 7455 | | |
7460 | 7456 | | |
7461 | | - | |
7462 | | - | |
| 7457 | + | |
| 7458 | + | |
7463 | 7459 | | |
7464 | 7460 | | |
7465 | 7461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4968 | 4968 | | |
4969 | 4969 | | |
4970 | 4970 | | |
| 4971 | + | |
4971 | 4972 | | |
4972 | 4973 | | |
4973 | 4974 | | |
| |||
0 commit comments