From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, kvm@vger.kernel.org,
Paolo Bonzini <pbonzini@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH v5 4/6] accel/kvm: Use negative KVM type for error propagation
Date: Thu, 10 Aug 2023 11:19:22 +0200 [thread overview]
Message-ID: <509ea8c8-a9bd-ca90-ee07-832039a5bd25@linaro.org> (raw)
In-Reply-To: <20230727073134.134102-5-akihiko.odaki@daynix.com>
On 27/7/23 09:31, Akihiko Odaki wrote:
> On MIPS, kvm_arch_get_default_type() returns a negative value when an
> error occurred so handle the case. Also, let other machines return
> negative values when errors occur and declare returning a negative
> value as the correct way to propagate an error that happened when
> determining KVM type.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
> accel/kvm/kvm-all.c | 5 +++++
> hw/arm/virt.c | 2 +-
> hw/ppc/spapr.c | 2 +-
> 3 files changed, 7 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2023-08-10 9:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 7:31 [PATCH v5 0/6] accel/kvm: Specify default IPA size for arm64 Akihiko Odaki
2023-07-27 7:31 ` [PATCH v5 1/6] kvm: Introduce kvm_arch_get_default_type hook Akihiko Odaki
2023-08-04 17:26 ` Peter Maydell
2023-08-04 17:38 ` Peter Maydell
2023-08-10 9:21 ` Philippe Mathieu-Daudé
2023-07-27 7:31 ` [PATCH v5 2/6] accel/kvm: Specify default IPA size for arm64 Akihiko Odaki
2023-08-04 17:32 ` Peter Maydell
2023-07-27 7:31 ` [PATCH v5 3/6] mips: Report an error when KVM_VM_MIPS_VZ is unavailable Akihiko Odaki
2023-08-04 17:27 ` Peter Maydell
2023-08-10 9:17 ` Philippe Mathieu-Daudé
2023-07-27 7:31 ` [PATCH v5 4/6] accel/kvm: Use negative KVM type for error propagation Akihiko Odaki
2023-08-04 17:28 ` Peter Maydell
2023-08-10 9:19 ` Philippe Mathieu-Daudé [this message]
2023-07-27 7:31 ` [PATCH v5 5/6] accel/kvm: Free as when an error occurred Akihiko Odaki
2023-08-04 17:30 ` Peter Maydell
2023-07-27 7:31 ` [PATCH v5 6/6] accel/kvm: Make kvm_dirty_ring_reaper_init() void Akihiko Odaki
2023-08-04 17:31 ` Peter Maydell
2023-08-10 9:18 ` Philippe Mathieu-Daudé
2023-08-04 17:41 ` [PATCH v5 0/6] accel/kvm: Specify default IPA size for arm64 Peter Maydell
2023-08-07 15:27 ` Peter Maydell
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=509ea8c8-a9bd-ca90-ee07-832039a5bd25@linaro.org \
--to=philmd@linaro.org \
--cc=akihiko.odaki@daynix.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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).