From: David Hildenbrand <david@redhat.com>
To: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Eduardo Habkost <eduardo@habkost.net>
Cc: "Michael S . Tsirkin" <mst@redhat.com>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Thomas Huth" <thuth@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Eric Blake" <eblake@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH v6 0/6] Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️)
Date: Mon, 24 Jul 2023 16:42:28 +0200 [thread overview]
Message-ID: <7b39c541-6aeb-3dc4-2451-67a6b2ff34c6@redhat.com> (raw)
In-Reply-To: <cover.1689786474.git.maciej.szmigiero@oracle.com>
On 20.07.23 12:12, Maciej S. Szmigiero wrote:
> From: "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>
>
> This is a continuation of the v5 of the patch series located here:
> https://lore.kernel.org/qemu-devel/cover.1686577753.git.maciej.szmigiero@oracle.com/
>
We're now in QEMU soft-freeze, which means the memslot series might take
a bit to land. I'm going to follow-up on that soonish.
>
> Changes from v5:
> * Incorporate David's rework of the driver on top of his virtio-mem-memslots
> patches (specifically, commit 6769107d1a4f), making use of a memory region
> container created upfront to avoid calling memory_device{,_pre}_plug()
> functions from the driver and introducing a driver-specific MemoryDeviceInfo
> sub-type.
>
> * Include two additional David's memory-device patches necessary for the
> aforementioned conversion in this patch set.
>
> * Use multiple memslots to cover the hot-add memory backend in order to
> reduce metadata size for the not-yet-hot-added part of the memory backend.
>
> * Add David's "Co-developed-by:" to patches where he contributed some changes.
>
> * Use OBJECT_DEFINE_TYPE_WITH_INTERFACES() and OBJECT_DECLARE_SIMPLE_TYPE()
> macros instead of open-coding the equivalent functionality.
>
> * Drop no longer necessary patch adding g_autoptr() cleanup function for the
> Error type.
>
>
> David Hildenbrand (2):
> memory-device: Support empty memory devices
> memory-device: Drop size alignment check
>
> Maciej S. Szmigiero (4):
> Add Hyper-V Dynamic Memory Protocol definitions
> qapi: Add HvBalloonDeviceInfo sub-type to MemoryDeviceInfo
> qapi: Add HV_BALLOON_STATUS_REPORT event
> Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon)
That is still a gigantic patch. Is there any way to split that into
reasonable chunks? For example, move the whole hotplug/memslot part into
a dedicated patch?
See below on splitting off the PC changes.
>
> Kconfig.host | 3 +
> hw/core/machine-hmp-cmds.c | 15 +
> hw/hyperv/Kconfig | 5 +
> hw/hyperv/hv-balloon.c | 2246 ++++++++++++++++++++++++++++++
> hw/hyperv/meson.build | 1 +
> hw/hyperv/trace-events | 18 +
> hw/i386/pc.c | 22 +
> hw/mem/memory-device.c | 45 +-
> include/hw/hyperv/dynmem-proto.h | 423 ++++++
> include/hw/hyperv/hv-balloon.h | 18 +
> include/hw/mem/memory-device.h | 7 +-
> meson.build | 28 +-
> meson_options.txt | 2 +
> qapi/machine.json | 64 +-
> scripts/meson-buildoptions.sh | 3 +
It's probably best to separate the actual device implementation from
wiring up the machine. That is, have a HV_BALLOON_SUPPORTED kconfig
(like VIRTIO_MEM_SUPPORTED), and activate that in a single commit for
PC, where you also modify hw/i386/pc.c.
That commit would be called something like "pc: Support hv-balloon".
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2023-07-24 14:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-20 10:12 [PATCH v6 0/6] Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️) Maciej S. Szmigiero
2023-07-20 10:12 ` [PATCH v6 1/6] memory-device: Support empty memory devices Maciej S. Szmigiero
2023-07-20 10:12 ` [PATCH v6 2/6] memory-device: Drop size alignment check Maciej S. Szmigiero
2023-07-20 10:13 ` [PATCH v6 3/6] Add Hyper-V Dynamic Memory Protocol definitions Maciej S. Szmigiero
2023-07-20 10:13 ` [PATCH v6 4/6] qapi: Add HvBalloonDeviceInfo sub-type to MemoryDeviceInfo Maciej S. Szmigiero
2023-07-24 11:37 ` Markus Armbruster
2023-07-24 11:43 ` Maciej S. Szmigiero
2023-07-25 8:26 ` Markus Armbruster
2023-07-25 8:25 ` Markus Armbruster
2023-07-25 18:13 ` Maciej S. Szmigiero
2023-07-20 10:13 ` [PATCH v6 5/6] qapi: Add HV_BALLOON_STATUS_REPORT event Maciej S. Szmigiero
2023-07-25 8:04 ` Markus Armbruster
2023-07-25 18:13 ` Maciej S. Szmigiero
2023-07-20 10:13 ` [PATCH v6 6/6] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon) Maciej S. Szmigiero
2023-07-24 10:56 ` [PATCH v6 0/6] Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️) Markus Armbruster
2023-07-24 11:04 ` Maciej S. Szmigiero
2023-07-24 11:39 ` Markus Armbruster
2023-07-24 11:44 ` Maciej S. Szmigiero
2023-07-24 14:42 ` David Hildenbrand [this message]
2023-07-25 8:25 ` Markus Armbruster
2023-07-25 18:09 ` Maciej S. Szmigiero
2023-07-25 18:12 ` 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=7b39c541-6aeb-3dc4-2451-67a6b2ff34c6@redhat.com \
--to=david@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=mail@maciej.szmigiero.name \
--cc=marcandre.lureau@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/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).