-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crate Addition Request: vhost-user-master #133
Comments
Does it make sense for this to be in the same workspace with vhost-user-backend? |
I am fine with it, and it may be better to keep related things together. While at it, maybe we could have had vhost, vhost-user-backend and vhost-user-master together in the same workspace. |
Sounds good to me! We would need to create a workspace, and move the existing crates there, and then add this one as a crate as well. @slp @stefano-garzarella @jiangliu @sboeuf @rbradford do you have any concerns with this? |
The crate name should be changed to something like |
The code I am carrying right now is copied from cloud hypervisor itself, almost unmodified (very small changes made in a separate patch). |
Great. I will wait for it. |
Could you take that work as part of upstreaming this? We don't have time to invest in converting the vhost based crates in a workspace right now. |
Yes I understand and I know it would be easy to rely on it at first, but I'm worried that with time the code will change and that it might be complicated to apply patches and fixes. The point is, I'm not sure there's added value in having this code into a crate and I'd rather keep it inside Cloud Hypervisor. But it's totally fine if you want to create a new crate from this code if you think this is a real added value for your project. |
Yep, I agree with the re-naming. Following the updated spec where we now use |
So far @vireshk only needed minimal changes on top of the frontend code from Cloud Hypervisor. But with moving towards "truly standalone daemons", we are facing the requirement to do larger refactoring in order to align the code with the proposed vhost-user spec additions. This brings up the question of how to approach upstreaming this again. So... How to do it? Just copying the code from Cloud Hypervisor while cloud-hypervisor continues to use their own version sounds like the worst option for everyone to me... We would copy a lot of code that we would need to spend time understanding, improving and documenting. But if Cloud Hypervisor does not switch to it, we would have to put in the effort without having an (immediate) user for this. How would we test something like migration if we cannot send patches to Cloud Hypervisor in cases where API changes may be required? To me, there only seem to be two (equally bad) solutions to this: We would take a battle-tested solution and start hacking on it without being able to test it anymore. Or we remove all the features that we have no immediate user for and then have to duplicate the effort to add all those features back once we start needing them. In both cases we would fragment the ecosystem and duplicate effort. @sboeuf: I understand that you are afraid of churn in the code and that it may require your to jump through more hoops in order to get changes landed. But wouldn't you also be interested in support for new additions to the spec(s) and more eyes on the code from a wider community? I think that if we start off with the current bits from Cloud Hypervisor and then collaborate on slowly and carefully massaging in some cleanups we are in a much better shape. Cloud Hypervisor can benefit from new features and we can test the more advanced features that exist there. So we would only need to do the minimal changes required to turn this into a shareable lib (if any required) and could then continue the development in a usual upstream manner. Happy to hear thoughts on this! |
That sounds like the proper approach to me! |
Glad to hear that! :) That would mean:
Does this sound like a plan to the vhost maintainers (@eryugey @jiangliu @sboeuf @slp @stefano-garzarella)? I am happy to work on this after I am back from my 2 week vacation, but if anyone else wants to work on this: Feel free :). |
I did start that work earlier (rust-vmm/vhost#122), but the main problem I see here is the missing tests. Are we okay to merge this stuff to vhost workspace without any tests in place ? @sboeuf ? |
To keep things simple, I would just merge it as it is (and adjust the coverage accordingly) and make test writing a priority after we have a risk-free release that Cloud Hypervisor can switch over to. But I got no strong feelings about this :). |
I think it would be good to have a decision on this before one of us try to make the effort. @roypat @jiangliu : We are trying to move the Are you guys okay to make this migration ? |
We can of course write tests for the tests sake and just treat coverage like a number that we need to reach, but I doubt it will make the crate significantly more stable (especially when we want to reduce the risk for Cloud Hypervisor to switch to this). |
@Ablu About test coverage and documentation, since it is a separate crate in vhost workspace, I think we can do things incrementally. It would be nice to split the coverage for each individual crate, but I don't know if that's possible now. |
How about using a staging area. I've just prosed some guidelines for discussion at: #153 |
@stsquad Hm... This depends on whether we want to make public releases of things under |
@stsquad brough up this (#153 (comment)):
My assumption was that we do an initial release with as little changes as possible. This would allow cloud-hypervisor to switch over and the further development would then happen on the new crate. We would need the cloud-hypervisor code base for testing the features that currently exist. So, it would be great to have cloud-hypervisor switch over. Then the development can happen as a joint effort. See also #133 (comment). |
Crate Name
vhost-user-master
Short Description
Crate to manage vhost-user-master side of the protocol.
Why is this crate relevant to the rust-vmm project?
I already host a crate for this, but need space in rust-vmm now.
https://github.com/vireshk/vhost-user-master
The code here is mostly copied from cloud-hypervisor and so is relevant for rust-vmm for sure.
We, at Linaro's Project Stratos, need it for Xen's vhost master side implementation.
The text was updated successfully, but these errors were encountered: