[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v3 13/32] rust: use vendored-sources
From: |
Ian Jackson |
Subject: |
Re: [RFC v3 13/32] rust: use vendored-sources |
Date: |
Wed, 8 Sep 2021 17:50:59 +0100 |
Marc-André Lureau writes ("Re: [RFC v3 13/32] rust: use vendored-sources"):
> Yes, this is the shim to provide a C ABI QMP handler from Rust. This is where
> all the FFI<->Rust conversion takes place.
>
> The "safe" code is qga/qmp/vcpus.rs. However, there is no
> documentation there, since it's not meant to be the public
> interface. It's documented with the QAPI schema.
Right, thanks. That does look like a PoC of a Rust API. I wanted the
rustdoc output because I find it provides a very uniform and readable
presentation even of an API with no doc comments.
I think maybe a thing I am missing is how you expect this to be used.
Which parts of the system are going to be in Rust. etc.
And that would help explain what "public" means.
I think the answer is probably in this example:
20210907121943.3498701-1-marcandre.lureau@redhat.com/20210907121943.3498701-30-marcandre.lureau@redhat.com/">https://patchew.org/QEMU/20210907121943.3498701-1-marcandre.lureau@redhat.com/20210907121943.3498701-30-marcandre.lureau@redhat.com/
but although my C and Rust are both fine, I don't understand qemu well
enough to make sense of it.
... wait, qga is "qemu guest agent" ?
I think I am sort of seeing this use case now. But presuambly there
are other use cases for this QMP/QAPI type bridge stuff.
Sorry to be asking such stupid questions.
Thanks,
Ian.
- [RFC v3 13/32] rust: use vendored-sources, (continued)
- [RFC v3 13/32] rust: use vendored-sources, marcandre . lureau, 2021/09/07
- Re: [RFC v3 13/32] rust: use vendored-sources, Ian Jackson, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Marc-André Lureau, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Ian Jackson, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Marc-André Lureau, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Peter Maydell, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Ian Jackson, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Marc-André Lureau, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Ian Jackson, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources, Marc-André Lureau, 2021/09/08
- Re: [RFC v3 13/32] rust: use vendored-sources,
Ian Jackson <=
- Re: [RFC v3 13/32] rust: use vendored-sources, Marc-André Lureau, 2021/09/08
Re: [RFC v3 13/32] rust: use vendored-sources, Peter Maydell, 2021/09/09
Re: [RFC v3 13/32] rust: use vendored-sources, Paolo Bonzini, 2021/09/13
Re: [RFC v3 13/32] rust: use vendored-sources, Daniel P . Berrangé, 2021/09/09
Re: [RFC v3 13/32] rust: use vendored-sources, Ian Jackson, 2021/09/09
[RFC v3 14/32] scripts/qapi: add QAPISchemaIfCond.rsgen(), marcandre . lureau, 2021/09/07