qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup

Function postcopy_ram_incoming_setup and postcopy_ram_incoming_cleanup
is a pair. Rename to make it clear for audience.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20191010011316.31363-2-richardw.yang@linux.intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

authored by

Wei Yang and committed by
Dr. David Alan Gilbert
2a7eb148 2d49bacd

+4 -4
+2 -2
migration/postcopy-ram.c
··· 1094 1094 return NULL; 1095 1095 } 1096 1096 1097 - int postcopy_ram_enable_notify(MigrationIncomingState *mis) 1097 + int postcopy_ram_incoming_setup(MigrationIncomingState *mis) 1098 1098 { 1099 1099 /* Open the fd for the kernel to give us userfaults */ 1100 1100 mis->userfault_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); ··· 1307 1307 return -1; 1308 1308 } 1309 1309 1310 - int postcopy_ram_enable_notify(MigrationIncomingState *mis) 1310 + int postcopy_ram_incoming_setup(MigrationIncomingState *mis) 1311 1311 { 1312 1312 assert(0); 1313 1313 return -1;
+1 -1
migration/postcopy-ram.h
··· 20 20 * Make all of RAM sensitive to accesses to areas that haven't yet been written 21 21 * and wire up anything necessary to deal with it. 22 22 */ 23 - int postcopy_ram_enable_notify(MigrationIncomingState *mis); 23 + int postcopy_ram_incoming_setup(MigrationIncomingState *mis); 24 24 25 25 /* 26 26 * Initialise postcopy-ram, setting the RAM to a state where we can go into
+1 -1
migration/savevm.c
··· 1869 1869 * shouldn't be doing anything yet so don't actually expect requests 1870 1870 */ 1871 1871 if (migrate_postcopy_ram()) { 1872 - if (postcopy_ram_enable_notify(mis)) { 1872 + if (postcopy_ram_incoming_setup(mis)) { 1873 1873 postcopy_ram_incoming_cleanup(mis); 1874 1874 return -1; 1875 1875 }