qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] a7d69f: pc, pc-dimm: Extract hotplug related


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] a7d69f: pc, pc-dimm: Extract hotplug related fields in PCMa...
Date: Sun, 05 Jul 2015 13:00:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: a7d69ff10b085ba6f8236600829532984cdea714
      
https://github.com/qemu/qemu/commit/a7d69ff10b085ba6f8236600829532984cdea714
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M hw/i386/acpi-build.c
    M hw/i386/pc.c
    M include/hw/i386/pc.h
    M include/hw/mem/pc-dimm.h

  Log Message:
  -----------
  pc,pc-dimm: Extract hotplug related fields in PCMachineState to a structure

Move hotplug_memory_base and hotplug_memory fields of PCMachineState
into a separate structure so that the same can be made use of from
other architectures supporing memory hotplug.

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 43bbb49ef7032a8bfdafbd02d0286512af161089
      
https://github.com/qemu/qemu/commit/43bbb49ef7032a8bfdafbd02d0286512af161089
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M hw/i386/pc.c
    M hw/mem/pc-dimm.c
    M include/hw/mem/pc-dimm.h

  Log Message:
  -----------
  pc,pc-dimm: Factor out reusable parts in pc_dimm_plug to a separate routine

pc_dimm_plug() has code that will be needed for memory plug handlers
in other archs too. Extract code from pc_dimm_plug() into a generic
routine pc_dimm_memory_plug() that resides in pc-dimm.c. Also
correspondingly refactor re-usable unplug code into pc_dimm_memory_unplug().

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 8e23184b6b2f8426041854b18fb56a3ff197d5a0
      
https://github.com/qemu/qemu/commit/8e23184b6b2f8426041854b18fb56a3ff197d5a0
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M hw/i386/pc.c

  Log Message:
  -----------
  pc: Abort if HotplugHandlerClass::plug() fails

HotplugHandlerClass::plug() shouldn't fail and hence use error_abort
to abort if it fails.

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: fa9ea81d15d459f6c4a39d77ae680af94cebd65e
      
https://github.com/qemu/qemu/commit/fa9ea81d15d459f6c4a39d77ae680af94cebd65e
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M hw/mem/pc-dimm.c
    M include/sysemu/numa.h
    M numa.c

  Log Message:
  -----------
  numa,pc-dimm: Store pc-dimm memory information in numa_info

Start storing the (start_addr, end_addr) of the pc-dimm memory
in corresponding numa_info[node] so that this information can be used
to lookup node by address.

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: abafabd8c982e875d60a10d37f0b91cff1003c55
      
https://github.com/qemu/qemu/commit/abafabd8c982e875d60a10d37f0b91cff1003c55
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M numa.c

  Log Message:
  -----------
  numa: Store boot memory address range in node_info

Store memory address range information of boot memory  in address
range list of numa_info.

This helps to have a common NUMA node lookup by address function that
works for both boot-time memory and hotplugged memory.

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: e75e2a14d5c13ad38dcf72b69922dee2dafbb0d0
      
https://github.com/qemu/qemu/commit/e75e2a14d5c13ad38dcf72b69922dee2dafbb0d0
  Author: Bharata B Rao <address@hidden>
  Date:   2015-07-03 (Fri, 03 Jul 2015)

  Changed paths:
    M include/sysemu/numa.h
    M numa.c

  Log Message:
  -----------
  numa: API to lookup NUMA node by address

Introduce an API numa_get_node(ram_addr_t addr, Error **errp) that
returns the NUMA node to which the given address belongs to. This
API works uniformly for both boot time as well as hotplugged memory.

This API is needed by sPAPR PowerPC to support
ibm,dynamic-reconfiguration-memory device tree node which is needed for
memory hotplug.

Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 63a9294ddc9cf4f2bdcd0179324fedcbb6fae59f
      
https://github.com/qemu/qemu/commit/63a9294ddc9cf4f2bdcd0179324fedcbb6fae59f
  Author: Peter Maydell <address@hidden>
  Date:   2015-07-05 (Sun, 05 Jul 2015)

  Changed paths:
    M hw/i386/acpi-build.c
    M hw/i386/pc.c
    M hw/mem/pc-dimm.c
    M include/hw/i386/pc.h
    M include/hw/mem/pc-dimm.h
    M include/sysemu/numa.h
    M numa.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/ehabkost/tags/numa-pull-request' into 
staging

NUMA queue, 2015-07-03

# gpg: Signature made Fri Jul  3 21:49:58 2015 BST using RSA key ID 984DC5A6
# gpg: Good signature from "Eduardo Habkost <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: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost/tags/numa-pull-request:
  numa: API to lookup NUMA node by address
  numa: Store boot memory address range in node_info
  numa,pc-dimm: Store pc-dimm memory information in numa_info
  pc: Abort if HotplugHandlerClass::plug() fails
  pc,pc-dimm: Factor out reusable parts in pc_dimm_plug to a separate routine
  pc,pc-dimm: Extract hotplug related fields in PCMachineState to a structure

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


Compare: https://github.com/qemu/qemu/compare/35360642d043...63a9294ddc9c

reply via email to

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