[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/21] rdma: Fix qemu crash when IPv6 address is used
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 06/21] rdma: Fix qemu crash when IPv6 address is used for migration |
Date: |
Fri, 12 Jun 2015 07:03:35 +0200 |
From: Padmanabh Ratnakar <address@hidden>
Qemu crashes when IPv6 address is specified for migration and access
to any RDMA uverbs device available on the system is blocked using cgroups.
Fix the crash by checking the return value of ibv_open_device routine.
Signed-off-by: Meghana Cheripady <address@hidden>
Signed-off-by: Padmanabh Ratnakar <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
migration/rdma.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/migration/rdma.c b/migration/rdma.c
index 77e3444..3671903 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -790,6 +790,13 @@ static int qemu_rdma_broken_ipv6_kernel(Error **errp,
struct ibv_context *verbs)
for (x = 0; x < num_devices; x++) {
verbs = ibv_open_device(dev_list[x]);
+ if (!verbs) {
+ if (errno == EPERM) {
+ continue;
+ } else {
+ return -EINVAL;
+ }
+ }
if (ibv_query_port(verbs, 1, &port_attr)) {
ibv_close_device(verbs);
--
2.4.3
- [Qemu-devel] [PULL v2 00/21] migration pull request, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 02/21] migration: move savevm.c inside migration/, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 03/21] migration: Add myself to the copyright list of both files, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 04/21] migration: reduce include files, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 05/21] arch_init: Clean up the duplicate variable 'len' defining in ram_load(), Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 06/21] rdma: Fix qemu crash when IPv6 address is used for migration,
Juan Quintela <=
- [Qemu-devel] [PULL 07/21] migration: Remove duplicated assignment of SETUP status, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 08/21] migration: create savevm_state, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 01/21] migration: move ram stuff to migration/ram, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 10/21] Add qemu_get_counted_string to read a string prefixed by a count byte, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 11/21] Split header writing out of qemu_savevm_state_begin, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 12/21] qemu_ram_foreach_block: pass up error value, and down the ramblock name, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 09/21] migration: Use normal VMStateDescriptions for Subsections, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 13/21] Create MigrationIncomingState, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 14/21] Move copy out of qemu_peek_buffer, Juan Quintela, 2015/06/12
- [Qemu-devel] [PULL 15/21] Move loadvm_handlers into MigrationIncomingState, Juan Quintela, 2015/06/12