Skip to content

x86: pvh: allow to disable 32-bit (COMPAT) interface support

Grygorii Strashko xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 9 repliesIn review
  2. v15 patches 20 repliesSuperseded

v1 from the cover letter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86: hvm: dm: factor out compat code under ifdefsxen/arch/x86/hvm/dm.c+2 -00 replies
2/4x86: hvm: compat: introduce is_hcall_compat() helperxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/hypercall.c xen/arch/x86/hypercall.c +2 more+19 -151 reply
3/4x86: hvm: factor out COMPAT code under ifdefsxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/hypercall.c xen/arch/x86/include/asm/domain.h +1 more+43 -44 replies
4/4x86: pvh: allow to disable 32-bit interface supportxen/arch/x86/hvm/Kconfig+18 -11 reply

Reviews trailers per patch

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

PatchJason AndryukJuergen Gross
1/4R-b
2/4R-b
3/4R-b R-b
4/4

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

Read the v2 thread

Cover letter [XEN][PATCH v2 0/4] x86: pvh: allow to disable 32-bit (COMPAT) interface support

From: Grygorii Strashko <[email protected]>

Hi

This series introduces possibility to disable 32-bit (COMPAT) interface support in the following case:
- Only PVH domains are used
- Guests (OS) are started by using direct Direct Kernel Boot
- Guests (OS) are 64-bit and Guest early boot code, which is running not in 64-bit mode, does not access Xen interfaces (hypercalls, shared_info, ..)

If above criterias are met the COMPAT HVM interface become unreachable and can be disabled. Coverage reports analyze and adding guard (debug) exceptions in hvm_hypercall/hvm_do_multicall_call and hvm_latch_shinfo_size() confirm that COMPAT HVM interface is unused for safety use-case.

Changes in v2 described in each patch:
- patch "x86: constify has_32bit_shinfo() if !CONFIG_COMPAT" squashed in patch 2.

v1:
https://patchwork.kernel.org/project/xen-devel/cover/[email protected]/

Grygorii Strashko (4):
x86: hvm: dm: factor out compat code under ifdefs
x86: hvm: compat: introduce is_hcall_compat() helper
x86: hvm: factor out COMPAT code under ifdefs
x86: pvh: allow to disable 32-bit interface support

 xen/arch/x86/hvm/Kconfig          | 19 ++++++++++++++++++-
 xen/arch/x86/hvm/dm.c             |  2 ++
 xen/arch/x86/hvm/hvm.c            | 24 ++++++++++++++++++++----
 xen/arch/x86/hvm/hypercall.c      | 22 +++++++++++++++++-----
 xen/arch/x86/hypercall.c          |  6 +-----
 xen/arch/x86/include/asm/domain.h |  9 +++++++--
 xen/common/kernel.c               |  2 +-
 xen/include/hypercall-defs.c      |  9 +++++++--
 xen/include/xen/sched.h           |  9 +++++++++
 9 files changed, 82 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1