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

Re: [PATCH 2/2] {libxl,xl}: Add xl trigger debug


  • To: Jürgen Groß <jgross@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
  • Date: Mon, 20 Jul 2026 12:38:47 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:In-Reply-To:References:Feedback-ID"
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Mon, 20 Jul 2026 10:38:57 +0000
  • Feedback-id: default:8631fc262581453bbf619ec5b2062170:Sweego
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20/07/2026 12:29, Jürgen Groß wrote:
> On 20.07.26 11:27, Tu Dinh wrote:
>> Use XEN_DOMCTL_SENDTRIGGER_DEBUG to allow printing diagnostics
>> information of a specific domain.
>>
>> Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
>> ---
>>   tools/libs/light/libxl_domain.c  | 4 ++++
>>   tools/libs/light/libxl_types.idl | 1 +
>>   tools/xl/xl_cmdtable.c           | 2 +-
>>   3 files changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/tools/libs/light/libxl_domain.c b/tools/libs/light/ 
>> libxl_domain.c
>> index 37fcd92871..2d8290dbfa 100644
>> --- a/tools/libs/light/libxl_domain.c
>> +++ b/tools/libs/light/libxl_domain.c
>> @@ -2190,6 +2190,10 @@ int libxl_send_trigger(libxl_ctx *ctx, uint32_t 
>> domid,
>>       case LIBXL_TRIGGER_S3RESUME:
>>           domain_s3_resume(ao, egc, domid); /* must be last */
>>           return AO_INPROGRESS;
>> +    case LIBXL_TRIGGER_DEBUG:
>> +        rc = xc_domain_send_trigger(ctx->xch, domid,
>> +                                    XEN_DOMCTL_SENDTRIGGER_DEBUG, 
>> vcpuid);
>> +        break;
> 
> You are sending VIRQ_DEBUG only to one vcpu. Wouldn't it make sense to add
> the capability to send it to all vcpus of a domain?
> 
> 
> Juergen

It's a current limitation of xl trigger that it can only send triggers 
to 1 vcpu at a time. Perhaps a special vcpuid value could be defined for 
this purpose, then xl trigger can use this value when "all" is specified 
on the command line?


--
Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

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