Skip to content

Refactor xl code

Wei Liu xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29xl: remove accidentally committed hunk from Makefiletools/xl/Makefile+0 -61 reply
2/29xl: update copyright informationtools/xl/xl.c tools/xl/xl.h tools/xl/xl_cmdimpl.c +2 more+5 -111 reply
3/29xl: remove inclusion of libxl_osdeps.htools/xl/xl.c tools/xl/xl_cmdimpl.c tools/xl/xl_sxp.c+1 -51 reply
4/29xl: use <> variant to include Xen tools library headerstools/xl/xl.c tools/xl/xl.h tools/xl/xl_cmdimpl.c +2 more+11 -111 reply
5/29xl: generate _paths.h.gitignore tools/xl/Makefile+7 -11 reply
6/29xl: remove trailing spaces in xl_cmdimpl.ctools/xl/xl_cmdimpl.c+2 -21 reply
7/29xl: lift a bunch of macros to xl_utils.htools/xl/xl_cmdimpl.c tools/xl/xl_utils.h+130 -1031 reply
8/29xl: move some helper functions to xl_utils.ctools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_utils.c +1 more+351 -2853 replies
9/29xl: split out tmem related code to xl_tmem.ctools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_tmem.c+253 -2291 reply
10/29xl: split out xl_parse.[ch]tools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_parse.c +1 more+2288 -21847 replies
11/29xl: split out cpupool related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_cpupool.c+625 -5931 reply
12/29xl: split out flask related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_flask.c+154 -1201 reply
13/29xl: split out vtpm related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_vtpm.c+154 -1221 reply
14/29xl: split out block related codetools/xl/Makefile tools/xl/xl_block.c tools/xl/xl_cmdimpl.c+130 -1001 reply
15/29xl: split out network related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_nic.c+173 -1411 reply
16/29xl: split out usb related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_usb.c+223 -1911 reply
17/29xl: split out scheduler related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_sched.c+889 -8561 reply
18/29xl: split out pci related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_pci.c+279 -2481 reply
19/29xl: split out vcpu related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_vcpu.c+338 -3071 reply
20/29xl: split out cd related codetools/xl/Makefile tools/xl/xl_cd.c tools/xl/xl_cmdimpl.c+115 -816 replies
21/29xl: split out memory related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_mem.c+168 -1371 reply
22/29xl: split out psr related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_psr.c+568 -5331 reply
23/29xl: split out functions to print out informationtools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_info.c+929 -8811 reply
24/29xl: split out vnc and console related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_console.c+131 -995 replies
25/29xl: split out miscellaneous functionstools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_misc.c +2 more+427 -3911 reply
26/29xl: split out vm lifecycle control functionstools/xl/Makefile tools/xl/xl.h tools/xl/xl_cmdimpl.c +1 more+1293 -12431 reply
27/29xl: split out save/restore related codetools/xl/Makefile tools/xl/xl.h tools/xl/xl_cmdimpl.c +1 more+280 -2281 reply
28/29xl: split out migration related codetools/xl/Makefile tools/xl/xl_cmdimpl.c tools/xl/xl_migrate.c+755 -7161 reply
29/29xl: merge xl_cmdimpl.c into xl.ctools/xl/Makefile tools/xl/xl.c tools/xl/xl_cmdimpl.c+59 -1081 reply

Reviews trailers per patch

28 of 29 patches have a Reviewed-by or Acked-by.

PatchIan Jackson
1/29A-b
2/29A-b
3/29A-b
4/29A-b
5/29A-b
6/29A-b
7/29A-b
8/29A-b
9/29A-b
10/29A-b A-b A-b
11/29A-b
12/29A-b
13/29A-b
14/29A-b
15/29A-b
16/29A-b
17/29A-b
18/29A-b
19/29A-b
20/29
21/29A-b
22/29A-b
23/29A-b
24/29A-b A-b
25/29A-b
26/29A-b
27/29A-b
28/29A-b
29/29A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/29] Refactor xl code

xl_cmdimpl.c has become prohibitively large (almost 10k lines in one single file). Try to split it up into multiple files according to the functionality of the code.

I will run a full osstest flight before merging. Send the first version out as quick as possible to gather feedback because I know other people are also touching this area of code.

Further improvements are certainly desired, for example we should probably give functions better names, but this series is already very long, so let's save that for another day.

Wei Liu (29):
xl: remove accidentally committed hunk from Makefile
xl: update copyright information
xl: remove inclusion of libxl_osdeps.h
xl: use <> variant to include Xen tools library headers
xl: generate _paths.h
xl: remove trailing spaces in xl_cmdimpl.c
xl: lift a bunch of macros to xl_utils.h
xl: move some helper functions to xl_utils.c
xl: split out tmem related code to xl_tmem.c
xl: split out xl_parse.[ch]
xl: split out cpupool related code
xl: split out flask related code
xl: split out vtpm related code
xl: split out block related code
xl: split out network related code
xl: split out usb related code
xl: split out scheduler related code
xl: split out pci related code
xl: split out vcpu related code
xl: split out cd related code
xl: split out memory related code
xl: split out psr related code
xl: split out functions to print out information
xl: split out vnc and console related code
xl: split out miscellaneous functions
xl: split out vm lifecycle control functions
xl: split out save/restore related code
xl: split out migration related code
xl: merge xl_cmdimpl.c into xl.c

 .gitignore                |    1 +
 tools/xl/Makefile         |   19 +-
 tools/xl/xl.c             |   70 +-
 tools/xl/xl.h             |   77 +-
 tools/xl/xl_block.c       |  129 +
 tools/xl/xl_cd.c          |  114 +
 tools/xl/xl_cmdimpl.c     | 9642 ---------------------------------------------
 tools/xl/xl_cmdtable.c    |    4 +-
 tools/xl/xl_console.c     |  130 +
 tools/xl/xl_cpupool.c     |  624 +++
 tools/xl/xl_flask.c       |  153 +
 tools/xl/xl_info.c        |  925 +++++
 tools/xl/xl_mem.c         |  167 +
 tools/xl/xl_migrate.c     |  754 ++++
 tools/xl/xl_misc.c        |  355 ++
 tools/xl/xl_nic.c         |  172 +
 tools/xl/xl_parse.c       | 2052 ++++++++++
 tools/xl/xl_parse.h       |   65 +
 tools/xl/xl_pci.c         |  278 ++
 tools/xl/xl_psr.c         |  567 +++
 tools/xl/xl_saverestore.c |  273 ++
 tools/xl/xl_sched.c       |  888 +++++
 tools/xl/xl_sxp.c         |   10 +-
 tools/xl/xl_tmem.c        |  251 ++
 tools/xl/xl_usb.c         |  222 ++
 tools/xl/xl_utils.c       |  328 ++
 tools/xl/xl_utils.h       |  157 +
 tools/xl/xl_vcpu.c        |  337 ++
 tools/xl/xl_vmcontrol.c   | 1225 ++++++
 tools/xl/xl_vtpm.c        |  153 +
 30 files changed, 10474 insertions(+), 9668 deletions(-)
 create mode 100644 tools/xl/xl_block.c
 create mode 100644 tools/xl/xl_cd.c
 delete mode 100644 tools/xl/xl_cmdimpl.c
 create mode 100644 tools/xl/xl_console.c
 create mode 100644 tools/xl/xl_cpupool.c
 create mode 100644 tools/xl/xl_flask.c
 create mode 100644 tools/xl/xl_info.c
 create mode 100644 tools/xl/xl_mem.c
 create mode 100644 tools/xl/xl_migrate.c
 create mode 100644 tools/xl/xl_misc.c
 create mode 100644 tools/xl/xl_nic.c
 create mode 100644 tools/xl/xl_parse.c
 create mode 100644 tools/xl/xl_parse.h
 create mode 100644 tools/xl/xl_pci.c
 create mode 100644 tools/xl/xl_psr.c
 create mode 100644 tools/xl/xl_saverestore.c
 create mode 100644 tools/xl/xl_sched.c
 create mode 100644 tools/xl/xl_tmem.c
 create mode 100644 tools/xl/xl_usb.c
 create mode 100644 tools/xl/xl_utils.c
 create mode 100644 tools/xl/xl_utils.h
 create mode 100644 tools/xl/xl_vcpu.c
 create mode 100644 tools/xl/xl_vmcontrol.c
 create mode 100644 tools/xl/xl_vtpm.c
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel