qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] b63578: spapr: init CPUState->cpu_index with


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] b63578: spapr: init CPUState->cpu_index with index relativ...
Date: Fri, 29 Jul 2016 05:30:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: b63578bdb50243d05c48c3c94cc58ae446f2eb93
      
https://github.com/qemu/qemu/commit/b63578bdb50243d05c48c3c94cc58ae446f2eb93
  Author: Igor Mammedov <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M hw/ppc/spapr_cpu_core.c

  Log Message:
  -----------
  spapr: init CPUState->cpu_index with index relative to core-id

It will enshure that cpu_index for a given cpu stays the same
regardless of the order cpus has been created/deleted and so
it would be possible to migrate QEMU instance with out of order
created CPU.

Signed-off-by: Igor Mammedov <address@hidden>
Signed-off-by: David Gibson <address@hidden>


  Commit: 7cdd76132a7daff30cde12ba81684741d50c4f22
      
https://github.com/qemu/qemu/commit/7cdd76132a7daff30cde12ba81684741d50c4f22
  Author: David Gibson <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M hw/ppc/spapr_cpu_core.c

  Log Message:
  -----------
  Revert "spapr: Ensure CPU cores are added contiguously and removed in LIFO 
order"

This reverts commit 5cbc64de25973e9129c5a7897734a06ac64b9aff.

Now that we have stable cpu_index values for pseries-2.7 (and future)
machine types, we can now safely allow hotplug and unplug in any order.

Conflicts:
        hw/ppc/spapr_cpu_core.c

Some conflicts on revert due to some small changes in the inserted
code since the original commit.

Signed-off-by: David Gibson <address@hidden>


  Commit: aaf89c8a49a8c1259b6b181d701070c6df83f3d7
      
https://github.com/qemu/qemu/commit/aaf89c8a49a8c1259b6b181d701070c6df83f3d7
  Author: address@hidden <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M tests/Makefile.include
    M tests/postcopy-test.c

  Log Message:
  -----------
  test: port postcopy test to ppc64

As userfaultfd syscall is available on powerpc, migration
postcopy can be used.

This patch adds the support needed to test this on powerpc,
instead of using a bootsector to run code to modify memory,
we use a FORTH script in "boot-command" property.

As spapr machine doesn't support "-prom-env" argument
(the nvram is initialized by SLOF and not by QEMU),
"boot-command" is provided to SLOF via a file mapped nvram
(with "-drive file=...,if=pflash")

Signed-off-by: Laurent Vivier <address@hidden>
Signed-off-by: David Gibson <address@hidden>


  Commit: bcd510b141eee18b7fcd445f8c9ea3be347d16fc
      
https://github.com/qemu/qemu/commit/bcd510b141eee18b7fcd445f8c9ea3be347d16fc
  Author: Benjamin Herrenschmidt <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M target-ppc/mem_helper.c

  Log Message:
  -----------
  ppc: Fix fault PC reporting for lve*/stve* VMX instructions

We forgot to do gen_update_nip() for these like we do with other
helpers. Fix this, but in a more efficient way by passing the RA
to the accessors instead so the overhead is only taken on faults.

Signed-off-by: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: David Gibson <address@hidden>


  Commit: 62be8b044adf47327ebefdefb25f28a40316ebd0
      
https://github.com/qemu/qemu/commit/62be8b044adf47327ebefdefb25f28a40316ebd0
  Author: Bharata B Rao <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M hw/ppc/spapr_cpu_core.c

  Log Message:
  -----------
  spapr: Prevent boot CPU core removal

Boot CPU is assumed to be always present in QEMU code. So
until that assumptions are gone, deny removal request.
In another words, QEMU won't support boot CPU core hot-unplug.

Signed-off-by: Bharata B Rao <address@hidden>
[dwg: Tweaked error message for clarity]
Signed-off-by: David Gibson <address@hidden>


  Commit: 059ce0f00af0124740bcb9991d160f93c92ae174
      
https://github.com/qemu/qemu/commit/059ce0f00af0124740bcb9991d160f93c92ae174
  Author: Laurent Vivier <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M tests/Makefile.include
    M tests/drive_del-test.c

  Log Message:
  -----------
  tests: add drive_del-test to ppc/ppc64

Signed-off-by: Laurent Vivier <address@hidden>
Signed-off-by: David Gibson <address@hidden>


  Commit: df2c35902e315c772ca97ca29cb6398ddc4a5861
      
https://github.com/qemu/qemu/commit/df2c35902e315c772ca97ca29cb6398ddc4a5861
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M hw/ppc/spapr_cpu_core.c
    M target-ppc/mem_helper.c
    M tests/Makefile.include
    M tests/drive_del-test.c
    M tests/postcopy-test.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160729' into 
staging

ppc patch queue 2016-07-29

Here are the current pending ppc and spapr related patches for
qemu-2.7.  Given the freeze status, these are all bugfixes, with two
exceptions:

  * There's some final rework of the vcpu hotplug model.  Specifically
    we add spapr specific code on the generic basis Igor established
    to make cpu_index stable for pseries-2.7 and later machine types.
      - This allows us to remove the limitation that cpu cores had to
  be inserted in linear order, and removed in LIFO order.
      - This is worth merging this late in 2.7 because it will avoid
  considerable future grief with management layers needing to
  discover whether out-of-order hotplug is possible, amongst
  other things.
      - For now we do add a constraint that the initial cpu cannot be
  unplugged.
  * We add two extra testcases to make check, for postcopy and
    drive_del on ppc64.
      - Not strictly bugfixes, but safe, because they don't affect the
  actual code, and increase test coverage.

# gpg: Signature made Fri 29 Jul 2016 05:50:02 BST
# gpg:                using RSA key 0x6C38CACA20D9B392
# gpg: Good signature from "David Gibson <address@hidden>"
# gpg:                 aka "David Gibson (Red Hat) <address@hidden>"
# gpg:                 aka "David Gibson (ozlabs.org) <address@hidden>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392

* remotes/dgibson/tags/ppc-for-2.7-20160729:
  tests: add drive_del-test to ppc/ppc64
  spapr: Prevent boot CPU core removal
  ppc: Fix fault PC reporting for lve*/stve* VMX instructions
  test: port postcopy test to ppc64
  Revert "spapr: Ensure CPU cores are added contiguously and removed in LIFO 
order"
  spapr: init CPUState->cpu_index with index relative to core-id

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/cbe81c6331d8...df2c35902e31

reply via email to

[Prev in Thread] Current Thread [Next in Thread]