Commit 7dde431
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 653d78f commit 7dde431
2 files changed
Lines changed: 12 additions & 411 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | 469 | | |
476 | 470 | | |
477 | 471 | | |
| |||
490 | 484 | | |
491 | 485 | | |
492 | 486 | | |
493 | | - | |
| 487 | + | |
494 | 488 | | |
495 | 489 | | |
496 | 490 | | |
| |||
500 | 494 | | |
501 | 495 | | |
502 | 496 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | 497 | | |
507 | 498 | | |
508 | 499 | | |
| |||
524 | 515 | | |
525 | 516 | | |
526 | 517 | | |
527 | | - | |
528 | | - | |
| 518 | + | |
| 519 | + | |
529 | 520 | | |
530 | | - | |
| 521 | + | |
531 | 522 | | |
532 | 523 | | |
533 | 524 | | |
| |||
910 | 901 | | |
911 | 902 | | |
912 | 903 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
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 | 904 | | |
0 commit comments