Commit e381ded
committed
kvm: add SCSI controllers based on the number of virtio-SCSI disks
According to libvirt code, the units per scsi controller is set to 7
therefore, we need to create scsi controller every 7 disks (including CDROM).
https://github.com/libvirt/libvirt/blob/50cc7a0d9d2b9df085ec073a6d60820a9642158a/src/conf/domain_conf.h#L3007-L3008
https://github.com/libvirt/libvirt/blob/50cc7a0d9d2b9df085ec073a6d60820a9642158a/src/conf/domain_conf.c#L6701-L67041 parent 1af4158 commit e381ded
File tree
2 files changed
+13
-4
lines changed- plugins/hypervisors/kvm/src
- main/java/com/cloud/hypervisor/kvm/resource
- test/java/com/cloud/hypervisor/kvm/resource
2 files changed
+13
-4
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
2588 | | - | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
2589 | 2595 | | |
2590 | 2596 | | |
2591 | 2597 | | |
| |||
2623 | 2629 | | |
2624 | 2630 | | |
2625 | 2631 | | |
2626 | | - | |
2627 | | - | |
| 2632 | + | |
| 2633 | + | |
2628 | 2634 | | |
2629 | 2635 | | |
2630 | 2636 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
| |||
646 | 649 | | |
647 | 650 | | |
648 | 651 | | |
649 | | - | |
| 652 | + | |
650 | 653 | | |
651 | 654 | | |
652 | 655 | | |
| |||
0 commit comments