xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Paul Durrant <Paul.Durrant@citrix.com>
To: Paul Durrant <Paul.Durrant@citrix.com>,
	Ian Jackson <Ian.Jackson@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH RESEND] tools/libxl: add support for	emulated NVMe drives
Date: Wed, 22 Mar 2017 16:45:49 +0000	[thread overview]
Message-ID: <c299570a30794466b8b633c0d4a05129@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <6a44fdab4945492bb7ee4f5096c3cee1@AMSPEX02CL03.citrite.net>

> -----Original Message-----
> From: Xen-devel [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of
> Paul Durrant
> Sent: 22 March 2017 16:32
> To: Ian Jackson <Ian.Jackson@citrix.com>
> Cc: xen-devel@lists.xenproject.org; Wei Liu <wei.liu2@citrix.com>
> Subject: Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for
> emulated NVMe drives
> 
> > -----Original Message-----
> > From: Ian Jackson [mailto:ian.jackson@eu.citrix.com]
> > Sent: 22 March 2017 16:03
> > To: Paul Durrant <Paul.Durrant@citrix.com>
> > Cc: xen-devel@lists.xenproject.org; Wei Liu <wei.liu2@citrix.com>
> > Subject: RE: [PATCH RESEND] tools/libxl: add support for emulated NVMe
> > drives
> >
> > Paul Durrant writes ("RE: [PATCH RESEND] tools/libxl: add support for
> > emulated NVMe drives"):
> > > > Oh, wait, I have just noticed that you have reused an entry in this
> > > > table!
> > > >
> > > >        1 << 28 | disk << 8 | partition   xvd, disks or partitions 16 onwards
> > > > ...
> > > > > +    1 << 28 | disk << 8               nvme, all disks, whole disk only
> > >
> > > Yes, that was intentional. No need for a new concrete encoding if we
> > > ignore namespaces, as I said in the commit comment. If you want to
> > > support namespaces then it would need something new... which doesn't
> > > seem worth it since QEMU has no support.
> >
> > That's not my point.  The purpose of this table is to advise guests
> > what the conventional in-guest device name ought to be for a certain
> > vbd.
> 
> Yes, and xvd<something> is a perfectly fine name for a PV device in pretty
> much every case. It's already the case that emulated IDE disks are exposed to
> guests using xvd* numbering.
> 
> >
> > We can't have one single numerical encoding mapping to two device
> > names.  That makes no sense.
> >
> > Presumably these NVME devices should be subject to the same vbd and
> > unplug approach as scsi and ide disks.
> 
> Yes, that's what the QEMU patch does.
> 
> > In which case guests need to
> > be told that the device name for the vbd should be "nvme<something>",
> > which can only be done by using a different number.
> >
> 
> That means modifications to PV frontends would be needed, which is going
> to make things more difficult. Most OS find disks by UUID these days anyway
> so I'm still not sure that just using xvd* numbering would really be a problem.
> 

Also, if we're going to go for distinct numbering then I guess the QEMU patch is probably wrong because we'd want guests with non-aware PV frontend to leave emulated NVMe devices plugged in.

  Paul

>   Paul
> 
> > Ian.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-03-22 16:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-22 13:09 [PATCH RESEND] tools/libxl: add support for emulated NVMe drives Paul Durrant
2017-03-22 14:16 ` Ian Jackson
2017-03-22 14:22   ` Paul Durrant
2017-03-22 15:01     ` Ian Jackson
2017-03-22 15:21       ` Paul Durrant
2017-03-22 16:03         ` Ian Jackson
2017-03-22 16:31           ` Paul Durrant
2017-03-22 16:45             ` Paul Durrant [this message]
2017-03-22 17:02             ` Ian Jackson
2017-03-22 17:16               ` Paul Durrant
2017-03-22 17:31                 ` Ian Jackson
2017-03-22 17:41                   ` Paul Durrant
2017-03-22 17:48                     ` Ian Jackson
2017-03-23  8:55                       ` Paul Durrant
  -- strict thread matches above, loose matches on Subject: below --
2017-01-13 14:00 Paul Durrant
2017-01-18 10:28 ` Wei Liu
2017-01-18 10:51   ` Paul Durrant
2017-01-18 12:02     ` Wei Liu
2017-01-18 12:15       ` Paul Durrant
2017-01-18 12:20         ` Wei Liu
2017-01-18 15:07           ` Wei Liu
2017-01-19  8:58             ` Paul Durrant
2017-01-19 11:18               ` Wei Liu

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=c299570a30794466b8b633c0d4a05129@AMSPEX02CL03.citrite.net \
    --to=paul.durrant@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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).