From nobody Sun Nov 24 03:03:35 2024 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=1724232497; cv=none; d=zohomail.com; s=zohoarc; b=MuHdlZsP/FN6FVbaBQEei9XsT6sik/DDYf3lhVOw93GNyrQ02JDT3kVFggKecOh+k+bnwh6eUoV18GPhSiWyCYfcEpvI0XzmSi9O/OIHuyUaap6ozV6s/n6fO6JfpwPKAwFLHrSi+aJCgD991Omj8EmfUU8i1Eely5ME+Ev9rvI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724232497; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=v9eXvc0/XNFWbfD1Y0YUXBJmDdyD8fskrF6ICMthJKc=; b=N+prmipVAEwkahtYen4OiM5RJk5lmcZ5haBwTrIp23qyHKFj4vimXCB8r3GN2mbU0NR/c8lmmHd4dbZephgMXnLWOKTpcJ49G4DkOTiNJ2Q1EaWBpyPv9hjHAmGwW3TGjE1FXD9Jej/K6zA7gmbP7Zhk8LGQe0/at0fIz6xTwjc= 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 1724232497588520.5531686496978; Wed, 21 Aug 2024 02:28:17 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.780965.1190542 (Exim 4.92) (envelope-from ) id 1sghdO-0004vV-M5; Wed, 21 Aug 2024 09:28:06 +0000 Received: by outflank-mailman (output) from mailman id 780965.1190542; Wed, 21 Aug 2024 09:28:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sghdO-0004vM-Hx; Wed, 21 Aug 2024 09:28:06 +0000 Received: by outflank-mailman (input) for mailman id 780965; Wed, 21 Aug 2024 09:28:06 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sghdO-0004r2-5U for xen-devel@lists.xenproject.org; Wed, 21 Aug 2024 09:28:06 +0000 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [2a00:1450:4864:20::52e]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id aae88cca-5f9f-11ef-8776-851b0ebba9a2; Wed, 21 Aug 2024 11:28:04 +0200 (CEST) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5bed83489c3so5258556a12.3 for ; Wed, 21 Aug 2024 02:28:04 -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 4fb4d7f45d1cf-5bebc081c59sm7941809a12.85.2024.08.21.02.28.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2024 02:28:03 -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" X-Inumbo-ID: aae88cca-5f9f-11ef-8776-851b0ebba9a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1724232484; x=1724837284; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=v9eXvc0/XNFWbfD1Y0YUXBJmDdyD8fskrF6ICMthJKc=; b=BjIzNdl1kpCOigeNDX1K3+Ky6Fz8OR9iSd6HQp+tz4Ru/QwSQMQKbivwl8DYkFg2zH 2m0S3wVjKcKWyfbeHr4l7E4paNGiAlQL4WshVf4m1dtyTdGSLUUW+Jx/1RaIh3z0p1vb cn2I2KIbyFUmIco6UlbDOWIsv6PHvTqI3L/N3DTaXBmiof5fnemKimxYpkL1jseKqw/p NGtl45RRsjAgaeYzJYluOOf5bT4a5NqGTMnNVJDxD93i5UZjb9/TCLGS8kDni90VlWn0 Bwkf2Xbej6c73ptdvT+4d+LhRgFGrf/A54y+P0TJn/0HwU32uPWq3t3TmtZAbl26QE3v E8rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724232484; x=1724837284; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v9eXvc0/XNFWbfD1Y0YUXBJmDdyD8fskrF6ICMthJKc=; b=GRsCa4nfowEuy1mcWHC3tYEvaGCHXG0Jq21H0Vv7G4+QXrEMdUhCKPmXG6reSJDi4i +ZbPwrhEgoeOwl5PpfDykMVcYibNWa13U94Lee1S6c/ycTred62YNuYXMX0mX+va+p84 BphiKFhTJVHN02OlOBLBBfA3Y2KfK35fFkKKsRyLpoKphnupLRY6V2NGtPCygouu7nJ9 ydP9xDe9lKJQymYUZydeIhTTImodmYdCY8nyglwqBciTDkMeYvlX6Dat+bKnb+oIj5zY FEPVkzUN94JXBnrcNK9HFKM8zQPYt/DCqNc9ZXeKAndK4oyOo21+p+Togl1zy6iznb9y b3mg== X-Gm-Message-State: AOJu0YxrSdCfdkbn8dhH0Grp9wGR0Ti8cS3aMLymNUuKtu3t0FEBAnGn WSUomYqDaGV9HGoqawerYtvsshDDqiZeEDeXR6FI2gdTfTQs5V+5ONj6FGx/Xjz8Cbb0Lxl4t1s = X-Google-Smtp-Source: AGHT+IF915yDoTsaLhJfnahFcvuuoFHZLCoielCK5GVeFeQwUI+Duiz/8cUbtj0koGBD3Mu/4Q4S2g== X-Received: by 2002:a05:6402:1ec3:b0:59e:a1a6:134d with SMTP id 4fb4d7f45d1cf-5bf1f25d267mr1182909a12.32.1724232483833; Wed, 21 Aug 2024 02:28:03 -0700 (PDT) Message-ID: Date: Wed, 21 Aug 2024 11:28:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= From: Jan Beulich Subject: [PATCH] x86emul: set (fake) operand size for AVX512CD broadcast insns Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ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ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1724232498156116600 Content-Type: text/plain; charset="utf-8" Back at the time I failed to pay attention to op_bytes still being zero when reaching the respective case block: With the ext0f38_table[] entries having simd_packed_int, the defaulting at the bottom of x86emul_decode() won't set the field to non-zero for F3-prefixed insns. Fixes: 37ccca740c26 ("x86emul: support AVX512CD insns") Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -5929,6 +5929,7 @@ x86_emulate( evex.w =3D=3D ((b >> 4) & 1)), X86_EXC_UD); d |=3D TwoOp; + op_bytes =3D 1; /* fake */ /* fall through */ case X86EMUL_OPC_EVEX_66(0x0f38, 0xc4): /* vpconflict{d,q} [xyz]mm/mem= ,[xyz]mm{k} */ fault_suppression =3D false;