From: David Hildenbrand <david@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, Eduardo Habkost <ehabkost@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <rth@twiddle.net>,
David Gibson <david@gibson.dropbear.id.au>,
Alexander Graf <agraf@suse.de>,
David Hildenbrand <david@redhat.com>
Subject: [Qemu-devel] [PATCH v1 0/4] pc-dimm: pre_plug "slot" and "addr" assignment
Date: Mon, 18 Jun 2018 16:47:56 +0200 [thread overview]
Message-ID: <20180618144800.555-1-david@redhat.com> (raw)
As requested by Igor, assign and verify "slot" and "addr" in the
pre_plug handler. Factor out the compatibility handling/configuration
for detecting the alignment to be used when searching for an address
in guest physical memory for a memory device.
This is another part of the original series
[PATCH v4 00/14] MemoryDevice: use multi stage hotplug handlers
And is based on
[PATCH v1 0/2] memory: fix alignment checks/asserts
[PATCH v4 00/12] pc-dimm: next bunch of cleanups
This refactoring is the last step before factoring out pre_plug, plug and
unplug logic of memory devices completely into memory-device.c
David Hildenbrand (4):
pc-dimm: assign and verify the "slot" property during pre_plug
machine: factor out enforce_aligned_dimm into memory_device_align
pc-dimm/memory-device: detect alignment internally
pc-dimm: assign and verify the "addr" property during pre_plug
hw/core/machine.c | 3 ++
hw/i386/pc.c | 20 ++++-------
hw/i386/pc_piix.c | 2 +-
hw/mem/Makefile.objs | 2 +-
hw/mem/memory-device.c | 25 ++++++++++++++
hw/mem/pc-dimm.c | 62 ++++++++++++++++++----------------
hw/ppc/spapr.c | 6 ++--
include/hw/boards.h | 13 +++++++
include/hw/i386/pc.h | 3 --
include/hw/mem/memory-device.h | 1 +
include/hw/mem/pc-dimm.h | 4 +--
11 files changed, 87 insertions(+), 54 deletions(-)
--
2.17.1
next reply other threads:[~2018-06-18 14:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 14:47 David Hildenbrand [this message]
2018-06-18 14:47 ` [Qemu-devel] [PATCH v1 1/4] pc-dimm: assign and verify the "slot" property during pre_plug David Hildenbrand
2018-06-19 0:14 ` David Gibson
2018-06-19 15:48 ` Igor Mammedov
2018-06-18 14:47 ` [Qemu-devel] [PATCH v1 2/4] machine: factor out enforce_aligned_dimm into memory_device_align David Hildenbrand
2018-06-19 15:59 ` Igor Mammedov
2018-06-19 17:06 ` David Hildenbrand
2018-06-20 14:58 ` David Hildenbrand
2018-06-26 15:03 ` Igor Mammedov
2018-06-28 10:41 ` David Hildenbrand
2018-06-18 14:47 ` [Qemu-devel] [PATCH v1 3/4] pc-dimm/memory-device: detect alignment internally David Hildenbrand
2018-06-18 14:48 ` [Qemu-devel] [PATCH v1 4/4] pc-dimm: assign and verify the "addr" property during pre_plug David Hildenbrand
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=20180618144800.555-1-david@redhat.com \
--to=david@redhat.com \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.