|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/2] x86: Remove stubs from asm/pv/domain.h
On 12.11.25 19:21, Alejandro Vallejo wrote: On Wed Nov 12, 2025 at 4:56 PM CET, Grygorii Strashko wrote:On 12.11.25 17:22, Alejandro Vallejo wrote:They are unnecessary. The only two cases with link-time failures are fallback else branches that can just as well be adjusted with explicit IS_ENABLED(CONFIG_PV). HVM has no equivalent stubs and there's no reason to keep the asymmetry. No functional change. Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx> --- I'd rather remove the "rc = -EOPNOTSUPP" branch altogether, or replace it with ASSERT_UNREACHABLE(), but I kept it here to preserve prior behaviour. Thoughts? --- xen/arch/x86/domain.c | 10 ++++++---- xen/arch/x86/include/asm/pv/domain.h | 25 ------------------------- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 19fd86ce88..0977d9323d 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -571,15 +571,17 @@ int arch_vcpu_create(struct vcpu *v)if ( is_hvm_domain(d) ) It's all up to you. -- Best regards, -grygorii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |