From: "Michael S. Tsirkin" <mst@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org, stefanha@redhat.com,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2 1/2] virtio_scsi: Add fc_host definitions
Date: Thu, 26 Jan 2017 23:49:03 +0200 [thread overview]
Message-ID: <20170126234414-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20170126034109.16144-2-famz@redhat.com>
On Thu, Jan 26, 2017 at 11:41:08AM +0800, Fam Zheng wrote:
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
I pefer combining this with implementation,
hard to reason about interface alone.
> include/uapi/linux/virtio_scsi.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/uapi/linux/virtio_scsi.h b/include/uapi/linux/virtio_scsi.h
> index cc18ef8..a26fb31 100644
> --- a/include/uapi/linux/virtio_scsi.h
> +++ b/include/uapi/linux/virtio_scsi.h
> @@ -113,6 +113,11 @@ struct virtio_scsi_config {
> __u16 max_channel;
> __u16 max_target;
> __u32 max_lun;
> + __u8 primary_wwpn[8];
> + __u8 primary_wwnn[8];
> + __u8 secondary_wwpn[8];
> + __u8 secondary_wwnn[8];
> + __u8 primary_active;
Is this in fact a binary value?
Also pls add padding to align on 8 byte boundary.
> } __attribute__((packed));
>
> /* Feature Bits */
> @@ -120,6 +125,7 @@ struct virtio_scsi_config {
> #define VIRTIO_SCSI_F_HOTPLUG 1
> #define VIRTIO_SCSI_F_CHANGE 2
> #define VIRTIO_SCSI_F_T10_PI 3
> +#define VIRTIO_SCSI_F_FC_HOST 4
>
> /* Response codes */
> #define VIRTIO_SCSI_S_OK 0
> --
> 2.9.3
next prev parent reply other threads:[~2017-01-26 21:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-26 3:41 [PATCH v2 0/2] virtio-scsi: Implement FC_HOST feature Fam Zheng
2017-01-26 3:41 ` [PATCH v2 1/2] virtio_scsi: Add fc_host definitions Fam Zheng
2017-01-26 21:49 ` Michael S. Tsirkin [this message]
2017-01-26 3:41 ` [PATCH v2 2/2] virtio_scsi: Implement fc_host Fam Zheng
2017-01-26 8:34 ` Christoph Hellwig
2017-01-26 8:55 ` kbuild test robot
2017-01-26 22:06 ` Michael S. Tsirkin
2017-01-27 8:43 ` Paolo Bonzini
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=20170126234414-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=famz@redhat.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=pbonzini@redhat.com \
--cc=stefanha@redhat.com \
--cc=virtualization@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).