Commit 41ebae2
committed
Merge tag 'kvm-x86-mmu-6.9' of https://github.com/kvm-x86/linux into HEAD
KVM x86 MMU changes for 6.9:
- Clean up code related to unprotecting shadow pages when retrying a guest
instruction after failed #PF-induced emulation.
- Zap TDP MMU roots at 4KiB granularity to minimize the delay in yielding if
a reschedule is needed, e.g. if a high priority task needs to run. Because
KVM doesn't support yielding in the middle of processing a zapped non-leaf
SPTE, zapping at 1GiB granularity can result in multi-millisecond lag when
attempting to schedule in a high priority.
- Rework TDP MMU root unload, free, and alloc to run with mmu_lock held for
read, e.g. to avoid serializing vCPUs when userspace deletes a memslot.
- Allocate write-tracking metadata on-demand to avoid the memory overhead when
running kernels built with KVMGT support (external write-tracking enabled),
but for workloads that don't use nested virtualization (shadow paging) or
KVMGT.File tree
6 files changed
+203
-76
lines changed- arch/x86
- include/asm
- kvm
- mmu
6 files changed
+203
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1471 | 1480 | | |
1472 | 1481 | | |
1473 | 1482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3575 | 3575 | | |
3576 | 3576 | | |
3577 | 3577 | | |
3578 | | - | |
| 3578 | + | |
| 3579 | + | |
3579 | 3580 | | |
3580 | | - | |
3581 | | - | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
3582 | 3586 | | |
3583 | 3587 | | |
3584 | 3588 | | |
| |||
3587 | 3591 | | |
3588 | 3592 | | |
3589 | 3593 | | |
| 3594 | + | |
3590 | 3595 | | |
3591 | 3596 | | |
3592 | 3597 | | |
| |||
3609 | 3614 | | |
3610 | 3615 | | |
3611 | 3616 | | |
3612 | | - | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
3613 | 3621 | | |
3614 | 3622 | | |
3615 | 3623 | | |
| |||
3635 | 3643 | | |
3636 | 3644 | | |
3637 | 3645 | | |
3638 | | - | |
3639 | | - | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
3640 | 3653 | | |
3641 | 3654 | | |
3642 | 3655 | | |
| |||
3693 | 3706 | | |
3694 | 3707 | | |
3695 | 3708 | | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
3696 | 3712 | | |
3697 | 3713 | | |
3698 | 3714 | | |
3699 | 3715 | | |
3700 | 3716 | | |
3701 | | - | |
3702 | | - | |
3703 | | - | |
3704 | | - | |
| 3717 | + | |
3705 | 3718 | | |
3706 | 3719 | | |
3707 | 3720 | | |
| |||
6997 | 7010 | | |
6998 | 7011 | | |
6999 | 7012 | | |
7000 | | - | |
7001 | | - | |
7002 | | - | |
| 7013 | + | |
7003 | 7014 | | |
7004 | 7015 | | |
7005 | 7016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | | - | |
26 | | - | |
| 38 | + | |
| 39 | + | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| |||
153 | 166 | | |
154 | 167 | | |
155 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
156 | 213 | | |
157 | 214 | | |
158 | 215 | | |
| |||
161 | 218 | | |
162 | 219 | | |
163 | 220 | | |
| 221 | + | |
164 | 222 | | |
165 | 223 | | |
166 | 224 | | |
167 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
168 | 232 | | |
169 | 233 | | |
170 | 234 | | |
| |||
0 commit comments