Commit a7d5c7c
committed
KVM: nSVM: delay MSR permission processing to first nested VM run
Allow userspace to set up the memory map after KVM_SET_NESTED_STATE;
to do so, move the call to nested_svm_vmrun_msrpm inside the
KVM_REQ_GET_NESTED_STATE_PAGES handler (which is currently
not used by nSVM). This is similar to what VMX does already.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 729c15c commit a7d5c7c
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
199 | 213 | | |
200 | 214 | | |
201 | 215 | | |
| |||
698 | 712 | | |
699 | 713 | | |
700 | 714 | | |
| 715 | + | |
| 716 | + | |
701 | 717 | | |
702 | 718 | | |
703 | 719 | | |
| |||
1142 | 1158 | | |
1143 | 1159 | | |
1144 | 1160 | | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
| 1161 | + | |
1148 | 1162 | | |
1149 | 1163 | | |
1150 | 1164 | | |
| |||
1155 | 1169 | | |
1156 | 1170 | | |
1157 | 1171 | | |
| 1172 | + | |
1158 | 1173 | | |
1159 | 1174 | | |
1160 | 1175 | | |
0 commit comments