Commit 4e15e51
kvm: add SCSI controllers based on the number of virtio-SCSI disks (apache#9823)
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 3486f15 commit 4e15e51
File tree
2 files changed
+15
-15
lines changed- plugins/hypervisors/kvm/src
- main/java/com/cloud/hypervisor/kvm/resource
- test/java/com/cloud/hypervisor/kvm/resource
2 files changed
+15
-15
lines changedLines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2911 | 2911 | | |
2912 | 2912 | | |
2913 | 2913 | | |
2914 | | - | |
2915 | | - | |
2916 | | - | |
| 2914 | + | |
2917 | 2915 | | |
2918 | 2916 | | |
2919 | 2917 | | |
| |||
2974 | 2972 | | |
2975 | 2973 | | |
2976 | 2974 | | |
2977 | | - | |
2978 | | - | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
2982 | | - | |
| 2975 | + | |
| 2976 | + | |
2983 | 2977 | | |
2984 | 2978 | | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
2988 | 2979 | | |
2989 | | - | |
2990 | | - | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2991 | 2988 | | |
2992 | 2989 | | |
2993 | 2990 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
648 | 651 | | |
649 | 652 | | |
650 | 653 | | |
651 | | - | |
| 654 | + | |
652 | 655 | | |
653 | 656 | | |
654 | 657 | | |
| |||
0 commit comments