All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: Pino Toscano <ptoscano@redhat.com>,
	Ronnie Sahlberg <ronniesahlberg@gmail.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Peter Lieven <pl@kamp.de>,
	qemu-block@nongnu.org, "Daniel P. Berrange" <berrange@redhat.com>
Subject: [Qemu-devel] [PATCH 0/2] Remove need for -iscsi argument
Date: Thu,  8 Dec 2016 12:41:01 +0000	[thread overview]
Message-ID: <20161208124103.9813-1-berrange@redhat.com> (raw)

This small series removes the need for using the -iscsi argument
by directly supporting all the -iscsi options against the block
device config eg instead of

$QEMU \
  -object secret,id=sec0,data=123456 \
  -drive driver=iscsi,file=iscsi://catbus/iqn.fedora:kvm/2 \
  -iscsi initiator-name=fish,user=test,password-secret=sec0,timeout=234 

you can now do it all against -drive

$QEMU \
  -object secret,id=sec0,data=123456 \
  -drive driver=iscsi,file=iscsi://catbus/iqn.fedora:kvm/2,\
         initiator-name=fish,user=test,password-secret=sec0,timeout=234 

This fixes the problem that you cannot associate -drive instances
with -iscsi args reliably due to IQNs containing chracters that
QEMU forbids in QemuOpts ID strings.

Pino had previously sent a patch to do this for initiator-name
back in the 2.6 dev cycle

  https://lists.nongnu.org/archive/html/qemu-block/2016-04/msg00246.html

This series supports all the -iscsi option names, except for
'password' which is intentionally left out as it is insecure
and replaced by 'password-secret'.

Daniel P. Berrange (2):
  iscsi: reduce code duplication parsing -iscsi opts
  iscsi: support most -iscsi opts against block dev opts

 block/iscsi.c | 145 ++++++++++++++++++++++++++++++----------------------------
 block/iscsi.h |  79 ++++++++++++++++++++++++++++++++
 vl.c          |  36 ++++-----------
 3 files changed, 163 insertions(+), 97 deletions(-)
 create mode 100644 block/iscsi.h

-- 
2.9.3

             reply	other threads:[~2016-12-08 12:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 12:41 Daniel P. Berrange [this message]
2016-12-08 12:41 ` [Qemu-devel] [PATCH 1/2] iscsi: reduce code duplication parsing -iscsi opts Daniel P. Berrange
2016-12-08 12:41 ` [Qemu-devel] [PATCH 2/2] iscsi: support most -iscsi opts against block dev opts Daniel P. Berrange
2016-12-08 13:12 ` [Qemu-devel] [Qemu-block] [PATCH 0/2] Remove need for -iscsi argument Kevin Wolf
2016-12-08 13:15   ` Daniel P. Berrange

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=20161208124103.9813-1-berrange@redhat.com \
    --to=berrange@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=pl@kamp.de \
    --cc=ptoscano@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=ronniesahlberg@gmail.com \
    /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.