From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C65DCA5FC1 for ; Wed, 30 Sep 2026 08:29:57 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xBph8-00007m-NL; Wed, 30 Sep 2026 04:29:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xBph7-00007U-1p for qemu-devel@nongnu.org; Wed, 30 Sep 2026 04:29:41 -0400 Received: from mgamail.intel.com ([192.198.163.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xBph5-0000P3-K6 for qemu-devel@nongnu.org; Wed, 30 Sep 2026 04:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1790756979; x=1822292979; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PJ8Vpp4QZd4jtr8/dy76MUzWSViY1rYK6WeQ43Es920=; b=B8UESpDtqhyCOSoUOtDa/pCggk/n7cebOTdwP6q+LzV+0gjiX6LHnBt1 v0Oterk8gxwSqq9VQCKCdg5kh/MhsT7uRtwss7tiCLDuxk8q0E+mgbBCg By5OfUVlBjwRPfxiWOOju4JEteYy522IZ+c7W2hy8ywlz2zO6MuIgM3LY ixlsp0OYBNUn5w0AQBwP1iRsAm8Sp45+fL4gQM7RPrBXwbQ5vdpnEGNfp MOIlPslmZXEK27liA7yPy/NdwhTlKLEQFb7zCbhz8KvsjgJ+lEAYNdrAR E5YQBvYSYDlndtzg159/lTaiexxLAnzLvZ3WQ9ZQSKWNGrhqED9aQlbmU Q==; X-CSE-ConnectionGUID: VJAmCDrfSCKCZl8rRthXPA== X-CSE-MsgGUID: Buc6nqVmSbuvVSaFQMqRrA== X-IronPort-AV: E=McAfee;i="6800,10657,11920"; a="95299284" X-IronPort-AV: E=Sophos;i="6.27,132,1787036400"; d="scan'208";a="95299284" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2026 01:29:37 -0700 X-CSE-ConnectionGUID: 5XeF1sfVQESSjvzHnZ00+g== X-CSE-MsgGUID: 2U1R5/SvSN2WMHoX2LLweg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,132,1787036400"; d="scan'208";a="273411729" Received: from zhaoliu1-desk.sh.intel.com (HELO localhost) ([10.112.226.173]) by orviesa006.jf.intel.com with ESMTP; 30 Sep 2026 01:29:36 -0700 Date: Wed, 30 Sep 2026 16:29:34 +0800 From: Zhao Liu To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Andrey Polivoda Subject: Re: [PATCH 1/3] target/i386/tcg: extract validate_cr0_exceptions() Message-ID: References: <20260930065406.738374-1-pbonzini@redhat.com> <20260930065406.738374-2-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260930065406.738374-2-pbonzini@redhat.com> Received-SPF: pass client-ip=192.198.163.12; envelope-from=zhao1.liu@intel.com; helo=mgamail.intel.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.341, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, Sep 30, 2026 at 08:54:04AM +0200, Paolo Bonzini wrote: > Date: Wed, 30 Sep 2026 08:54:04 +0200 > From: Paolo Bonzini > Subject: [PATCH 1/3] target/i386/tcg: extract validate_cr0_exceptions() > X-Mailer: git-send-email 2.55.0 > > The checks on CR0.TS and CR0.EM must be done after all #UD checks, > so extract them to their own functions. > > Signed-off-by: Paolo Bonzini > --- > target/i386/tcg/decode-new.c.inc | 39 ++++++++++++++++++++++++-------- > 1 file changed, 29 insertions(+), 10 deletions(-) Reviewed-by: Zhao Liu