From: David Gibson <david@gibson.dropbear.id.au>
To: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
Bharata B Rao <bharata@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v3 1/2] spapr_drc: use RTAS return codes for methods called by RTAS
Date: Fri, 11 Sep 2015 10:39:49 +1000 [thread overview]
Message-ID: <20150911003949.GE11781@voom> (raw)
In-Reply-To: <1441919463-24963-1-git-send-email-mdroth@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]
On Thu, Sep 10, 2015 at 04:11:02PM -0500, Michael Roth wrote:
> Certain methods in sPAPRDRConnector objects are only ever called by
> RTAS and in many cases are responsible for the logic that determines
> the RTAS return codes.
>
> Rather than having a level of indirection requiring RTAS code to
> re-interpret return values from such methods to determine the
> appropriate return code, just pass them through directly.
>
> This requires changing method return types to uint32_t to match the
> type of values currently passed to RTAS helpers.
>
> In the case of read accesses like drc->entity_sense() where we weren't
> previously reporting any errors, just the read value, we modify the
> function to return RTAS return code, and pass the read value back via
> reference.
>
> Suggested-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
> Suggested-by: David Gibson <david@gibson.dropbear.id.au>
> Cc: qemu-ppc@nongnu.org
> Cc: David Gibson <david@gibson.dropbear.id.au>
> Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Series applied to spapr-dev, thanks.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-09-11 0:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 21:11 [Qemu-devel] [PATCH v3 1/2] spapr_drc: use RTAS return codes for methods called by RTAS Michael Roth
2015-09-10 21:11 ` [Qemu-devel] [PATCH v3 2/2] spapr_drc: don't allow 'empty' DRCs to be unisolated or allocated Michael Roth
2015-09-11 0:39 ` David Gibson [this message]
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=20150911003949.GE11781@voom \
--to=david@gibson.dropbear.id.au \
--cc=bharata@linux.vnet.ibm.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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).