Commit 2bd1337
KVM: s390: Use generic VIRT_XFER_TO_GUEST_WORK functions
Switch to using the generic infrastructure to check for and handle pending
work before transitioning into guest mode.
xfer_to_guest_mode_handle_work() does a few more things than the current
code does when deciding whether or not to exit the __vcpu_run() loop. The
exittime tests from kvm-unit-tests, in my tests, were within a few percent
compared to before this series, which is within noise tolerance.
Co-developed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
[frankja@linux.ibm.com: Removed semicolon]
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>1 parent d013905 commit 2bd1337
3 files changed
+32
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
4675 | 4676 | | |
4676 | 4677 | | |
4677 | 4678 | | |
4678 | | - | |
4679 | | - | |
4680 | | - | |
4681 | 4679 | | |
4682 | 4680 | | |
4683 | 4681 | | |
| |||
4982 | 4980 | | |
4983 | 4981 | | |
4984 | 4982 | | |
4985 | | - | |
| 4983 | + | |
4986 | 4984 | | |
| 4985 | + | |
4987 | 4986 | | |
4988 | 4987 | | |
4989 | 4988 | | |
4990 | | - | |
4991 | 4989 | | |
4992 | 4990 | | |
4993 | 4991 | | |
| |||
4999 | 4997 | | |
5000 | 4998 | | |
5001 | 4999 | | |
| 5000 | + | |
5002 | 5001 | | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
5003 | 5011 | | |
5004 | 5012 | | |
5005 | 5013 | | |
| |||
5029 | 5037 | | |
5030 | 5038 | | |
5031 | 5039 | | |
5032 | | - | |
| 5040 | + | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
5033 | 5045 | | |
5034 | | - | |
5035 | 5046 | | |
5036 | 5047 | | |
5037 | 5048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| 1183 | + | |
1183 | 1184 | | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1184 | 1193 | | |
1185 | 1194 | | |
1186 | 1195 | | |
1187 | 1196 | | |
1188 | 1197 | | |
| 1198 | + | |
| 1199 | + | |
1189 | 1200 | | |
1190 | 1201 | | |
1191 | 1202 | | |
| |||
1345 | 1356 | | |
1346 | 1357 | | |
1347 | 1358 | | |
1348 | | - | |
1349 | | - | |
| 1359 | + | |
1350 | 1360 | | |
1351 | 1361 | | |
1352 | 1362 | | |
1353 | 1363 | | |
1354 | | - | |
1355 | 1364 | | |
1356 | 1365 | | |
1357 | 1366 | | |
| |||
1483 | 1492 | | |
1484 | 1493 | | |
1485 | 1494 | | |
1486 | | - | |
1487 | | - | |
| 1495 | + | |
1488 | 1496 | | |
1489 | 1497 | | |
1490 | 1498 | | |
| |||
0 commit comments