Commit 957f5c4
authored
viona: do not retain peak nqueues across device reset (#1051)
1df49a4, also, was too eager to reset viona rings. the issue here is more subtle.
the "peak" count for used virtqueues was retained across device resets, so if a guest ever negotiates multiqueue, resets the NIC as for reboot (where we SET_PAIRS down to 1), and then does a virtio reset with the `device_status` register, we'll try to reset all queues even though the pairs after 1 are not actually in use. this EINVAL's and we get the device into `NEEDS_RESET`.1 parent a28bee1 commit 957f5c4
4 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1075 | 1080 | | |
1076 | 1081 | | |
1077 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1006 | 1011 | | |
1007 | 1012 | | |
1008 | 1013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
54 | 69 | | |
55 | 70 | | |
56 | 71 | | |
| |||
510 | 525 | | |
511 | 526 | | |
512 | 527 | | |
513 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
514 | 534 | | |
515 | 535 | | |
516 | 536 | | |
| |||
717 | 737 | | |
718 | 738 | | |
719 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
720 | 744 | | |
721 | 745 | | |
722 | 746 | | |
| |||
808 | 832 | | |
809 | 833 | | |
810 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
811 | 839 | | |
812 | 840 | | |
| 841 | + | |
813 | 842 | | |
814 | 843 | | |
815 | 844 | | |
| |||
0 commit comments