qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] ARM cpu object, setting properties from board model


From: Peter Maydell
Subject: Re: [Qemu-devel] ARM cpu object, setting properties from board model
Date: Tue, 19 Nov 2013 20:12:32 +0000

On 19 November 2013 20:01, Peter Maydell <address@hidden> wrote:
> I find myself with a use case where I would like to set
> a CPU object property from the board model init function
> (specifically, I'd like the board model to be able to say
> "this CPU will boot via PSCI so if you're KVM then start
> it appropriately").
>
> I could just reach in and fiddle with the ARMCPU field
> the way hw/arm/highback.c does with reset_cbar (and in fact
> that's what I'm likely to do for the moment).

In fact it turns out that I can't do it like this, because
kvm_arch_init_vcpu() gets called as part of realize, so
I really do have to set the field/property after init
but before realize. So much for expediency :-)

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]