From nobody Sat Nov 23 20:28:55 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=1730215258; cv=none; d=zohomail.com; s=zohoarc; b=a65PuJAKsqMccQLY9RWE1UHGMo8dC0EQj2T5o4vN0TUzPYHjTXFoUlXhvw8U+DBf1E4p+tUgs0+CBKCZetPDAfRR9V8SPEttEj+6dnBrqMnVSUTunzKG87BaRcDPF4W0KVjymEkKc8wPeyWINhWivZuggfgnE2xDMmshiNkY3Ww= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1730215258; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hmjj7j2upwlaHs7IvJz1blz9Nv2Vqs0ImMRiMwgLbLk=; b=flPbwEG2RzXbBKRQgaxBQh8a6joBEjoRt1YBikJBNGFf+oKRXawDjrXzDK/Frhfxp0LmVLTj+AIXuYpDu0VIN33caqq+xUPS4xQ3n2jClcrMFIE8eq9j+iow9t83kWoke+0K+qRqvkuPhcxiO4DMTSuDYj14WFGRmvW/xI/zbPw= 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 1730215258580389.75009568445466; Tue, 29 Oct 2024 08:20:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5o0c-0006uk-CR; Tue, 29 Oct 2024 11:19:50 -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 1t5nzx-0005X3-Mh for qemu-devel@nongnu.org; Tue, 29 Oct 2024 11:19:10 -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 1t5nzw-0000Oq-B8 for qemu-devel@nongnu.org; Tue, 29 Oct 2024 11:19:09 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-408-WB-qGcTgOSq_GqW3ASEyoA-1; Tue, 29 Oct 2024 11:19:06 -0400 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-43157e3521dso37172115e9.1 for ; Tue, 29 Oct 2024 08:19:04 -0700 (PDT) Received: from [192.168.10.3] ([151.49.226.83]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b3c625sm12830442f8f.37.2024.10.29.08.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 08:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730215147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hmjj7j2upwlaHs7IvJz1blz9Nv2Vqs0ImMRiMwgLbLk=; b=XaX7+VewELo8SSAALzPIanxZ9005rxESw1HnT1aMwVfgVFT/xaWFKjrIZbrkOxJgrsyUBs LGBGFbD2dX3L6q0HTAMUO6/qu38n+UuDVNi6AtgVPv3QbaOh4oOiGv+6UmqN+LJz65SIRj VyGpkdqHjZka9ho/kc241eQwHPKbz20= X-MC-Unique: WB-qGcTgOSq_GqW3ASEyoA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730215143; x=1730819943; 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=hmjj7j2upwlaHs7IvJz1blz9Nv2Vqs0ImMRiMwgLbLk=; b=r95BQQyCXLPOlraSP5MVSpk6JIeGun8FTWQxGRsGU3/cBhhn2RANTjivZgUcJJPzyj scMBVz1hKqOmQZLaImpaSHgzNpk9iitrT/OtUBLlS8IFQgWzB5GALd7s/aYLkUl/ZUuc tohTcHv7qJ2L1r/omXfyInlmSU575gMT+anZyktPnPzIwpWJwyfjRVVYqUyzDEJywP9E 2+GcFR9gloInLmXsPU2H5vkb51YvLjlFahU17h0f88etyjo6+pZDjBpUVCfE2cuZMoRn uTpBdPPYnF5TtlsMa9Bc6ump0fa0cLRc4C6PsQNTHQaUuT/l0WwRt14u8W5rr5XMENDy t8ng== X-Gm-Message-State: AOJu0YwIn9j/RFFGykD2Fa1cbXuCOqRrV0OJC3wZgdxApgWfCg3+DPDf HHluz/I3I6j5afYtl0OM56PKCjUATRCD52bVZfaOc09Ww27wIe7ykLrC+FH/2UaDewwQqKpSWLe /0rHDH+cmFXVOWeMqXIvT7PgsUeG/0mpoHhEkXMxR8SZydMVHNG/pdEFmrzM+QNTDb2gsVvqUUB DNJBRsemf0Xjsk4G8wGxG7YC7sSu5ozM07NBgrTl8= X-Received: by 2002:a05:600c:4e91:b0:431:54f3:11af with SMTP id 5b1f17b1804b1-4319ad2103emr95091545e9.31.1730215143084; Tue, 29 Oct 2024 08:19:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGW1QCg7TiuyBlyPBi6p8Zdn9CMlnu+h38IwmZrwi4KsriZB8mPnNJH7WBdwXd8ggdn996epQ== X-Received: by 2002:a05:600c:4e91:b0:431:54f3:11af with SMTP id 5b1f17b1804b1-4319ad2103emr95091325e9.31.1730215142685; Tue, 29 Oct 2024 08:19:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: tao1.su@linux.intel.com, zhao1.liu@intel.com, xiaoyao.li@intel.com Subject: [PATCH 1/8] target/i386: cpu: set correct supported XCR0 features for TCG Date: Tue, 29 Oct 2024 16:18:51 +0100 Message-ID: <20241029151858.550269-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241029151858.550269-1-pbonzini@redhat.com> References: <20241029151858.550269-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: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.302, 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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: 1730215259080116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Zhao Liu --- target/i386/cpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 5886b44fcf7..f08e9b8f1bc 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1318,7 +1318,9 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] =3D { .needs_ecx =3D true, .ecx =3D 0, .reg =3D R_EAX, }, - .tcg_features =3D ~0U, + .tcg_features =3D XSTATE_FP_MASK | XSTATE_SSE_MASK | + XSTATE_YMM_MASK | XSTATE_BNDREGS_MASK | XSTATE_BNDCSR_MASK | + XSTATE_PKRU_MASK, .migratable_flags =3D XSTATE_FP_MASK | XSTATE_SSE_MASK | XSTATE_YMM_MASK | XSTATE_BNDREGS_MASK | XSTATE_BNDCSR_MASK | XSTATE_OPMASK_MASK | XSTATE_ZMM_Hi256_MASK | XSTATE_Hi16_ZMM_M= ASK | @@ -1331,7 +1333,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] =3D { .needs_ecx =3D true, .ecx =3D 0, .reg =3D R_EDX, }, - .tcg_features =3D ~0U, + .tcg_features =3D 0U, }, /*Below are MSR exposed features*/ [FEAT_ARCH_CAPABILITIES] =3D { --=20 2.47.0