mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
migration/rdma: Remove redundant migration_in_postcopy checks
Since we have disabled RDMA + postcopy, it's safe to remove the migration_in_postcopy() that follows the migrate_rdma(). Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Message-ID: <20250305062825.772629-5-lizhijian@fujitsu.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
103fa64195
commit
4ecd6beaf9
1 changed files with 3 additions and 3 deletions
|
@ -3284,7 +3284,7 @@ err:
|
||||||
int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
|
int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
|
||||||
ram_addr_t offset, size_t size)
|
ram_addr_t offset, size_t size)
|
||||||
{
|
{
|
||||||
if (!migrate_rdma() || migration_in_postcopy()) {
|
if (!migrate_rdma()) {
|
||||||
return RAM_SAVE_CONTROL_NOT_SUPP;
|
return RAM_SAVE_CONTROL_NOT_SUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3829,7 +3829,7 @@ int rdma_block_notification_handle(QEMUFile *f, const char *name)
|
||||||
|
|
||||||
int rdma_registration_start(QEMUFile *f, uint64_t flags)
|
int rdma_registration_start(QEMUFile *f, uint64_t flags)
|
||||||
{
|
{
|
||||||
if (!migrate_rdma() || migration_in_postcopy()) {
|
if (!migrate_rdma()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3861,7 +3861,7 @@ int rdma_registration_stop(QEMUFile *f, uint64_t flags)
|
||||||
RDMAControlHeader head = { .len = 0, .repeat = 1 };
|
RDMAControlHeader head = { .len = 0, .repeat = 1 };
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!migrate_rdma() || migration_in_postcopy()) {
|
if (!migrate_rdma()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue