Commit 9a78e15
committed
KVM: x86: allow KVM_REQ_GET_NESTED_STATE_PAGES outside guest mode for VMX
VMX also uses KVM_REQ_GET_NESTED_STATE_PAGES for the Hyper-V eVMCS,
which may need to be loaded outside guest mode. Therefore we cannot
WARN in that case.
However, that part of nested_get_vmcs12_pages is _not_ needed at
vmentry time. Split it out of KVM_REQ_GET_NESTED_STATE_PAGES handling,
so that both vmentry and migration (and in the latter case, independent
of is_guest_mode) do the parts that are needed.
Cc: <stable@vger.kernel.org> # 5.10.x: f2c7ef3: KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES
Cc: <stable@vger.kernel.org> # 5.10.x
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent aed8941 commit 9a78e15
3 files changed
+29
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3124 | 3124 | | |
3125 | 3125 | | |
3126 | 3126 | | |
3127 | | - | |
| 3127 | + | |
3128 | 3128 | | |
3129 | | - | |
3130 | 3129 | | |
3131 | | - | |
3132 | | - | |
3133 | | - | |
3134 | 3130 | | |
3135 | 3131 | | |
3136 | 3132 | | |
| |||
3153 | 3149 | | |
3154 | 3150 | | |
3155 | 3151 | | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
3156 | 3163 | | |
3157 | 3164 | | |
3158 | 3165 | | |
| |||
3221 | 3228 | | |
3222 | 3229 | | |
3223 | 3230 | | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
3224 | 3243 | | |
3225 | 3244 | | |
3226 | 3245 | | |
| |||
6605 | 6624 | | |
6606 | 6625 | | |
6607 | 6626 | | |
6608 | | - | |
| 6627 | + | |
6609 | 6628 | | |
6610 | 6629 | | |
6611 | 6630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8806 | 8806 | | |
8807 | 8807 | | |
8808 | 8808 | | |
8809 | | - | |
8810 | | - | |
8811 | | - | |
| 8809 | + | |
8812 | 8810 | | |
8813 | 8811 | | |
8814 | 8812 | | |
| |||
0 commit comments