[libvirt] [PATCH v2] qemu: add port check for host when disk type is network

2014-11-13 Thread Shanzhi Yu
For network type disk, host port is not checked when start a guest, so the error may be unclear when with invalid port. If pass -1 to port the error will be error: Failed to start domain rh6-i error: An error occurred, but the cause is unknown So make a check to make sure the port range from 0 to

Re: [libvirt] [PATCH v2] qemu: add port check for host when disk type is network

2014-11-13 Thread Jiri Denemark
On Fri, Nov 14, 2014 at 01:24:18 +0800, Shanzhi Yu wrote: For network type disk, host port is not checked when start a guest, so the error may be unclear when with invalid port. If pass -1 to port the error will be error: Failed to start domain rh6-i error: An error occurred, but the cause is