qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/2] spapr_drc: use RTAS return codes for met


From: David Gibson
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
User-agent: Mutt/1.5.23 (2014-03-12)

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 <address@hidden>
> Suggested-by: David Gibson <address@hidden>
> Cc: address@hidden
> Cc: David Gibson <address@hidden>
> Cc: Bharata B Rao <address@hidden>
> Signed-off-by: Michael Roth <address@hidden>

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: pgpMhzlLJXsFi.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]