qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] d2eae2: s390x/cpu: Cleanup init in preparatio


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] d2eae2: s390x/cpu: Cleanup init in preparation for hotplug
Date: Mon, 14 Mar 2016 05:00:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d2eae20790e825656b205dbe347826ff991fb3d8
      
https://github.com/qemu/qemu/commit/d2eae20790e825656b205dbe347826ff991fb3d8
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c
    M hw/s390x/s390-virtio.c
    M hw/s390x/s390-virtio.h

  Log Message:
  -----------
  s390x/cpu: Cleanup init in preparation for hotplug

Ensure a valid cpu_model is set upfront by setting the
default value directly into the MachineState when none is
specified.  This is needed to ensure hotplugged CPUs share
the same cpu_model.

Signed-off-by: Matthew Rosato <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: ef3027affc755736f1ee5ec60c52a3b317abbc07
      
https://github.com/qemu/qemu/commit/ef3027affc755736f1ee5ec60c52a3b317abbc07
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio.c
    M target-s390x/cpu.c

  Log Message:
  -----------
  s390x/cpu: Set initial CPU state in common routine

Both initial and hotplugged CPUs need to set the same initial
state.

Signed-off-by: Matthew Rosato <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: c6644fc88bed1176f67b4b7a9df691bcf25c0c5b
      
https://github.com/qemu/qemu/commit/c6644fc88bed1176f67b4b7a9df691bcf25c0c5b
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M target-s390x/cpu-qom.h
    M target-s390x/cpu.c

  Log Message:
  -----------
  s390x/cpu: Get rid of side effects when creating a vcpu

In preparation for hotplug, defer some CPU initialization
until the device is actually being realized, including
cpu_exec_init.

Signed-off-by: Matthew Rosato <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 25637d31f2d76f61c078b151ab7912e8d2246b9e
      
https://github.com/qemu/qemu/commit/25637d31f2d76f61c078b151ab7912e8d2246b9e
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio.c

  Log Message:
  -----------
  s390x/cpu: Tolerate max_cpus

Once hotplug is enabled, interrupts may come in for CPUs
with an address > smp_cpus.  Allocate for this and allow
search routines to look beyond smp_cpus.

Signed-off-by: Matthew Rosato <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 502edbf834a3c86a8ab40b23e040a45198301e1c
      
https://github.com/qemu/qemu/commit/502edbf834a3c86a8ab40b23e040a45198301e1c
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c
    M hw/s390x/s390-virtio.c

  Log Message:
  -----------
  s390x/cpu: Add CPU property links

Link each CPUState as property machine/cpu[n] during initialization.
Add a hotplug handler to s390-virtio-ccw machine and set the
state during plug.

Signed-off-by: Matthew Rosato <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 96b1a8bb55f1aeb72a943d1001841ff8b0687059
      
https://github.com/qemu/qemu/commit/96b1a8bb55f1aeb72a943d1001841ff8b0687059
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio.c
    M target-s390x/cpu-qom.h
    M target-s390x/cpu.c
    M target-s390x/cpu.h
    M target-s390x/helper.c

  Log Message:
  -----------
  s390x/cpu: Add error handling to cpu creation

Check for and propogate errors during s390 cpu creation.

Signed-off-by: Matthew Rosato <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: a006b67fe4e4954d7f1ca8efbe9082ccefb1ceae
      
https://github.com/qemu/qemu/commit/a006b67fe4e4954d7f1ca8efbe9082ccefb1ceae
  Author: Matthew Rosato <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c
    M target-s390x/cpu.c

  Log Message:
  -----------
  s390x/cpu: Allow hotplug of CPUs

Implement cpu hotplug routine and add the machine hook.

Signed-off-by: Matthew Rosato <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 3a3c752f0ba72e57a2f85e9bdce217673be14700
      
https://github.com/qemu/qemu/commit/3a3c752f0ba72e57a2f85e9bdce217673be14700
  Author: Eugene (jno) Dvurechenski <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M pc-bios/s390-ccw/bootmap.c

  Log Message:
  -----------
  pc-bios/s390-ccw: fix old bug in ptr increment

We need to increment by the size of the structure, whereas 'ns' is 'uint8_t *'.

Acked-by: Christian Borntraeger <address@hidden>
Acked-by: Cornelia Huck <address@hidden>
Signed-off-by: Eugene (jno) Dvurechenski <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 4fca6548723f198ee927470ca4864e8f2f1fbcc5
      
https://github.com/qemu/qemu/commit/4fca6548723f198ee927470ca4864e8f2f1fbcc5
  Author: Janosch Frank <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c

  Log Message:
  -----------
  s390x: Introduce machine definition macros

Most of the machine definition code looks the same between different
machine versions. The new DEFINE_CCW_MACHINE macro makes defining a
new machine easier by inserting standard machine version
definitions. This also makes it possible to propagate values between
machine versions.

The patch is inspired by code from hw/ppc/spapr.c

Signed-off-by: Janosch Frank <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd
      
https://github.com/qemu/qemu/commit/8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd
  Author: Janosch Frank <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c
    A include/hw/s390x/s390-virtio-ccw.h

  Log Message:
  -----------
  s390x: Introduce S390MachineClass

As we now have the new machine definitions, that let us disable/enable
machine options more easily, we need a way to save them and make them
publicly available.

The new s390-virtio-ccw.h header exports the s390 ccw machine state
and class, so they can be easily used in other C files.

Signed-off-by: Janosch Frank <address@hidden>
Acked-by: Cornelia Huck <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: 75cfb3bb41005b1cbba4954057ad5426df83f6d7
      
https://github.com/qemu/qemu/commit/75cfb3bb41005b1cbba4954057ad5426df83f6d7
  Author: Cornelia Huck <address@hidden>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio.c

  Log Message:
  -----------
  s390x/cpu: use g_new0

Let's use g_new0 to allocate cpu_states.

Suggested-by: Thomas Huth <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>


  Commit: d1ab9681ac54a01aece0f17f082a7f8677311f51
      
https://github.com/qemu/qemu/commit/d1ab9681ac54a01aece0f17f082a7f8677311f51
  Author: Peter Maydell <address@hidden>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M hw/s390x/s390-virtio-ccw.c
    M hw/s390x/s390-virtio.c
    M hw/s390x/s390-virtio.h
    A include/hw/s390x/s390-virtio-ccw.h
    M pc-bios/s390-ccw/bootmap.c
    M target-s390x/cpu-qom.h
    M target-s390x/cpu.c
    M target-s390x/cpu.h
    M target-s390x/helper.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160311' into staging

CPU hotplug via cpu-add for s390x, cleanup of the s390x machine
compat code and a bugfix in the s390-ccw bios.

# gpg: Signature made Fri 11 Mar 2016 09:48:02 GMT using RSA key ID C6F02FAF
# gpg: Good signature from "Cornelia Huck <address@hidden>"
# gpg:                 aka "Cornelia Huck <address@hidden>"

* remotes/cohuck/tags/s390x-20160311:
  s390x/cpu: use g_new0
  s390x: Introduce S390MachineClass
  s390x: Introduce machine definition macros
  pc-bios/s390-ccw: fix old bug in ptr increment
  s390x/cpu: Allow hotplug of CPUs
  s390x/cpu: Add error handling to cpu creation
  s390x/cpu: Add CPU property links
  s390x/cpu: Tolerate max_cpus
  s390x/cpu: Get rid of side effects when creating a vcpu
  s390x/cpu: Set initial CPU state in common routine
  s390x/cpu: Cleanup init in preparation for hotplug

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


Compare: https://github.com/qemu/qemu/compare/a648c137383d...d1ab9681ac54

reply via email to

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