From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v4 3/5] libxl: add support for vscsi Date: Tue, 5 May 2015 14:55:37 +0100 Message-ID: <20150505135537.GE1455@zion.uk.xensource.com> References: <1429259460-30491-1-git-send-email-olaf@aepfle.de> <1429259460-30491-4-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1429259460-30491-4-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Apr 17, 2015 at 08:30:58AM +0000, Olaf Hering wrote: > Port pvscsi support from xend to libxl: > > vscsi=['pdev,vdev{,options}'] > xl scsi-attach > xl scsi-detach > xl scsi-list > > Signed-off-by: Olaf Hering > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > --- > docs/man/xl.cfg.pod.5 | 55 +++ > docs/man/xl.pod.1 | 18 + > tools/libxl/Makefile | 2 + > tools/libxl/libxl.c | 441 ++++++++++++++++++++ > tools/libxl/libxl.h | 27 ++ > tools/libxl/libxl_create.c | 1 + > tools/libxl/libxl_device.c | 2 + > tools/libxl/libxl_internal.h | 16 + > tools/libxl/libxl_types.idl | 56 +++ > tools/libxl/libxl_types_internal.idl | 1 + > tools/libxl/libxl_vscsi.c | 271 +++++++++++++ > tools/libxl/libxlu_vscsi.c | 750 +++++++++++++++++++++++++++++++++++ > tools/libxl/libxlutil.h | 21 + > tools/libxl/xl.h | 3 + > tools/libxl/xl_cmdimpl.c | 184 ++++++++- > tools/libxl/xl_cmdtable.c | 15 + > 16 files changed, 1862 insertions(+), 1 deletion(-) > > diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 > index f936dfc..d395e56 100644 > --- a/docs/man/xl.cfg.pod.5 > +++ b/docs/man/xl.cfg.pod.5 > @@ -510,6 +510,61 @@ value is optional if this is a guest domain. > > =back > > +=item B > + > +Specifies the PVSCSI devices to be provided to the guest. PVSCSI passes > +dom0 SCSI devices as-is to the guest. > + > +Each VSCSI_SPEC_STRING consists of "pdev,vdev[,options]". > +'pdev' describes the physical device, preferable in a persistant format. "persistent", and please explain when "persistent format" is. > +'vdev' is the domU device in vHOST:CHANNEL:TARGET:LUN notation, all integers. > +'option' lists additional flags which a backend may recognize. > + > +The supported values for "pdev" and "option" depends on the used backend driver: > + > +=over 4 > + > +=item B > + > +=over 4 > + > +=item C > + > +The backend driver in the pvops kernel is part of the Linux-IO Target framework > +(LIO). As such the SCSI devices have to be configured first with the tools > +provided by this framework, such as a xen-scsiback aware targetcli. The "pdev" What is "targetcli"? > +in domU.cfg has to refer to a config item in that framework instead of the raw > +device. Ususally this is a WWN in the form of "na.WWN:LUN". > + > +=item C