Skip to content

rocker: prepare for easy addition of other worlds

Jiri Pirko qemu-devel 2 versions – Applied

Status from this message: Applied to -net.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4rocker: forbid to change world typehw/net/rocker/rocker.c hw/net/rocker/rocker_fp.c hw/net/rocker/rocker_fp.h+13 -10 replies
2/4rocker: return -ENOMEM in case of some world alloc failshw/net/rocker/rocker.c+1 -00 replies
3/4rocker: add name field into WorldOps ale let world specify its namehw/net/rocker/rocker_of_dpa.c hw/net/rocker/rocker_world.c hw/net/rocker/rocker_world.h+3 -60 replies
4/4rocker: allow user to specify rocker world by propertyhw/net/rocker/rocker.c+28 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [patch qemu v2 0/4] rocker: prepare for easy addition of other worlds

From: Jiri Pirko <[email protected]>

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(-)
Signature · 1 line
2.4.3