When running on AMD platforms, the legacy hardware emulation is extremely unreliable. In particular, the IRQ0 timer interrupt is likely to simply stop working, resulting in a total failure of any code that relies on timers (such as DHCP retransmission attempts). Work around this by using the 10MHz time counter provided by Hyper-V via an MSR. (This timer can be tested in KVM via the command-line option "-cpu host,hv_time".) Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
|
42 |
|
|
42 |
|
43 |
|
43 |
|
44 |
|
44 |
|
45 |
|
|
|
||
51 |
|
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
54 |
|
61 |
|
55 |
|
62 |
|
56 |
|
63 |
|
|
|
||
145 |
|
152 |
|
146 |
|
153 |
|
147 |
|
154 |
|
148 |
|
|
|
149 |
|
155 |
|
150 |
|
156 |
|
151 |
|
|
|
|
157 |
|
|
152 |
|
158 |
|
153 |
|
159 |
|
154 |
|
160 |
|
155 |
|
161 |
|
156 |
|
162 |
|
157 |
|
|
|
158 |
|
|
|
159 |
|
163 |
|
160 |
|
164 |
|
161 |
|
165 |
|
162 |
|
166 |
|
163 |
|
|
|
|
167 |
|
|
164 |
|
168 |
|
165 |
|
169 |
|
166 |
|
170 |
|
|
|
||
168 |
|
172 |
|
169 |
|
173 |
|
170 |
|
174 |
|
171 |
|
|
|
172 |
|
|
|
|
175 |
|
|
|
176 |
|
|
173 |
|
177 |
|
174 |
|
178 |
|
175 |
|
179 |
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
176 |
|
195 |
|
177 |
|
196 |
|
178 |
|
197 |
|
|
|
||
509 |
|
528 |
|
510 |
|
529 |
|
511 |
|
530 |
|
|
531 |
|
|
|
532 |
|
|
|
533 |
|
|
|
534 |
|
|
512 |
|
535 |
|
513 |
|
536 |
|
514 |
|
537 |
|
|
|
||
516 |
|
539 |
|
517 |
|
540 |
|
518 |
|
541 |
|
519 |
|
|
|
520 |
|
|
|
521 |
|
|
|
|
542 |
|
|
|
543 |
|
|
|
544 |
|
|
522 |
|
545 |
|
523 |
|
546 |
|
524 |
|
547 |
|
|
|
||
555 |
|
578 |
|
556 |
|
579 |
|
557 |
|
580 |
|
558 |
|
|
|
|
581 |
|
|
559 |
|
582 |
|
560 |
|
583 |
|
|
584 |
|
|
561 |
|
585 |
|
562 |
|
586 |
|
563 |
|
587 |
|
|
|
||
590 |
|
614 |
|
591 |
|
615 |
|
592 |
|
616 |
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
|
626 |
|
|
|
627 |
|
|
|
628 |
|
|
|
629 |
|
|
|
630 |
|
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
|
|
|
636 |
|
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
|
|
|
645 |
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
|
|
|
649 |
|
|
|
650 |
|
|
|
651 |
|
|
|
652 |
|
|
|
653 |
|
|
|
654 |
|
|
|
655 |
|
|
|
656 |
|
|
|
657 |
|
|
|
658 |
|
|
|
659 |
|
|
|
660 |
|
|
|
661 |
|
|
|
662 |
|
|
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
|
666 |
|
|
|
667 |
|
|
|
668 |
|
|
|
669 |
|
|
|
670 |
|
|
|
671 |
|
|
|
672 |
|
|
|
673 |
|
|
|
674 |
|
|
|
675 |
|
|
|
676 |
|
|
|
677 |
|
|
|
678 |
|
|
|
679 |
|
|
|
680 |
|
|
|
681 |
|
|
|
682 |
|
|
|
683 |
|
|
593 |
|
684 |
|
594 |
|
685 |
|
595 |
|
686 |
|
|
|
||
21 |
|
21 |
|
22 |
|
22 |
|
23 |
|
23 |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
24 |
|
27 |
|
25 |
|
28 |
|
26 |
|
29 |
|
|
|
||
39 |
|
42 |
|
40 |
|
43 |
|
41 |
|
44 |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
42 |
|
48 |
|
43 |
|
49 |
|
44 |
|
50 |
|