Commit 80c64c7
committed
KVM: x86: Drop kvm_x86_ops.set_dr6() in favor of a new KVM_RUN flag
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: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250610232010.162191-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 2478b1b commit 80c64c7
File tree
6 files changed
+11
-22
lines changed- arch/x86
- include/asm
- kvm
- svm
- vmx
6 files changed
+11
-22
lines changed| 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 | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
| 1679 | + | |
1679 | 1680 | | |
1680 | 1681 | | |
1681 | 1682 | | |
| |||
1728 | 1729 | | |
1729 | 1730 | | |
1730 | 1731 | | |
1731 | | - | |
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
11046 | 11046 | | |
11047 | 11047 | | |
11048 | 11048 | | |
11049 | | - | |
| 11049 | + | |
11050 | 11050 | | |
11051 | 11051 | | |
11052 | 11052 | | |
| |||
0 commit comments