postcopy-ram: do not use qatomic_mb_read

It does not even pair with a qatomic_mb_set(), so it is clearer to use
load-acquire in this case; they are synonyms.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2023-03-03 11:15:28 +01:00
parent 6a8a98a049
commit 4592eaf387
1 changed files with 1 additions and 1 deletions

View File

@ -1500,7 +1500,7 @@ static PostcopyState incoming_postcopy_state;
PostcopyState postcopy_state_get(void)
{
return qatomic_mb_read(&incoming_postcopy_state);
return qatomic_load_acquire(&incoming_postcopy_state);
}
/* Set the state and return the old state */