From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLNvD-0006qa-Ha for qemu-devel@nongnu.org; Mon, 18 Jan 2016 23:29:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLNvA-0002Ji-CC for qemu-devel@nongnu.org; Mon, 18 Jan 2016 23:29:35 -0500 From: David Gibson Date: Tue, 19 Jan 2016 15:30:21 +1100 Message-Id: <1453177824-27408-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCHv2 0/3] Reduce abuse of rtas_st / rtas_ld List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aik@ozlabs.ru, mdroth@linux.vnet.ibm.com Cc: lvivier@redhat.com, thuth@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson The rtas_ld() and rtas_st() helpers were designed for loading RTAS arguments and storing RTAS returns which are in a simple, common array format. However, a number of RTAS routines - and even non-RTAS routines - have started using these for accessing other memory buffers, where the normal qemu memory access routines would be more appropriate. This series removes some of these abuses of the RTAS accessors. Changes in v2: * Reworked 1/3 to use a local helper instead of open-coding * Assorted small cleanups suggesed by Alexey Kardashevskiy David Gibson (3): spapr: Small fixes to rtas_ibm_get_system_parameter, remove rtas_st_buffer spapr: Remove rtas_st_buffer_direct() spapr: Remove abuse of rtas_ld() in h_client_architecture_support hw/ppc/spapr_hcall.c | 14 +++++++------- hw/ppc/spapr_rtas.c | 39 ++++++++++++++++++++++++++++----------- include/hw/ppc/spapr.h | 36 +++++++++--------------------------- 3 files changed, 44 insertions(+), 45 deletions(-) -- 2.5.0