qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v1 0/4] Initialize nr_cores and nr_threads early and related


From: Paolo Bonzini
Subject: Re: [PATCH v1 0/4] Initialize nr_cores and nr_threads early and related clearup
Date: Fri, 22 Nov 2024 10:53:40 +0100



Il ven 22 nov 2024, 10:44 David Hildenbrand <david@redhat.com> ha scritto:
> I think we can check if qdev_get_machine() gets a valid result. If not,
> fall back to assign nr_cores and nr_threads to 1.

That sounds reasonable to me.

Another possibility is to add a cpu_realize() function that sets two properties and then calls qdev_realize(). It touches all architectures but not in the sense of adding new code, just changing it. And it is more code to write though, so if Xiaoyao prefers that I apply v1 I am okay with that.

Paolo


Cheers,

David / dhildenb


reply via email to

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