Received: from eggs.gnu.org ([2001:4830:134:3::10]:56432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYwxa-0001H4-EG for qemu-devel@nongnu.org; Thu, 25 Feb 2016 09:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYwxU-00081o-VM for qemu-devel@nongnu.org; Thu, 25 Feb 2016 09:32:06 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:34518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYwxU-00081M-KZ for qemu-devel@nongnu.org; Thu, 25 Feb 2016 09:32:00 -0500 Received: by mail-wm0-x22c.google.com with SMTP id b205so34068474wmb.1 for ; Thu, 25 Feb 2016 06:32:00 -0800 (PST) From: Jiri Pirko Date: Thu, 25 Feb 2016 15:31:54 +0100 Message-Id: <1456410718-24506-1-git-send-email-jiri@resnulli.us> Subject: [Qemu-devel] [patch qemu v2 0/4] rocker: prepare for easy addition of other worlds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: prem@barefootnetworks.com, daniel@iogearbox.net, stefanha@gmail.com, jasowang@redhat.com, parag.bhide@barefootnetworks.com, idosch@mellanox.com, sfeldma@gmail.com, eladr@mellanox.com, pbonzini@redhat.com, alexei.starovoitov@gmail.com From: Jiri Pirko This patchset does couple of small changes in order to prepare for smooth addition of other worlds, like P4 and BPF. qemu user will be able to request desired rocker world by "world=worldname" property. v1->v2: patch 2/4: - new patch patch 4/4: - goto error path in case world type is not found for name - move worlds alloc check right after worlds alloc Jiri Pirko (4): rocker: forbid to change world type rocker: return -ENOMEM in case of some world alloc fails rocker: add name field into WorldOps ale let world specify its name rocker: allow user to specify rocker world by property hw/net/rocker/rocker.c | 38 ++++++++++++++++++++++++++++++++++++-- hw/net/rocker/rocker_fp.c | 5 +++++ hw/net/rocker/rocker_fp.h | 1 + hw/net/rocker/rocker_of_dpa.c | 1 + hw/net/rocker/rocker_world.c | 7 +------ hw/net/rocker/rocker_world.h | 1 + 6 files changed, 45 insertions(+), 8 deletions(-) -- 2.4.3