x86/hvm: {svm,vmx} {c,h} cleanup
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest14 patches 23 repliesIn review
- v29 patches 18 repliesSuperseded
- v14 patches 13 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | x86/svm: move declarations used only by svm code from svm.h to private headerxen/ xen/ xen/ +1 more | +65 | 0 replies | |
| 2/14 | x86/svm: make asid.h privatexen/ xen/ xen/ +1 more | +41 | 2 replies | |
| 3/14 | x86/svm: delete header asm/hvm/svm/intr.hxen/ xen/ | +0 | 0 replies | |
| 4/14 | x86/svm: make emulate.h privatexen/ xen/ xen/ +1 more | +9 | 3 replies | |
| 5/14 | x86/svm: move nestedsvm declarations used only by svm code to private headerxen/ xen/ xen/ +3 more | +86 | 6 replies | |
| 6/14 | x86/svm: move vmcb declarations used only by svm code to private headerxen/ xen/ xen/ +6 more | +604 | 0 replies | |
| 7/14 | x86/svm: move svmdebug.h declarations to private vmcb.h and delete itxen/ xen/ xen/ +3 more | +6 | 0 replies | |
| 8/14 | x86/vmx: move vmx_update_debug_state() in vmcs.c and declare it staticxen/ xen/ xen/ | +12 | 1 reply | |
| 9/14 | x86/vmx: remove unused included headers from vmx.hxen/ xen/ | +7 | 0 replies | |
| 10/14 | x86/vmx: move declarations used only by vmx code from vmx.h to private headersxen/ xen/ xen/ +5 more | +505 | 6 replies | |
| 11/14 | x86/vmx: remove unused included headers from vmx.cxen/ | +25 | 0 replies | |
| 12/14 | x86/vmx: declare nvmx_enqueue_n2_exceptions() staticxen/ | +1 | 0 replies | |
| 13/14 | x86/vmx: move vvmx declarations used only by vmx code to private headerxen/ xen/ xen/ +3 more | +198 | 0 replies | |
| 14/14 | x86/vmx: move vmcs declarations used only by vmx code to private headerxen/ xen/ xen/ +3 more | +128 | 0 replies |
Reviews trailers per patch
5 of 14 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich | Xenia Ragiadakou | Andrew Cooper |
|---|---|---|---|
| 1/14 | |||
| 2/14 | R-b | ||
| 3/14 | |||
| 4/14 | R-b | ||
| 5/14 | R-b | ||
| 6/14 | |||
| 7/14 | |||
| 8/14 | A-b | ||
| 9/14 | |||
| 10/14 | |||
| 11/14 | |||
| 12/14 | R-b | ||
| 13/14 | |||
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 00/14] x86/hvm: {svm,vmx} {c,h} cleanup
This patch series attempts a cleanup of files {svm,vmx} files and headers by removing redundant headers and sorting the rest, reducing the scope of declarations and definitions, moving functions used only by internal {svm,vmx} code to private headers, fix coding style, replace u* with uint*_t types etc.
This series aims to address the comments made on v2.
Main changes from the v2 series:
- move all internal svm/vmx declarations found in external headers into private headers
- add SPDX tags and guards to the new headers
- take the opportunity to fix coding style issues and rearrange the code per Jan's suggestion
- replace u* with uint*_t
- rebased to the latest staging
There are more detailed per-patch changesets.
Xenia Ragiadakou (14):
x86/svm: move declarations used only by svm code from svm.h to private
header
x86/svm: make asid.h private
x86/svm: delete header asm/hvm/svm/intr.h
x86/svm: make emulate.h private
x86/svm: move nestedsvm declarations used only by svm code to private
header
x86/svm: move vmcb declarations used only by svm code to private
header
x86/svm: move svmdebug.h declarations to private vmcb.h and delete it x86/vmx: move vmx_update_debug_state() in vmcs.c and declare it static x86/vmx: remove unused included headers from vmx.h x86/vmx: move declarations used only by vmx code from vmx.h to private
headers
x86/vmx: remove unused included headers from vmx.c x86/vmx: declare nvmx_enqueue_n2_exceptions() static x86/vmx: move vvmx declarations used only by vmx code to private
header
x86/vmx: move vmcs declarations used only by vmx code to private
header
xen/arch/x86/hvm/svm/asid.c | 4 +-
xen/arch/x86/hvm/svm/asid.h | 38 ++
xen/arch/x86/hvm/svm/emulate.c | 4 +-
.../x86/{include/asm => }/hvm/svm/emulate.h | 20 +-
xen/arch/x86/hvm/svm/intr.c | 4 +-
xen/arch/x86/hvm/svm/nestedhvm.h | 77 +++
xen/arch/x86/hvm/svm/nestedsvm.c | 7 +-
xen/arch/x86/hvm/svm/svm.c | 10 +-
xen/arch/x86/hvm/svm/svm.h | 62 ++
xen/arch/x86/hvm/svm/svmdebug.c | 3 +-
xen/arch/x86/hvm/svm/vmcb.c | 3 +-
xen/arch/x86/hvm/svm/vmcb.h | 597 ++++++++++++++++++
xen/arch/x86/hvm/vmx/intr.c | 4 +
xen/arch/x86/hvm/vmx/pi.h | 78 +++
xen/arch/x86/hvm/vmx/realmode.c | 2 +
xen/arch/x86/hvm/vmx/vmcs.c | 17 +-
xen/arch/x86/hvm/vmx/vmcs.h | 100 +++
xen/arch/x86/hvm/vmx/vmx.c | 76 +--
xen/arch/x86/hvm/vmx/vmx.h | 416 ++++++++++++
xen/arch/x86/hvm/vmx/vvmx.c | 4 +
xen/arch/x86/hvm/vmx/vvmx.h | 187 ++++++
xen/arch/x86/include/asm/hvm/svm/asid.h | 49 --
xen/arch/x86/include/asm/hvm/svm/intr.h | 25 -
xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 53 +-
xen/arch/x86/include/asm/hvm/svm/svm.h | 41 --
xen/arch/x86/include/asm/hvm/svm/svmdebug.h | 30 -
xen/arch/x86/include/asm/hvm/svm/vmcb.h | 575 +----------------
xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 118 +---
xen/arch/x86/include/asm/hvm/vmx/vmx.h | 453 +------------
xen/arch/x86/include/asm/hvm/vmx/vvmx.h | 165 +----
30 files changed, 1685 insertions(+), 1537 deletions(-)
create mode 100644 xen/arch/x86/hvm/svm/asid.h
rename xen/arch/x86/{include/asm => }/hvm/svm/emulate.h (73%)
create mode 100644 xen/arch/x86/hvm/svm/nestedhvm.h
create mode 100644 xen/arch/x86/hvm/svm/svm.h
create mode 100644 xen/arch/x86/hvm/svm/vmcb.h
create mode 100644 xen/arch/x86/hvm/vmx/pi.h
create mode 100644 xen/arch/x86/hvm/vmx/vmcs.h
create mode 100644 xen/arch/x86/hvm/vmx/vmx.h
create mode 100644 xen/arch/x86/hvm/vmx/vvmx.h
delete mode 100644 xen/arch/x86/include/asm/hvm/svm/asid.h
delete mode 100644 xen/arch/x86/include/asm/hvm/svm/intr.h
delete mode 100644 xen/arch/x86/include/asm/hvm/svm/svmdebug.hSignature · 1 line
2.37.2