Commit d618fb4
committed
KVM: x86: Fold WRMSR fastpath helpers into the main handler
Fold the per-MSR WRMSR fastpath helpers into the main handler now that the
IPI path in particular is relatively tiny. In addition to eliminating a
decent amount of boilerplate, this removes the ugly -errno/1/0 => bool
conversion (which is "necessitated" by kvm_x2apic_icr_write_fast()).
Opportunistically drop the comment about IPIs, as the purpose of the
fastpath is hopefully self-evident, and _if_ it needs more documentation,
the documentation (and rules!) should be placed in a more central location.
No functional change intended.
Link: https://lore.kernel.org/r/20250805190526.1453366-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent aa2e4f0 commit d618fb4
1 file changed
Lines changed: 5 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | | - | |
2138 | | - | |
2139 | | - | |
2140 | | - | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
2146 | | - | |
2147 | | - | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | 2137 | | |
2159 | 2138 | | |
2160 | 2139 | | |
2161 | 2140 | | |
2162 | | - | |
2163 | 2141 | | |
2164 | 2142 | | |
2165 | 2143 | | |
2166 | 2144 | | |
2167 | | - | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
2168 | 2148 | | |
2169 | 2149 | | |
2170 | | - | |
| 2150 | + | |
2171 | 2151 | | |
2172 | 2152 | | |
2173 | | - | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
2178 | 2153 | | |
| 2154 | + | |
2179 | 2155 | | |
2180 | 2156 | | |
2181 | 2157 | | |
| |||
0 commit comments