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

Maxiwell S. Garcia posted 2 patches 9 weeks ago
Test asan passed
Test docker-clang@ubuntu passed
Test docker-mingw@fedora passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190314162949.29428-1-maxiwell@linux.ibm.com
Maintainers: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c         | 48 ++++++++++----------
hw/ppc/spapr_rtas.c    | 99 ++++++++++++++++++++++++++++++++++++++++++
include/hw/ppc/spapr.h | 11 ++++-
3 files changed, 135 insertions(+), 23 deletions(-)

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

Posted by Maxiwell S. Garcia 9 weeks 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.

Update v6:
* Use macro to generate spapr_get_valid_host_* functions
* Add rtas_get_vpd_fields in spapr machine state

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

 hw/ppc/spapr.c         | 48 ++++++++++----------
 hw/ppc/spapr_rtas.c    | 99 ++++++++++++++++++++++++++++++++++++++++++
 include/hw/ppc/spapr.h | 11 ++++-
 3 files changed, 135 insertions(+), 23 deletions(-)

-- 
2.20.1