All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: "Pang, LongtaoX" <longtaox.pang@intel.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	"Ian.Campbell@citrix.com" <Ian.Campbell@citrix.com>,
	"Ian.Jackson@eu.citrix.com" <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"Hu, Robert" <robert.hu@intel.com>,
	"Zheng, Di" <di.zheng@intel.com>
Subject: Re: [OSSTEST PATCH 3/4] Add nested testcase of installing L2 guest VM
Date: Tue, 6 Jan 2015 16:52:03 +0000	[thread overview]
Message-ID: <20150106165203.GC28680@zion.uk.xensource.com> (raw)
In-Reply-To: <86C3224E41A7434B904EC364302132D80E421EE7@SHSMSX101.ccr.corp.intel.com>

On Tue, Jan 06, 2015 at 03:28:43AM +0000, Pang, LongtaoX wrote:
> 
> 
> > -----Original Message-----
> > From: Wei Liu [mailto:wei.liu2@citrix.com]
> > Sent: Thursday, December 11, 2014 7:44 PM
> > To: Pang, LongtaoX
> > Cc: xen-devel@lists.xen.org; Ian.Jackson@eu.citrix.com;
> > Ian.Campbell@citrix.com; wei.liu2@citrix.com; Hu, Robert; Zheng, Di
> > Subject: Re: [OSSTEST PATCH 3/4] Add nested testcase of installing L2 guest VM
> > 
> > On Wed, Dec 10, 2014 at 04:07:39PM +0800, longtao.pang wrote:
> > > From: "longtao.pang" <longtaox.pang@intel.com>
> > >
> > > This patch is used for installing L2 guest VM inside L1 guest VM.
> > >
> > > ---
> > >  sg-run-job        |    2 +
> > >  ts-debian-install |  166
> > > +++++++++++++++++++++++++++++++++++++++++------------
> > >  2 files changed, 132 insertions(+), 36 deletions(-)
> > >
> > > diff --git a/sg-run-job b/sg-run-job
> > > index e513bd1..85f7b22 100755
> > > --- a/sg-run-job
> > > +++ b/sg-run-job
> > > @@ -292,6 +292,8 @@ proc need-hosts/test-nested {} {return host}  proc
> > > run-job/test-nested {} {
> > >      run-ts . = ts-debian-hvm-install + host + nested + nested_L1
> > >      run-ts . = ts-xen-install + host + nested + nested_build
> > > +    run-ts . = ts-debian-install + host + nested + amd64 + nested_L2
> > > +    run-ts . = ts-guest-destroy + host nested
> > 
> > It would also be possible to run ts-debian-hvm-install as L2. That would suite
> > this test case better -- it's testing nested HVM.
> > 
> > There's no need to remove the PV test case though.
> 
> [Pang, LongtaoX] 
> [Pang, LongtaoX] Thanks for checking. We used ts-debian-hvm-install for installing L1 HVM guest via ISO Image, 
> because we will build XEN, XEN-Tools and dom0 kernel inside it, and then we will install L2 guest inside L1. 
> But, L2 guest is just a native OS, so we think use ts-debian-install is enough for installing L2 and will make it easy to control.
> 

ts-debian-install installs a L2 PV guest, which should work even without
nested HVM enabled for your L1 HVM guest. You're testing nested HVM I
think it makes more sense to install a L2 HVM guest.

[...]
> > > +sub start () {
> > > +    my $cfg_xend= "/etc/xen/$guesthost.cfg";
> > > +    my $cmd= toolstack()->{Command}." create ".$cfg_xend;
> > > +    target_cmd_root($ho, $cmd, 30);
> > > +    my $domains = target_cmd_output_root($ho,
> > toolstack()->{Command}." list");
> > > +    logm("guest state is\n$domains"); }
> > 
> > I think we already have a guest start script?
> > 
> > This hunk is going to break easily if we're more flexible about the toolstack (we
> > already have a partially working libvirt test case).
> >
> 
> [Pang, LongtaoX] Thanks for checking, I have tried to use ts-guest-start to start guest, but it maybe not suit for here, 
> because some function and parameters in the script is not necessary here, If we use the script we will modify it again and may impact other test jobs. 
> So I create a function here to start L2 guest.
>  

Then you need to keep an eye on the ongoing work from Ian Campbell to
factor out abstraction layer of toolstack and rebase accordingly.

Wei.

  reply	other threads:[~2015-01-06 16:52 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10  8:07 [OSSTEST PATCH 0/4] Introduction of the patches longtao.pang
2014-12-10  8:07 ` [OSSTEST PATCH 1/4] Add nested testcase of preparing and installing L1 guest VM longtao.pang
2014-12-11 11:06   ` Wei Liu
2014-12-26  5:13     ` Robert Hu
2015-01-02  9:51       ` Dario Faggioli
2014-12-10  8:07 ` [OSSTEST PATCH 2/4] Build XEN and HVM Dom0 kernel for " longtao.pang
2014-12-11 11:25   ` Wei Liu
2015-01-27  8:33     ` Hu, Robert
2015-01-27 11:01       ` Ian Campbell
2015-01-29  6:05         ` Hu, Robert
2014-12-10  8:07 ` [OSSTEST PATCH 3/4] Add nested testcase of installing L2 " longtao.pang
2014-12-11 11:43   ` Wei Liu
2015-01-06  3:28     ` Pang, LongtaoX
2015-01-06 16:52       ` Wei Liu [this message]
2015-01-07  3:52         ` Pang, LongtaoX
2015-01-08  7:34         ` Pang, LongtaoX
2015-01-08 10:48           ` Wei Liu
2015-01-08 11:12             ` Ian Campbell
2015-01-08 11:16               ` Ian Jackson
2015-01-08 11:22             ` Robert Hu
2015-01-08 11:26               ` Ian Campbell
2015-01-08 17:20       ` Dario Faggioli
2015-01-08 17:25         ` Ian Campbell
2015-01-09  2:46         ` Pang, LongtaoX
2014-12-10  8:07 ` [OSSTEST PATCH 4/4] Insert nested test job name and runvars into longtao.pang
2014-12-11 11:46   ` Wei Liu
2015-01-06  3:31     ` Pang, LongtaoX
2015-01-29  9:57     ` Hu, Robert
2015-01-29 10:42       ` Wei Liu
2015-01-29 10:52         ` Ian Campbell
2015-01-29 10:55           ` Ian Campbell
2014-12-11 10:38 ` [OSSTEST PATCH 0/4] Introduction of the patches Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150106165203.GC28680@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=di.zheng@intel.com \
    --cc=longtaox.pang@intel.com \
    --cc=robert.hu@intel.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.