[Qemu-devel] [PATCH v5 0/2] spapr-rtas: add ibm, get-vpd RTAS interface

Maxiwell S. Garcia posted 2 patches 5 years, 1 month ago
Test checkpatch passed
Test asan failed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190311225709.5535-1-maxiwell@linux.ibm.com
Maintainers: David Gibson <david@gibson.dropbear.id.au>
There is a newer version of this series
hw/ppc/spapr.c         |  58 +++++++++++++---------
hw/ppc/spapr_rtas.c    | 110 +++++++++++++++++++++++++++++++++++++++++
include/hw/ppc/spapr.h |  15 +++++-
3 files changed, 160 insertions(+), 23 deletions(-)
[Qemu-devel] [PATCH v5 0/2] spapr-rtas: add ibm, get-vpd RTAS interface
Posted by Maxiwell S. Garcia 5 years, 1 month ago
Here are two patches to add a handler for ibm,get-vpd RTAS calls.
This RTAS exposes host information in case of set QEMU options
'host-serial' and 'host-model' as 'passthrough'.

The patch 1 creates helper functions to get valid 'host-serial'
and 'host-model' parameters, guided by QEMU command line. These
parameters are useful to build the guest device tree and to return
get-vpd RTAS calls. The patch 2 adds the ibm,get-vpd itself.


Maxiwell S. Garcia (2):
  spapr: helper functions to get valid host fields
  spapr-rtas: add ibm,get-vpd RTAS interface

 hw/ppc/spapr.c         |  58 +++++++++++++---------
 hw/ppc/spapr_rtas.c    | 110 +++++++++++++++++++++++++++++++++++++++++
 include/hw/ppc/spapr.h |  15 +++++-
 3 files changed, 160 insertions(+), 23 deletions(-)

-- 
2.20.1


Re: [Qemu-devel] [Qemu-ppc] [PATCH v5 0/2] spapr-rtas: add ibm, get-vpd RTAS interface
Posted by Greg Kurz 5 years, 1 month ago
On Mon, 11 Mar 2019 19:57:07 -0300
"Maxiwell S. Garcia" <maxiwell@linux.ibm.com> wrote:

> Here are two patches to add a handler for ibm,get-vpd RTAS calls.
> This RTAS exposes host information in case of set QEMU options
> 'host-serial' and 'host-model' as 'passthrough'.
> 
> The patch 1 creates helper functions to get valid 'host-serial'
> and 'host-model' parameters, guided by QEMU command line. These
> parameters are useful to build the guest device tree and to return
> get-vpd RTAS calls. The patch 2 adds the ibm,get-vpd itself.
> 
> 
> Maxiwell S. Garcia (2):
>   spapr: helper functions to get valid host fields
>   spapr-rtas: add ibm,get-vpd RTAS interface
> 
>  hw/ppc/spapr.c         |  58 +++++++++++++---------
>  hw/ppc/spapr_rtas.c    | 110 +++++++++++++++++++++++++++++++++++++++++
>  include/hw/ppc/spapr.h |  15 +++++-
>  3 files changed, 160 insertions(+), 23 deletions(-)
> 

Hi Maxiwell,

You should probably respin this series because of the following patch,
already in ppc-for-4.0 and in David's latest PR.

https://patchwork.ozlabs.org/patch/1053985/

Cheers,

--
Greg