qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.9 00/10] pc: acpi: memory hotplug cleanup/consolidation
Date: Mon, 9 Jan 2017 15:22:01 +0100	[thread overview]
Message-ID: <20170109152201.311fdebb@nial.brq.redhat.com> (raw)
In-Reply-To: <1480980749-182204-1-git-send-email-imammedo@redhat.com>

On Tue,  6 Dec 2016 00:32:19 +0100
Igor Mammedov <imammedo@redhat.com> wrote:

> Series cleanups and consolidates scattered memory hotplug
> code so it could be easily reused by ARM target later.
> 
> As result:
>  * added memory hotplug variant to bios tables test
>  * all ACPI related parts of memory hotplug are consolidated
>    within memory_hotplug.c
>  * DSDT table size is reduced ~900 bytes when memory hotplug
>    is not enabled (by not generating not used AML)
>  * DSDT table size is reduced on 12 bytes per slot
>    (i.e. up to ~3000 bytes savings for 256 DIMMs) with memory hotplug
>    enabled due AML reorganization that makes calls to common functions
>    smaller as devices and common functions are now within the same scope.
> 
> Tested with following guests:
>   - RHEL7.3, WS2008DC, WS2008R2DC, WS2012R2DC, WS2016TP5 - no regressions found
>   - XP3 and WS2003 - boots fine even if memhotplug is enabled (but otherwise
>     it never worked as memhp is not supported there)

Michael,

Marcel's already reviewed this series a while ago could you
pull it in your tree if there aren't any questions?


> Git tree for testing:
>   https://github.com/imammedo/qemu.git memhp_consolidate_v1
> viewing:
>   https://github.com/imammedo/qemu/commits/memhp_consolidate_v1
> 
> Note to maintaner:
>   * blobs patch 2/10 should be merged to patch 1/10
>   * ACPI tables should be regenarated and applied after series is merged
>     as DSDT will cange for all tests cases due removal of inactive
>     memory hotplug code.
> 
> CC: "Michael S. Tsirkin" <mst@redhat.com>
> CC: Eduardo Habkost <ehabkost@redhat.com>
> CC: Marcel Apfelbaum <marcel@redhat.com>
> 
> 
> Igor Mammedov (10):
>   tests: pc: add memory hotplug acpi tables tests
>   tests: pc: acpi: add SRAT and DSDT blobs for memory hotplug variant
>   memhp: move build_memory_hotplug_aml() into memory_hotplug.c
>   memhp: move build_memory_devices() into memory_hotplug.c
>   memhp: consolidate scattered MHPD device declaration
>   memhp: merge build_memory_devices() into build_memory_hotplug_aml()
>   memhp: move GPE handler_E03 into build_memory_hotplug_aml()
>   memhp: move memory hotplug only defines to memory_hotplug.c
>   memhp: don't generate memory hotplug AML if it's not enabled/supported
>   memhp: move DIMM devices into dedicated scope with related common
>     methods
> 
>  include/hw/acpi/memory_hotplug.h    |  12 +-
>  include/hw/acpi/pc-hotplug.h        |  23 --
>  hw/acpi/Makefile.objs               |   2 +-
>  hw/acpi/ich9.c                      |   3 +-
>  hw/acpi/memory_hotplug.c            | 420 +++++++++++++++++++++++++++++++++++-
>  hw/acpi/memory_hotplug_acpi_table.c | 262 ----------------------
>  hw/acpi/piix4.c                     |   3 +-
>  hw/i386/acpi-build.c                | 197 +++--------------
>  tests/acpi-test-data/pc/DSDT.memhp  | Bin 0 -> 6613 bytes
>  tests/acpi-test-data/pc/SRAT.memhp  | Bin 0 -> 224 bytes
>  tests/acpi-test-data/q35/DSDT.memhp | Bin 0 -> 9375 bytes
>  tests/acpi-test-data/q35/SRAT.memhp | Bin 0 -> 224 bytes
>  tests/bios-tables-test.c            |  24 +++
>  13 files changed, 479 insertions(+), 467 deletions(-)
>  delete mode 100644 hw/acpi/memory_hotplug_acpi_table.c
>  create mode 100644 tests/acpi-test-data/pc/DSDT.memhp
>  create mode 100644 tests/acpi-test-data/pc/SRAT.memhp
>  create mode 100644 tests/acpi-test-data/q35/DSDT.memhp
>  create mode 100644 tests/acpi-test-data/q35/SRAT.memhp
> 

  parent reply	other threads:[~2017-01-09 14:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-05 23:32 [Qemu-devel] [PATCH for-2.9 00/10] pc: acpi: memory hotplug cleanup/consolidation Igor Mammedov
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 01/10] tests: pc: add memory hotplug acpi tables tests Igor Mammedov
2016-12-20 10:40   ` Marcel Apfelbaum
2016-12-20 16:17     ` Igor Mammedov
2016-12-20 17:00       ` Marcel Apfelbaum
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 02/10] tests: pc: acpi: add SRAT and DSDT blobs for memory hotplug variant Igor Mammedov
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 03/10] memhp: move build_memory_hotplug_aml() into memory_hotplug.c Igor Mammedov
2016-12-20 10:42   ` Marcel Apfelbaum
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 04/10] memhp: move build_memory_devices() " Igor Mammedov
2016-12-20 10:44   ` Marcel Apfelbaum
2016-12-20 16:24     ` Igor Mammedov
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 05/10] memhp: consolidate scattered MHPD device declaration Igor Mammedov
2016-12-20 11:00   ` Marcel Apfelbaum
2016-12-20 16:34     ` Igor Mammedov
2016-12-21 11:54       ` Marcel Apfelbaum
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 06/10] memhp: merge build_memory_devices() into build_memory_hotplug_aml() Igor Mammedov
2016-12-21 12:10   ` Marcel Apfelbaum
2016-12-21 12:54     ` Igor Mammedov
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 07/10] memhp: move GPE handler_E03 " Igor Mammedov
2016-12-21 12:31   ` Marcel Apfelbaum
2016-12-21 13:39     ` Igor Mammedov
2016-12-22 10:45       ` Marcel Apfelbaum
2016-12-22 15:10   ` [Qemu-devel] [PATCH for-2.9 v2 " Igor Mammedov
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 08/10] memhp: move memory hotplug only defines to memory_hotplug.c Igor Mammedov
2016-12-21 12:32   ` Marcel Apfelbaum
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 09/10] memhp: don't generate memory hotplug AML if it's not enabled/supported Igor Mammedov
2016-12-22 10:55   ` Marcel Apfelbaum
2016-12-05 23:32 ` [Qemu-devel] [PATCH for-2.9 10/10] memhp: move DIMM devices into dedicated scope with related common methods Igor Mammedov
2016-12-22 12:31   ` Marcel Apfelbaum
2016-12-22 13:31     ` Igor Mammedov
2016-12-22 13:53       ` Marcel Apfelbaum
2016-12-22 14:10         ` Igor Mammedov
2016-12-16  9:07 ` [Qemu-devel] [PATCH for-2.9 00/10] pc: acpi: memory hotplug cleanup/consolidation Igor Mammedov
2017-01-09 14:22 ` Igor Mammedov [this message]
2017-01-09 14:39   ` Michael S. Tsirkin
2017-01-10  5:08   ` Michael S. Tsirkin
2017-01-10 12:29     ` Igor Mammedov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170109152201.311fdebb@nial.brq.redhat.com \
    --to=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).