From nobody Sun May 19 13:34:22 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1691179718; cv=none; d=zohomail.com; s=zohoarc; b=NfFO4/0HrHMnzHjjCbSHA4juRwjn0q6wg7AaFuwT9qwFZUg08a6cvtqstQw/LG6qJA5VR0ZEG3n2fy+CtgVShPF/pbDYx+DsSVbLpea5dMnyB0MwoXND28wroKHESkZ0M2U2+8Rur1as4FxwX2pKYyn7E8T9JehyGDmY+qxfJ5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691179718; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=uw9+27h17Bn5iqViYL2WdXZm/t+7BfRm+0uwHaFZX94=; b=YVBiQAfP/nKk89QvNdLCFbTAPQIlKLmTioTQMbf+w1KU42JcYofrlOglthUtkaEPdNkOmk8nid19EW1PTYjGJeZcS6MJ6UXksz33zPrUxmAbti6Z8K2xwEKmpWDgFe+LfznysJGPuM0nlCN6aLS0NqonRbKUqo+7cp0GL5Y+1L8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1691179718743558.9747945316128; Fri, 4 Aug 2023 13:08:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qS155-0005DD-6L; Fri, 04 Aug 2023 16:07:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qS152-0005C6-Vi for qemu-devel@nongnu.org; Fri, 04 Aug 2023 16:07:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qS151-0005gw-Ib for qemu-devel@nongnu.org; Fri, 04 Aug 2023 16:07:24 -0400 Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-340-SZ_Px4oBMOSctVvo2EwD_Q-1; Fri, 04 Aug 2023 16:07:21 -0400 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fb87c48aceso2577299e87.3 for ; Fri, 04 Aug 2023 13:07:21 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id r14-20020aa7da0e000000b0052286e8dee1sm1677319eds.76.2023.08.04.13.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 13:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691179642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uw9+27h17Bn5iqViYL2WdXZm/t+7BfRm+0uwHaFZX94=; b=AZuwzkRa4qB/ZbJu3I6nnCS/bP4OKIgxz35NTvVkNl2AF7tE+FWv/STKi/n1bMDwmWDGqz DTKRtDL3JGyrgN4hwIhYND1YVGBhyUuv/8+ancT9szW8b3MYfF4HbHlAgpkdxSRnvrZqsa U7YYwTSsS7fgz7DIv+hjyKWYxRl/1x0= X-MC-Unique: SZ_Px4oBMOSctVvo2EwD_Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691179639; x=1691784439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uw9+27h17Bn5iqViYL2WdXZm/t+7BfRm+0uwHaFZX94=; b=C7CfAM2ajiIzEYZMttqA9JrjZiyKVm68vKvc5PhvOBIqZM7EG3HLzXxQ+H0VVtkJf5 04+4jhPdi+dwlJWtrKCdYIAXGAtj5gh30BghiDDwUJWBK1mkFCQ5Cmjy3i+GKU0VjAR+ fUnlyus5BK6gXtT3B/YCKwztCUcVpfZezwgNQ+ZrVlSBZhEzreyHKHh9+SZwub0Ii2q4 MKHl/fbHI7lzUxeuse+qd8mfsJLU09MqndcEuKaSxVtv9y+kcw15/0uie4W9RLcg+m81 duRxdNPTL5ZzHURNFR1p3sXxVrFtf9d65BBNqz+DjeDLt4mWDBX2RyoirbXb2sWyGpWP 9QbQ== X-Gm-Message-State: AOJu0Yxhz+E2218DJsuas+EMc5FKuUjvZzGO7xUbP8WPwUlUH2Kuwp8B J0abYavW8v8TWkny3zd9sZzQmELNWlws/SQkFalNYxT+8AiYplHdkLQygA9OfzNAn7zzoiXXWdU RK1lJ/27A1xgccj/Yd2McZSqs4mHFTcSAnhKc8o/XO0E8cNYPc9dDmC5/Oyn00Lns44tZzrty6I g= X-Received: by 2002:a05:6512:32b3:b0:4f8:66e1:14e8 with SMTP id q19-20020a05651232b300b004f866e114e8mr1855316lfe.69.1691179639200; Fri, 04 Aug 2023 13:07:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPcPlWjfOlHneC9B+AeW5JMHMvY3K4mGxmb2lay8THtdUqu898k+de1EIVKoqoe4ystnR2Gw== X-Received: by 2002:a05:6512:32b3:b0:4f8:66e1:14e8 with SMTP id q19-20020a05651232b300b004f866e114e8mr1855302lfe.69.1691179638685; Fri, 04 Aug 2023 13:07:18 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Matt Borgerson , qemu-stable@nongnu.org Subject: [PULL 1/2] target/i386: Check CR0.TS before enter_mmx Date: Fri, 4 Aug 2023 22:07:14 +0200 Message-ID: <20230804200715.430592-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230804200715.430592-1-pbonzini@redhat.com> References: <20230804200715.430592-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1691179720638100003 Content-Type: text/plain; charset="utf-8" From: Matt Borgerson When CR0.TS=3D1, execution of x87 FPU, MMX, and some SSE instructions will cause a Device Not Available (DNA) exception (#NM). System software uses this exception event to lazily context switch FPU state. Before this patch, enter_mmx helpers may be generated just before #NM generation, prematurely resetting FPU state before the guest has a chance to save it. Signed-off-by: Matt Borgerson Message-ID: Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini --- target/i386/tcg/decode-new.c.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/target/i386/tcg/decode-new.c.inc b/target/i386/tcg/decode-new.= c.inc index 46afd9960bb..8f93a239ddb 100644 --- a/target/i386/tcg/decode-new.c.inc +++ b/target/i386/tcg/decode-new.c.inc @@ -1803,16 +1803,18 @@ static void disas_insn_new(DisasContext *s, CPUStat= e *cpu, int b) } break; =20 - case X86_SPECIAL_MMX: - if (!(s->prefix & (PREFIX_REPZ | PREFIX_REPNZ | PREFIX_DATA))) { - gen_helper_enter_mmx(cpu_env); - } + default: break; } =20 if (!validate_vex(s, &decode)) { return; } + if (decode.e.special =3D=3D X86_SPECIAL_MMX && + !(s->prefix & (PREFIX_REPZ | PREFIX_REPNZ | PREFIX_DATA))) { + gen_helper_enter_mmx(cpu_env); + } + if (decode.op[0].has_ea || decode.op[1].has_ea || decode.op[2].has_ea)= { gen_load_ea(s, &decode.mem, decode.e.vex_class =3D=3D 12); } --=20 2.41.0 From nobody Sun May 19 13:34:22 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1691179716; cv=none; d=zohomail.com; s=zohoarc; b=l7ceQzb/CETFLUYtsCPKqbHYECUeOWdjMJLGjnAAT/nhdd2Rvu+b/v1VSg3KjCCZatXzUgIh7+Tmi/Q5KdJ1Fd74Dl2b5HOM1yrsXzI/UdOfX8lb1qFDLq3+yuV/XCBhK+OLnypilxydmShAmCPVvgajWxk15Of1rzTIm8HDCiE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691179716; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=w5u/Y6q9uq62OMZmB6SY6hfv7zYB1pMT+2HH66zNd/8=; b=A4/XiFoSAEEhkgVBZxNUgK7qep8zIWmsVAJ7o+3R3JoVyqVC4NUM8pvtsTRtCCk5T2cBtih7yU0SPf+lpyiNIiogPWq/hFgQHue0RKj2ITk49lPQwgjiZoIMpdgXyeG5af4k14FUtOOyzZjyWqjZP2DDo/kXss7ZYIj9QhKufhE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1691179716419634.5269066713074; Fri, 4 Aug 2023 13:08:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qS155-0005DS-Ob; Fri, 04 Aug 2023 16:07:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qS154-0005Cb-0W for qemu-devel@nongnu.org; Fri, 04 Aug 2023 16:07:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qS152-0005hD-KI for qemu-devel@nongnu.org; Fri, 04 Aug 2023 16:07:25 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-29-qEJbuHwrNcON1BvvMpT5kw-1; Fri, 04 Aug 2023 16:07:22 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-99bfe3dd009so494845266b.0 for ; Fri, 04 Aug 2023 13:07:22 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id d11-20020a170906c20b00b00992d70f8078sm1745094ejz.106.2023.08.04.13.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 13:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691179643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w5u/Y6q9uq62OMZmB6SY6hfv7zYB1pMT+2HH66zNd/8=; b=IYfvtDRj9f8cKyK7GWujB1YZsJTn+u+rO3RsW9V2rbL2PAc8Og9F45QguHWY2bGVyhSgmv eBzRNTc0+NPK34Y1v0+/eMfPsj4W0f5bF46V1xx5L2msGIb4jjdcTNaZfVCAqmH6oXT5jl J4m/gFEPrb0K+VjsN/K2SAaq0jUqIvI= X-MC-Unique: qEJbuHwrNcON1BvvMpT5kw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691179641; x=1691784441; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5u/Y6q9uq62OMZmB6SY6hfv7zYB1pMT+2HH66zNd/8=; b=bO7d8QvV+LeFfG+7PEMOu0Chc3kGYlL2wJyH6sXMwN0TjO1h42dCKf4rEE7e79ojeb qp64X2WOrKikGaS5xE3rYajdwoyEb091hnL6OTN+v9oQXCzycNgjIz745g+NKFiyqDV0 u5u0OMjeEGe5r3zTxPhTxZxrJSLxuRWoBzz/yIIsq1vyyURl/6FPGW39cCf6WMcVgUN0 T+CU3uBO8RbQg1pHKW8BqWxABz9+88+s/rOBQ18Ru+jrhV+Mu7COuv++BxRsx2c2kHek whqiF5v5jKCzySETNfpmQY1lsTAkGMtENNDdL8ewBThT25TA5MVmEibMFaKt7s0z0R7X hslg== X-Gm-Message-State: AOJu0YzdIfIBfTyNL5tK7s26Ddkgz1exuAF6JaLWOgJSZyZgDJw9KPeS wFlvfW1rEbtmZ+e5U3qCRdpPlkgDwB+O0MAqvlcFoelhasTJ+u220S6IhvYZhb/gtbo6LBO2ZJA K0ho1rWmajMRAXu6EBLINLy0FnkrA1VMG6hMSyg9jZ6TcyFq3ATRcr2xAnPJj3y1oUhROJcSyY2 k= X-Received: by 2002:a17:907:1c8b:b0:992:103c:43fa with SMTP id nb11-20020a1709071c8b00b00992103c43famr778910ejc.30.1691179640962; Fri, 04 Aug 2023 13:07:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHateb6eqla0R8eXIfrg/kIyprVtwjOMksmLad6+vqy4gDEk79Sl2smPD/FI8qi3lf6JUVeuA== X-Received: by 2002:a17:907:1c8b:b0:992:103c:43fa with SMTP id nb11-20020a1709071c8b00b00992103c43famr778895ejc.30.1691179640641; Fri, 04 Aug 2023 13:07:20 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= Subject: [PULL 2/2] ci: install meson in CirrusCI KVM build environment Date: Fri, 4 Aug 2023 22:07:15 +0200 Message-ID: <20230804200715.430592-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230804200715.430592-1-pbonzini@redhat.com> References: <20230804200715.430592-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1691179717271100003 scripts/archive-source.sh needs meson in order to download the subprojects, therefore meson needs to be part of the host environment in which VM-based build jobs run. Fixes: 2019cabfee0 ("meson: subprojects: replace submodules with wrap files= ", 2023-06-06) Reported-by: Daniel P. Berrang=C3=A9 Signed-off-by: Paolo Bonzini --- .gitlab-ci.d/cirrus/kvm-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/cirrus/kvm-build.yml b/.gitlab-ci.d/cirrus/kvm-bu= ild.yml index 4334fabf39e..a93881aa8b5 100644 --- a/.gitlab-ci.d/cirrus/kvm-build.yml +++ b/.gitlab-ci.d/cirrus/kvm-build.yml @@ -15,7 +15,7 @@ env: folder: $HOME/.cache/qemu-vm install_script: - dnf update -y - - dnf install -y git make openssh-clients qemu-img qemu-system-x86 wget + - dnf install -y git make openssh-clients qemu-img qemu-system-x86 wge= t meson clone_script: - git clone --depth 100 "$CI_REPOSITORY_URL" . - git fetch origin "$CI_COMMIT_REF_NAME" --=20 2.41.0