|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v6 09/12] softmmu/physmem: Don't use atomic operations in ram_block_discard_(disable|require) |
Date: | Mon, 22 Feb 2021 14:14:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 22/02/21 12:57, David Hildenbrand wrote:
-/*- * If positive, discarding RAM is disabled. If negative, discarding RAM is - * required to work and cannot be disabled. - */ -static int ram_block_discard_disabled; +static unsigned int ram_block_discard_requirers; +static unsigned int ram_block_discard_disablers;
Requirer is not an English word, so perhaps use required_cnt and disabled_cnt?
Also, uncoordinated require is unused, and therefore uncoordinated disable is also never going to block anything. Does it make sense to keep it in the API?
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |