qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
To: "Philippe Mathieu-Daudé " <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Daniel P. Berrangé " <berrange@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>, "John Snow" <jsnow@redhat.com>,
	"Cleber Rosa" <crosa@redhat.com>,
	"Beraldo Leal" <bleal@redhat.com>,
	"Alex Benné e" <alex.bennee@linaro.org>,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"ARM TCG CPUs" <qemu-arm@nongnu.org>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Junjie Mao" <junjie.mao@intel.com>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Gustavo Romero" <gustavo.romero@linaro.org>,
	rowan.hart@intel.com, "Mads Ynddal" <mads@ynddal.dk>,
	"Markus Armbruster" <armbru@redhat.com>
Subject: Re: [PATCH v7 6/7] rust: add crate to expose bindings and interfaces
Date: Thu, 15 Aug 2024 17:50:35 +0300	[thread overview]
Message-ID: <i9lat.di1u9m6k136b@linaro.org> (raw)
In-Reply-To: <9f6c96fd-bb0c-4014-bba1-70986f4bb384@linaro.org>

On Thu, 15 Aug 2024 17:01, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>Hi Manos,
>
>On 15/8/24 13:42, Manos Pitsidianakis wrote:
>> Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and
>> provides some declaration macros for symbols visible to the rest of
>> QEMU.
>> 
>> Co-authored-by: Junjie Mao <junjie.mao@intel.com>
>> Co-authored-by: Paolo Bonzini <pbonzini@redhat.com>
>> Signed-off-by: Junjie Mao <junjie.mao@intel.com>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
>> ---
>>   MAINTAINERS                       |   6 ++
>>   rust/meson.build                  |   9 +++
>>   rust/qemu-api/.gitignore          |   2 +
>>   rust/qemu-api/Cargo.lock          |   7 +++
>>   rust/qemu-api/Cargo.toml          |  23 +++++++
>>   rust/qemu-api/README.md           |  17 +++++
>>   rust/qemu-api/build.rs            |  13 ++++
>>   rust/qemu-api/meson.build         |  17 +++++
>>   rust/qemu-api/rustfmt.toml        |   1 +
>>   rust/qemu-api/src/bindings.rs     |   7 +++
>>   rust/qemu-api/src/definitions.rs  | 108 ++++++++++++++++++++++++++++++++
>>   rust/qemu-api/src/device_class.rs | 128 ++++++++++++++++++++++++++++++++++++++
>>   rust/qemu-api/src/lib.rs          | 100 +++++++++++++++++++++++++++++
>>   rust/qemu-api/src/tests.rs        |  48 ++++++++++++++
>>   rust/rustfmt.toml                 |   7 +++
>>   15 files changed, 493 insertions(+)
>> 
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 5464cb2b03..56a88048d2 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -3348,6 +3348,12 @@ F: hw/core/register.c
>>   F: include/hw/register.h
>>   F: include/hw/registerfields.h
>>   
>> +Rust
>> +M: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
>> +S: Maintained
>> +F: rust/qemu-api
>> +F: rust/rustfmt.toml
>
>Few lines in docs/devel/rust.rst would be welcomed,

In another patch. There's so much to do!

>
>> diff --git a/rust/qemu-api/Cargo.toml b/rust/qemu-api/Cargo.toml
>> new file mode 100644
>> index 0000000000..51260cbe42
>> --- /dev/null
>> +++ b/rust/qemu-api/Cargo.toml
>> @@ -0,0 +1,23 @@
>> +[package]
>> +name = "qemu_api"
>> +version = "0.1.0"
>> +edition = "2021"
>
>> +license = "GPL-2.0 OR GPL-3.0-or-later"
>
>in particular explaining the license choice.
>
>Should all rust code use it?

It's an OR, so all rust code can use GPL-2.0 like the rest of QEMU.


  reply	other threads:[~2024-08-15 14:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-15 11:42 [PATCH v7 0/7] Add Rust build support, ARM PL011 device impl Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 1/7] Require meson version 1.5.0 Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 2/7] build-sys: Add rust feature option Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 3/7] configure, meson: detect Rust toolchain Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 4/7] rust: add bindgen step as a meson dependency Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 5/7] .gitattributes: add Rust diff and merge attributes Manos Pitsidianakis
2024-08-15 11:42 ` [PATCH v7 6/7] rust: add crate to expose bindings and interfaces Manos Pitsidianakis
2024-08-15 14:01   ` Philippe Mathieu-Daudé
2024-08-15 14:50     ` Manos Pitsidianakis [this message]
2024-08-15 15:06     ` Daniel P. Berrangé
2024-08-16  8:34       ` Philippe Mathieu-Daudé
2024-08-21  7:24         ` Manos Pitsidianakis
2024-08-16  8:26   ` Junjie Mao
2024-08-15 11:42 ` [PATCH v7 7/7] rust: add PL011 device model Manos Pitsidianakis
2024-08-15 17:10 ` [PATCH v7 0/7] Add Rust build support, ARM PL011 device impl Peter Maydell
2024-08-16  8:06 ` Junjie Mao
2024-08-16  8:17   ` Manos Pitsidianakis
2024-08-19  4:09     ` Junjie Mao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=i9lat.di1u9m6k136b@linaro.org \
    --to=manos.pitsidianakis@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=bleal@redhat.com \
    --cc=crosa@redhat.com \
    --cc=gustavo.romero@linaro.org \
    --cc=jsnow@redhat.com \
    --cc=junjie.mao@intel.com \
    --cc=mads@ynddal.dk \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=rowan.hart@intel.com \
    --cc=stefanha@redhat.com \
    --cc=thuth@redhat.com \
    --cc=wainersm@redhat.com \
    --cc=zhao1.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).