From: Peter Maydell <peter.maydell@linaro.org>
To: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: qemu-arm <qemu-arm@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Andrew Jones <drjones@redhat.com>,
"Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
Shannon Zhao <shannon.zhao@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v4 2/3] hw/arm/virt: Add PMU node for virt machine
Date: Mon, 6 Jun 2016 16:59:31 +0100 [thread overview]
Message-ID: <CAFEAcA_jUC92Y3Ne4k+9vo2iQuFiJqgE_Cfth_GZCzeBAyMcJw@mail.gmail.com> (raw)
In-Reply-To: <1461670846-13196-3-git-send-email-zhaoshenglong@huawei.com>
On 26 April 2016 at 12:40, Shannon Zhao <zhaoshenglong@huawei.com> wrote:
> From: Shannon Zhao <shannon.zhao@linaro.org>
>
> Add a virtual PMU device for virt machine while use PPI 7 for PMU
> overflow interrupt number.
>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> diff --git a/stubs/kvm.c b/stubs/kvm.c
> index ddd6204..667e269 100644
> --- a/stubs/kvm.c
> +++ b/stubs/kvm.c
> @@ -6,3 +6,8 @@ int kvm_arch_irqchip_create(MachineState *ms, KVMState *s)
> {
> return 0;
> }
> +
> +int kvm_arm_pmu_create(CPUState *cs, int irq)
> +{
> + return 0;
> +}
Hi. I'm afraid this breaks compilation on 32-bit ARM hosts:
for 32-bit ARM we don't have a real kvm_arm_pmu_create() so we
end up pulling in the stubs/kvm.o object file from the stub
library. Unfortunately that then means we have two versions of
kvm_arch_irqchip_create() and the linker refuses to link.
You need to split this stub function into its own .c file --
you can only share a .c file with another stub function if
it's always the case that a build either needs all the stubs
or none of them.
I've dropped the PMU series from target-arm.next.
thanks
-- PMM
next prev parent reply other threads:[~2016-06-06 15:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 11:40 [Qemu-devel] [PATCH v4 0/3] Add guest PMU in machine virt Shannon Zhao
2016-04-26 11:40 ` [Qemu-devel] [PATCH v4 1/3] target-arm: kvm64: set guest PMUv3 feature bit if supported Shannon Zhao
2016-04-26 11:40 ` [Qemu-devel] [PATCH v4 2/3] hw/arm/virt: Add PMU node for virt machine Shannon Zhao
2016-04-26 12:06 ` Andrew Jones
2016-06-06 15:59 ` Peter Maydell [this message]
2016-06-07 2:32 ` Shannon Zhao
2016-04-26 11:40 ` [Qemu-devel] [PATCH v4 3/3] hw/arm/virt-acpi-build: Add PMU IRQ number in ACPI table Shannon Zhao
2016-05-24 16:14 ` [Qemu-devel] [PATCH v4 0/3] Add guest PMU in machine virt Peter Maydell
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=CAFEAcA_jUC92Y3Ne4k+9vo2iQuFiJqgE_Cfth_GZCzeBAyMcJw@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=drjones@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.org \
--cc=zhaoshenglong@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 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).