x86: pvh: allow to disable 32-bit (COMPAT) interface support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 9 repliesIn review
- v15 patches 20 repliesSuperseded
v1 from the cover letter
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86: hvm: dm: factor out compat code under ifdefsxen/ | +2 | 0 replies | |
| 2/4 | x86: hvm: compat: introduce is_hcall_compat() helperxen/ xen/ xen/ +2 more | +19 | 1 reply | |
| 3/4 | x86: hvm: factor out COMPAT code under ifdefsxen/ xen/ xen/ +1 more | +43 | 4 replies | |
| 4/4 | x86: pvh: allow to disable 32-bit interface supportxen/ | +18 | 1 reply |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Jason Andryuk | Juergen Gross |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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