[Public]

> -----Original Message-----
> From: Jan Beulich <[email protected]>
> Sent: Wednesday, November 26, 2025 1:00 AM
> To: Penny, Zheng <[email protected]>
> Cc: Huang, Ray <[email protected]>; [email protected]; Andrew
> Cooper <[email protected]>; Anthony PERARD
> <[email protected]>; Orzel, Michal <[email protected]>; Julien
> Grall <[email protected]>; Roger Pau MonnĂ© <[email protected]>; Stefano
> Stabellini <[email protected]>; Daniel P. Smith
> <[email protected]>; [email protected]
> Subject: Re: [PATCH v4 20/24] xen/x86: wrap x86-specific domctl-op with
> CONFIG_MGMT_HYPERCALLS
>
> On 21.11.2025 11:57, Penny Zheng wrote:
> > --- a/xen/arch/x86/Kconfig
> > +++ b/xen/arch/x86/Kconfig
> > @@ -29,7 +29,7 @@ config X86
> >     select HAS_PCI_MSI
> >     select HAS_PIRQ
> >     select HAS_SCHED_GRANULARITY
> > -   imply HAS_SOFT_RESET
> > +   select HAS_SOFT_RESET if MGMT_HYPERCALLS
>
> Why would you undo an "imply", when really we should use it more? One of its
> purposes is so that you can add "depends on MGMT_HYPERCALLS" there, and it
> then won't be auto-enabled if that dependency isn't fulfilled.
>
> > --- a/xen/arch/x86/include/asm/paging.h
> > +++ b/xen/arch/x86/include/asm/paging.h
> > @@ -55,7 +55,7 @@
> >  #define PG_translate   0
> >  #define PG_external    0
> >  #endif
> > -#if defined(CONFIG_PAGING) && !defined(CONFIG_PV_SHIM_EXCLUSIVE)
> > +#if defined(CONFIG_PAGING) && !defined(CONFIG_PV_SHIM_EXCLUSIVE)
> &&
> > +defined(CONFIG_MGMT_HYPERCALLS)
>
> This line is too long now.

Hmm, how about I introduce a new Kconfig, something like:
```
diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index c808c989fc..ec8f51b0b1 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -166,6 +166,9 @@ config SHADOW_PAGING
 config PAGING
        def_bool HVM || SHADOW_PAGING

+config PAGING_LOG_DIRTY
+       def_bool PAGING
+
 config BIGMEM
        bool "big memory support"
        default n
```
Then, later future dependency could be added to PAGING_LOG_DIRTY

> Jan

Reply via email to