<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018, 1:13 AM Paolo Bonzini <<a href="mailto:pbonzini@redhat.com">pbonzini@redhat.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 27/11/18 06:42, Liguori, Anthony via Kata-hypervisor wrote:<br>
> On a personal note, I absolutely love Rust!  I think the language was made for this purpose.<br>
<br>
Yes, it's very interesting.  I hope to introduce Rust in QEMU too, and<br>
I'd love to discuss with you (also based on your QEMU background) what<br>
you think is the best way to hook Rust and C together.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Go the other direction -- use the C as spec, and build up the Rust to meet it.</div><div dir="auto"><br></div><div dir="auto">Don't marry C and Rust unless you have a use case that requires it.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
A while ago I looked at <a href="https://github.com/crossbeam-rs/crossbeam-epoch" rel="noreferrer noreferrer" target="_blank">https://github.com/crossbeam-rs/crossbeam-epoch</a>,<br>
and it seemed like it could be adapted to become an RCU implementation<br>
and/or a wrapper for QEMU's RCU.  This would be very important since RCU<br>
is used for several central data structures in QEMU (e.g. the memory<br>
regions).<br>
<br>
Paolo<br>
<br>
_______________________________________________<br>
Kata-hypervisor mailing list<br>
<a href="mailto:Kata-hypervisor@lists.katacontainers.io" target="_blank" rel="noreferrer">Kata-hypervisor@lists.katacontainers.io</a><br>
<a href="http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-hypervisor" rel="noreferrer noreferrer" target="_blank">http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-hypervisor</a><br>
</blockquote></div></div></div>