diff options
author | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-06-22 16:07:00 +0100 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-06-22 16:07:00 +0100 |
commit | c1acfe560ba36ee1df3cb92253e507b4369f9585 (patch) | |
tree | bda62b4953d391a87994330588a14924c94e1e4b /tools/libxc/xc_core.c | |
parent | b9ae83b6e2a50a21a6fe16273218e3403d053fc7 (diff) | |
download | xen-c1acfe560ba36ee1df3cb92253e507b4369f9585.tar.gz xen-c1acfe560ba36ee1df3cb92253e507b4369f9585.tar.bz2 xen-c1acfe560ba36ee1df3cb92253e507b4369f9585.zip |
Check "mac" address sooner in device_create function, before doing device_add.
In XendDomainInfo.py device_create function, when device type is
"vif", it has a paragraph to check the validity of "mac"
address. Before checking validity, device_add has been done. But after
checking validity, if the mac address is invlid, it raises VmError and
exits directly without doing clean work like removing the device item
from config info. This will cause that the incorrect mac address is
saved into VM Config file and VM fails to restart. If check "mac"
validity before doing device_add, there will be no problem.
Signed-off-by Chunyan Liu <CYLiu@novell.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
0 files changed, 0 insertions, 0 deletions