Skip to contentSkip to conversation

test-vmstate: remove yield_until_fd_readable

PATCH Applied Paolo Bonzini 4 participants 4 messages Feb 3, 2017 – Feb 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-vmstate: remove yield_until_fd_readable

The function is not needed anymore now that migration is built on top of QIOChannel.

---
 tests/test-vmstate.c | 11 -----------
 1 file changed, 11 deletions(-)
tests/test-vmstate.c +0 -11
index 9d87faf..0c2af4d 100644
@@ -33,17 +33,6 @@
 static char temp_file[] = "/tmp/vmst.test.XXXXXX";
 static int temp_fd;
 
-/* Fake yield_until_fd_readable() implementation so we don't have to pull the
- * coroutine code as dependency.
- */
-void yield_until_fd_readable(int fd)
-{
-    fd_set fds;
-    FD_ZERO(&fds);
-    FD_SET(fd, &fds);
-    select(fd + 1, &fds, NULL, NULL, NULL);
-}
-
 
 /* Duplicate temp_fd and seek to the beginning of the file */
 static QEMUFile *open_test_file(bool write)
Signature · 1 line
2.9.3
Tested-by on v1 1/1
#1 lore raw
Quoted 21 lines · Paolo Bonzini

The function is not needed anymore now that migration is built on top of QIOChannel.

---
 tests/test-vmstate.c | 11 -----------
 1 file changed, 11 deletions(-)
tests/test-vmstate.c +0 -4
index 9d87faf..0c2af4d 100644
@@ -33,17 +33,6 @@
 static char temp_file[] = "/tmp/vmst.test.XXXXXX";
 static int temp_fd;
 
-/* Fake yield_until_fd_readable() implementation so we don't have to pull the
- * coroutine code as dependency.
- */
-void yield_until_fd_readable(int fd)

tests/test-vmstate.c line 38

Quoted 10 lines
tests/test-vmstate.c +0 -7
-{
-    fd_set fds;
-    FD_ZERO(&fds);
-    FD_SET(fd, &fds);
-    select(fd + 1, &fds, NULL, NULL, NULL);
-}
-
 
 /* Duplicate temp_fd and seek to the beginning of the file */
 static QEMUFile *open_test_file(bool write)