From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdz5-0005kJ-DM for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPdz2-0004EH-7A for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:11 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:20287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdz2-0004E4-0f for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:08 -0500 From: Laurent Vivier Date: Sat, 30 Jan 2016 23:26:57 +0100 Message-Id: <1454192820-5095-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PATCH RFC 0/3] linux-user: netlink support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: Laurent Vivier , qemu-devel@nongnu.org, agraf@suse.de Since commit: e36800c linux-user: add signalfd/signalfd4 syscalls It is now possible to register handlers to a file descriptor to translate a data stream transiting by this file descriptor. We can now decode netlink information coming from the guest and inject a translated one into the host, and vice-versa. This series is an "RFC" because it works (we can boot a container using systemd and use iproute tools) but some problems remain. Some results (x86_64 host) with some guests: * ppc: it can boot a debian 8.2/8.3 (Jessie) LXC container and networking works fine (dhcp and "apt-get upgrade"). "ip link" generates some traces in the kernel log: "netlink: 8 bytes leftover after parsing attributes in process `ip'." * ppc64: it can boot a fedora 21 LXC container. Some issues with dhclient and "dnf update" (-> Invalid instruction, can be caused by a memory corruption done by netlink calls). "ip link" generates some traces in the kernel log: "netlink: 8 bytes leftover after parsing attributes in process `ip'." * ppc64le: Debian 8.3 (Jessie) works fine. * sh4: container doesn't work but 'ip' in a chroot works well. * arm: Raspbian 8.3 (Jessie) works fine. * s390x: container Debian 8.1 boots well, but "apt-get" hangs on networking (name resolution?). "ip link" generates some traces in the kernel log: "netlink: 8 bytes leftover after parsing attributes in process `ip'." Laurent Vivier (3): linux-user: add rtnetlink(7) support linux-user: support netlink protocol NETLINK_KOBJECT_UEVENT linux-user: add netlink audit linux-user/syscall.c | 537 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 531 insertions(+), 6 deletions(-) -- 2.5.0