From nobody Mon Nov 25 09:53:19 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=1715269236; cv=none; d=zohomail.com; s=zohoarc; b=gTpV5BgPRrQxMObu1nkbY7CkYX0zK0Wj5YsTi9CfCeVrwKbBDIBKc9QYyCmmDm2oq9ZzviuoYFh1rex3n74OXqKmPUqrWP7p3pSFmTga/DMAFeQzSgZpweKOcU+2NsY4c8HSWVxJQc1rg49U/zGPh834aD5DXoWv6zZvoVi8Gvo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1715269236; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=BvJWgcCgJ6AyS7lvUft/LuL2u3tE1Xg09QghCcPawa8=; b=e6nMD203eyVGl4cx0ObPspe92iHwPkf2yYSN8VwpMEOohDF8iOIVb/DZ+hsxDhF/SewBptOiOdGaC5MoD+9klGWrqcdvOvfdukvRNFWu3DTymkVkyL+kKnKYKhgRQzKyds+EHPgewcNt8oJwS9XX0Ya4EYMuiHAS2LlISHbOZcM= 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 1715269236157685.572997490338; Thu, 9 May 2024 08:40:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s55sN-00059w-Fs; Thu, 09 May 2024 11:40:07 -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 1s55sH-00058A-2I for qemu-devel@nongnu.org; Thu, 09 May 2024 11:40:01 -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 1s55sE-00024i-M6 for qemu-devel@nongnu.org; Thu, 09 May 2024 11:39:59 -0400 Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-99-bDe6Dob0NQyYRpYvJQFj6A-1; Thu, 09 May 2024 11:39:56 -0400 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-51faceb0569so860595e87.0 for ; Thu, 09 May 2024 08:39:56 -0700 (PDT) Received: from avogadro.local ([151.95.155.52]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b01a2esm83790066b.185.2024.05.09.08.39.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 08:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715269197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BvJWgcCgJ6AyS7lvUft/LuL2u3tE1Xg09QghCcPawa8=; b=HFQUbKLacwGFi06240czQ3EOEiu/iDMzEDELKh1oOgGF6ToK8OaMNPS8/9eroTHegF5vIH hG31XRbRUhz8Yw7ZHVF/RUnoX6aZ/XMEmjWITckWle6eQ7ClPhkmJNl7p9QaiKp3lvIFrV rzS8H43SGc8BKm4j13MQj0HZRnwH9Js= X-MC-Unique: bDe6Dob0NQyYRpYvJQFj6A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715269194; x=1715873994; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BvJWgcCgJ6AyS7lvUft/LuL2u3tE1Xg09QghCcPawa8=; b=aJpkNFbOV8smnOG7Uqb1bKdpag6ZrV3sIV4O/MSwBFkXdlxh4R1slvGlFxElm0Rr9k c3OF2wO84JxA2rWhFf+QKW8vGbK5AQRH2tl2adQ8+Vf9EtJVpTkqFDKm8eV4EhLxHtsY s7Xt5hK6NEhOaEbcqABvqnS50y0LY8+9vmxK/SwgD/dooI3Gf4E2GNiMwl1GTCSqMpD1 LtWAj58k/cGjn5piwzccM8iN3ixFVIoG3mUC8/gu1CuVTYqmFIXAigfMTm65bWZ0dxha bykIGm3FBfjb6ha0ddz1lcyKi+zcSD6EdKbW/NCMQj22m3qiud0fjjfki9j+aV3+rtaf 2+Ww== X-Gm-Message-State: AOJu0YzlJNIocD2YDbtKamxWkuhP4wwevAI3expJ6Pqbn/+27vhUDdw0 QmwKDodo2ZwuIoBQUz18I9QKUYhEgwGx0dZO+v0NDqnZZT76b+XcYEoc6ZSPp8CMdUcCrWoI/Rt TiHOpgDACE1Kv1HHutRh7ngzb8JZJc6xdAZkgE6PDSYR6lbTJ+jUSqbvpoUWIxGA72reJ87Ar45 EcBkvYUF3sHInQdyprN/yM7mqFuSdl/R0a1kuM X-Received: by 2002:a05:6512:4845:b0:51b:e0f0:e4f8 with SMTP id 2adb3069b0e04-5217c666671mr3807726e87.31.1715269194417; Thu, 09 May 2024 08:39:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/TSuSCvNcIjn4TyJ/baYm8SrGnp6eg9HZhc4Y7y7UcvXREMaVvge/5usU/uvX7e3WTq9KzQ== X-Received: by 2002:a05:6512:4845:b0:51b:e0f0:e4f8 with SMTP id 2adb3069b0e04-5217c666671mr3807706e87.31.1715269193908; Thu, 09 May 2024 08:39:53 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] target/i386: add feature dependency for XSAVE Date: Thu, 9 May 2024 17:39:52 +0200 Message-ID: <20240509153952.143805-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.45.0 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.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.581, 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: 1715269236435100001 Content-Type: text/plain; charset="utf-8" The XSAVEOPT, XSAVEC, XGETBV1, XSAVES features make no sense if you cannot enable XSAVE in the first place. Signed-off-by: Paolo Bonzini Reviewed-by: Zhao Liu --- target/i386/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index f2ea6899e39..6f5ff71c6ee 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1550,6 +1550,10 @@ static FeatureDep feature_dependencies[] =3D { .from =3D { FEAT_8000_0001_ECX, CPUID_EXT3_SVM }, .to =3D { FEAT_SVM, ~0ull }, }, + { + .from =3D { FEAT_1_ECX, CPUID_EXT_XSAVE }, + .to =3D { FEAT_XSAVE, ~0ull }, + }, { .from =3D { FEAT_7_0_ECX, CPUID_7_0_ECX_WAITPKG }, .to =3D { FEAT_VMX_SECONDARY_CTLS, VMX_SECONDARY_EXEC_ENABLE_US= ER_WAIT_PAUSE }, --=20 2.45.0