All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" <longpeng2@huawei.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Cornelia Huck <cohuck@redhat.com>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>
Subject: RE: [virtio-comment] RE: [PATCH] content: reserve virtio device ID for QingTian Box devices
Date: Tue, 4 Jan 2022 04:49:55 +0000	[thread overview]
Message-ID: <f2c52a49eed04ef59785a8b038cfa476@huawei.com> (raw)
In-Reply-To: <20220103121259-mutt-send-email-mst@kernel.org>



> -----Original Message-----
> From: Michael S. Tsirkin [mailto:mst@redhat.com]
> Sent: Tuesday, January 4, 2022 1:15 AM
> To: Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
> <longpeng2@huawei.com>
> Cc: Cornelia Huck <cohuck@redhat.com>; Gonglei (Arei)
> <arei.gonglei@huawei.com>; virtio-comment@lists.oasis-open.org
> Subject: Re: [virtio-comment] RE: [PATCH] content: reserve virtio device ID for
> QingTian Box devices
> 
> On Mon, Jan 03, 2022 at 11:55:09AM +0000, Longpeng (Mike, Cloud Infrastructure
> Service Product Dept.) wrote:
> >
> >
> > > -----Original Message-----
> > > From: Cornelia Huck [mailto:cohuck@redhat.com]
> > > Sent: Monday, January 3, 2022 7:30 PM
> > > To: Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
> > > <longpeng2@huawei.com>; Michael S. Tsirkin <mst@redhat.com>
> > > Cc: Gonglei (Arei) <arei.gonglei@huawei.com>;
> > > virtio-comment@lists.oasis-open.org
> > > Subject: Re: [virtio-comment] RE: [PATCH] content: reserve virtio device
> ID for
> > > QingTian Box devices
> > >
> > > On Mon, Dec 27 2021, "Longpeng (Mike, Cloud Infrastructure Service Product
> > > Dept.)"	<longpeng2@huawei.com> wrote:
> > >
> > > >> -----Original Message-----
> > > >> From: Michael S. Tsirkin [mailto:mst@redhat.com]
> > > >> Sent: Monday, December 27, 2021 4:15 PM
> > > >> To: Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
> > > >> <longpeng2@huawei.com>
> > > >> Cc: Gonglei (Arei) <arei.gonglei@huawei.com>;
> > > >> virtio-comment@lists.oasis-open.org
> > > >> Subject: Re: [PATCH] content: reserve virtio device ID for QingTian Box
> devices
> > > >>
> > > >> On Thu, Dec 23, 2021 at 02:49:25PM +0000, Longpeng (Mike, Cloud
> Infrastructure
> > > >> Service Product Dept.) wrote:
> > > >> > Hi Michael,
> > > >> >
> > > >> > Is there anything else I need to do to reserve the device id?
> > > >>
> > > >> OK, I see the issue was created. I think it makes sense to wait
> > > >> until Jan 3 with the vote since lots of people are on
> > > >> vacation.
> > > >>
> > > >
> > > > Ok, thanks.
> > > >
> > > >> Meanwhile - are there plans to add this device to the spec eventually?
> > > >> Can you share a bit more of what it does?
> > > >>
> > > >
> > > > We want to carve out some resources (e.g. vcpu, mem, pci_dev) from the
> user's
> > > > VM and then use these resources to start a sandbox for the user. The usage
> > > > quite likes the software enclave which Nitro already supported, but we
> have
> > > > much wider usage, for example, running unikernel + app (e.g. OSV + Redis)
> in
> > > > the sandbox, it would provide much better performance than the traditional
> > > > os.
> > >
> > > Sounds interesting. One question: Should this virtio device only support
> > > a specific hypervisor, or could it support various hypervisors in
> > > theory? (Via different commands or parameters.) In case of the latter,
> > > it might be better to reserve an ID for a "sandbox device" or so. If the
> > > design is too closely tied to your hypervisor, I'd be fine with
> > > reserving the ID as proposed.
> >
> > We want to name the device as "virtio sandbox" originally, but consider that
> it
> > would be much convenient to add new features (maybe tied to our hypervisor)
> in
> > the future if we introduce a private device, so we decide to use "QingTian
> Box"
> > at last.
> >
> > However, the sandbox function is not bound to a specific hypervisor, so it's
> free
> > for the other guys to add something like "virtio sandbox".
> 
> Hard to say of course but I'm guessing it's better to give it a generic

If the device only support the sandbox function, then I think a generic
name (e.g. virtio-sandbox) would be fine. But as I said above, we want to
extend it as a "toolbox" in the near future, not only the sandbox.

> name. Part of the appeal of virtio is it's hypervisor agnostic,
> hypervisor specific extensions can always be moved to a separate device.
> 

Yes, but we've already introduced a hypervisor specific device (NSM) now,
why it's hard to reserve just one ID for other vendors? So I really hope
the TC could give a chance for other vendors to do this, maybe you can
limit the IDs that a vendor can reserved. 

Thanks.

> --
> MST


  reply	other threads:[~2022-01-04  4:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09 14:05 [virtio-comment] [PATCH] content: reserve virtio device ID for QingTian Box devices Longpeng(Mike)
2021-12-23 14:49 ` [virtio-comment] " Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
2021-12-26  8:18   ` [virtio-comment] " Michael S. Tsirkin
2021-12-27  8:15   ` Michael S. Tsirkin
2021-12-27  9:38     ` [virtio-comment] " Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
2022-01-03 11:29       ` Cornelia Huck
2022-01-03 11:55         ` Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
2022-01-03 12:50           ` Cornelia Huck
2022-01-03 15:48             ` Michael S. Tsirkin
2022-01-03 17:14           ` Michael S. Tsirkin
2022-01-04  4:49             ` Longpeng (Mike, Cloud Infrastructure Service Product Dept.) [this message]
2022-01-13 12:20               ` Cornelia Huck

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=f2c52a49eed04ef59785a8b038cfa476@huawei.com \
    --to=longpeng2@huawei.com \
    --cc=arei.gonglei@huawei.com \
    --cc=cohuck@redhat.com \
    --cc=mst@redhat.com \
    --cc=virtio-comment@lists.oasis-open.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.