Commit e0b5a79
KVM: arm64: nv: Use FGT write trap of MDSCR_EL1 when available
Marc reports that the performance of running an L3 guest has regressed
by 60% as a result of setting MDCR_EL2.TDA to hide bad architecture.
That's of course terrible for the single user of recursive NV ;-)
While there's nothing to be done on non-FGT systems, take advantage of
the precise write trap of MDSCR_EL1 and leave the rest of the debug
registers untrapped.
Reported-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent fb10ddf commit e0b5a79
2 files changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1492 | 1500 | | |
1493 | 1501 | | |
1494 | 1502 | | |
| |||
1498 | 1506 | | |
1499 | 1507 | | |
1500 | 1508 | | |
1501 | | - | |
| 1509 | + | |
1502 | 1510 | | |
1503 | 1511 | | |
1504 | 1512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
| 1862 | + | |
| 1863 | + | |
1862 | 1864 | | |
1863 | 1865 | | |
1864 | 1866 | | |
1865 | 1867 | | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
1866 | 1871 | | |
1867 | | - | |
| 1872 | + | |
1868 | 1873 | | |
1869 | | - | |
1870 | | - | |
1871 | 1874 | | |
0 commit comments