Commit c2f10a0
committed
pci: virtio: refactor: remove BAR handling from PciConfiguration
Previous commit created a separate `Bars` type to handle
BARs region and made VirtioPciDevice type to use it instead of
PciConfiguration to handle BARs region. This made BARs handling
in PciConfiguration redundant, so this commit removes it.
This also removes `detect_bar_reprogramming` support from
PciConfiguration. But Firecracker does not support BAR relocation
anyway, this does not affect functionality.
The removal of `detect_bar_reprogramming` also required to remove
the unit test for it in the pci/bus.rs.
No functional change.
Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>1 parent 1915947 commit c2f10a0
2 files changed
Lines changed: 12 additions & 418 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | 495 | | |
502 | 496 | | |
503 | 497 | | |
| |||
516 | 510 | | |
517 | 511 | | |
518 | 512 | | |
519 | | - | |
| 513 | + | |
520 | 514 | | |
521 | 515 | | |
522 | 516 | | |
| |||
526 | 520 | | |
527 | 521 | | |
528 | 522 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | 523 | | |
533 | 524 | | |
534 | 525 | | |
| |||
550 | 541 | | |
551 | 542 | | |
552 | 543 | | |
553 | | - | |
554 | | - | |
| 544 | + | |
| 545 | + | |
555 | 546 | | |
556 | | - | |
| 547 | + | |
557 | 548 | | |
558 | 549 | | |
559 | 550 | | |
| |||
936 | 927 | | |
937 | 928 | | |
938 | 929 | | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | 930 | | |
0 commit comments