Commit 9b3acae
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 97b01ac commit 9b3acae
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 | |
|---|---|---|---|
| |||
2919 | 2919 | | |
2920 | 2920 | | |
2921 | 2921 | | |
2922 | | - | |
2923 | | - | |
2924 | | - | |
| 2922 | + | |
2925 | 2923 | | |
2926 | 2924 | | |
2927 | 2925 | | |
| |||
2982 | 2980 | | |
2983 | 2981 | | |
2984 | 2982 | | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
| 2983 | + | |
| 2984 | + | |
2991 | 2985 | | |
2992 | 2986 | | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
2996 | 2987 | | |
2997 | | - | |
2998 | | - | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
2999 | 2996 | | |
3000 | 2997 | | |
3001 | 2998 | | |
| |||
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