From: Ian Campbell Subject: [PATCH v3 18/19] ts-guest-start: Use guest_create Date: Mon, 26 Jan 2015 14:35:34 +0000 Message-ID: <1422282935-24292-18-git-send-email-ian.campbell@citrix.com> References: <1422282868.6342.13.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1422282868.6342.13.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 Acked-by: Ian Jackson --- 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