Commit 4f4c4a3
KVM: x86: Trace all APICv inhibit changes and capture overall status
Trace all APICv inhibit changes instead of just those that result in
APICv being (un)inhibited, and log the current state. Debugging why
APICv isn't working is frustrating as it's hard to see why APICv is still
inhibited, and logging only the first inhibition means unnecessary onion
peeling.
Opportunistically drop the export of the tracepoint, it is not and should
not be used by vendor code due to the need to serialize toggling via
apicv_update_lock.
Note, using the common flow means kvm_apicv_init() switched from atomic
to non-atomic bitwise operations. The VM is unreachable at init, so
non-atomic is perfectly ok.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220311043517.17027-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 320af55 commit 4f4c4a3
2 files changed
Lines changed: 29 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
| 1348 | + | |
| 1349 | + | |
1349 | 1350 | | |
1350 | 1351 | | |
1351 | 1352 | | |
1352 | 1353 | | |
1353 | | - | |
| 1354 | + | |
| 1355 | + | |
1354 | 1356 | | |
1355 | 1357 | | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
1359 | 1361 | | |
1360 | 1362 | | |
1361 | 1363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9062 | 9062 | | |
9063 | 9063 | | |
9064 | 9064 | | |
| 9065 | + | |
| 9066 | + | |
| 9067 | + | |
| 9068 | + | |
| 9069 | + | |
| 9070 | + | |
| 9071 | + | |
| 9072 | + | |
| 9073 | + | |
| 9074 | + | |
| 9075 | + | |
| 9076 | + | |
9065 | 9077 | | |
9066 | 9078 | | |
| 9079 | + | |
| 9080 | + | |
9067 | 9081 | | |
9068 | 9082 | | |
9069 | | - | |
9070 | | - | |
| 9083 | + | |
| 9084 | + | |
9071 | 9085 | | |
9072 | | - | |
9073 | | - | |
| 9086 | + | |
| 9087 | + | |
9074 | 9088 | | |
9075 | 9089 | | |
9076 | 9090 | | |
| |||
9756 | 9770 | | |
9757 | 9771 | | |
9758 | 9772 | | |
9759 | | - | |
9760 | | - | |
9761 | | - | |
9762 | | - | |
| 9773 | + | |
9763 | 9774 | | |
9764 | 9775 | | |
9765 | | - | |
9766 | 9776 | | |
9767 | 9777 | | |
9768 | 9778 | | |
| |||
12945 | 12955 | | |
12946 | 12956 | | |
12947 | 12957 | | |
12948 | | - | |
12949 | 12958 | | |
12950 | 12959 | | |
12951 | 12960 | | |
| |||
0 commit comments