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

RE: [PATCH v2 07/26] xen/domctl: wrap domain_pause_by_systemcontroller() with MGMT_HYPERCALLS


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Wed, 24 Sep 2025 07:11:53 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.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=kwdAdAa7M+69MdMkwP13EIIAqpDEPr/avoIE8DCxgCk=; b=T7Fuox2SxeudGD/WzIG6qGd/YpXZW6wvPrrNZU4Y7AZ6fMTPwsv+lez4+1sJj4rGtyWQoCxwzHxphx4POmn/B254Vp/Pf8QajKGD2C2Oi71arLG2KGVb//yoq9Be6Ap7LZFLQxA3Iz8Otc1coJA0NDA0oJT3GEnYoS5PNAPvwwPmd/T1jJJYnrfBsItEXAa8JAndRRWq2uy+K+rRgotdhj6A8HD130aQ3YuBcMeTRZZ55219nGDNvEDlQAI7oEY/aRL4G8vy1wbbqWe/80WPGsAO4irU7sv97nEvJ1ioCoPyLxb9cPdiJV5VMOmakRe9Aj2KBpVLTGO3k9ueaK+h6g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cUeZhW3QL7ad4HsMbB2YvYHy3+A0Q+BCOHCrsPLWwzPKKa8fQQC0eG4btCdKv89zHomQq73zmYaYjRsfnFaG5jgn4s89WPdennKhxFHgjmGZGElzCr8ybBlcD6rn3CQpY7puFMajCumROeu7N6bOsiQuI51OQ4uMw1OeFqee1no4DexSCbA3Lbwbs9lIqRk68shyVgO7SHDp2MvW6RgIwYIqA9MdTpbSlSTrzq7hvJRwMBYJqm8sUgZwQseCH4Rn0cETuJx0sk6+nG/eLa8HORftA+auFeEPCy4kSFneYS9XZeGcR0XvbS8mCf+mrCvhXvKGomtmpj29/HgjDlRbOg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Orzel, Michal" <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 24 Sep 2025 07:12:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=True;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-09-24T06:53:35.0000000Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=3;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged
  • Thread-index: AQHcIiYFaSMS8x+uC02GcRYZiIpQDbSMhVsAgBV2NTA=
  • Thread-topic: [PATCH v2 07/26] xen/domctl: wrap domain_pause_by_systemcontroller() with MGMT_HYPERCALLS

[Public]

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Wednesday, September 10, 2025 11:09 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Andrew Cooper
> <andrew.cooper3@xxxxxxxxxx>; Anthony PERARD <anthony.perard@xxxxxxxxxx>;
> Orzel, Michal <Michal.Orzel@xxxxxxx>; Julien Grall <julien@xxxxxxx>; Roger Pau
> Monné <roger.pau@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; 
> xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2 07/26] xen/domctl: wrap
> domain_pause_by_systemcontroller() with MGMT_HYPERCALLS
>
> On 10.09.2025 09:38, Penny Zheng wrote:
> > --- a/xen/common/domain.c
> > +++ b/xen/common/domain.c
> > @@ -1606,10 +1606,12 @@ static int
> _domain_pause_by_systemcontroller(struct domain *d, bool sync)
> >      return 0;
> >  }
> >
> > +#ifdef CONFIG_MGMT_HYPERCALLS
> >  int domain_pause_by_systemcontroller(struct domain *d)  {
> >      return _domain_pause_by_systemcontroller(d, true /* sync */);  }
> > +#endif /* CONFIG_MGMT_HYPERCALLS */
> >
> >  int domain_pause_by_systemcontroller_nosync(struct domain *d)
> >  {
>
> I would have ack-ed this if there was only this part, but ...
>
> > --- a/xen/common/domctl.c
> > +++ b/xen/common/domctl.c
> > @@ -390,11 +390,13 @@ long
> do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
> >          break;
> >      }
> >
> > +#ifdef CONFIG_MGMT_HYPERCALLS
> >      case XEN_DOMCTL_pausedomain:
> >          ret = -EINVAL;
> >          if ( d != current->domain )
> >              ret = domain_pause_by_systemcontroller(d);
> >          break;
> > +#endif /* CONFIG_MGMT_HYPERCALLS */
> >
> >      case XEN_DOMCTL_unpausedomain:
> >          ret = domain_unpause_by_systemcontroller(d);
>
> ... as expressed elsewhere I'm not happy about this one, as it'll need
> undoing in a later patch of this same series.
>

I shall admit that this kind of stub really helps me test MGMT_HYPERCALLS=n for 
this big serie commit by commit at the very beginning. Otherwise, it could be 
only disabled (and tested) in the end, and accumulate the mistakes...
But, as you said, all this transient thing needs to be reversed in the last, 
and I could accidently missing something and leave dead code...
As CONFIG_SYSCTL is already a prompt option, then maybe I need to raise a new 
commit to make it as def_bool again only for this patch serie transiently or 
just address it in " xen/sysctl: replace CONFIG_SYSCTL with CONFIG_MGMT_DOMCTL 
" ?

> Jan

 


Rackspace

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