qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC] accel: add cpu_reset


From: Paolo Bonzini
Subject: Re: [RFC] accel: add cpu_reset
Date: Tue, 23 Mar 2021 08:55:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 22/03/21 14:51, Claudio Fontana wrote:

It is possible to include calls from one sourceset to another (including
from common to specific) as long as the conditions ensure that the
symbol is defined.

I guess this last sentence is the more tricky for me to get: "as long as the 
conditions ensure that the symbol is defined".

It means that for example you need to cannot call block_ss code from common_ss without any condition, because for example usermode emulation targets will fail to link. But you can freely call block_ss from files that are system-emulation only (such as hw/block or hw/scsi).

And on the contrary, as long as all specific_ss file implement the function, it is fine to call it from non-target-specific files without any condition. This is what happens already with (for example) monitor commands that have a target-specific implementation but are present in all targets.

Paolo




reply via email to

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