From: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
To: qemu-devel@nongnu.org
Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com,
bmeng@tinylab.org, liwei1518@gmail.com,
zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com,
ajones@ventanamicro.com
Subject: Re: [PATCH 0/4] target/riscv/kvm: add riscv-aia bool props
Date: Mon, 28 Oct 2024 15:00:22 -0300 [thread overview]
Message-ID: <f6d26471-9137-498f-b295-2bd6fad7241f@ventanamicro.com> (raw)
In-Reply-To: <20240924124407.766495-1-dbarboza@ventanamicro.com>
Hi,
I had a change of heart w.r.t this work. I still believe that the boolean properties
are better to deal with since we don't have to deal with string parsing, and that we
should avoid creating new string props in the future.
But as far as the user API goes it doesn't matter that much. Having to do
-accel kvm,riscv-aia=emul
or
-accel kvm,riscv-aia-emul=on
is basically the same thing. Deprecate properties always creates some form of hassle
for existing scripts and whatnot and we should avoid it.
String properties aren't that great to report to APIs though, so what we can do is to
create internal bools to track the string value and then use it for QMP.
Long story short, I'll re-send this series with only patches 1 and 2. Thanks,
Daniel
On 9/24/24 9:44 AM, Daniel Henrique Barboza wrote:
> Hi,
>
> Boolean properties are easier to deal with in the protocol side (e.g.
> QMP) since they don't require string parsing. We should always use them
> when applicable.
>
> This series adds 3 new riscv-aia bool options for the KVM accel driver,
> each one representing the possible values (emul, hwaccel and auto).
> We're also deprecating the existing 'riscv-aia' string option.
>
> The idea is to use the new properties to enable AIA support in libvirt.
>
> Patches based on riscv-to-apply.next.
>
> Daniel Henrique Barboza (4):
> target/riscv/kvm: set 'aia_mode' to default in error path
> target/riscv/kvm: clarify how 'riscv-aia' default works
> target/riscv/kvm: add kvm-aia bools props
> target/riscv/kvm: deprecate riscv-aia string prop
>
> docs/about/deprecated.rst | 8 +++
> target/riscv/kvm/kvm-cpu.c | 100 +++++++++++++++++++++++++++++++++----
> 2 files changed, 98 insertions(+), 10 deletions(-)
>
next prev parent reply other threads:[~2024-10-28 18:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-24 12:44 [PATCH 0/4] target/riscv/kvm: add riscv-aia bool props Daniel Henrique Barboza
2024-09-24 12:44 ` [PATCH 1/4] target/riscv/kvm: set 'aia_mode' to default in error path Daniel Henrique Barboza
2024-10-11 1:42 ` Alistair Francis
2024-09-24 12:44 ` [PATCH 2/4] target/riscv/kvm: clarify how 'riscv-aia' default works Daniel Henrique Barboza
2024-10-11 1:54 ` Alistair Francis
2024-09-24 12:44 ` [PATCH 3/4] target/riscv/kvm: add kvm-aia bools props Daniel Henrique Barboza
2024-10-11 1:57 ` Alistair Francis
2024-10-11 11:19 ` Daniel Henrique Barboza
2024-10-30 1:40 ` Alistair Francis
2024-10-31 13:50 ` Andrew Jones
2024-09-24 12:44 ` [PATCH 4/4] target/riscv/kvm: deprecate riscv-aia string prop Daniel Henrique Barboza
2024-10-28 18:00 ` Daniel Henrique Barboza [this message]
2024-10-30 1:44 ` [PATCH 0/4] target/riscv/kvm: add riscv-aia bool props Alistair Francis
2024-10-31 14:06 ` Andrew Jones
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=f6d26471-9137-498f-b295-2bd6fad7241f@ventanamicro.com \
--to=dbarboza@ventanamicro.com \
--cc=ajones@ventanamicro.com \
--cc=alistair.francis@wdc.com \
--cc=bmeng@tinylab.org \
--cc=liwei1518@gmail.com \
--cc=palmer@rivosinc.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=zhiwei_liu@linux.alibaba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.