From: Salil Mehta via <qemu-devel@nongnu.org>
To: Salil Mehta <salil.mehta@huawei.com>,
Igor Mammedov <imammedo@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"maz@kernel.org" <maz@kernel.org>,
"jean-philippe@linaro.org" <jean-philippe@linaro.org>,
Jonathan Cameron <jonathan.cameron@huawei.com>,
"lpieralisi@kernel.org" <lpieralisi@kernel.org>,
"peter.maydell@linaro.org" <peter.maydell@linaro.org>,
"richard.henderson@linaro.org" <richard.henderson@linaro.org>,
"andrew.jones@linux.dev" <andrew.jones@linux.dev>,
"david@redhat.com" <david@redhat.com>,
"philmd@linaro.org" <philmd@linaro.org>,
"eric.auger@redhat.com" <eric.auger@redhat.com>,
"oliver.upton@linux.dev" <oliver.upton@linux.dev>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"mst@redhat.com" <mst@redhat.com>,
"will@kernel.org" <will@kernel.org>,
"gshan@redhat.com" <gshan@redhat.com>,
"rafael@kernel.org" <rafael@kernel.org>,
"alex.bennee@linaro.org" <alex.bennee@linaro.org>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"darren@os.amperecomputing.com" <darren@os.amperecomputing.com>,
"ilkka@os.amperecomputing.com" <ilkka@os.amperecomputing.com>,
"vishnu@os.amperecomputing.com" <vishnu@os.amperecomputing.com>,
"karl.heubaum@oracle.com" <karl.heubaum@oracle.com>,
"miguel.luis@oracle.com" <miguel.luis@oracle.com>,
"salil.mehta@opnsrc.net" <salil.mehta@opnsrc.net>,
zhukeqian <zhukeqian1@huawei.com>,
"wangxiongfeng (C)" <wangxiongfeng2@huawei.com>,
"wangyanan (Y)" <wangyanan55@huawei.com>,
"jiakernel2@gmail.com" <jiakernel2@gmail.com>,
"maobibo@loongson.cn" <maobibo@loongson.cn>,
"lixianglai@loongson.cn" <lixianglai@loongson.cn>,
"npiggin@gmail.com" <npiggin@gmail.com>,
"harshpb@linux.ibm.com" <harshpb@linux.ibm.com>,
Linuxarm <linuxarm@huawei.com>
Subject: RE: [PATCH V15 0/7] Add architecture agnostic code to support vCPU Hotplug
Date: Mon, 15 Jul 2024 14:19:12 +0000 [thread overview]
Message-ID: <3848723ea2584b9b813c3d76e1e6dd59@huawei.com> (raw)
In-Reply-To: <b93b570158794e28bf8c00a949afa8b4@huawei.com>
> From: qemu-arm-bounces+salil.mehta=huawei.com@nongnu.org <qemu-
> arm-bounces+salil.mehta=huawei.com@nongnu.org> On Behalf Of Salil
> Mehta via
> Sent: Monday, July 15, 2024 3:14 PM
> To: Igor Mammedov <imammedo@redhat.com>
>
> Hi Igor,
>
> > From: Igor Mammedov <imammedo@redhat.com>
> > Sent: Monday, July 15, 2024 2:55 PM
> > To: Salil Mehta <salil.mehta@huawei.com>
> >
> > On Sat, 13 Jul 2024 19:25:09 +0100
> > Salil Mehta <salil.mehta@huawei.com> wrote:
> >
> > > [Note: References are present at the last after the revision
> > history] > > Virtual CPU hotplug support is being added across
> > various architectures [1][3].
> > > This series adds various code bits common across all architectures:
> > >
> > > 1. vCPU creation and Parking code refactor [Patch 1] 2. Update ACPI
> > > GED framework to support vCPU Hotplug [Patch 2,3] 3. ACPI CPUs AML
> > > code change [Patch 4,5] 4. Helper functions to support unrealization
> > > of CPU objects [Patch 6,7]
> >
> > with patch 1 and 3 fixed should be good to go.
> >
> > Salil,
> > Can you remind me what happened to migration part of this?
> > Ideally it should be a part of of this series as it should be common
> > for everything that uses GED and should be a conditional part of
> > GED's VMSTATE.
> >
> > If this series is just a common base and no actual hotplug on top of
> > it is merged in this release (provided patch 13 is fixed), I'm fine
> > with migration bits being a separate series on top.
> >
> > However if some machine would be introducing cpu hotplug in the same
> > release, then the migration part should be merged before it or be a
> > part that cpu hotplug series.
>
> We have tested Live/Pseudo Migration and it seem to work with the
> changes part of the architecture specific patch-set.
>
> Ampere: https://lore.kernel.org/all/e17e28ac-28c7-496f-b212-
> 2c9b552dbf63@amperemail.onmicrosoft.com/
> Oracle: https://lore.kernel.org/all/46D74D30-EE54-4AD2-8F0E-
> BA5627FAA63E@oracle.com/
>
>
> For ARM, please check below patch part of RFC V3 for changes related to
> migration:
> https://lore.kernel.org/qemu-devel/20240613233639.202896-15-
> salil.mehta@huawei.com/
Do you wish to move below change into this path-set and make it common
to all instead?
diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c
index 63226b0040..e92ce07955 100644
--- a/hw/acpi/generic_event_device.c
+++ b/hw/acpi/generic_event_device.c
@@ -333,6 +333,16 @@ static const VMStateDescription vmstate_memhp_state = {
}
};
+static const VMStateDescription vmstate_cpuhp_state = {
+ .name = "acpi-ged/cpuhp",
+ .version_id = 1,
+ .minimum_version_id = 1,
+ .fields = (VMStateField[]) {
+ VMSTATE_CPU_HOTPLUG(cpuhp_state, AcpiGedState),
+ VMSTATE_END_OF_LIST()
+ }
+};
+
static const VMStateDescription vmstate_ged_state = {
.name = "acpi-ged-state",
.version_id = 1,
@@ -381,6 +391,7 @@ static const VMStateDescription vmstate_acpi_ged = {
},
.subsections = (const VMStateDescription * const []) {
&vmstate_memhp_state,
+ &vmstate_cpuhp_state,
&vmstate_ghes_state,
NULL
}
Maybe I can add a separate patch for this in the end? Please confirm.
Thanks
Salil.
next prev parent reply other threads:[~2024-07-15 14:19 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-13 18:25 [PATCH V15 0/7] Add architecture agnostic code to support vCPU Hotplug Salil Mehta via
2024-07-13 18:25 ` [PATCH V15 1/7] accel/kvm: Extract common KVM vCPU {creation,parking} code Salil Mehta
2024-07-13 18:25 ` [PATCH V15 1/7] accel/kvm: Extract common KVM vCPU {creation, parking} code Salil Mehta via
2024-07-15 12:49 ` [PATCH V15 1/7] accel/kvm: Extract common KVM vCPU {creation,parking} code Igor Mammedov
2024-07-15 13:28 ` Igor Mammedov
2024-07-15 13:57 ` Salil Mehta
2024-07-15 13:57 ` Salil Mehta via
2024-07-13 18:25 ` [PATCH V15 2/7] hw/acpi: Move CPU ctrl-dev MMIO region len macro to common header file Salil Mehta
2024-07-13 18:25 ` Salil Mehta via
2024-07-15 12:50 ` Igor Mammedov
2024-07-13 18:25 ` [PATCH V15 3/7] hw/acpi: Update ACPI GED framework to support vCPU Hotplug Salil Mehta
2024-07-13 18:25 ` Salil Mehta via
2024-07-15 13:12 ` Igor Mammedov
2024-07-15 13:55 ` Salil Mehta
2024-07-15 13:55 ` Salil Mehta via
2024-07-13 18:25 ` [PATCH V15 4/7] hw/acpi: Update GED _EVT method AML with CPU scan Salil Mehta
2024-07-13 18:25 ` Salil Mehta via
2024-07-15 12:55 ` Igor Mammedov
2024-07-13 18:25 ` [PATCH V15 5/7] hw/acpi: Update CPUs AML with cpu-(ctrl)dev change Salil Mehta
2024-07-13 18:25 ` Salil Mehta via
2024-07-15 13:39 ` Igor Mammedov
2024-07-13 18:25 ` [PATCH V15 6/7] physmem: Add helper function to destroy CPU AddressSpace Salil Mehta via
2024-07-13 18:25 ` [PATCH V15 7/7] gdbstub: Add helper function to unregister GDB register space Salil Mehta
2024-07-13 18:25 ` Salil Mehta via
2024-07-15 13:40 ` Igor Mammedov
2024-07-15 6:11 ` [PATCH V15 0/7] Add architecture agnostic code to support vCPU Hotplug Zhao Liu
2024-07-15 8:45 ` Salil Mehta
2024-07-15 8:45 ` Salil Mehta via
2024-07-15 11:03 ` Vishnu Pajjuri
2024-07-15 11:07 ` Salil Mehta
2024-07-15 11:13 ` Michael S. Tsirkin
2024-07-15 11:27 ` Salil Mehta
2024-07-15 11:27 ` Salil Mehta via
2024-07-15 11:33 ` Michael S. Tsirkin
2024-07-15 11:35 ` Salil Mehta
2024-07-15 11:35 ` Salil Mehta via
2024-07-15 13:55 ` Igor Mammedov
2024-07-15 11:14 ` Salil Mehta
2024-07-15 11:14 ` Salil Mehta via
2024-07-15 13:54 ` Igor Mammedov
2024-07-15 14:14 ` Salil Mehta
2024-07-15 14:14 ` Salil Mehta via
2024-07-15 14:19 ` Salil Mehta via [this message]
2024-07-15 15:11 ` Igor Mammedov
2024-07-16 3:38 ` Salil Mehta
2024-07-16 9:52 ` Igor Mammedov
2024-07-16 11:43 ` Salil Mehta via
2024-07-16 15:21 ` 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=3848723ea2584b9b813c3d76e1e6dd59@huawei.com \
--to=qemu-devel@nongnu.org \
--cc=alex.bennee@linaro.org \
--cc=andrew.jones@linux.dev \
--cc=darren@os.amperecomputing.com \
--cc=david@redhat.com \
--cc=eric.auger@redhat.com \
--cc=gshan@redhat.com \
--cc=harshpb@linux.ibm.com \
--cc=ilkka@os.amperecomputing.com \
--cc=imammedo@redhat.com \
--cc=jean-philippe@linaro.org \
--cc=jiakernel2@gmail.com \
--cc=jonathan.cameron@huawei.com \
--cc=karl.heubaum@oracle.com \
--cc=linux@armlinux.org.uk \
--cc=linuxarm@huawei.com \
--cc=lixianglai@loongson.cn \
--cc=lpieralisi@kernel.org \
--cc=maobibo@loongson.cn \
--cc=maz@kernel.org \
--cc=miguel.luis@oracle.com \
--cc=mst@redhat.com \
--cc=npiggin@gmail.com \
--cc=oliver.upton@linux.dev \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=rafael@kernel.org \
--cc=richard.henderson@linaro.org \
--cc=salil.mehta@huawei.com \
--cc=salil.mehta@opnsrc.net \
--cc=vishnu@os.amperecomputing.com \
--cc=wangxiongfeng2@huawei.com \
--cc=wangyanan55@huawei.com \
--cc=will@kernel.org \
--cc=zhukeqian1@huawei.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 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.