On Tue, Nov 27, 2018, 1:13 AM Paolo Bonzini <pbonzini@redhat.com wrote:
On 27/11/18 06:42, Liguori, Anthony via Kata-hypervisor wrote:
> On a personal note, I absolutely love Rust!  I think the language was made for this purpose.

Yes, it's very interesting.  I hope to introduce Rust in QEMU too, and
I'd love to discuss with you (also based on your QEMU background) what
you think is the best way to hook Rust and C together.

Go the other direction -- use the C as spec, and build up the Rust to meet it.

Don't marry C and Rust unless you have a use case that requires it.


A while ago I looked at https://github.com/crossbeam-rs/crossbeam-epoch,
and it seemed like it could be adapted to become an RCU implementation
and/or a wrapper for QEMU's RCU.  This would be very important since RCU
is used for several central data structures in QEMU (e.g. the memory
regions).

Paolo

_______________________________________________
Kata-hypervisor mailing list
Kata-hypervisor@lists.katacontainers.io
http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-hypervisor