diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-16 16:59:00 +0000 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-16 16:59:33 +0000 |
| commit | 9aba81d8eb048db908c94a3c40c25a5fde0caee6 (patch) | |
| tree | b765e7fb5e9a3c2143c68b0414e0055adb70e785 /results/classifier/118/socket/1744009 | |
| parent | b89a938452613061c0f1f23e710281cf5c83cb29 (diff) | |
| download | qemu-analysis-9aba81d8eb048db908c94a3c40c25a5fde0caee6.tar.gz qemu-analysis-9aba81d8eb048db908c94a3c40c25a5fde0caee6.zip | |
add 18th iteration of classifier
Diffstat (limited to 'results/classifier/118/socket/1744009')
| -rw-r--r-- | results/classifier/118/socket/1744009 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/results/classifier/118/socket/1744009 b/results/classifier/118/socket/1744009 new file mode 100644 index 000000000..45e61c959 --- /dev/null +++ b/results/classifier/118/socket/1744009 @@ -0,0 +1,58 @@ +socket: 0.942 +device: 0.941 +x86: 0.857 +performance: 0.831 +network: 0.827 +graphic: 0.823 +user-level: 0.790 +architecture: 0.763 +semantic: 0.754 +mistranslation: 0.685 +vnc: 0.661 +peripherals: 0.621 +permissions: 0.583 +PID: 0.560 +debug: 0.522 +ppc: 0.518 +virtual: 0.506 +register: 0.485 +VMM: 0.465 +kernel: 0.441 +files: 0.432 +TCG: 0.394 +risc-v: 0.367 +boot: 0.338 +hypervisor: 0.335 +arm: 0.332 +assembly: 0.293 +i386: 0.244 +KVM: 0.217 + +qemu for windows fails to use multicast socket as netdev + +My host OS is Windows 7 x64 SP1. I installed qemu for windows from https://qemu.weilnetz.de/w64/.The version is 2.10.1, qemu-w64-setup-20171006.exe. I run qemu with the following command: + +qemu-system-x86_64.exe -net nic -net socket,mcast=234.5.5.5:6000 disk1.qcow2 + +It stopped with error: +bind: Unknown error +qemu-system-x86_64.exe: -net socket,mcast=234.5.5.5:6000: Device 'socket' could not be initialized + +Using the -netdev option has the same problem: +qemu-system-x86_64.exe -netdev socket,id=hostnet0,mcast=234.5.5.5:6000 -device e1000,netdev=hostnet0 disk1.qcow2 + +I tried many versions from https://qemu.weilnetz.de/w64/, but none of them could work. + +When I checked the source code, I think the problem is that on Microsoft Windows bind() can not use a multicast address. + +MSDN bind() reference +https://msdn.microsoft.com/en-us/library/windows/desktop/ms737550(v=vs.85).aspx +seems to have indicated the point. + +I changed the net_socket_mcast_create() in net/socket.c, make it bind to htonl(INADDR_ANY). After compiling, it seems to work correctly. + +Have you ever tried to suggest your change as a patch to the qemu-devel mailing list? See: +https://wiki.qemu.org/Contribute/SubmitAPatch + +[Expired for QEMU because there has been no activity for 60 days.] + |