From nobody Thu Jul 23 21:52:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1784037514; cv=none; d=zohomail.com; s=zohoarc; b=AIjFuUXDb076OcLO0syYO4NcvXLEaYoxMx6uePDNhI9fNRVZsn/3MQ/07UDJWARvxBiRUUgH/yi4tQSf5tBs2DB3vAm99Haj4l4NDeWGe0toc7GNqw1n0UtwCJyl4r2YAA393Rj1l16rd7qz3PN1tCNRSUi39+dUVsu4ltJbcQw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784037514; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XEf/AOPqS32wm5P7jaCi4Hz1U6Z2kQuPSSiw08HTP4A=; b=LFzz+iOiTsrsxwOZgMm0LI2Ee7QsReXShwzGB0OnxtC9C4uEOIniYMkTZDScHnFxyfKF47SwUBcgS2dGMQMmY2I49/s8cm8SGuV8JtdhavS3ZAErWQCQkaY3j3W2+m51KwL7blq8JcYAobDRuyBWXTnvvwFEIMjAs694LWA/1nk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1784037514462375.07195997341205; Tue, 14 Jul 2026 06:58:34 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1362408.1614232 (Exim 4.92) (envelope-from ) id 1wjdeE-0004SK-3u; Tue, 14 Jul 2026 13:58:10 +0000 Received: by outflank-mailman (output) from mailman id 1362408.1614232; Tue, 14 Jul 2026 13:58:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wjdeD-0004SD-Vq; Tue, 14 Jul 2026 13:58:09 +0000 Received: by outflank-mailman (input) for mailman id 1362408; Tue, 14 Jul 2026 13:58:09 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wjdeD-0004S7-1j for xen-devel@lists.xenproject.org; Tue, 14 Jul 2026 13:58:09 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wjdeC-00816r-7U for xen-devel@lists.xenproject.org; Tue, 14 Jul 2026 15:58:08 +0200 Received: from [10.42.69.3] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a564069-bab6-0a2a0a5309dd-0a2a4503da38-10 for ; Tue, 14 Jul 2026 15:58:08 +0200 Received: from [209.85.128.41] (helo=mail-wm1-f41.google.com) by tlsNG-33051d.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6a56406f-fae8-0a2a45030019-d1558029d1f7-3 for ; Tue, 14 Jul 2026 15:58:08 +0200 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-493f60208a5so37370245e9.3 for ; Tue, 14 Jul 2026 06:58:08 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49506a1fbcesm80087315e9.0.2026.07.14.06.58.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jul 2026 06:58:07 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:Autocrypt:Content-Language:References:Cc:To:Subject:From:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1784037487; x=1784642287; darn=lists.xenproject.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=XEf/AOPqS32wm5P7jaCi4Hz1U6Z2kQuPSSiw08HTP4A=; b=JmDCzoYnnUIg7BmgSP0YGXEcWKVY5ywH7pSwrZmpO2j+azb/QaoMeNxTeYFgxHg9bq +UhCp+vbFc3QQ7ok+WtFCZ2TP8ze1stdZQN/948qNkjjIm60X4RF0tLsiep7kKEPenff P9Tsu74bUeTwORFVevhD5mhlD3yUfN5oQH+kU4zxAhPo9UfZwiHhMAUcrlKioDVMcYBk ipcibQsHTPHBD7xMfjmMjX3E5Kb1BGjWNrRPbQu4N1FcWb0c7bmbR/LKrTsF9oZJ7eCK YB5FnHYMoZ53oxPBfdwUdUGqfIrpteUN7nCF0VHgF3u0dKNlR3kfF05kzp/sswCObW4j B+Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784037487; x=1784642287; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=XEf/AOPqS32wm5P7jaCi4Hz1U6Z2kQuPSSiw08HTP4A=; b=CVFkePoYKKNnpPZTAfAO+4JeNI51hV2LbyJrh6mxLESC4Nu3Lh0gYct1nVPD7fFr5z Tpgu/Qb+UKmxjC/L5xGNvlVrZPMzcXe0cIoczSMpk0qjKjOY5Lu6Ry02+/tHFDg7zhJL LEM7BlotB+eUAGWZ5QqtQmFyNHUxv4L3Be5AkuQ8WYQCN0L3gMB4S4fMs+A75IgDQ9+j 9k5ajVwWdarxhrUHmxHhf2VemcZBMmtVGEbHjwmbgQ02YBcqTRo0siCLZHb/N4GxnufR PH52VbDxYKGmdsRLrNmpIjViaAax46LSKqGU8yNp4Dd9b6FncquwcggRNRinXsz9qRVZ Kilg== X-Gm-Message-State: AOJu0YzVYzZpWXYRCVpYV5H4iVumsxlcP9SCoHTi2YdIB5nexhH5wrPR Yob6pQo4KjO8tPGUdysynVSiy41cwayuz4RN26wqmbauadK1ZhaRgYf4xbBRSCmu+8rMJYGSGGV 6WunGSQ== X-Gm-Gg: AfdE7cmew4TCSD6Tu85YbJxu9PDeW/YtOemXHd4tp2ak1iYOuJRCBgjbH0DFhjB9DLN dh617r8NyX3XAHvmOUNQzt3qPmgGBqXu3ichb9FuZTvSr3+xREFU6MEl7mSF2ARuGzZSo56Zf4Y 2aTweeo/IVomrKwvkXwJ8z9qLWkuK9acTArEV19m3P1aMuThF9BMENksW+xyuFot/E7C8Vjdy+f BG5iSElHeuPTP0JfYVnOJeLdnreCSCPVeEr0XSHAYgI9z9YNlJOYjvUd+JFkpGrcrKeGSfrugos GnXnUYY1XL0RwzL05tyLNjWT66Y9ZDTunL0ywKSd8u9UvaFr3mCDvIUCaXOIrHEjc73z2pdsAit 6mbXY0L7NgUBOAeutCAWJARRMKLzOz0h9RTEF8ino+TSjMA/+0YpijtJ7NGApke87XolJ/pu+ip FcHn6v+2dylFXXQUppK4ndJaaii7Zj19nWIel0nwElsbfbVSwMJ4tSalg+ll54UM24MuQSF/2du 0+d X-Received: by 2002:a05:600c:1386:b0:490:5057:f5f7 with SMTP id 5b1f17b1804b1-493f87e5164mr143200715e9.11.1784037487417; Tue, 14 Jul 2026 06:58:07 -0700 (PDT) Message-ID: Date: Tue, 14 Jul 2026 15:58:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jan Beulich Subject: [PATCH v1.1 1/2] x86emul: drop wrapper C file To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie References: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-33051d/1784037488-6D2D84E9-51A897E4/0/0 X-purgate-type: clean X-purgate-size: 6048 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1784037516336158500 Content-Type: text/plain; charset="utf-8" Move the little bit that's still left in x86/x86_emulate.c into a __XEN__ conditional in x86/x86_emulate/x86_emulate.c. Move what are roughly the test/fuzzing harness counterparts from there into the corresponding #else. Interestingly more recent gcc takes issue with three static const arrays which are unused when HVM=3Dn (noticeable in particule in the shim build). Apparently such are diagnosed only when present in the top-level file, but not when living in an #include-d one. Requested-by: Andrew Cooper Signed-off-by: Jan Beulich Acked-by: Andrew Cooper Reviewed-by: Teddy Astie --- v1.1: Address HVM=3Dn build issues. See https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/26749= 85992. --- a/tools/tests/x86_emulator/x86-emulate.c +++ b/tools/tests/x86_emulator/x86-emulate.c @@ -3,27 +3,6 @@ #include #include =20 -/* See gcc bug 100680, but here don't bother making this version dependent= . */ -#define gcc11_wrap(x) ({ \ - unsigned long x_; \ - __asm__ ( "" : "=3Dg" (x_) : "0" (x) ); \ - (typeof(x))x_; \ -}) - -#define cpu_has_amd_erratum(nr) 0 -#define cpu_has_mpx false -#define read_bndcfgu() 0 -#define xstate_set_init(what) - -/* For generic assembly code: use macros to define operation/operand sizes= . */ -#ifdef __i386__ -# define __OS "l" /* Operation Suffix */ -# define __OP "e" /* Operand Prefix */ -#else -# define __OS "q" /* Operation Suffix */ -# define __OP "r" /* Operand Prefix */ -#endif - uint32_t mxcsr_mask =3D 0x0000ffbf; struct cpu_policy cpu_policy; =20 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -69,7 +69,6 @@ obj-y +=3D traps-setup.o obj-y +=3D traps.o obj-$(CONFIG_INTEL) +=3D tsx.o obj-$(CONFIG_VM_EVENT) +=3D vm_event.o -obj-y +=3D x86_emulate.o obj-y +=3D xstate.o =20 ifneq ($(CONFIG_PV_SHIM_EXCLUSIVE),y) @@ -86,13 +85,6 @@ hostprogs-y +=3D efi/mkreloc =20 $(obj)/efi/mkreloc: HOSTCFLAGS +=3D -I$(srctree)/include =20 -ifneq ($(CONFIG_HVM),y) -$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-unused-label -endif -ifeq ($(CONFIG_CONDITION_COVERAGE)$(CONFIG_CC_IS_GCC),yy) -$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-error=3Dcoverage-too-many-conditi= ons -endif - efi-y :=3D $(shell if [ ! -r $(objtree)/include/xen/compile.h -o \ -O $(objtree)/include/xen/compile.h ]; then \ echo '$(TARGET).efi'; fi) \ --- a/xen/arch/x86/x86_emulate.c +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************= ***** - * x86_emulate.c - *=20 - * Wrapper for generic x86 instruction decoder and emulator. - *=20 - * Copyright (c) 2008, Citrix Systems, Inc. - *=20 - * Authors: - * Keir Fraser - */ - -#include - -#include -#include /* current_cpu_info */ -#include -#include /* cpu_has_amd_erratum() */ - -/* Avoid namespace pollution. */ -#undef cmpxchg -#undef cpuid -#undef wbinvd - -#define cpu_has_amd_erratum(nr) \ - cpu_has_amd_erratum(¤t_cpu_data, AMD_ERRATUM_##nr) - -#include "x86_emulate/x86_emulate.c" - -/* - * Local variables: - * mode: C - * c-file-style: "BSD" - * c-basic-offset: 4 - * tab-width: 4 - * indent-tabs-mode: nil - * End: - */ --- a/xen/arch/x86/x86_emulate/Makefile +++ b/xen/arch/x86/x86_emulate/Makefile @@ -1,3 +1,14 @@ +# Put this ahead of the sorted list below, as it takes long to build and h= ence +# we'd like parallel make to schedule its building early. +obj-y +=3D x86_emulate.o + +ifneq ($(CONFIG_HVM),y) +$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-unused-label +endif +ifeq ($(CONFIG_CONDITION_COVERAGE)$(CONFIG_CC_IS_GCC),yy) +$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-error=3Dcoverage-too-many-conditi= ons +endif + obj-y +=3D 0f01.o obj-y +=3D 0fae.o obj-y +=3D 0fc7.o --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -8,8 +8,52 @@ * Copyright (c) 2005-2007 XenSource Inc. */ =20 +#ifdef __XEN__ + +# include + +# include /* cpu_has_amd_erratum() */ +# include /* current_cpu_info */ +# include +# include + +/* Avoid namespace pollution. */ +# undef cmpxchg +# undef cpuid +# undef wbinvd + +# define cpu_has_amd_erratum(nr) \ + cpu_has_amd_erratum(¤t_cpu_data, AMD_ERRATUM_##nr) + +#else /* !__XEN__ */ + +/* See gcc bug 100680, but here don't bother making this version dependent= . */ +# define gcc11_wrap(x) ({ \ + unsigned long x_; \ + __asm__ ( "" : "=3Dg" (x_) : "0" (x) ); \ + (typeof(x))x_; \ +}) + +# define cpu_has_amd_erratum(nr) 0 +# define cpu_has_mpx false +# define read_bndcfgu() 0 +# define xstate_set_init(what) + +/* For generic assembly code: use macros to define operation/operand sizes= . */ +# ifdef __i386__ +# define __OS "l" /* Operation Suffix */ +# define __OP "e" /* Operand Prefix */ +# else +# define __OS "q" /* Operation Suffix */ +# define __OP "r" /* Operand Prefix */ +# endif + +#endif /* __XEN__ */ + #include "private.h" =20 +#ifndef X86EMUL_NO_MMX + /* * The next two tables are indexed by high opcode extension byte (the one * that's encoded like an immediate) nibble, with each table element then @@ -45,9 +89,15 @@ static const uint16_t _3dnow_ext_table[1 [0xb] =3D (1 << 0xb) /* pswapd */, }; =20 +#endif /* !X86EMUL_NO_MMX */ + +#ifndef X86EMUL_NO_SIMD + /* Shift values between src and dst sizes of pmov{s,z}x{b,w,d}{w,d,q}. */ static const uint8_t pmov_convert_delta[] =3D { 1, 2, 3, 1, 2, 1 }; =20 +#endif /* !X86EMUL_NO_SIMD */ + static const uint8_t sse_prefix[] =3D { 0x66, 0xf3, 0xf2 }; =20 #ifdef __x86_64__ From nobody Thu Jul 23 21:52:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1783598294; cv=none; d=zohomail.com; s=zohoarc; b=VnOm0ahELQHHaLpeDH0DxdWU2nIrF0LVwefrY8rPQiHpPe3XGSynV+fPZ6I2TI2pgTxW3suVdKCHqrxKa0jniUmgAiL119InGhs2C0T5HkQSLnwHdioM62wfM5kVKAqGBSXOp5RGuLDMH6MFCTFsGNyhC4E8BIr60rdSmzsJefY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1783598294; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pkUAVKs33bA6SLQQzFxld3LyajDuArKAYW5xh+oIJ88=; b=Tyit757wIa+/ktXEMbj34x5nDLsnHROsK7SStb+HMrgKDZqytl8srrAk+T43gSHqenrkZHTQEzuk4XqjhGv674o3LmsPlpMkc/Tm9hGFihiaDdzgSL1wAVPkg9ONSVKHE9On/9wgJxQ/eQ76gwxlUdzkgaOuXxxKIxplEOysAso= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1783598294103540.4472127281699; Thu, 9 Jul 2026 04:58:14 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1358035.1612328 (Exim 4.92) (envelope-from ) id 1whnO2-0001Zs-N0; Thu, 09 Jul 2026 11:57:50 +0000 Received: by outflank-mailman (output) from mailman id 1358035.1612328; Thu, 09 Jul 2026 11:57:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1whnO2-0001Zl-Jp; Thu, 09 Jul 2026 11:57:50 +0000 Received: by outflank-mailman (input) for mailman id 1358035; Thu, 09 Jul 2026 11:57:49 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1whnO1-0001Z6-Gd for xen-devel@lists.xenproject.org; Thu, 09 Jul 2026 11:57:49 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1whnO0-0031xT-Ti for xen-devel@lists.xenproject.org; Thu, 09 Jul 2026 13:57:48 +0200 Received: from [10.42.69.4] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a4f8cb2-5cb7-0a2a0a5109dd-0a2a4504b88a-34 for ; Thu, 09 Jul 2026 13:57:48 +0200 Received: from [209.85.221.51] (helo=mail-wr1-f51.google.com) by tlsNG-ebf023.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.2) (envelope-from ) id 6a4f8cbc-b1e5-0a2a45040019-d155dd33c57f-3 for ; Thu, 09 Jul 2026 13:57:48 +0200 Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-47640541585so921133f8f.1 for ; Thu, 09 Jul 2026 04:57:48 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47df6a31dd5sm6006521f8f.16.2026.07.09.04.57.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2026 04:57:47 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:Autocrypt:Content-Language:References:Cc:To:From:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783598268; x=1784203068; darn=lists.xenproject.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=pkUAVKs33bA6SLQQzFxld3LyajDuArKAYW5xh+oIJ88=; b=GtSraSG+4f2DAq3lJJ+EwDEQbyPIrPIVefm+CDDa+nilnY389IdmL3sVGPUBx1aBVP zLZ0pMz8RqQTTUJ+QudMzvQgE1UToOwMyc6875capr/3sEcdk/EgkFAH9tRIxUiuzvhW 0ksO6oCHwpDXxtRGmsiQpYAMbFB+V/knyrcRAs/s9Rb8r3YFD6hzWfPHDXZz/2yxK1k6 6UxMKfbpVYO/X61WyLnl5dBrCeC//fLWwHhXtcoru2yqPsi1ZzZgJP9WV07+s9N94GFW DBU8PvykfghCGUiHxhU2uqrq+Nv0VAOs7nVjEqGBEYYWW3080AhWiNgbBGF1A2br0gVV vZhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783598268; x=1784203068; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=pkUAVKs33bA6SLQQzFxld3LyajDuArKAYW5xh+oIJ88=; b=DiZlHbIBCPxzVCO4HHD6cvoBBfnYciOH9O4ymsJSWEoKog/6XPddWR8soAmI499e+V 1K93F/3NAQ110zNqMaVJx1+U/rxYG4OQ6s2N+nHify3AxjRYQgZOwW9PJKdzCkgHjw+5 POQZmYCvgR7QJLqK011520hZxBddDfOx5uJZRDe0fYTHR0BVIe5JSLxYkIybmx9MAmOT TihdUkbnzCLywy+0nxGVLTy8648A0lKS6UJUHbtxRP9HXnLVgcFZcvaOi8MxlwJOPNsQ LFJhGxZXoT1zsmq8fDXm+rvmEQik23yTarpEhDT82I9ou1ZaDk1eJyi6RVJtu0m4sRCn UGGQ== X-Gm-Message-State: AOJu0YwL6Ed4JjzsunqLsk2Z394N4iwKGJS5a8LDEpDCfECub8PSFua9 Sa7fe/O+PYnvf8kruxJ82ggYngVVBXSZS6AwsdmBEGYbrknQ/tehCa7UZa42IKsPWWaqjV0m7gi Y0RLRlw== X-Gm-Gg: AfdE7ckRKbWzpxKf6MKITZs97k3+j7YRlgk4OpJRhDAqeVAR6KJuSLVj1pmRP+j8PqH kKbFAJzNuhPdS80uhdBdUoWZ22Sx6LMp5XULVTC+uPMfUxZ2ABCdoZmeWZH2UNaV94OdNma6zuf p0O0raOhZUSUWQtZjxlR/nA0iKyLjWMEFSkQZ+4wc9eERHBpMpA1DK4IWrOhj2AQWlCctWVTuJS c+4oZpC+xKQQaqygrc4g6fOIy3OfoF4zcmATmR92lc9qi/PmX4qbBuzr7cW7qIfZ3qxpMm5FhkA trpNlMnLWt/Ak19hiXcVDy/W13rxfl4GfmrUVL4sdpbDjdQPaEVm24RlXdhYCasKxZlS0JNlvHc W79xm+XMnJ1QubJsryakyCL0N6s3/5uEvipUu/kYHNtCm0LXBSvcTdCX/sVgiesxY67nSsVGe3g X3YXFznFchskaQYdkwYot9padEW0uV2Q5UjtVcDMZwKxzElVb5HA+9gfXUPRHr5IGutIPWDkJqH 9cJ X-Received: by 2002:a05:6000:2482:b0:477:6874:5415 with SMTP id ffacd0b85a97d-47df074605amr7223834f8f.26.1783598267624; Thu, 09 Jul 2026 04:57:47 -0700 (PDT) Message-ID: Date: Thu, 9 Jul 2026 13:57:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 1/2] x86emul: drop wrapper C file From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie References: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-ebf023/1783598268-775A8FE7-4783F6AD/0/0 X-purgate-type: clean X-purgate-size: 4989 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1783598296033158500 Content-Type: text/plain; charset="utf-8" Move the little bit that's still left in x86/x86_emulate.c into a __XEN__ conditional in x86/x86_emulate/x86_emulate.c. Move what are roughly the test/fuzzing harness counterparts from there into the corresponding #else. Requested-by: Andrew Cooper Signed-off-by: Jan Beulich --- a/tools/tests/x86_emulator/x86-emulate.c +++ b/tools/tests/x86_emulator/x86-emulate.c @@ -3,27 +3,6 @@ #include #include =20 -/* See gcc bug 100680, but here don't bother making this version dependent= . */ -#define gcc11_wrap(x) ({ \ - unsigned long x_; \ - __asm__ ( "" : "=3Dg" (x_) : "0" (x) ); \ - (typeof(x))x_; \ -}) - -#define cpu_has_amd_erratum(nr) 0 -#define cpu_has_mpx false -#define read_bndcfgu() 0 -#define xstate_set_init(what) - -/* For generic assembly code: use macros to define operation/operand sizes= . */ -#ifdef __i386__ -# define __OS "l" /* Operation Suffix */ -# define __OP "e" /* Operand Prefix */ -#else -# define __OS "q" /* Operation Suffix */ -# define __OP "r" /* Operand Prefix */ -#endif - uint32_t mxcsr_mask =3D 0x0000ffbf; struct cpu_policy cpu_policy; =20 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -69,7 +69,6 @@ obj-y +=3D traps-setup.o obj-y +=3D traps.o obj-$(CONFIG_INTEL) +=3D tsx.o obj-$(CONFIG_VM_EVENT) +=3D vm_event.o -obj-y +=3D x86_emulate.o obj-y +=3D xstate.o =20 ifneq ($(CONFIG_PV_SHIM_EXCLUSIVE),y) @@ -86,13 +85,6 @@ hostprogs-y +=3D efi/mkreloc =20 $(obj)/efi/mkreloc: HOSTCFLAGS +=3D -I$(srctree)/include =20 -ifneq ($(CONFIG_HVM),y) -$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-unused-label -endif -ifeq ($(CONFIG_CONDITION_COVERAGE)$(CONFIG_CC_IS_GCC),yy) -$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-error=3Dcoverage-too-many-conditi= ons -endif - efi-y :=3D $(shell if [ ! -r $(objtree)/include/xen/compile.h -o \ -O $(objtree)/include/xen/compile.h ]; then \ echo '$(TARGET).efi'; fi) \ --- a/xen/arch/x86/x86_emulate.c +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************= ***** - * x86_emulate.c - *=20 - * Wrapper for generic x86 instruction decoder and emulator. - *=20 - * Copyright (c) 2008, Citrix Systems, Inc. - *=20 - * Authors: - * Keir Fraser - */ - -#include - -#include -#include /* current_cpu_info */ -#include -#include /* cpu_has_amd_erratum() */ - -/* Avoid namespace pollution. */ -#undef cmpxchg -#undef cpuid -#undef wbinvd - -#define cpu_has_amd_erratum(nr) \ - cpu_has_amd_erratum(¤t_cpu_data, AMD_ERRATUM_##nr) - -#include "x86_emulate/x86_emulate.c" - -/* - * Local variables: - * mode: C - * c-file-style: "BSD" - * c-basic-offset: 4 - * tab-width: 4 - * indent-tabs-mode: nil - * End: - */ --- a/xen/arch/x86/x86_emulate/Makefile +++ b/xen/arch/x86/x86_emulate/Makefile @@ -1,3 +1,14 @@ +# Put this ahead of the sorted list below, as it takes long to build and h= ence +# we'd like parallel make to schedule its building early. +obj-y +=3D x86_emulate.o + +ifneq ($(CONFIG_HVM),y) +$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-unused-label +endif +ifeq ($(CONFIG_CONDITION_COVERAGE)$(CONFIG_CC_IS_GCC),yy) +$(obj)/x86_emulate.o: CFLAGS-y +=3D -Wno-error=3Dcoverage-too-many-conditi= ons +endif + obj-y +=3D 0f01.o obj-y +=3D 0fae.o obj-y +=3D 0fc7.o --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -8,6 +8,48 @@ * Copyright (c) 2005-2007 XenSource Inc. */ =20 +#ifdef __XEN__ + +# include + +# include /* cpu_has_amd_erratum() */ +# include /* current_cpu_info */ +# include +# include + +/* Avoid namespace pollution. */ +# undef cmpxchg +# undef cpuid +# undef wbinvd + +# define cpu_has_amd_erratum(nr) \ + cpu_has_amd_erratum(¤t_cpu_data, AMD_ERRATUM_##nr) + +#else /* !__XEN__ */ + +/* See gcc bug 100680, but here don't bother making this version dependent= . */ +# define gcc11_wrap(x) ({ \ + unsigned long x_; \ + __asm__ ( "" : "=3Dg" (x_) : "0" (x) ); \ + (typeof(x))x_; \ +}) + +# define cpu_has_amd_erratum(nr) 0 +# define cpu_has_mpx false +# define read_bndcfgu() 0 +# define xstate_set_init(what) + +/* For generic assembly code: use macros to define operation/operand sizes= . */ +# ifdef __i386__ +# define __OS "l" /* Operation Suffix */ +# define __OP "e" /* Operand Prefix */ +# else +# define __OS "q" /* Operation Suffix */ +# define __OP "r" /* Operand Prefix */ +# endif + +#endif /* __XEN__ */ + #include "private.h" =20 /* From nobody Thu Jul 23 21:52:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1783598326; cv=none; d=zohomail.com; s=zohoarc; b=XyVoeXYDihZLeYm6gBGZY80EknV+0rnI+LcruQ9F3O4707QjuZfnLcYMrnhZiCg99VlqyNl9AqjEqTQbZiY19QndSp/hmWWM/C9sTan7r9aG7Jh8veKkQ6yxFzNj0YS4/olHzVTfsNpb6yxcHq02WMMP6wcBtCvA7cBfF2CBvJI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1783598326; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tvRfgrGWKZkC1zkXNs2XEBUHm2ioUzCUDvRe6NNTofA=; b=Houn8S5gbWoVcNLz9yy6oFXwqvaLwodfZTXFhEYPlyUxzziIXm8NAF1dFHACYntFj2ja24gpWBO9o0fTa2iXvzA+qxZ8ekPwM+uER8uiHp7LZqwZ4xcWYe06DlsoGWK6zaR14Jy4hu5WTAl4YHjIJYsRRTRc60ELdNpseCScHQQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1783598326542954.3927841686873; Thu, 9 Jul 2026 04:58:46 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1358046.1612337 (Exim 4.92) (envelope-from ) id 1whnOU-0002C6-1u; Thu, 09 Jul 2026 11:58:18 +0000 Received: by outflank-mailman (output) from mailman id 1358046.1612337; Thu, 09 Jul 2026 11:58:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1whnOT-0002Bx-VP; Thu, 09 Jul 2026 11:58:17 +0000 Received: by outflank-mailman (input) for mailman id 1358046; Thu, 09 Jul 2026 11:58:16 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1whnOS-0002BU-QA for xen-devel@lists.xenproject.org; Thu, 09 Jul 2026 11:58:16 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1whnOS-00326D-3a for xen-devel@lists.xenproject.org; Thu, 09 Jul 2026 13:58:16 +0200 Received: from [10.42.69.3] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a4f8cd4-5cb7-0a2a0a5109dd-0a2a45039676-26 for ; Thu, 09 Jul 2026 13:58:16 +0200 Received: from [209.85.128.51] (helo=mail-wm1-f51.google.com) by tlsNG-33051d.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.2) (envelope-from ) id 6a4f8cd7-f2d2-0a2a45030019-d1558033a92e-3 for ; Thu, 09 Jul 2026 13:58:16 +0200 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-493c1950518so5318615e9.1 for ; Thu, 09 Jul 2026 04:58:15 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493eb74835esm63112805e9.14.2026.07.09.04.58.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2026 04:58:15 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:Autocrypt:Content-Language:References:Cc:To:From:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783598295; x=1784203095; darn=lists.xenproject.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=tvRfgrGWKZkC1zkXNs2XEBUHm2ioUzCUDvRe6NNTofA=; b=K3GAdX1CSLGqZa23a2BegHBO76HetPbdyXv1+SIaC8gOAfGeqmXs5oesxuZoqsRgHU 9iFq6EEbjdTUl+whq2fdkuA7II4XybyXBCVD7Rju7Hp9nn2v0RmLCYw7H/pCrljDLs0n MncjeVzDrBxHi7X7VcOasYkurQaDSRr2NMA3q4luzYhUCN8TAJzlR+ICb9ne5nkRzr4U YEnK/D/amXgZmdGYJ6IR+bysN8zbjZJkBdbmyIU5LabvVhx+V/+e45m23GK8wW7kCd1S UU1PcxlFoQIblcYeJTno94w0VTkZj7ayP1XHo2iMzGXANnvsHbTvavQ9lN+eWwsrV8/w LiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783598295; x=1784203095; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=tvRfgrGWKZkC1zkXNs2XEBUHm2ioUzCUDvRe6NNTofA=; b=GKrkyX2nnxPv+hm5Oe3eltT2vR0Fs9/xseXA/G94xhSnxILE7wbDNC/lZ6qdjFIOhF s7qXE00L5GXfWfq+VYKuSCDuk9/h58kSV5CT4te1KRKLPkPOWpjTfA4lgx8g23cmBbpM pFdch1LjMJmulgV2P2TE36Y+IiJ+1ow0oCwuE0HDuIvcsI8SPFg6EXFrBZHXEhHf1FLA SKC8He7XKBjckQmI8uCMMqa0DM9Mzg3UwjrWAxvesygweM3yzu9adO1KcbhjARVMJT3C fvtLW5jfiJAjux/OkEaOQuvP9830UPJRQuz5gRstmML4Qag39XkxlmKwslxIjhaApbUN y+zA== X-Gm-Message-State: AOJu0Yw81qDgwlPT6IFBGUs1hmJf6ktrymqfJTeNs5zjCU1cS8E767w0 L2Rn/ByOTTFzLSGHv+89VMZllhSr7r+Nta6pYEbC3XFIzJ1b74rckeZD4O/cm2mujfnBiEHwlUA p7zIZxg== X-Gm-Gg: AfdE7cmM5VnhqvV4KRoJGvGEaEoF5Sla/2/aaybYsOyi/NENSa2mTK9ig9uiFCO6v0U 1vjel7GxjYnZoX1NLNTvOPwep/dE9OeCSFZQkMnzqoiuVABFF7fDji1kHgpFHdMGVnj10Yl3+rG S1v3VOrN+frhgGUy7F7OSPJqj2UMIwChZIFnRYKuxZpohF2CFHhfecpkb6UHKWZa3GM6AK34UML lXFr3V38iN/5nRbaV4UhW1p//E5RNWy5w4hvK1xrsQBsAHjrpkO1lt8o1YsQrcClknuBYZrrPXr Y8TCbiQEtk++AoNaKudJOzv5cNDvWHlduiHE4ea3mmuK3P9+TWV2pLcjzljA10WNEa8Oeo3T3sK Qi+fHxjO6s11MNFV4QChMFMOfpkpcDNDW61BWrpzZ+ZdGmukw3uxPnODs7VHsqHkW25dw+Xqxoh rZ6wfhIbdRoX4spxNZOLM8o8NZuKevPVXYahB9AcYC9pxbE0m8gVz061gEg58y/BIRejdUItLBM Ioc X-Received: by 2002:a05:600c:3507:b0:493:b698:9247 with SMTP id 5b1f17b1804b1-493ec76927amr24205935e9.14.1783598295537; Thu, 09 Jul 2026 04:58:15 -0700 (PDT) Message-ID: <898091b0-0c73-4829-a3b4-c8da6026a40c@suse.com> Date: Thu, 9 Jul 2026 13:58:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 2/2] x86: put x86_emulate/ early in $(obj-y) From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie References: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <8a3ee9c3-489a-4dbf-b61b-cd078322b786@suse.com> Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-33051d/1783598296-C2AAECF4-901FAD90/0/0 X-purgate-type: clean X-purgate-size: 573 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1783598328079158500 Content-Type: text/plain; charset="utf-8" ... such that in parallel builds make would schedule it early. Signed-off-by: Jan Beulich Reviewed-by: Teddy Astie --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -1,3 +1,7 @@ +# Put this ahead of the sorted list below, as it takes long to build and h= ence +# we'd like parallel make to schedule its building early. +obj-y +=3D x86_emulate/ + obj-y +=3D acpi/ obj-y +=3D boot/ obj-y +=3D cpu/ @@ -9,7 +13,6 @@ obj-y +=3D lib/ obj-y +=3D mm/ obj-$(CONFIG_PV) +=3D pv/ obj-y +=3D x86_64/ -obj-y +=3D x86_emulate/ =20 obj-y +=3D alternative.o obj-y +=3D apic.o