[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 18/19] ts-guest-start: Use guest_create
This allows us to abolish CfgPathVar which was inconsistently used, appears redundant with $gho->{CfgPath} and in any case never set to anything other than 'cfgpath'. I suppose it was intended to deal with toolstacks with a cfg format completely dissimilar to xm/xl's. I think if this arises in a future toolstack this functionality could be reintroduced pretty trivially via the toolstack abstraction which is added by this series. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- v3: Adjust for dropping $ho param to guest_create --- Osstest/Toolstack/libvirt.pm | 1 - Osstest/Toolstack/xend.pm | 1 - Osstest/Toolstack/xl.pm | 1 - ts-guest-start | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm index f5f099a..e9d3952 100644 --- a/Osstest/Toolstack/libvirt.pm +++ b/Osstest/Toolstack/libvirt.pm @@ -28,7 +28,6 @@ sub new { Host => $ho, NewDaemons => [qw(libvirtd)], Dom0MemFixed => 1, - CfgPathVar => 'cfgpath', ExtraPackages => [qw(libnl1 libavahi-client3)], }, $class; } diff --git a/Osstest/Toolstack/xend.pm b/Osstest/Toolstack/xend.pm index ed9071b..1d5d059 100644 --- a/Osstest/Toolstack/xend.pm +++ b/Osstest/Toolstack/xend.pm @@ -30,7 +30,6 @@ sub new { NewDaemons => [qw(xend)], OldDaemonInitd => 'xend', _Command => 'xm', - CfgPathVar => 'cfgpath', Dom0MemFixed => 1, }, $class; } diff --git a/Osstest/Toolstack/xl.pm b/Osstest/Toolstack/xl.pm index 7938649..5498c0a 100644 --- a/Osstest/Toolstack/xl.pm +++ b/Osstest/Toolstack/xl.pm @@ -29,7 +29,6 @@ sub new { NewDaemons => [], Dom0MemFixed => 1, _Command => 'xl', - CfgPathVar => 'cfgpath', RestoreNeedsConfig => 1, }, $class; } diff --git a/ts-guest-start b/ts-guest-start index fb6a174..1aa9e69 100755 --- a/ts-guest-start +++ b/ts-guest-start @@ -26,7 +26,7 @@ our ($ho,$gho) = ts_get_host_guest(@ARGV); sub start () { guest_umount_lv($ho, $gho); - toolstack($ho)->create($r{ $gho->{Guest}.'_'. toolstack($ho)->{CfgPathVar} }); + guest_create($gho); } sub checkstart () { -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |