Commit 3c39f45
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 4d73ae1 commit 3c39f45
File tree
1 file changed
+11
-14
lines changed- plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource
1 file changed
+11
-14
lines changedLines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2916 | 2916 | | |
2917 | 2917 | | |
2918 | 2918 | | |
2919 | | - | |
2920 | | - | |
2921 | | - | |
| 2919 | + | |
2922 | 2920 | | |
2923 | 2921 | | |
2924 | 2922 | | |
| |||
2979 | 2977 | | |
2980 | 2978 | | |
2981 | 2979 | | |
2982 | | - | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
| 2980 | + | |
| 2981 | + | |
2988 | 2982 | | |
2989 | 2983 | | |
2990 | | - | |
2991 | | - | |
2992 | | - | |
2993 | 2984 | | |
2994 | | - | |
2995 | | - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2996 | 2993 | | |
2997 | 2994 | | |
2998 | 2995 | | |
| |||
0 commit comments