rdma: introduce qemu_file_mode_is_not_valid()
authorMichael R. Hines <mrhines@us.ibm.com>
Wed, 26 Jun 2013 01:35:31 +0000 (21:35 -0400)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Jun 2013 00:38:36 +0000 (02:38 +0200)
commitbc1256f7f187cc7d491bfe3861249a60873adbbc
tree82014c8daa9756d65c5deb725d37f25962770d80
parent7e114f8cf24a01893226e3a4d22a288125515cfd
rdma: introduce qemu_file_mode_is_not_valid()

QEMUFileRDMA also has read and write modes. This function is now
shared to reduce code duplication.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Chegu Vinod <chegu_vinod@hp.com>
Tested-by: Chegu Vinod <chegu_vinod@hp.com>
Tested-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/qemu-file.h
savevm.c