Commit b7bf7c8
Marc Zyngier
Merge branch kvm-arm64/debug-6.14 into kvmarm-master/next
* kvm-arm64/debug-6.14:
: .
: Large rework of the debug code to make it a bit less horrid,
: courtesy of Oliver Upton. From the original cover letter:
:
: "The debug code has become a bit difficult to reason about, especially
: all the hacks and bandaids for state tracking + trap configuration.
:
: This series reworks the entire mess around using a single enumeration to
: track the state of the debug registers (free, guest-owned, host-owned),
: using that to drive trap configuration and save/restore.
:
: On top of that, this series wires most of the implementation into vCPU
: load/put rather than the main KVM_RUN loop. This has been a long time
: coming for VHE, as a lot of the trap configuration and EL1 state gets
: loaded into hardware at that point anyway.
:
: The save/restore of the debug registers is simplified quite a bit as
: well. KVM will now restore the registers for *any* access rather than
: just writes, and keep doing so until the next vcpu_put() instead of
: dropping it on the floor after the next exception."
: .
KVM: arm64: Promote guest ownership for DBGxVR/DBGxCR reads
KVM: arm64: Fold DBGxVR/DBGxCR accessors into common set
KVM: arm64: Avoid reading ID_AA64DFR0_EL1 for debug save/restore
KVM: arm64: nv: Honor MDCR_EL2.TDE routing for debug exceptions
KVM: arm64: Manage software step state at load/put
KVM: arm64: Don't hijack guest context MDSCR_EL1
KVM: arm64: Compute MDCR_EL2 at vcpu_load()
KVM: arm64: Reload vCPU for accesses to OSLAR_EL1
KVM: arm64: Use debug_owner to track if debug regs need save/restore
KVM: arm64: Remove vestiges of debug_ptr
KVM: arm64: Remove debug tracepoints
KVM: arm64: Select debug state to save/restore based on debug owner
KVM: arm64: Clean up KVM_SET_GUEST_DEBUG handler
KVM: arm64: Evaluate debug owner at vcpu_load()
KVM: arm64: Write MDCR_EL2 directly from kvm_arm_setup_mdcr_el2()
KVM: arm64: Move host SME/SVE tracking flags to host data
KVM: arm64: Track presence of SPE/TRBE in kvm_host_data instead of vCPU
KVM: arm64: Get rid of __kvm_get_mdcr_el2() and related warts
KVM: arm64: Drop MDSCR_EL1_DEBUG_MASK
Signed-off-by: Marc Zyngier <[email protected]>File tree
16 files changed
+350
-650
lines changed- arch/arm64
- include/asm
- kvm
- hyp
- include/hyp
- nvhe
- vhe
16 files changed
+350
-650
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | | - | |
251 | | - | |
252 | 249 | | |
253 | 250 | | |
254 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
642 | 648 | | |
643 | 649 | | |
644 | 650 | | |
645 | | - | |
| 651 | + | |
646 | 652 | | |
647 | 653 | | |
648 | 654 | | |
| |||
652 | 658 | | |
653 | 659 | | |
654 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
655 | 668 | | |
656 | 669 | | |
657 | 670 | | |
| |||
739 | 752 | | |
740 | 753 | | |
741 | 754 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 755 | | |
746 | | - | |
747 | 756 | | |
748 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
749 | 765 | | |
750 | 766 | | |
751 | 767 | | |
752 | 768 | | |
753 | 769 | | |
754 | 770 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | 771 | | |
768 | 772 | | |
769 | 773 | | |
| |||
906 | 910 | | |
907 | 911 | | |
908 | 912 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
| 913 | + | |
920 | 914 | | |
921 | | - | |
| 915 | + | |
922 | 916 | | |
923 | | - | |
| 917 | + | |
924 | 918 | | |
925 | | - | |
926 | | - | |
927 | | - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
928 | 924 | | |
929 | | - | |
| 925 | + | |
930 | 926 | | |
931 | | - | |
| 927 | + | |
932 | 928 | | |
933 | 929 | | |
934 | 930 | | |
| |||
1307 | 1303 | | |
1308 | 1304 | | |
1309 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1310 | 1313 | | |
1311 | 1314 | | |
1312 | 1315 | | |
| |||
1332 | 1335 | | |
1333 | 1336 | | |
1334 | 1337 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1340 | 1343 | | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | 1346 | | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1344 | 1354 | | |
1345 | 1355 | | |
1346 | 1356 | | |
| |||
1367 | 1377 | | |
1368 | 1378 | | |
1369 | 1379 | | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | 1380 | | |
1375 | 1381 | | |
1376 | 1382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
481 | 479 | | |
482 | 480 | | |
483 | 481 | | |
| |||
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
| 599 | + | |
601 | 600 | | |
602 | 601 | | |
603 | 602 | | |
| |||
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
620 | | - | |
621 | | - | |
622 | 619 | | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
626 | 623 | | |
627 | 624 | | |
628 | | - | |
| 625 | + | |
629 | 626 | | |
630 | 627 | | |
631 | 628 | | |
| |||
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
811 | | - | |
812 | | - | |
813 | 808 | | |
814 | 809 | | |
815 | 810 | | |
| |||
1187 | 1182 | | |
1188 | 1183 | | |
1189 | 1184 | | |
1190 | | - | |
1191 | 1185 | | |
1192 | 1186 | | |
1193 | 1187 | | |
| |||
1204 | 1198 | | |
1205 | 1199 | | |
1206 | 1200 | | |
1207 | | - | |
1208 | | - | |
1209 | 1201 | | |
1210 | 1202 | | |
1211 | 1203 | | |
| |||
2109 | 2101 | | |
2110 | 2102 | | |
2111 | 2103 | | |
| 2104 | + | |
2112 | 2105 | | |
2113 | 2106 | | |
2114 | 2107 | | |
| |||
2117 | 2110 | | |
2118 | 2111 | | |
2119 | 2112 | | |
2120 | | - | |
2121 | 2113 | | |
2122 | 2114 | | |
2123 | 2115 | | |
| |||
0 commit comments