Skip to content

x86/hvm: HVMOP_get/set_param improvements

Paul Durrant xen-devel 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 0 repliesNew
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches6 repliesSuperseded
v13 patches7 repliesSuperseded

Changes in v5 from the cover letter

- Re-base onto staging (5fa1ce85bc661f2f945b8a5327b6cec7cf69cfba)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/hvm: give HVMOP_set_param and HVMOP_get_param their own functionsxen/arch/x86/hvm/hvm.c+273 -2330 replies
2/3x86/hvm: introduce functions for HVMOP_get/set_param allowance checksxen/arch/x86/hvm/hvm.c+84 -520 replies
3/3x86/hvm: Use white-lists for HVM param guest accessibility checksxen/arch/x86/hvm/hvm.c+20 -110 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAndrew Cooper
1/3R-b
2/3R-b
3/3

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

Read the v5 thread

Cover letter [PATCH v5 0/3] x86/hvm: HVMOP_get/set_param improvements

The following 3 patches re-structure the code implementing HVMOP_set_param and HVMOP_get_param.

Patch #1 gives each operation its own function

Patch #2 splits out checks for getting/setting non-reflexive params and setting params with change-once semantics, as well as the XSM check into separate functions

Patch #3 swaps from black-lists to white-lists for guest accessible params

v5:
- Re-base onto staging (5fa1ce85bc661f2f945b8a5327b6cec7cf69cfba)

v4:
- Remove HVM_PARAM_TRIPLE_FAULT_REASON from the params accessible by guests.

v3:
- Fix more style issues
- Maintain comments concerning strictly non-reflexive params
- Add missing non-reflexive checks to hvm_allow_get_param()

v2:
- Fix style issues during code movement in patch #2.
- End up with white-lists rather than black-lists for guest accessible params.
- Re-work comments on patch #2 slightly.