All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gonglei <arei.gonglei@huawei.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "Huangweidong (C)" <weidong.huang@huawei.com>,
	"Subo (A)" <subo7@huawei.com>, "mst@redhat.com" <mst@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/5] vhost-scsi: support to assign boot order
Date: Tue, 3 Feb 2015 16:55:37 +0800	[thread overview]
Message-ID: <54D08D09.9040509@huawei.com> (raw)
In-Reply-To: <1422515335-13316-1-git-send-email-arei.gonglei@huawei.com>

On 2015/1/29 15:08, Gonglei (Arei) wrote:

> From: Gonglei <arei.gonglei@huawei.com>
> 
> Qemu haven't provide a bootindex property for vhost-scsi device.
> So, we can not assign the boot order for it at present. But
> Some clients/users have requirements for that in some scenarios.
> This patch achieve the aim in Qemu side.
> 
> Because Qemu only accept an wwpn argument for vhost-scsi, we
> cannot assign a tpgt. That's say tpg is transparent for Qemu, Qemu
> doesn't know which tpg can boot, but vhost-scsi driver module
> doesn't know too for one assigned wwpn.
>     
> At present, we assume that the first tpg can boot only, and add
> a boot_tpgt property that defaults to 0. Of course, people can
> pass a valid value by qemu command line.
> 

Ping...

> v2 -> v1: (Thanks to Paolo's suggestion)
>  - change calling  qdev_get_own_fw_dev_path_from_handler in
>    get_boot_devices_list, and convert non-NULL suffixes to
>    implementations of FWPathProvider in Patch 1. (Paolo)
>  - add a boot_tpgt property for vhost-scsi in Patch 4. (Paolo)
>  - remove the ioctl calling in Patch 4, because the kernel
>    patch hasn't been accepted.
> 
> kernel patch:
> [PATCH] vhost-scsi: introduce an ioctl to get the minimum tpgt
> http://news.gmane.org/gmane.comp.emulators.kvm.devel
> 

> Gonglei (5):
>   qdev: support to get a device firmware path directly
>   vhost-scsi: add bootindex property
>   vhost-scsi: realize the TYPE_FW_PATH_PROVIDER interface
>   vhost-scsi: add a property for booting
>   vhost-scsi: set the bootable value of channel/target/lun
> 
>  bootdevice.c                    | 31 +++++++++++++++++--------------
>  hw/core/qdev.c                  |  7 +++++++
>  hw/scsi/vhost-scsi.c            | 35 +++++++++++++++++++++++++++++++++++
>  hw/virtio/virtio-pci.c          |  2 ++
>  include/hw/qdev-core.h          |  1 +
>  include/hw/virtio/vhost-scsi.h  |  5 +++++
>  include/hw/virtio/virtio-scsi.h |  1 +
>  7 files changed, 68 insertions(+), 14 deletions(-)
> 

  parent reply	other threads:[~2015-02-03  8:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29  7:08 [Qemu-devel] [PATCH v2 0/5] vhost-scsi: support to assign boot order arei.gonglei
2015-01-29  7:08 ` [Qemu-devel] [PATCH v2 1/5] qdev: support to get a device firmware path directly arei.gonglei
2015-01-29  7:08 ` [Qemu-devel] [PATCH v2 2/5] vhost-scsi: add bootindex property arei.gonglei
2015-01-29  7:08 ` [Qemu-devel] [PATCH v2 3/5] vhost-scsi: realize the TYPE_FW_PATH_PROVIDER interface arei.gonglei
2015-01-29  7:08 ` [Qemu-devel] [PATCH v2 4/5] vhost-scsi: add a property for booting arei.gonglei
2015-01-29  7:08 ` [Qemu-devel] [PATCH v2 5/5] vhost-scsi: set the bootable value of channel/target/lun arei.gonglei
2015-02-03  8:55 ` Gonglei [this message]
2015-02-03 11:11   ` [Qemu-devel] [PATCH v2 0/5] vhost-scsi: support to assign boot order Paolo Bonzini
2015-02-03 11:27     ` Gonglei
2015-02-05  8:51       ` Gonglei
2015-02-05 11:10         ` Paolo Bonzini
2015-02-05 12:04           ` Michael S. Tsirkin
2015-02-05 12:31             ` Gonglei

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=54D08D09.9040509@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=subo7@huawei.com \
    --cc=weidong.huang@huawei.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.