qemu-devel
[Top][All Lists]
Advanced

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

Re: The madness of ad hoc special IDs (was: [PATCH] machine: do not cras


From: Thomas Huth
Subject: Re: The madness of ad hoc special IDs (was: [PATCH] machine: do not crash if default RAM backend name has been stollen)
Date: Tue, 23 May 2023 15:06:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 23/05/2023 14.31, Markus Armbruster wrote:
...
To stop creating more moles, we need to reserve IDs for the system's
use, and let the system pick only reserved IDs going forward.

Just something to add here: We already have a function for generating internal IDs, the id_generate() function in util/id.c ... our convention is that we use "#" as prefix for those, so for new code (which is not affected by migration backward compatibility problems), we should maybe take care of always using that prefix for internal IDs, too.

 Thomas





reply via email to

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