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

Re: Ping: [XEN][PATCH v4] xen: make VMTRACE support optional


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Tue, 2 Dec 2025 13:44:09 +0200
  • 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=v8Dm0QJ0gR2lbXLFTrqzLa2MbAI0+LzNdHczf/PDrrg=; b=osXe7+z65bOy67rqa6x9WjoCZewB7R6WRy0ltH7vwrWRtHA2v1LuhFFuoeqmcwoLME9cE0gn3XgFD3Qxd0nU+716L3mEiySmaQSI2v56YDmWzc5ahvEfm2uvHOILDbbm77QHei82ZUXJRaUJnZxhnj08QPKpVJIiOe1kqzV3eJ31sGni/H6U59mevHrxqeGY2hBaNnOkVR46WfVjf/v/urPZqP9TfeNljQetsmURYAIc5Kemppn+hj8GnzjoKjz3S/9Y9FUG82q7cnXIMntRT6opFyPK9+b1b6tkYu/QTkR3/5NnngvUAob47ASbGsbfEEw9ZXf1IhfuaewytT18hg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mvbFMZbYOd2GB6FVZaFaHeVvalUzpkrNLsZmQaBEF1tjXlaA6wUTMX3GzbzJd4exDJI9UYQb7EzwUD2LhS3s7mziEuVYnF/fWCI0cuKykwuHJJw8xgfDicL1m6t9xrmgUX+wsDa+vAiNq5Eyf7dU7seprHPKcYoDd2NvBSu/zEYNUbASCS9nnf7skGmP2ouY7Or2w+MZZb7cW5r+F9VtF1O9N98QXYQ5n+jEZNlRzu98GY6dpibEaoz5zLicBlUHeETQKZK4hgcgctAsrPTMChGaB1otN4Hd9s910V35Xakr+j8rNqCGvy6dqxehlL2s0paKoisE9V89viBrC0Gq4g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: 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>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 02 Dec 2025 11:44:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>



On 02.12.25 12:57, Jan Beulich wrote:
On 19.11.2025 20:31, Grygorii Strashko wrote:
From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

The VMTRACE feature is depends on Platform/Arch HW and code support and now
can be used only on x86 HVM with Intel VT-x (INTEL_VMX) enabled.
This makes VMTRACE support optional by introducing HVM Kconfig option:
- CONFIG_VMTRACE to enable/disable the feature.

Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
---
changes in v4:
- format changes

changes in v3:
- drop vmtrace stubs for HVM=n case from hvm.h (VMTRACE depnds on HVM)
- hvm_vmtrace_reset() fix return err code
- add comment about using func declaration without definition

changes in v2:
  - fix comments from Jan Beulich
  - move CONFIG_VMTRACE in HVM
  - drop HAS_VMTRACE

v3:
  
https://patchwork.kernel.org/project/xen-devel/patch/20251114142207.279834-1-grygorii_strashko@xxxxxxxx/
v2:
  
https://patchwork.kernel.org/project/xen-devel/patch/20251112202442.3879997-1-grygorii_strashko@xxxxxxxx/
v1:
  
https://patchwork.kernel.org/project/xen-devel/patch/20251031212005.1338212-1-grygorii_strashko@xxxxxxxx/

  xen/arch/x86/domctl.c                   |  4 +++
  xen/arch/x86/hvm/Kconfig                | 12 +++++++++
  xen/arch/x86/hvm/vmx/vmcs.c             |  2 ++
  xen/arch/x86/hvm/vmx/vmx.c              | 11 ++++++++
  xen/arch/x86/include/asm/guest-msr.h    |  2 ++
  xen/arch/x86/include/asm/hvm/hvm.h      | 36 ++++++++++---------------
  xen/arch/x86/include/asm/hvm/vmx/vmcs.h |  2 ++
  xen/arch/x86/mm/mem_sharing.c           |  2 ++
  xen/arch/x86/vm_event.c                 |  8 +++---
  xen/common/domain.c                     | 10 +++++++
  xen/common/memory.c                     |  6 +++++
  xen/common/vm_event.c                   |  3 ++-
  xen/include/xen/domain.h                |  4 +++
  xen/include/xen/sched.h                 |  4 +++
  14 files changed, 80 insertions(+), 26 deletions(-)

Tamas - any chance of an ack here?

Grygorii - chasing missing acks is generally the submitter's responsibility.


Sorry, I switched to different task and forgot to ask :(
Jan



--
Best regards,
-grygorii




 


Rackspace

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