Under some circumstances (e.g. if iPXE itself is booted via iSCSI, or after an unclean reboot), the backend may not be in the expected InitWait state when iPXE starts up. There is no generic reset mechanism for Xenbus devices. Recent versions of xen-netback will gracefully perform all of the required steps if the frontend sets its state to Initialising. Older versions (such as that found in XenServer 6.2.0) require the frontend to transition through Closed before reaching Initialising. Add a reset mechanism for netfront devices which does the following: - read current backend state - if backend state is anything other than InitWait, then set the frontend state to Closed and wait for the backend to also reach Closed - set the frontend state to Initialising and wait for the backend to reach InitWait. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
62 |
|
62 |
|
63 |
|
63 |
|
64 |
|
64 |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
65 |
|
114 |
|
66 |
|
115 |
|
67 |
|
116 |
|
|
|
||
510 |
|
559 |
|
511 |
|
560 |
|
512 |
|
561 |
|
|
562 |
|
|
|
563 |
|
|
|
564 |
|
|
|
565 |
|
|
513 |
|
566 |
|
514 |
|
567 |
|
515 |
|
568 |
|
|
|
||
563 |
|
616 |
|
564 |
|
617 |
|
565 |
|
618 |
|
566 |
|
|
|
|
619 |
|
|
567 |
|
620 |
|
568 |
|
621 |
|
569 |
|
622 |
|
|
|
||
575 |
|
628 |
|
576 |
|
629 |
|
577 |
|
630 |
|
|
631 |
|
|
578 |
|
632 |
|
579 |
|
633 |
|
580 |
|
634 |
|
|
|
||
588 |
|
642 |
|
589 |
|
643 |
|
590 |
|
644 |
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
|
595 |
|
|
|
|
645 |
|
|
|
646 |
|
|
596 |
|
647 |
|
597 |
|
|
|
|
648 |
|
|
598 |
|
649 |
|
599 |
|
650 |
|
600 |
|
651 |
|
|
|
||
609 |
|
660 |
|
610 |
|
661 |
|
611 |
|
662 |
|
612 |
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
663 |
|
616 |
|
664 |
|
617 |
|
665 |
|
|
|
||
835 |
|
883 |
|
836 |
|
884 |
|
837 |
|
885 |
|
|
886 |
|
|
|
887 |
|
|
|
888 |
|
|
|
889 |
|
|
|
890 |
|
|
|
891 |
|
|
838 |
|
892 |
|
839 |
|
893 |
|
840 |
|
894 |
|
|
|
||
78 |
|
78 |
|
79 |
|
79 |
|
80 |
|
80 |
|
|
81 |
|
|
81 |
|
82 |
|
82 |
|
83 |
|
83 |
|
84 |
|
|
|
||
118 |
|
118 |
|
119 |
|
119 |
|
120 |
|
120 |
|
121 |
|
|
|
|
121 |
|
|
122 |
|
122 |
|
123 |
|
123 |
|
124 |
|
124 |
|