Re: [PATCH v8] xen/domain: rewrite emulation_flags_ok()

2025-06-17 Thread Jan Beulich
On 17.06.2025 08:53, Nicola Vetrini wrote: > On 2025-06-17 08:19, Jan Beulich wrote: >> On 17.06.2025 03:15, dm...@proton.me wrote: >>> --- a/xen/arch/x86/domain.c >>> +++ b/xen/arch/x86/domain.c >>> @@ -743,32 +743,75 @@ int arch_sanitise_domain_config(struct >>> xen_domctl_createdomain *config)

Re: [PATCH v8] xen/domain: rewrite emulation_flags_ok()

2025-06-17 Thread Roger Pau Monné
On Tue, Jun 17, 2025 at 08:53:51AM +0200, Nicola Vetrini wrote: > On 2025-06-17 08:19, Jan Beulich wrote: > > On 17.06.2025 03:15, dm...@proton.me wrote: > > > --- a/xen/arch/x86/domain.c > > > +++ b/xen/arch/x86/domain.c > > > @@ -743,32 +743,75 @@ int arch_sanitise_domain_config(struct > > > xen_

Re: [PATCH v8] xen/domain: rewrite emulation_flags_ok()

2025-06-16 Thread Nicola Vetrini
On 2025-06-17 08:19, Jan Beulich wrote: On 17.06.2025 03:15, dm...@proton.me wrote: --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -743,32 +743,75 @@ int arch_sanitise_domain_config(struct xen_domctl_createdomain *config) return 0; } +/* + * Verify that the domain's emulatio

Re: [PATCH v8] xen/domain: rewrite emulation_flags_ok()

2025-06-16 Thread Jan Beulich
On 17.06.2025 03:15, dm...@proton.me wrote: > --- a/xen/arch/x86/domain.c > +++ b/xen/arch/x86/domain.c > @@ -743,32 +743,75 @@ int arch_sanitise_domain_config(struct > xen_domctl_createdomain *config) > return 0; > } > > +/* > + * Verify that the domain's emulation flags resolve to a supp

[PATCH v8] xen/domain: rewrite emulation_flags_ok()

2025-06-16 Thread dmkhn
From: Denis Mukhin Rewrite emulation_flags_ok() to simplify future modifications. No functional change intended. Signed-off-by: Denis Mukhin --- Changes since v7: - expanded the code commentary - added named type for domain capabilities Link to v7: https://lore.kernel.org/xen-devel/202506101