Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1637020
| From | "Wang, Wei W" <wei.w.wang@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ |
| Date | 2017-05-07 23:50 +0200 |
| Message-ID | <tECdZ-30b-29@gated-at.bofh.it> (permalink) |
| References | <tvJy1-14D-5@gated-at.bofh.it> <tvJy1-14D-13@gated-at.bofh.it> <tvQpR-62k-29@gated-at.bofh.it> <tALfQ-5aa-13@gated-at.bofh.it> <tDTTA-7R3-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 05/06/2017 06:21 AM, Michael S. Tsirkin wrote: > On Thu, Apr 27, 2017 at 02:33:44PM +0800, Wei Wang wrote: > > On 04/14/2017 01:08 AM, Michael S. Tsirkin wrote: > > > On Thu, Apr 13, 2017 at 05:35:08PM +0800, Wei Wang wrote: > > > > Add a new vq, miscq, to handle miscellaneous requests between the > > > > device and the driver. > > > > > > > > This patch implemnts the > VIRTIO_BALLOON_MISCQ_INQUIRE_UNUSED_PAGES > > > implements > > > > > > > request sent from the device. > > > Commands are sent from host and handled on guest. > > > In fact how is this so different from stats? > > > How about reusing the stats vq then? You can use one buffer for > > > stats and one buffer for commands. > > > > > > > The meaning of the two vqs is a little different. statq is used for > > reporting statistics, while miscq is intended to be used to handle > > miscellaneous requests from the guest or host > > misc just means "anything goes". If you want it to mean "commands" name it so. Ok, will change it. > > (I think it can > > also be used the other way around in the future when other new > > features are added which need the guest to send requests and the host > > to provide responses). > > > > I would prefer to have them separate, because: > > If we plan to combine them, we need to put the previous statq related > > implementation under miscq with a new command (I think we can't > > combine them without using commands to distinguish the two features). > > Right. > > In this way, an old driver won't work with a new QEMU or a new driver > > won't work with an old QEMU. Would this be considered as an issue > > here? > > Compatibility is and should always be handled using feature flags. There's a > feature flag for this, isn't it? The negotiation of the existing feature flag, VIRTIO_BALLOON_F_STATS_VQ only indicates the support of the old statq implementation. To move the statq implementation under cmdq, I think we would need a new feature flag for the new statq implementation: #define VIRTIO_BALLOON_F_CMDQ_STATS 5 What do you think? Best, Wei
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ Wei Wang <wei.w.wang@intel.com> - 2017-04-27 08:40 +0200
Re: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ "Michael S. Tsirkin" <mst@redhat.com> - 2017-05-06 00:30 +0200
RE: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ "Wang, Wei W" <wei.w.wang@intel.com> - 2017-05-07 23:50 +0200
csiph-web