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

RE: [PATCH v3 28/28] xen/domctl: wrap common/domctl.c with CONFIG_MGMT_HYPERCALLS


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Tue, 18 Nov 2025 06:43:07 +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=0+8L3sl5/RFhUXG/epjIno9MG232mVLOlRSRsgxm9wE=; b=s2gXgVXKZPmg/Uh4lro+rCY3dYnwq3cc4HQgxX4PSHrb0yVMpQHlq9H1CNDsIBbtwPLTHGMtm2XoY9kbX/CMX34xo6p7P1RykMbZz9BR89ZO+vGCVz20Wc5juJ5C1t+pCWeNoSwpiM+byrWC3HPEcjfYGXXxddou5oIeSSFdl7tADGplYBW43B1WRfp4zkK435v28mGl0FQd0gxXmeAEVcmUEUuTF0p1WtxUoPKyDecRCwsVrJfXsTbSi6vCvTNQUHj4wj4KGJclbH3yz6AuIJbjlTZsYlpUgEEO4eUlmxH1nfgF2OoFTpqbLwxpL9yrAHTuM+BikHG6M4EAEfBRDg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NIoZXvQ66N538pjU3a/rhQAtAzP7Lq5hDMeTryHVHERnnfI9xOkK2ArvCmp+qB/W17JiSrnPHJBQA3gM2ZHPmScHdQfp3nRTLfrAh6jjBey0Waa/yu3Q3Wt7cerrByqki4vXHqezPivWfQAcTnBB6NR8V3/Ue+dZ9rNiL7Mqsy0KalH8MiIRzqIuGeLfiwZOVSNScfTUTvbQFK1U/y2JGgwKJbz/31EDgF1S79lDffYLKkMlM25CxYwEbrneBcWYNt9e413dJI8MAR+zb+G7wNpo49dEcj4znx8Qz+69O15kRf/XxzEsC/distLhSS9e2YjgHNd4U8iypeGrIFMfyw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, "oleksii.kurochko@xxxxxxxxx" <oleksii.kurochko@xxxxxxxxx>, 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" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 18 Nov 2025 06:43:24 +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-11-18T06:29:50.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: AQHcPCqhC21cJdWa5E25eCgk7enLhrTazScAgB1fVEA=
  • Thread-topic: [PATCH v3 28/28] xen/domctl: wrap common/domctl.c with CONFIG_MGMT_HYPERCALLS

[Public]

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Thursday, October 30, 2025 9:40 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; oleksii.kurochko@xxxxxxxxx; 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 v3 28/28] xen/domctl: wrap common/domctl.c with
> CONFIG_MGMT_HYPERCALLS
>
> On 13.10.2025 12:15, Penny Zheng wrote:
> > --- a/xen/common/Kconfig
> > +++ b/xen/common/Kconfig
> > @@ -646,11 +646,13 @@ config SYSTEM_SUSPEND
> >       If unsure, say N.
> >
> >  config MGMT_HYPERCALLS
> > -   def_bool y
> > +   bool "Enable privileged hypercalls for system management"
> >     help
> >       This option shall only be disabled on some dom0less systems, or
> >       PV shim on x86, to reduce Xen footprint via managing unnessary
> > -     hypercalls, like sysctl, etc.
> > +     hypercalls, like sysctl, domctl, etc.
> > +     Be cautious to disable it, as users will face missing a few basic
> > +     hypercalls like listdomains, getdomaininfo, etc.
>
> This is still too little, imo. For one I'm not sure "users" is quite the 
> right term. I'd say
> it's more "admins". And then, as mentioned, there are a few domctl-s which are
> usable by DMs. Aiui device pass-through may also be impacted, which imo will
> want mentioning here as well. Or else, if there is an implication that DMs 
> aren't to
> be used when MGMT_HYPERCALLS=n, that is what would want calling out.
>

How about
"
        Be cautious to disable it, as admins will face missing a few basic
        hypercalls like listdomains, getdomaininfo, etc, hence leading to
        have an impact on xl-device-passthrough and restricted DM.
"

Another question on PV_SHIM_EXCLUSIVE:
After Stefano's " 6c80f0dd1bb  xen: fix randconfig build problems after 
introducing SYSCTL " reversion patch, and to avoid incurring randconfig 
failures till the last, maybe I shall combine all PV_SHIM_EXCLUSIVE-related 
changes into a new commit and put it in the last, after making MGMT_HYPERCALLS 
optional again?

> Jan

 


Rackspace

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