On 11/21/24 17:24, Xiaoyao Li wrote:
Could it go into cpu_common_initfn()?

It can, I think.

I'll move them into cpu_common_initfn() in v2 to avoid touching all the ARCHes.

It does look better than the alternative of duplicating code.

On the other hand qemu_init_vcpu is already duplicated and I'm not sure I like relying on qdev_get_machine() inside the instance_init function...

Paolo


Reply via email to