*** eernst has joined #kata-dev | 01:42 | |
*** eernst has quit IRC | 01:46 | |
*** tmhoang has quit IRC | 02:04 | |
*** pcaruana has joined #kata-dev | 04:45 | |
*** sameo has joined #kata-dev | 04:50 | |
stefanha | sebastien.beouf: Today the absense of F_MQ doesn't matter for QEMU's vhost-user master implementation because struct vhost_dev->max_queues isn't used by anything in QEMU in the virtiofs case. (It's only used by vhost_net.) | 05:18 |
---|---|---|
stefanha | sebastien.boeuf: But I think good practice is to extend libvhost-user to always set F_MQ and report 1 queue by default. virtiofsd will tell libvhost-user to report more queues though, because as you say, even in the minimal configuration it has at 2 queues. | 05:18 |
stefanha | sebastien.boeuf: This way virtiofsd will report the real number of queues and maybe other vhost-user master implementations will care about that. | 05:19 |
*** sameo has quit IRC | 06:56 | |
*** jodh has joined #kata-dev | 07:23 | |
*** sameo has joined #kata-dev | 07:43 | |
*** jugs has quit IRC | 07:53 | |
*** jugs has joined #kata-dev | 07:54 | |
*** gwhaley has joined #kata-dev | 08:00 | |
*** davidgiluk has joined #kata-dev | 08:07 | |
kata-irc-bot | <graham.whaley> @brtknr - I could try posting to the lists (but, lists are not normally the most happy things with attachements), or we could open an Issue on kata github to either just note or track progress. let me do that as a starter, coz it's easy ;) | 08:13 |
kata-irc-bot | <graham.whaley> ah, actually @brtknr - I don't have details from @gmmaharaj of what hardware/setup that test was run on - so, I'm a little loathed to stick that on an Issue or list right now until we qualify that. If you want a copy thought for reference, send me a pm - firstname.lastname @ either intel or gmail. | 08:20 |
*** tmhoang has joined #kata-dev | 09:18 | |
stefanha | sebastien.beouf: I've CCed you on patches for libvhost-user VHOST_USER_PROTOCOL_F_MQ. I'll also ping David Gilbert about rebasing virtiofsd on this. | 09:42 |
*** lpetrut has joined #kata-dev | 09:45 | |
*** lpetrut has quit IRC | 10:10 | |
*** lpetrut has joined #kata-dev | 10:10 | |
*** gwhaley has quit IRC | 11:01 | |
*** devimc has joined #kata-dev | 12:07 | |
*** gwhaley has joined #kata-dev | 12:21 | |
*** fuentess has quit IRC | 12:27 | |
*** fuentess has joined #kata-dev | 12:30 | |
*** fuentess has joined #kata-dev | 12:33 | |
*** devimc has quit IRC | 12:58 | |
kata-irc-bot | <eric.ernst> Behavior change when moving to virtio-fs: https://github.com/kata-containers/runtime/issues/1818#issuecomment-504428447 | 13:39 |
davidgiluk | eernst: I don't know k8s stuff, can you parse that for me - is that supposed to be a separate virtio-fs mount? | 13:44 |
*** jodh has quit IRC | 14:01 | |
*** jodh has joined #kata-dev | 14:17 | |
*** sameo has quit IRC | 14:31 | |
*** lpetrut has quit IRC | 14:32 | |
*** dklyle has joined #kata-dev | 14:37 | |
*** gwhaley has quit IRC | 14:46 | |
*** gwhaley has joined #kata-dev | 14:47 | |
kata-irc-bot | <sebastien.boeuf> stefanha: thanks, I'm gonna take a look | 15:32 |
kata-irc-bot | <sebastien.boeuf> stefanha: btw, when you said "maybe other vhost-user master implementations will care about that.", that's exactly the case I'm trying to cover. The vhost crate pending implementation on rust-vmm expects the queue number to be provided when the master calls into get_queue_num() | 15:35 |
kata-irc-bot | <sebastien.boeuf> there's a workaround to still have this working with virtio-fs, but I'd like to be able to remove eventually | 15:36 |
stefanha | sebastien.boeuf: The spec doesn't prohibit using more than 1 queue. There's just no way to query the maximum number of queues when F_MQ is missing. | 15:49 |
stefanha | sebastien.boeuf: So I'd argue the vhost-user master implementation is too restrictive and shouldn't do that. But then the vhost-user spec is quite ambiguous, so... | 15:51 |
kata-irc-bot | <sebastien.boeuf> stefanha: yes we can definitely be more loose on the master implementation, but looking at the spec it is quite ambiguous as you just said. Look at this section "The max number of queue pairs the slave supports can be queried with message VHOST_USER_GET_QUEUE_NUM. Master should stop when the number of requested queues is bigger than that." | 15:53 |
*** clarkb has quit IRC | 15:53 | |
kata-irc-bot | <sebastien.boeuf> stefanha: so you're saying that because the spec does not say "must" instead of "can", the master does not have to ask for the number of queues | 15:53 |
kata-irc-bot | <sebastien.boeuf> and because it knows the slave supports multiqueue, that should be enough | 15:54 |
kata-irc-bot | <sebastien.boeuf> I feel the spec should be tightened a little bit | 15:54 |
stefanha | sebastien.boeuf: No, there are two separate concepts. | 15:58 |
stefanha | Remember, vhost-net had multiple virtqueues before "multiqueue"! | 15:58 |
stefanha | multiqueue != multiple virtqueues | 15:58 |
stefanha | multiqueue == the device backend supports up to a maximum number of queues and you'll want to agree on how many to use | 15:58 |
stefanha | multiple virtqueues == most virtio devices have a fixed virtqueue layout but this doesn't require multiqueue | 15:59 |
*** sameo has joined #kata-dev | 15:59 | |
stefanha | (i.e. virtio-net had rx/tx/ctrl virtqueues and worked just fine without F_MQ) | 16:00 |
stefanha | IMO all modern device backends should advertise F_MQ but all masters should avoid relying on it where possible | 16:01 |
stefanha | That way you get the best compatibility | 16:01 |
*** gwhaley has quit IRC | 16:05 | |
*** jodh has quit IRC | 16:17 | |
stefanha | sebastien.boeuf: FWIW this is how I see it based on my research yesterday and this morning. It's not some unwritten secret knowledge from the genesis of vhost-user. It could be wrong :-). | 16:20 |
kata-irc-bot | <sebastien.boeuf> stefanha: haha :slightly_smiling_face: | 16:29 |
kata-irc-bot | <sebastien.boeuf> stefanha: thanks for the full explanation, this makes more sense to me, and I understand better the compatibility you're talking about | 16:29 |
kata-irc-bot | <sebastien.boeuf> stefanha: you should look at/comment on https://github.com/rust-vmm/vhost/pull/2 | 16:31 |
stefanha | sebastien.boeuf: Okay, thanks | 16:41 |
stefanha | sebastien.boeuf: Do you know if the rust-vmm vhost-user master implementation makes any attempt to prevent the vhost device backend (aka slave) from blocking the master forever? | 17:06 |
stefanha | sebastien.boeuf: QEMU's master wasn't designed with async in mind and at the protocol level I think there are places where unfortunately it has to be synchronous, | 17:07 |
stefanha | but it seems like a poor design to implement the master in a blocking fashion in places where it doesn't need to block. Especially if that would hang other components of the VMM (management API, etc)... | 17:08 |
kata-irc-bot | <sebastien.boeuf> stefanha: I don't know the answer for that, but I agree an async design would be neat | 17:10 |
kata-irc-bot | <sebastien.boeuf> stefanha: thanks for commenting on vhost crate :slightly_smiling_face: | 17:10 |
stefanha | sebastien.boeuf: trying to work my way through it :) | 17:13 |
*** kgz has quit IRC | 17:16 | |
*** kragniz has joined #kata-dev | 17:19 | |
*** kragniz is now known as kgz | 17:21 | |
kata-irc-bot | <sebastien.boeuf> stefanha: btw, I'm trying to have one kernel tree with both virtio-fs and virtio-pmem patches, but you rely on different kernel versions (virtio-fs is on 5.1 and virtio-pmem on 5.2) | 17:25 |
kata-irc-bot | <sebastien.boeuf> any chance you have a 5.2-rcX tree somewhere for virtio-fs? | 17:25 |
*** igordc has joined #kata-dev | 17:25 | |
kata-irc-bot | <sebastien.boeuf> stefanha: nevermind, I just did the rebase, went pretty smooth, I had only one conflict | 18:05 |
stefanha | sebastien.boeuf: vgoyal on #virtio-fs maintains the kernel tree and can help with rebases in the future. | 18:39 |
*** sameo has quit IRC | 19:15 | |
*** davidgiluk has quit IRC | 19:33 | |
*** pcaruana has quit IRC | 21:16 | |
*** tmhoang has quit IRC | 21:20 | |
*** fuentess has quit IRC | 21:51 | |
*** igordc has quit IRC | 23:02 | |
*** tmhoang has joined #kata-dev | 23:47 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!