Commit acdc673
KVM: x86: Drop kvm_x86_ops.set_dr6() in favor of a new KVM_RUN flag
commit 80c64c7 upstream.
Instruct vendor code to load the guest's DR6 into hardware via a new
KVM_RUN flag, and remove kvm_x86_ops.set_dr6(), whose sole purpose was to
load vcpu->arch.dr6 into hardware when DR6 can be read/written directly
by the guest.
Note, TDX already WARNs on any run_flag being set, i.e. will yell if KVM
thinks DR6 needs to be reloaded. TDX vCPUs force KVM_DEBUGREG_AUTO_SWITCH
and never clear the flag, i.e. should never observe KVM_RUN_LOAD_GUEST_DR6.
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent bf33f52 commit acdc673
6 files changed
Lines changed: 11 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| 1685 | + | |
1685 | 1686 | | |
1686 | 1687 | | |
1687 | 1688 | | |
| |||
1734 | 1735 | | |
1735 | 1736 | | |
1736 | 1737 | | |
1737 | | - | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4438 | 4438 | | |
4439 | 4439 | | |
4440 | 4440 | | |
4441 | | - | |
4442 | | - | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
4443 | 4444 | | |
4444 | | - | |
| 4445 | + | |
| 4446 | + | |
| 4447 | + | |
4445 | 4448 | | |
4446 | 4449 | | |
4447 | 4450 | | |
| |||
5252 | 5255 | | |
5253 | 5256 | | |
5254 | 5257 | | |
5255 | | - | |
5256 | 5258 | | |
5257 | 5259 | | |
5258 | 5260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 492 | | |
501 | 493 | | |
502 | 494 | | |
| |||
943 | 935 | | |
944 | 936 | | |
945 | 937 | | |
946 | | - | |
947 | 938 | | |
948 | 939 | | |
949 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5606 | 5606 | | |
5607 | 5607 | | |
5608 | 5608 | | |
5609 | | - | |
5610 | | - | |
5611 | | - | |
5612 | | - | |
5613 | | - | |
5614 | | - | |
5615 | 5609 | | |
5616 | 5610 | | |
5617 | 5611 | | |
| |||
7370 | 7364 | | |
7371 | 7365 | | |
7372 | 7366 | | |
| 7367 | + | |
| 7368 | + | |
| 7369 | + | |
7373 | 7370 | | |
7374 | 7371 | | |
7375 | 7372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11052 | 11052 | | |
11053 | 11053 | | |
11054 | 11054 | | |
11055 | | - | |
| 11055 | + | |
11056 | 11056 | | |
11057 | 11057 | | |
11058 | 11058 | | |
| |||
0 commit comments