Commit 4e5e47f
KVM: x86: Snapshot the host's DEBUGCTL in common x86
commit fb71c79 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 96d7dbf commit 4e5e47f
4 files changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
| |||
| 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 | | |
| |||
7469 | 7465 | | |
7470 | 7466 | | |
7471 | 7467 | | |
7472 | | - | |
7473 | | - | |
| 7468 | + | |
| 7469 | + | |
7474 | 7470 | | |
7475 | 7471 | | |
7476 | 7472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4976 | 4976 | | |
4977 | 4977 | | |
4978 | 4978 | | |
| 4979 | + | |
4979 | 4980 | | |
4980 | 4981 | | |
4981 | 4982 | | |
| |||
0 commit comments