All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Miguel Luis <miguel.luis@oracle.com>
Cc: Salil Mehta <salil.mehta@huawei.com>,
	 "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	 "qemu-arm@nongnu.org" <qemu-arm@nongnu.org>,
	"mst@redhat.com" <mst@redhat.com>,
	 "maz@kernel.org" <maz@kernel.org>,
	"jean-philippe@linaro.org" <jean-philippe@linaro.org>,
	"jonathan.cameron@huawei.com" <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>,
	"imammedo@redhat.com" <imammedo@redhat.com>,
	 "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>,
	 "will@kernel.org" <will@kernel.org>,
	"ardb@kernel.org" <ardb@kernel.org>,
	 "oliver.upton@linux.dev" <oliver.upton@linux.dev>,
	 "pbonzini@redhat.com" <pbonzini@redhat.com>,
	"gshan@redhat.com" <gshan@redhat.com>,
	 "rafael@kernel.org" <rafael@kernel.org>,
	 "borntraeger@linux.ibm.com" <borntraeger@linux.ibm.com>,
	 "alex.bennee@linaro.org" <alex.bennee@linaro.org>,
	 "gustavo.romero@linaro.org" <gustavo.romero@linaro.org>,
	 "npiggin@gmail.com" <npiggin@gmail.com>,
	"harshpb@linux.ibm.com" <harshpb@linux.ibm.com>,
	 "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>,
	 "gankulkarni@os.amperecomputing.com"
	<gankulkarni@os.amperecomputing.com>,
	 Karl Heubaum <karl.heubaum@oracle.com>,
	 "salil.mehta@opnsrc.net" <salil.mehta@opnsrc.net>,
	 "zhukeqian1@huawei.com" <zhukeqian1@huawei.com>,
	 "wangxiongfeng2@huawei.com" <wangxiongfeng2@huawei.com>,
	 "wangyanan55@huawei.com" <wangyanan55@huawei.com>,
	 "wangzhou1@hisilicon.com" <wangzhou1@hisilicon.com>,
	 "linuxarm@huawei.com" <linuxarm@huawei.com>,
	"jiakernel2@gmail.com" <jiakernel2@gmail.com>,
	 "maobibo@loongson.cn" <maobibo@loongson.cn>,
	 "lixianglai@loongson.cn" <lixianglai@loongson.cn>,
	"shahuang@redhat.com" <shahuang@redhat.com>,
	 "zhao1.liu@intel.com" <zhao1.liu@intel.com>
Subject: Re: [PATCH RFC V6 00/24] Support of Virtual CPU Hotplug-like Feature for ARMv8+ Arch
Date: Thu, 09 Oct 2025 07:42:10 +0200	[thread overview]
Message-ID: <87bjmgiqbx.fsf@pond.sub.org> (raw)
In-Reply-To: <6A8391B8-5E75-49B0-834B-00183BA4CF3E@oracle.com> (Miguel Luis's message of "Wed, 8 Oct 2025 16:04:11 +0000")

Miguel Luis <miguel.luis@oracle.com> writes:

> Hi Markus,
>
>> On 8 Oct 2025, at 12:33, Markus Armbruster <armbru@redhat.com> wrote:
>> 
>> Salil Mehta <salil.mehta@huawei.com> writes:
>> 
>> [...]
>> 
>>> ===================
>>> (VIII) Repositories
>>> ===================
>>> 
>>> (*) Latest Qemu RFC V6 (Architecture Specific) patch set:
>>>    https://github.com/salil-mehta/qemu.git virt-cpuhp-armv8/rfc-v6
>> 
>> Does not compile for me (x86_64 box running Fedora 41):
>> 
>>    [...]
>> 
>>    FAILED: qemu-system-loongarch64 
>>    cc -m64 @qemu-system-loongarch64.rsp
>>    /usr/bin/ld: libsystem.a.p/hw_acpi_generic_event_device.c.o:(.data.rel+0x50): undefined reference to `vmstate_cpu_ospm_state'
>>    collect2: error: ld returned 1 exit status
>>    [6757/7232] Linking target qemu-system-mips64
>>    [6758/7232] Generating docs/QEMU manual with a custom command
>>    FAILED: docs/docs.stamp 
>>    /usr/bin/env CONFDIR=etc/qemu /work/armbru/qemu/bld/pyvenv/bin/sphinx-build -q -W -Dkerneldoc_werror=1 -j auto -Dversion=10.1.50 -Drelease= -Ddepfile=docs/docs.d -Ddepfile_stamp=docs/docs.stamp -b html -d /work/armbru/qemu/bld/docs/manual.p /work/armbru/qemu/docs /work/armbru/qemu/bld/docs/manual
>>    /work/armbru/qemu/docs/../include/hw/qdev-core.h:190: warning: Function parameter or member 'admin_power_state_supported' not described in 'DeviceClass'
>>    /work/armbru/qemu/docs/../include/hw/qdev-core.h:269: warning: Enum value 'DEVICE_ADMIN_POWER_STATE_ENABLED' not described in enum 'DeviceAdminPowerState'
>>    /work/armbru/qemu/docs/../include/hw/qdev-core.h:269: warning: Enum value 'DEVICE_ADMIN_POWER_STATE_DISABLED' not described in enum 'DeviceAdminPowerState'
>>    /work/armbru/qemu/docs/../include/hw/qdev-core.h:269: warning: Enum value 'DEVICE_ADMIN_POWER_STATE_REMOVED' not described in enum 'DeviceAdminPowerState'
>>    /work/armbru/qemu/docs/../include/hw/qdev-core.h:269: warning: Enum value 'DEVICE_ADMIN_POWER_STATE_MAX' not described in enum 'DeviceAdminPowerState'
>>    1 warnings as Errors
>> 
>>    Warning, treated as error:
>>    kernel-doc 'perl /work/armbru/qemu/docs/../scripts/kernel-doc -rst -enable-lineno -sphinx-version 7.3.7 -Werror /work/armbru/qemu/docs/../include/hw/qdev-core.h' failed with return code 1
>>    [6759/7232] Linking target qemu-system-i386
>>    FAILED: qemu-system-i386 
>>    cc -m64 @qemu-system-i386.rsp
>>    /usr/bin/ld: libsystem.a.p/hw_acpi_generic_event_device.c.o:(.data.rel+0x50): undefined reference to `vmstate_cpu_ospm_state'
>>    collect2: error: ld returned 1 exit status
>> 
>>    [...]
>> 
>>    [6874/7232] Linking target qemu-system-x86_64
>>    FAILED: qemu-system-x86_64 
>>    cc -m64 @qemu-system-x86_64.rsp
>>    /usr/bin/ld: libsystem.a.p/hw_acpi_generic_event_device.c.o:(.data.rel+0x50): undefined reference to `vmstate_cpu_ospm_state'
>>    collect2: error: ld returned 1 exit status
>> 
>
> I’ve had that same issue although it got compiled for me adding ACPI_CPU_OSPM_INTERFACE for MICROVM:
>
> diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig
> index 3a0e2b8ebb..29d9b09486 100644
> --- a/hw/i386/Kconfig
> +++ b/hw/i386/Kconfig
> @@ -133,6 +133,7 @@ config MICROVM
>      select VIRTIO_MMIO
>      select ACPI_PCI
>      select ACPI_HW_REDUCED
> +    select ACPI_CPU_OSPM_INTERFACE
>      select PCI_EXPRESS_GENERIC_BRIDGE
>      select USB_XHCI_SYSBUS
>      select I8254
>
> Miguel

Thanks for the hint.  I additionally need a similar change to
hw/loongarch/Kconfig, and comment hackery in hw/qdev-core.h.

>
>>    [...]
>> 
>>    ninja: build stopped: cannot make progress due to previous errors.
>>    make: *** [Makefile:168: run-ninja] Error 1
>>    make: Target 'all' not remade because of errors.
>>    make: Leaving directory '/work/armbru/qemu/bld'
>> 
>> [...]
>> 



  reply	other threads:[~2025-10-09  5:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250930224037.224833-1-salil.mehta@huawei.com>
2025-10-01  0:22 ` [PATCH RFC V6 00/24] Support of Virtual CPU Hotplug-like Feature for ARMv8+ Arch Salil Mehta
2025-10-08 12:33 ` Markus Armbruster
2025-10-08 16:04   ` Miguel Luis
2025-10-09  5:42     ` Markus Armbruster [this message]
2025-10-09  9:17       ` Miguel Luis
2025-10-10  3:25         ` Salil Mehta
2025-10-10  3:21   ` Salil Mehta
2025-10-01  1:01 salil.mehta
2025-10-06 14:00 ` Igor Mammedov
2025-10-13  0:34 ` Gavin Shan
2025-10-22 10:07 ` Gavin Shan
2025-10-24  6:55   ` Gavin Shan

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=87bjmgiqbx.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=andrew.jones@linux.dev \
    --cc=ardb@kernel.org \
    --cc=borntraeger@linux.ibm.com \
    --cc=darren@os.amperecomputing.com \
    --cc=david@redhat.com \
    --cc=eric.auger@redhat.com \
    --cc=gankulkarni@os.amperecomputing.com \
    --cc=gshan@redhat.com \
    --cc=gustavo.romero@linaro.org \
    --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=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rafael@kernel.org \
    --cc=richard.henderson@linaro.org \
    --cc=salil.mehta@huawei.com \
    --cc=salil.mehta@opnsrc.net \
    --cc=shahuang@redhat.com \
    --cc=vishnu@os.amperecomputing.com \
    --cc=wangxiongfeng2@huawei.com \
    --cc=wangyanan55@huawei.com \
    --cc=wangzhou1@hisilicon.com \
    --cc=will@kernel.org \
    --cc=zhao1.liu@intel.com \
    --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.