Branch: refs/heads/master Home: https://github.com/qemu/qemu Commit: 89fca22f212bd9000e9b481bd70dceb8df2a17a0 https://github.com/qemu/qemu/commit/89fca22f212bd9000e9b481bd70dceb8df2a17a0 Author: KONRAD Frederic <frederic.kon...@adacore.com> Date: 2017-08-09 (Wed, 09 Aug 2017)
Changed paths: M target/ppc/mmu_helper.c Log Message: ----------- booke206: fix MAS update on tlb miss When a tlb instruction miss happen, rw is set to 0 at the bottom of cpu_ppc_handle_mmu_fault which cause the MAS update function to miss the SAS and TS bit in MAS6, MAS1 in booke206_update_mas_tlb_miss. Just calling booke206_update_mas_tlb_miss with rw = 2 solve the issue. Signed-off-by: KONRAD Frederic <frederic.kon...@adacore.com> Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Commit: e7bab9a256d653948760ef9f3d04f14eb2a81731 https://github.com/qemu/qemu/commit/e7bab9a256d653948760ef9f3d04f14eb2a81731 Author: Greg Kurz <gr...@kaod.org> Date: 2017-08-09 (Wed, 09 Aug 2017) Changed paths: M target/ppc/machine.c Log Message: ----------- ppc: fix double-free in cpu_post_load() When running nested with KVM PR, ppc_set_compat() fails and QEMU crashes because of "double free or corruption (!prev)". The crash happens because error_report_err() has already called error_free(). Signed-off-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Commit: 650f3287abb7c6124b7fb0f4a2330246fe2d4da2 https://github.com/qemu/qemu/commit/650f3287abb7c6124b7fb0f4a2330246fe2d4da2 Author: David Gibson <da...@gibson.dropbear.id.au> Date: 2017-08-09 (Wed, 09 Aug 2017) Changed paths: M target/ppc/cpu.h M target/ppc/translate_init.c Log Message: ----------- target/ppc: Implement TIDR This adds a trivial implementation of the TIDR register added in POWER9. This isn't particularly important to qemu directly - it's used by accelerator modules that we don't emulate. However, since qemu isn't aware of it, its state is not synchronized with KVM and therefore not migrated, which can be a problem. Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> Reviewed-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Thomas Huth <th...@redhat.com> Commit: b8af5b2d5f67b0e1b274f8532f42a47bfe46ea3b https://github.com/qemu/qemu/commit/b8af5b2d5f67b0e1b274f8532f42a47bfe46ea3b Author: David Gibson <da...@gibson.dropbear.id.au> Date: 2017-08-09 (Wed, 09 Aug 2017) Changed paths: M target/ppc/cpu.h M target/ppc/translate_init.c Log Message: ----------- target/ppc: Add stub implementation of the PSSCR The PSSCR register added in POWER9 controls certain power saving mode behaviours. Mostly, it's not relevant to TCG, however because qemu doesn't know about it yet, it doesn't synchronize the state with KVM, and thus it doesn't get migrated. To fix that, this adds a minimal stub implementation of the register. This isn't complete, even to the extent that an implementation is possible in TCG, just enough to get migration working. We need to come back later and at least properly filter the various fields in the register based on privilege level. Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <c...@kaod.org> Reviewed-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Thomas Huth <th...@redhat.com> Commit: 325837ca3851d7e6761649a44ea3c111e2e1757f https://github.com/qemu/qemu/commit/325837ca3851d7e6761649a44ea3c111e2e1757f Author: Greg Kurz <gr...@kaod.org> Date: 2017-08-09 (Wed, 09 Aug 2017) Changed paths: M hw/ppc/spapr_drc.c Log Message: ----------- spapr_drc: abort if object_property_add_child() fails object_property_add_child() can only fail in two cases: - the child already has a parent, which shouldn't happen since the DRC was allocated a few lines above - the parent already has a child with the same name, which would mean the caller tries to create a DRC that already exists In both case, this is a QEMU bug and we should abort. Signed-off-by: Greg Kurz <gr...@kaod.org> Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Commit: f57467e3b326c7736f8e481fd6b680f30e575c87 https://github.com/qemu/qemu/commit/f57467e3b326c7736f8e481fd6b680f30e575c87 Author: Sam Bobroff <sam.bobr...@au1.ibm.com> Date: 2017-08-09 (Wed, 09 Aug 2017) Changed paths: M hw/ppc/spapr_hcall.c Log Message: ----------- spapr: Fix bug in h_signal_sys_reset() The unicast case in h_signal_sys_reset() seems to be broken: rather than selecting the target CPU, it looks like it will pick either the first CPU or fail to find one at all. Fix it by using the search function rather than open coding the search. This was found by inspection; the code appears to be unused because the Linux kernel only uses the broadcast target. Signed-off-by: Sam Bobroff <sam.bobr...@au1.ibm.com> Reviewed-by: Greg Kurz <gr...@kaod.org> Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> Commit: b38df311c174c98ef8cce7dec9f46603b083018e https://github.com/qemu/qemu/commit/b38df311c174c98ef8cce7dec9f46603b083018e Author: Peter Maydell <peter.mayd...@linaro.org> Date: 2017-08-10 (Thu, 10 Aug 2017) Changed paths: M hw/ppc/spapr_drc.c M hw/ppc/spapr_hcall.c M target/ppc/cpu.h M target/ppc/machine.c M target/ppc/mmu_helper.c M target/ppc/translate_init.c Log Message: ----------- Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.10-20170809' into staging ppc patch queue 2017-08-09 This series contains a number of bugfixes for ppc and related machines, for the qemu-2.10.release. Some are true regressions, others are serious enough and non-invasive enough to fix that it's worth putting in 2.10 this late. # gpg: Signature made Wed 09 Aug 2017 07:31:33 BST # gpg: using RSA key 0x6C38CACA20D9B392 # gpg: Good signature from "David Gibson <da...@gibson.dropbear.id.au>" # gpg: aka "David Gibson (Red Hat) <dgib...@redhat.com>" # gpg: aka "David Gibson (ozlabs.org) <dgib...@ozlabs.org>" # gpg: aka "David Gibson (kernel.org) <d...@kernel.org>" # Primary key fingerprint: 75F4 6586 AE61 A66C C44E 87DC 6C38 CACA 20D9 B392 * remotes/dgibson/tags/ppc-for-2.10-20170809: spapr: Fix bug in h_signal_sys_reset() spapr_drc: abort if object_property_add_child() fails target/ppc: Add stub implementation of the PSSCR target/ppc: Implement TIDR ppc: fix double-free in cpu_post_load() booke206: fix MAS update on tlb miss Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> Compare: https://github.com/qemu/qemu/compare/8a6be122e4ee...b38df311c174