[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/8] x86emul: split off opcode 0f01 handling


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 28 Mar 2023 18:04:43 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oBWZ92GV0sYp13Kh1h6hT0v2619ihGuAG3IGPIaZZ/I=; b=EXjhUSwcDMprzdxJ4/AVWTlzhDNcIQIMKoG3XnQ5BnI85ZZdSVB21Dkh28Uykpy7xgTSM8DfJQ4QMr4iUAvl9uHvLuFTuhe2KQ2aswBV6/ZabviNMx44Qkc+Rd3RrY71+ag0MNj89+Jj2ZGFIMLD7oYRDzKIVnEFMqMNFHMqI2lpuixA40Npazy5sHigrwJGziIucLGyN7BaprsxPlD4A/HhBtY8P3VZtoSPE7EE8ZWKDZUIhhxaEPK5+AzWQk35qBiRyTJCRIO8qx+LRW+dtHebqJgfz4BTdpfu/PLdoILOJhEViY+vwUf7L59dJHkTIHV2Z2vZ9TEkh+ZYxfh3eQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aPUqbxf30InLPiW7DnCDHNkRvNhd4eqOax0p9C311S7SaQKWYtYT99ey6t1KXibXPH0ihgOHAH25eeLDddzEyptOnZtv2J94AMTA0ExhlMSlBUhDNsxBd1eeuznQUuivRNW4turLYnB3tDGovrPD5ppLhjx/65mvBt1LPdru7DoNaJn5GWMN6ItnilLIhTZMATZ/oQNpM+Ewi5572MI2aICxrUh+f4/hrQQ4M0Mdntwk/lmABkCuVKk9kw0Jg+3QN+vGBwXGW5Ura/eTM7bDWffFI9hGnYnLT0R8JgWiYBmOV6SBOxrN1rheiSYXY3v3tdB3F6XNTmuAr3/DUz4yxw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 28 Mar 2023 16:05:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.03.2023 16:57, Roger Pau Monné wrote:
> On Wed, Jun 15, 2022 at 11:58:46AM +0200, Jan Beulich wrote:
>> --- /dev/null
>> +++ b/xen/arch/x86/x86_emulate/private.h
>> @@ -0,0 +1,531 @@
>> +/******************************************************************************
>> + * private.h - interface between x86_emulate.c and its helpers
>> + *
>> + * Copyright (c) 2005-2007 Keir Fraser
>> + * Copyright (c) 2005-2007 XenSource Inc.
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License as published by
>> + * the Free Software Foundation; either version 2 of the License, or
>> + * (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; If not, see <http://www.gnu.org/licenses/>.
>> + */
>> +
>> +#ifdef __XEN__
>> +
>> +# include <xen/kernel.h>
>> +# include <asm/msr-index.h>
>> +# include <asm/x86_emulate.h>
>> +
>> +# ifndef CONFIG_HVM
>> +#  define X86EMUL_NO_FPU
>> +#  define X86EMUL_NO_MMX
>> +#  define X86EMUL_NO_SIMD
>> +# endif
>> +
>> +#else /* !__XEN__ */
>> +# include "x86-emulate.h"
>> +#endif
>> +
>> +#ifdef __i386__
> 
> Do we ever build this code in 32bit mode?

Yes, for the emulator test harness, which can be built both 32-bit and
64-bit (like all of the tool stack can be). When the tool stack is
otherwise 64-bit we even have Makefile logic there so the test harness
can be built both ways in parallel (and hence things can be tested both
ways, provided 32-bit runtime packages are installed).

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.