Commit 5fea0c6
KVM: SVM: Update dump_ghcb() to use the GHCB snapshot fields
Commit 4e15a0d ("KVM: SEV: snapshot the GHCB before accessing it")
updated the SEV code to take a snapshot of the GHCB before using it. But
the dump_ghcb() function wasn't updated to use the snapshot locations.
This results in incorrect output from dump_ghcb() for the "is_valid" and
"valid_bitmap" fields.
Update dump_ghcb() to use the proper locations.
Fixes: 4e15a0d ("KVM: SEV: snapshot the GHCB before accessing it")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Link: https://lore.kernel.org/r/8f03878443681496008b1b37b7c4bf77a342b459.1745866531.git.thomas.lendacky@amd.com
[sean: add comment and snapshot qualifier]
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 20a6cff commit 5fea0c6
1 file changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3173 | 3173 | | |
3174 | 3174 | | |
3175 | 3175 | | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
3176 | 3181 | | |
3177 | 3182 | | |
3178 | | - | |
| 3183 | + | |
3179 | 3184 | | |
3180 | 3185 | | |
3181 | 3186 | | |
| |||
3184 | 3189 | | |
3185 | 3190 | | |
3186 | 3191 | | |
3187 | | - | |
| 3192 | + | |
3188 | 3193 | | |
3189 | | - | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
3190 | 3201 | | |
3191 | | - | |
| 3202 | + | |
3192 | 3203 | | |
3193 | | - | |
| 3204 | + | |
3194 | 3205 | | |
3195 | | - | |
| 3206 | + | |
3196 | 3207 | | |
3197 | | - | |
3198 | | - | |
| 3208 | + | |
| 3209 | + | |
3199 | 3210 | | |
3200 | 3211 | | |
3201 | 3212 | | |
| |||
3266 | 3277 | | |
3267 | 3278 | | |
3268 | 3279 | | |
3269 | | - | |
3270 | | - | |
3271 | | - | |
3272 | | - | |
3273 | | - | |
3274 | 3280 | | |
3275 | 3281 | | |
3276 | 3282 | | |
| |||
0 commit comments