[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Wed, 19 Nov 2025 19:30:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0jR9H82uqN6Pq4sjQFVnEVcGPJ2uolsJHWh6buD+pW0=; b=fBBfIvdAJeiLiyZAKTUZce4f/HyBz4nCYcteGZqq6f2D+upMtX7OgKHgykml4pSHEszhPQmbX22Tflg6hzuM4e60ekdcgntBUYO9qLxqYYzKCXbLTNnKeW+kuhU2XxiZYzXCnEcMdS3Mf4iJhuPEi9SxLajCTL4Kic7JwSUmbIQgmVx2TtBpVgxz52GvMqAIjl2c6xME4RHVntpgOBb4vfyKNkxhKOruI39C1YxiS9mgrNyFx8f8a9+iLjF/eLKaoeMd+2OQ+HENcj5e7NX1mtxQ39HdDNv9gL3IH+4Pblfus1LqY7avs6YdzrNE2Z5GERWRVhMXVdWUIfo6++v0+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=feqDyk6P4heFKV/K+PijOozUKe2/WI65zCFcuv9xf6fvCIkHbhFBTOb1a5HfGdyz7MJWFu7puGbi8WqO26+7egh/shONoY3/ETggT+Ctyy4i7U9qAMX2H0zZpxDYrMuVI4sYNKcsoGDWl5nKrgAIKvOYn24cXme7lJ9I7JLhekXnp1sEjLdi0GKtpBoA7atS96JyEUyglT+GvdHQARg4MMMZS41SSYjd3efCJr19U/tl8Kd9/usMiijs+02oQkmMwgUXBiw2vq0vWY71yGqIjxPpfQri0HIJjaOWkSOWVl042BQtpGMtzoEvgVC7iIjDPffmsKwGU2AZ5di4L7A1Ug==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 19 Nov 2025 19:30:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcWYrqEdLIdxgHq06iG/KRChB4+A==
  • Thread-topic: [XEN][PATCH v2 0/4] x86: pvh: allow to disable 32-bit (COMPAT) interface support

From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

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/20251111175413.3540690-1-grygorii_strashko@xxxxxxxx/

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(-)

-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.