tap.c (668f62ec621e4e2919fb7d4caa5d805764c5852d) tap.c (af175e85f92c870386ad74f466e29537b79611d3)
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 * Copyright (c) 2009 Red Hat, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 822 unchanged lines hidden (view full) ---

831 error_setg(errp, "The number of fds passed does not match "
832 "the number of vhostfds passed");
833 ret = -1;
834 goto free_fail;
835 }
836 }
837
838 for (i = 0; i < nfds; i++) {
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 * Copyright (c) 2009 Red Hat, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 822 unchanged lines hidden (view full) ---

831 error_setg(errp, "The number of fds passed does not match "
832 "the number of vhostfds passed");
833 ret = -1;
834 goto free_fail;
835 }
836 }
837
838 for (i = 0; i < nfds; i++) {
839 fd = monitor_fd_param(cur_mon, fds[i], &err);
839 fd = monitor_fd_param(cur_mon, fds[i], errp);
840 if (fd == -1) {
840 if (fd == -1) {
841 error_propagate(errp, err);
842 ret = -1;
843 goto free_fail;
844 }
845
846 qemu_set_nonblock(fd);
847
848 if (i == 0) {
849 vnet_hdr = tap_probe_vnet_hdr(fd);

--- 141 unchanged lines hidden ---
841 ret = -1;
842 goto free_fail;
843 }
844
845 qemu_set_nonblock(fd);
846
847 if (i == 0) {
848 vnet_hdr = tap_probe_vnet_hdr(fd);

--- 141 unchanged lines hidden ---