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>,
	"Daniel P. Berrangé " <berrange@redhat.com>
Cc: "Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>,
	qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@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: Wed, 21 Aug 2024 10:24:05 +0300	[thread overview]
Message-ID: <ik4kw.0ewrm1y9xy4w@linaro.org> (raw)
In-Reply-To: <6f009629-fbad-4868-bc12-21a18de379b5@linaro.org>

On Fri, 16 Aug 2024 11:34, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>On 15/8/24 17:06, Daniel P. Berrangé wrote:
>> On Thu, Aug 15, 2024 at 04:01:17PM +0200, Philippe Mathieu-Daudé 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/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.
>> 
>> Semantically this is an overly verbose way of saying
>> "GPL-2.0-or-later", so just simplify this.
>
>Indeed. Manos, please use GPL-2.0-or-later to keep it simple.
>
>> 
>>> Should all rust code use it?
>> 
>> GPL-2.0-or-later is what we expect all new QEMU contributions to be
>> licensed as, regardless of language[1], so this looks desirable.
>
>Agreed.

Thanks, will replace it.

Manos


  reply	other threads:[~2024-08-21  7:25 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
2024-08-15 15:06     ` Daniel P. Berrangé
2024-08-16  8:34       ` Philippe Mathieu-Daudé
2024-08-21  7:24         ` Manos Pitsidianakis [this message]
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=ik4kw.0ewrm1y9xy4w@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).