Commit f7d05ee
KVM: arm64: Prevent host from managing timer offsets for protected VMs
For protected VMs, the guest's timer offset state should not be
controlled by the host and must always run with a virtual counter offset
of 0. The existing timer logic allowed the host to set and manage the
timer counter offsets for protected VMs in certain cases.
Disable all host-side management of timer offsets for protected VMs by
adding checks in the relevant code paths.
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251211104710.151771-10-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent b12b3b0 commit f7d05ee
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1063 | 1067 | | |
1064 | 1068 | | |
1065 | 1069 | | |
| |||
1083 | 1087 | | |
1084 | 1088 | | |
1085 | 1089 | | |
1086 | | - | |
| 1090 | + | |
| 1091 | + | |
1087 | 1092 | | |
1088 | 1093 | | |
1089 | 1094 | | |
| |||
1687 | 1692 | | |
1688 | 1693 | | |
1689 | 1694 | | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
1690 | 1698 | | |
1691 | 1699 | | |
1692 | 1700 | | |
| |||
0 commit comments