From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xen.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v7 3/5] libxl: add support for vscsi
Date: Mon, 8 Feb 2016 12:44:39 +0100 [thread overview]
Message-ID: <20160208114439.GA7645@aepfle.de> (raw)
In-Reply-To: <1454667175-24282-4-git-send-email-olaf@aepfle.de>
On Fri, Feb 05, Olaf Hering wrote:
> +int xlu_vscsi_detach(XLU_Config *cfg, libxl_ctx *ctx, uint32_t domid, char *str)
> +{
> + if (vc->num_vscsidevs > 1) {
> + /* Remove single vscsidev connected to this vscsictrl */;
> + ctrl.devid = vc->devid;
> + ctrl.vscsidevs[0].vscsidev_id = vd->vscsidev_id;
> + libxl_device_vscsidev_remove(ctx, domid, &ctrl, NULL);
> + } else {
> + /* Wipe entire vscsictrl */;
> + libxl_device_vscsictrl_remove(ctx, domid, vc, NULL);
In this version I have moved the decision to remove vscsictrl into
libxlu. I wonder if thats a valid approach. Should there be a
libxl_device_vscsidev_remove which takes a *vscsidev, walks the list of
vscsictrls in xenstore and then calls either a variant of
libxl_device_vscsictrl_remove or libxl__device_vscsidev_rm?
Please advice.
Olaf
next prev parent reply other threads:[~2016-02-08 11:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 10:12 [PATCH v7 0/5] libbxl: add support for pvscsi, iteration 7 Olaf Hering
2016-02-05 10:12 ` [PATCH v7 1/5] vscsiif.h: fix WWN notation for p-dev property Olaf Hering
2016-02-05 10:12 ` [PATCH v7 2/5] docs: add vscsi to xenstore-paths.markdown Olaf Hering
2016-02-05 10:12 ` [PATCH v7 3/5] libxl: add support for vscsi Olaf Hering
2016-02-05 10:26 ` Olaf Hering
2016-02-08 11:44 ` Olaf Hering [this message]
2016-02-11 15:00 ` Olaf Hering
2016-02-11 15:03 ` Olaf Hering
2016-02-05 10:12 ` [PATCH v7 4/5] vscsiif.h: add some notes about xenstore layout Olaf Hering
2016-02-05 10:12 ` [PATCH v7 5/5] Scripts to create and delete xen-scsiback nodes in Linux target framework Olaf Hering
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=20160208114439.GA7645@aepfle.de \
--to=olaf@aepfle.de \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.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.