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

RE: [PATCH v2 01/19] xen/x86: remove "depends on !PV_SHIM_EXCLUSIVE"


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Tue, 1 Apr 2025 08:41:45 +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=BNXJ/K7D+4UO5wnw40yPCH7jryRqnk8zYHkM2mCKS5s=; b=t2ekMYLZjuFBox/zh+rQX/uP21GRHjyMyVMk1oIsODIJCv8WKQl3WFMCBkC4DxmjVb4Qsr0UlmAkDbyAa0/fI6bxwyzLIOHvKZyJtHDqRDMNQCA5aZkUJtcMHUCPkVKwip0+KrdBKQIbu9g7WWIJTxwhqByd9ouFA0fT/SyZUDTlCzwXylPzB07EU9nHY9QW6p4ZY9l0LBiLVn3lPXgnq930yIHEGgc+VX2TQgAaNh/YS/Y/mcrCVXzpaK6UnCmxJ2uw50SdP5CdB23fS7qdM8NHSmK+mYghp8lH7p1fo3B4O6lngDGKXxlZIfLVU77Ng74EBa+aqsKn2aH7CuYqxg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OKoAoGXkM+PV50GEaWmLRVErzU6oL9J0kckPgrAsfzsKrAqTcIcIdBlxGrOUGCJyd9i+yk+Ixn/GZ1k5lkQ9C8CviX7yYJJdhihAVWYvjRK5kdrGkjKGOb5CUMal6ZB7iz9GaJawR0Aa3gtLk41DPDdoV1jh2/DtUe2hVbEcwDseLvgJ23/ysYoYQ8qxSQLqVzlwV2oxagmO2mhhZEnmaMW4o1IDufxqEu1Husxe6/ST45t2eL8bDVv+qQoefJzdPccn30uIQHJs67mVzqCI9MwsCO5w2pwQL3HO/y9JMDhtRKg4t27KIr+ZK0jpiVysZ7e6qxyG2rXoNj40OUqpNQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Huang, Ray" <Ray.Huang@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Orzel, Michal" <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Tue, 01 Apr 2025 08:42:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ActionId=edf9968a-536f-4ae0-969c-cffbd64106b9;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=0;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=true;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-04-01T08:39:29Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Tag=10, 0, 1, 1;
  • Thread-index: AQHbnhNmXaX6/9Ps5keSZ4aq1y0sz7OJPdwAgAOSgQCAAbXbAA==
  • Thread-topic: [PATCH v2 01/19] xen/x86: remove "depends on !PV_SHIM_EXCLUSIVE"

[Public]

Hi,

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Monday, March 31, 2025 2:30 PM
> To: Stefano Stabellini <sstabellini@xxxxxxxxxx>; Penny, Zheng
> <penny.zheng@xxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Huang, Ray <Ray.Huang@xxxxxxx>;
> Andrew Cooper <andrew.cooper3@xxxxxxxxxx>; Roger Pau Monné
> <roger.pau@xxxxxxxxxx>; Anthony PERARD <anthony.perard@xxxxxxxxxx>; Orzel,
> Michal <Michal.Orzel@xxxxxxx>; Julien Grall <julien@xxxxxxx>
> Subject: Re: [PATCH v2 01/19] xen/x86: remove "depends
> on !PV_SHIM_EXCLUSIVE"
>
> On 29.03.2025 00:56, Stefano Stabellini wrote:
> > On Wed, 26 Mar 2025, Penny Zheng wrote:
> >> We intend to remove all "depends on !PV_SHIM_EXCLUSIVE" (also the
> >> functionally equivalent "if !...") in Kconfig file, since negative
> >> dependancy will badly affect allyesconfig.
> >> This commit is based on "x86: provide an inverted Kconfig control for
> >> shim-exclusive mode"[1]
> >>
> >> [1]
> >> https://lists.xen.org/archives/html/xen-devel/2023-03/msg00040.html
> >>
> >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>
> Where's this coming from, if I may ask?
>

I said in the commit message, this commit is based on your commit "x86: provide 
an inverted Kconfig control for
shim-exclusive mode"[1].
So I think I shall add-in the original author, if it is not the rule, I'll 
remove it.

> >> Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
> >> ---
> >>  xen/arch/x86/Kconfig      | 6 ++----
> >>  xen/arch/x86/hvm/Kconfig  | 1 -
> >>  xen/drivers/video/Kconfig | 4 ++--
> >>  3 files changed, 4 insertions(+), 7 deletions(-)
> >>
> >> diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index
> >> 18efdb2e31..1e5df84b25 100644
> >> --- a/xen/arch/x86/Kconfig
> >> +++ b/xen/arch/x86/Kconfig
> >> @@ -137,7 +137,6 @@ config XEN_IBT
> >>
> >>  config SHADOW_PAGING
> >>    bool "Shadow Paging"
> >> -  default !PV_SHIM_EXCLUSIVE
> >>    depends on PV || HVM
> >>    help
> >>
> >> @@ -169,7 +168,6 @@ config BIGMEM
> >>  config TBOOT
> >>    bool "Xen tboot support (UNSUPPORTED)"
> >>    depends on INTEL && UNSUPPORTED
> >> -  default !PV_SHIM_EXCLUSIVE
> >>    select CRYPTO
> >>    help
> >>      Allows support for Trusted Boot using the Intel(R) Trusted
> >> Execution @@ -279,10 +277,11 @@ config PV_SHIM_EXCLUSIVE
> >>      Build Xen in a way which unconditionally assumes PV_SHIM mode.  This
> >>      option is only intended for use when building a dedicated PV Shim
> >>      firmware, and will not function correctly in other scenarios.
> >> +    Features, like tboot, shadow page, VGA, HVM, Hyper-V Guest, etc,
> >> +    are unavailable in shim-exclusive mode.
> >
> > I don't know if we want to add these two lines or not. Either way:
> >
> > Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>
> I don't think we should add that. It's also wrong for shadow in the first 
> place (where
> it was a default only anyway, not a dependency).

Ack, I'll remove

>
> Jan

 


Rackspace

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