[Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302

David Gibson posted 24 patches 7 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180302060350.24330-1-david@gibson.dropbear.id.au
Test checkpatch failed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test docker-quick@centos6 passed
Test ppcbe passed
Test ppcle passed
Test s390x passed
Makefile                           |   2 +-
default-configs/ppc-softmmu.mak    |   2 +
default-configs/ppcemb-softmmu.mak |   1 +
hw/intc/heathrow_pic.c             | 166 +++++-----
hw/intc/openpic.c                  | 157 ----------
hw/intc/openpic_kvm.c              |   1 +
hw/intc/trace-events               |   5 +
hw/misc/macio/macio.c              | 150 +++++----
hw/ppc/Makefile.objs               |   3 +-
hw/ppc/e500.c                      |   8 +
hw/ppc/mac.h                       |  10 +-
hw/ppc/mac_newworld.c              |  56 ++--
hw/ppc/mac_oldworld.c              |  50 ++-
hw/ppc/ppc440_pcix.c               | 528 ++++++++++++++++++++++++++++++++
hw/ppc/sam460ex.c                  | 603 +++++++++++++++++++++++++++++++++++++
hw/ppc/spapr.c                     | 176 ++++++-----
hw/ppc/spapr_caps.c                | 132 +++++---
hw/ppc/spapr_hcall.c               |   5 +-
hw/ppc/trace-events                |   8 +
include/hw/intc/heathrow_pic.h     |  49 +++
include/hw/misc/macio/macio.h      |  79 +++++
include/hw/ppc/openpic.h           | 160 +++++++++-
include/hw/ppc/openpic_kvm.h       |   7 +
include/hw/ppc/spapr.h             |   5 +-
pc-bios/canyonlands.dtb            | Bin 0 -> 9779 bytes
pc-bios/canyonlands.dts            | 566 ++++++++++++++++++++++++++++++++++
target/ppc/kvm-stub.c              |   2 +-
target/ppc/kvm.c                   |   6 +-
tests/qom-test.c                   |   7 +
tests/test-hmp.c                   |   3 +-
30 files changed, 2423 insertions(+), 524 deletions(-)
create mode 100644 hw/ppc/ppc440_pcix.c
create mode 100644 hw/ppc/sam460ex.c
create mode 100644 include/hw/intc/heathrow_pic.h
create mode 100644 include/hw/misc/macio/macio.h
create mode 100644 include/hw/ppc/openpic_kvm.h
create mode 100644 pc-bios/canyonlands.dtb
create mode 100644 pc-bios/canyonlands.dts
[Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by David Gibson 7 years, 11 months ago
The following changes since commit 0dc8ae5e8e693737dfe65ba02d0c6eccb58a9c67:

  Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180301-v2' into staging (2018-03-01 17:08:16 +0000)

are available in the Git repository at:

  git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180302

for you to fetch changes up to 57ae75b2e401f1d04f37a8cd26212eb3134c51a6:

  hw/ppc/spapr,e500: Use new property "stdout-path" for boot console (2018-03-02 12:24:44 +1100)

----------------------------------------------------------------
ppc patch queue 2018-03-02

Here's the next batch of accumulated spapr and ppc patches.
Highlights are:
    * New Sam460ex machine type
    * Yet more fixes related to vcpu id allocation for spapr
    * Numerous macio cleanupsr
    * Some enhancements to the Spectre/Meltdown fixes for pseries,
      allowing use of a better mitigation for indirect branch based
      exploits
    * New pseries machine types with Spectre/Meltdown mitigations
      enabled (stop gap until libvirt and management understands the
      machine options)
    * A handful of other fixes

----------------------------------------------------------------
BALATON Zoltan (2):
      ppc440: Add emulation of plb-pcix controller found in some 440 SoCs
      ppc: Add aCube Sam460ex board

Greg Kurz (3):
      spapr: fix missing CPU core nodes in DT when running with TCG
      spapr: register dummy ICPs later
      spapr: harden code that depends on VSMT

Mark Cave-Ayland (12):
      macio: embed DBDMA device directly within macio
      macio: move ESCC device within the macio device
      heathrow: QOMify heathrow PIC
      heathrow: convert to trace-events
      heathrow: change heathrow_pic_init() to return the heathrow device
      macio: move macio related structures and defines into separate macio.h file
      mac_oldworld: use object link to pass heathrow PIC object to macio
      openpic: move KVM-specific declarations into separate openpic_kvm.h file
      openpic: move OpenPIC state and related definitions to openpic.h
      mac_newworld: use object link to pass OpenPIC object to macio
      macio: move setting of CUDA timebase frequency to macio_common_realize()
      macio: remove macio_init() function

Nikunj A Dadhania (1):
      hw/ppc/spapr,e500: Use new property "stdout-path" for boot console

Suraj Jitindar Singh (6):
      target/ppc: Check mask when setting cap_ppc_safe_indirect_branch
      ppc/spapr-caps: Add support for custom spapr_capabilities
      ppc/spapr-caps: Convert cap-cfpc to custom spapr-cap
      ppc/spapr-caps: Convert cap-sbbc to custom spapr-cap
      ppc/spapr-caps: Convert cap-ibs to custom spapr-cap
      ppc/spapr-caps: Define the pseries-2.12-sxxm machine type

 Makefile                           |   2 +-
 default-configs/ppc-softmmu.mak    |   2 +
 default-configs/ppcemb-softmmu.mak |   1 +
 hw/intc/heathrow_pic.c             | 166 +++++-----
 hw/intc/openpic.c                  | 157 ----------
 hw/intc/openpic_kvm.c              |   1 +
 hw/intc/trace-events               |   5 +
 hw/misc/macio/macio.c              | 150 +++++----
 hw/ppc/Makefile.objs               |   3 +-
 hw/ppc/e500.c                      |   8 +
 hw/ppc/mac.h                       |  10 +-
 hw/ppc/mac_newworld.c              |  56 ++--
 hw/ppc/mac_oldworld.c              |  50 ++-
 hw/ppc/ppc440_pcix.c               | 528 ++++++++++++++++++++++++++++++++
 hw/ppc/sam460ex.c                  | 603 +++++++++++++++++++++++++++++++++++++
 hw/ppc/spapr.c                     | 176 ++++++-----
 hw/ppc/spapr_caps.c                | 132 +++++---
 hw/ppc/spapr_hcall.c               |   5 +-
 hw/ppc/trace-events                |   8 +
 include/hw/intc/heathrow_pic.h     |  49 +++
 include/hw/misc/macio/macio.h      |  79 +++++
 include/hw/ppc/openpic.h           | 160 +++++++++-
 include/hw/ppc/openpic_kvm.h       |   7 +
 include/hw/ppc/spapr.h             |   5 +-
 pc-bios/canyonlands.dtb            | Bin 0 -> 9779 bytes
 pc-bios/canyonlands.dts            | 566 ++++++++++++++++++++++++++++++++++
 target/ppc/kvm-stub.c              |   2 +-
 target/ppc/kvm.c                   |   6 +-
 tests/qom-test.c                   |   7 +
 tests/test-hmp.c                   |   3 +-
 30 files changed, 2423 insertions(+), 524 deletions(-)
 create mode 100644 hw/ppc/ppc440_pcix.c
 create mode 100644 hw/ppc/sam460ex.c
 create mode 100644 include/hw/intc/heathrow_pic.h
 create mode 100644 include/hw/misc/macio/macio.h
 create mode 100644 include/hw/ppc/openpic_kvm.h
 create mode 100644 pc-bios/canyonlands.dtb
 create mode 100644 pc-bios/canyonlands.dts

Re: [Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by no-reply@patchew.org 7 years, 11 months ago
Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20180302060350.24330-1-david@gibson.dropbear.id.au
Subject: [Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
    echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 * [new tag]               patchew/20180302060350.24330-1-david@gibson.dropbear.id.au -> patchew/20180302060350.24330-1-david@gibson.dropbear.id.au
Switched to a new branch 'test'
095d21f5da hw/ppc/spapr, e500: Use new property "stdout-path" for boot console
7d6a1dd15c ppc/spapr-caps: Define the pseries-2.12-sxxm machine type
999bec564d ppc/spapr-caps: Convert cap-ibs to custom spapr-cap
1d33cf761b ppc/spapr-caps: Convert cap-sbbc to custom spapr-cap
01713a39fa ppc/spapr-caps: Convert cap-cfpc to custom spapr-cap
72f591c292 ppc/spapr-caps: Add support for custom spapr_capabilities
049adc46e2 target/ppc: Check mask when setting cap_ppc_safe_indirect_branch
090171d0bf macio: remove macio_init() function
289bcaf956 macio: move setting of CUDA timebase frequency to macio_common_realize()
e64f8792ca mac_newworld: use object link to pass OpenPIC object to macio
e5cb278a20 openpic: move OpenPIC state and related definitions to openpic.h
900bb47ec1 openpic: move KVM-specific declarations into separate openpic_kvm.h file
ff67f82901 mac_oldworld: use object link to pass heathrow PIC object to macio
d7aafa6fbd macio: move macio related structures and defines into separate macio.h file
3385201518 heathrow: change heathrow_pic_init() to return the heathrow device
22792de824 heathrow: convert to trace-events
09a5429e27 heathrow: QOMify heathrow PIC
b98172e42c macio: move ESCC device within the macio device
6ed5797e86 macio: embed DBDMA device directly within macio
60140b2909 spapr: harden code that depends on VSMT
a39d4a9d54 spapr: register dummy ICPs later
a11e85de36 ppc: Add aCube Sam460ex board
474e1f78a0 ppc440: Add emulation of plb-pcix controller found in some 440 SoCs
a8181ab61c spapr: fix missing CPU core nodes in DT when running with TCG

=== OUTPUT BEGIN ===
Checking PATCH 1/24: spapr: fix missing CPU core nodes in DT when running with TCG...
Checking PATCH 2/24: ppc440: Add emulation of plb-pcix controller found in some 440 SoCs...
Checking PATCH 3/24: ppc: Add aCube Sam460ex board...
Checking PATCH 4/24: spapr: register dummy ICPs later...
Checking PATCH 5/24: spapr: harden code that depends on VSMT...
Checking PATCH 6/24: macio: embed DBDMA device directly within macio...
Checking PATCH 7/24: macio: move ESCC device within the macio device...
Checking PATCH 8/24: heathrow: QOMify heathrow PIC...
Checking PATCH 9/24: heathrow: convert to trace-events...
Checking PATCH 10/24: heathrow: change heathrow_pic_init() to return the heathrow device...
Checking PATCH 11/24: macio: move macio related structures and defines into separate macio.h file...
Checking PATCH 12/24: mac_oldworld: use object link to pass heathrow PIC object to macio...
Checking PATCH 13/24: openpic: move KVM-specific declarations into separate openpic_kvm.h file...
Checking PATCH 14/24: openpic: move OpenPIC state and related definitions to openpic.h...
ERROR: "foo * bar" should be "foo *bar"
#250: FILE: include/hw/ppc/openpic.h:57:
+#define RAVEN_DBL_IRQ    (RAVEN_IPI_IRQ + (RAVEN_MAX_CPU * RAVEN_MAX_IPI))

total: 1 errors, 0 warnings, 353 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 15/24: mac_newworld: use object link to pass OpenPIC object to macio...
Checking PATCH 16/24: macio: move setting of CUDA timebase frequency to macio_common_realize()...
Checking PATCH 17/24: macio: remove macio_init() function...
Checking PATCH 18/24: target/ppc: Check mask when setting cap_ppc_safe_indirect_branch...
Checking PATCH 19/24: ppc/spapr-caps: Add support for custom spapr_capabilities...
Checking PATCH 20/24: ppc/spapr-caps: Convert cap-cfpc to custom spapr-cap...
ERROR: line over 90 characters
#50: FILE: hw/ppc/spapr_caps.c:254:
+    .help = "broken - no protection, workaround - workaround available, fixed - fixed in hardware",

ERROR: line over 90 characters
#64: FILE: hw/ppc/spapr_caps.c:266:
+        error_setg(errp, "Requested safe cache capability level not supported by kvm, try cap-cfpc=%s", cap_cfpc_possible.vals[kvm_val]);

total: 2 errors, 0 warnings, 58 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 21/24: ppc/spapr-caps: Convert cap-sbbc to custom spapr-cap...
ERROR: line over 90 characters
#26: FILE: hw/ppc/spapr_caps.c:273:
+    .help = "broken - no protection, workaround - workaround available, fixed - fixed in hardware",

ERROR: line over 90 characters
#40: FILE: hw/ppc/spapr_caps.c:285:
+        error_setg(errp, "Requested safe bounds check capability level not supported by kvm, try cap-sbbc=%s", cap_sbbc_possible.vals[kvm_val]);

total: 2 errors, 0 warnings, 36 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 22/24: ppc/spapr-caps: Convert cap-ibs to custom spapr-cap...
ERROR: line over 90 characters
#96: FILE: hw/ppc/spapr_caps.c:234:
+    .help = "broken - no protection, fixed-ibs - indirect branch serialisation, fixed-ccd - cache count disabled",

ERROR: line over 90 characters
#106: FILE: hw/ppc/spapr_caps.c:243:
+        error_setg(errp, "Requested safe indirect branch capability level \"workaround\" not valid, try cap-ibs=%s", cap_ibs_possible.vals[kvm_val]);

ERROR: line over 90 characters
#113: FILE: hw/ppc/spapr_caps.c:248:
+        error_setg(errp, "Requested safe indirect branch capability level not supported by kvm, try cap-ibs=%s", cap_ibs_possible.vals[kvm_val]);

WARNING: line over 80 characters
#122: FILE: hw/ppc/spapr_caps.c:304:
+        .description = "Indirect Branch Speculation (broken, fixed-ibs, fixed-ccd)",

total: 3 errors, 1 warnings, 151 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 23/24: ppc/spapr-caps: Define the pseries-2.12-sxxm machine type...
Checking PATCH 24/24: hw/ppc/spapr, e500: Use new property "stdout-path" for boot console...
=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org
Re: [Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by Peter Maydell 7 years, 11 months ago
On 2 March 2018 at 06:03, David Gibson <david@gibson.dropbear.id.au> wrote:
> The following changes since commit 0dc8ae5e8e693737dfe65ba02d0c6eccb58a9c67:
>
>   Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180301-v2' into staging (2018-03-01 17:08:16 +0000)
>
> are available in the Git repository at:
>
>   git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180302
>
> for you to fetch changes up to 57ae75b2e401f1d04f37a8cd26212eb3134c51a6:
>
>   hw/ppc/spapr,e500: Use new property "stdout-path" for boot console (2018-03-02 12:24:44 +1100)
>
> ----------------------------------------------------------------
> ppc patch queue 2018-03-02
>
> Here's the next batch of accumulated spapr and ppc patches.
> Highlights are:
>     * New Sam460ex machine type
>     * Yet more fixes related to vcpu id allocation for spapr
>     * Numerous macio cleanupsr
>     * Some enhancements to the Spectre/Meltdown fixes for pseries,
>       allowing use of a better mitigation for indirect branch based
>       exploits
>     * New pseries machine types with Spectre/Meltdown mitigations
>       enabled (stop gap until libvirt and management understands the
>       machine options)
>     * A handful of other fixes
>

Hi. This generates a compile error from some compilers in my test set
(I think just the older gccs):

/home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c: In function
‘ppc460ex_pcie_realize’:
/home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c:1054:5:
error: ‘id’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
     snprintf(buf, sizeof(buf), "pcie%d-io", id);
     ^
cc1: all warnings being treated as errors

Looks like a valid complaint to me -- the realize function
should check that dcrn_base was set to a valid value, fail
realize if it wasn't, and have a 'default:' case in the
switch with g_assert_not_reached().

thanks
-- PMM

Re: [Qemu-devel] [Qemu-ppc] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by BALATON Zoltan 7 years, 11 months ago
On Fri, 2 Mar 2018, Peter Maydell wrote:
> On 2 March 2018 at 06:03, David Gibson <david@gibson.dropbear.id.au> wrote:
>> The following changes since commit 0dc8ae5e8e693737dfe65ba02d0c6eccb58a9c67:
>>
>>   Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180301-v2' into staging (2018-03-01 17:08:16 +0000)
>>
>> are available in the Git repository at:
>>
>>   git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180302
>>
>> for you to fetch changes up to 57ae75b2e401f1d04f37a8cd26212eb3134c51a6:
>>
>>   hw/ppc/spapr,e500: Use new property "stdout-path" for boot console (2018-03-02 12:24:44 +1100)
>>
>> ----------------------------------------------------------------
>> ppc patch queue 2018-03-02
>>
>> Here's the next batch of accumulated spapr and ppc patches.
>> Highlights are:
>>     * New Sam460ex machine type
>>     * Yet more fixes related to vcpu id allocation for spapr
>>     * Numerous macio cleanupsr
>>     * Some enhancements to the Spectre/Meltdown fixes for pseries,
>>       allowing use of a better mitigation for indirect branch based
>>       exploits
>>     * New pseries machine types with Spectre/Meltdown mitigations
>>       enabled (stop gap until libvirt and management understands the
>>       machine options)
>>     * A handful of other fixes
>>
>
> Hi. This generates a compile error from some compilers in my test set
> (I think just the older gccs):
>
> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c: In function
> ‘ppc460ex_pcie_realize’:
> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c:1054:5:
> error: ‘id’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>     snprintf(buf, sizeof(buf), "pcie%d-io", id);
>     ^
> cc1: all warnings being treated as errors
>
> Looks like a valid complaint to me -- the realize function
> should check that dcrn_base was set to a valid value, fail
> realize if it wasn't, and have a 'default:' case in the
> switch with g_assert_not_reached().

I've sent an updated patch (v3) that should fix this.

Thank you,
BALATON Zoltan
Re: [Qemu-devel] [Qemu-ppc] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by BALATON Zoltan 7 years, 11 months ago
On Fri, 2 Mar 2018, BALATON Zoltan wrote:
> On Fri, 2 Mar 2018, Peter Maydell wrote:
>> On 2 March 2018 at 06:03, David Gibson <david@gibson.dropbear.id.au> wrote:
>>> The following changes since commit 
>>> 0dc8ae5e8e693737dfe65ba02d0c6eccb58a9c67:
>>>
>>>   Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180301-v2' 
>>> into staging (2018-03-01 17:08:16 +0000)
>>> 
>>> are available in the Git repository at:
>>>
>>>   git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180302
>>> 
>>> for you to fetch changes up to 57ae75b2e401f1d04f37a8cd26212eb3134c51a6:
>>>
>>>   hw/ppc/spapr,e500: Use new property "stdout-path" for boot console 
>>> (2018-03-02 12:24:44 +1100)
>>> 
>>> ----------------------------------------------------------------
>>> ppc patch queue 2018-03-02
>>> 
>>> Here's the next batch of accumulated spapr and ppc patches.
>>> Highlights are:
>>>     * New Sam460ex machine type
>>>     * Yet more fixes related to vcpu id allocation for spapr
>>>     * Numerous macio cleanupsr
>>>     * Some enhancements to the Spectre/Meltdown fixes for pseries,
>>>       allowing use of a better mitigation for indirect branch based
>>>       exploits
>>>     * New pseries machine types with Spectre/Meltdown mitigations
>>>       enabled (stop gap until libvirt and management understands the
>>>       machine options)
>>>     * A handful of other fixes
>>> 
>> 
>> Hi. This generates a compile error from some compilers in my test set
>> (I think just the older gccs):
>> 
>> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c: In function
>> ‘ppc460ex_pcie_realize’:
>> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c:1054:5:
>> error: ‘id’ may be used uninitialized in this function
>> [-Werror=maybe-uninitialized]
>>     snprintf(buf, sizeof(buf), "pcie%d-io", id);
>>     ^
>> cc1: all warnings being treated as errors
>> 
>> Looks like a valid complaint to me -- the realize function
>> should check that dcrn_base was set to a valid value, fail
>> realize if it wasn't, and have a 'default:' case in the
>> switch with g_assert_not_reached().
>
> I've sent an updated patch (v3) that should fix this.

Wait, I've just realised this is not even in this pull request but already 
in master but it was not compiled before the machine that uses it was 
added now. So a v3 of the original patch is not appropriate. Instead, I've 
sent a fixup patch now that should be applied before this pull request to 
hopefully fix the problem. Sorry for the inconvenience this caused.

Thank you,
BALATON Zoltan
Re: [Qemu-devel] [PULL 00/24] ppc-for-2.12 queue 20180302
Posted by David Gibson 7 years, 11 months ago
On Fri, Mar 02, 2018 at 02:26:49PM +0000, Peter Maydell wrote:
> On 2 March 2018 at 06:03, David Gibson <david@gibson.dropbear.id.au> wrote:
> > The following changes since commit 0dc8ae5e8e693737dfe65ba02d0c6eccb58a9c67:
> >
> >   Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180301-v2' into staging (2018-03-01 17:08:16 +0000)
> >
> > are available in the Git repository at:
> >
> >   git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180302
> >
> > for you to fetch changes up to 57ae75b2e401f1d04f37a8cd26212eb3134c51a6:
> >
> >   hw/ppc/spapr,e500: Use new property "stdout-path" for boot console (2018-03-02 12:24:44 +1100)
> >
> > ----------------------------------------------------------------
> > ppc patch queue 2018-03-02
> >
> > Here's the next batch of accumulated spapr and ppc patches.
> > Highlights are:
> >     * New Sam460ex machine type
> >     * Yet more fixes related to vcpu id allocation for spapr
> >     * Numerous macio cleanupsr
> >     * Some enhancements to the Spectre/Meltdown fixes for pseries,
> >       allowing use of a better mitigation for indirect branch based
> >       exploits
> >     * New pseries machine types with Spectre/Meltdown mitigations
> >       enabled (stop gap until libvirt and management understands the
> >       machine options)
> >     * A handful of other fixes
> >
> 
> Hi. This generates a compile error from some compilers in my test set
> (I think just the older gccs):
> 
> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c: In function
> ‘ppc460ex_pcie_realize’:
> /home/petmay01/linaro/qemu-for-merges/hw/ppc/ppc440_uc.c:1054:5:
> error: ‘id’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>      snprintf(buf, sizeof(buf), "pcie%d-io", id);
>      ^
> cc1: all warnings being treated as errors
> 
> Looks like a valid complaint to me -- the realize function
> should check that dcrn_base was set to a valid value, fail
> realize if it wasn't, and have a 'default:' case in the
> switch with g_assert_not_reached().

Bother.  I wonder why my compiler didn't catch that.

-- 
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