OSDN Git Service

migration: reuse mis->userfault_quit_fd
authorPeter Xu <peterx@redhat.com>
Thu, 8 Feb 2018 10:31:06 +0000 (18:31 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 14 Feb 2018 10:35:45 +0000 (10:35 +0000)
commit64f615fe34b4d9e2487fbe61ecb7b4041fc6beb9
treec49745f6c1aa5f450a6251fec3f97d1a085c14a1
parent7a9ddfbfae4aaf8a7e4dafb57ac9fecad807a6b7
migration: reuse mis->userfault_quit_fd

It was only used for quitting the page fault thread before. Let it be
something more useful - now we can use it to notify a "wake" for the
page fault thread (for any reason), and it only means "quit" if the
fault_thread_quit is set.

Since we changed what it does, renaming it to userfault_event_fd.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180208103132.28452-3-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.h
migration/postcopy-ram.c