From nobody Thu Mar 28 11:06:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1578399960; cv=none; d=zohomail.com; s=zohoarc; b=FcUeyLJ07W/l19EgxCNxXXPM7OzrmC5hhYb+GRnlhUta3Duz5XF3FfjC9egxbhaeF4hI9YELz/+Udg4a3ihCqylVSkVGhNVf7u0EnQx+LPhBPv045ZSa+PUufjuplwXDU1qRHdAvfgPmGeMQJ1PsNsVPA5rjHnFmx80Eb+ZnJnY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578399960; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=+wz4W8nJqlhk7tvgKf4um7KUP3fbXwgl++rshNYlJnc=; b=Chhd7IOHPsaJJ65j3yibKtUSpk2YQcqH2La7kmF1uVLftIlXjHZEZjp4NkFn2vBmBQd3RmWsAKrthY8UFTlLdZv33RGTjXMDaeElzORFIspJR5QeiZotj5mhPTbN4NX3LqXTx2R6erI7nf30xwr7iPyJC5iQlHWMLoS1Ljjj5JY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1578399960591616.3807397848439; Tue, 7 Jan 2020 04:26:00 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ionv8-0007e9-F3; Tue, 07 Jan 2020 12:25:14 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ionv7-0007e4-Nj for xen-devel@lists.xenproject.org; Tue, 07 Jan 2020 12:25:13 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id bbc31312-3148-11ea-b56d-bc764e2007e4; Tue, 07 Jan 2020 12:25:05 +0000 (UTC) X-Inumbo-ID: bbc31312-3148-11ea-b56d-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1578399905; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OpbKJyitG19QvZedu5aSWFAs9EOaDDRflD6uYMuAv2A=; b=YHxzIvTT9+HsbGqCUq82ClgGvyVxpPa6FqWlfbbnflScHgD0Hog+HkVQ 7CQ61peFI3rIX7Sxhmaos+XpSIUlU4S0LjfdX/fF8iWFEIpp0onoj+p5A ck3iLkmMGkXNcFRYfgkOUpJrF3vYUYdbjpB0X/rBSnoYl5dwskjZ/H7/q Y=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: vvqOuoz5BpfVkGO72OFB00FZQHq/f2Wh7ufeDfYEKqQRqL47rJB2e0v538J/7zIJ4T4xF2etv6 JMa2VW/DmX6/w08BA7yZ1HLPb0aYD4MX5ru7cqeMjg2cg1OM17ixb/63VGl1e7YAPGcvmBVDIg 3g3VMY9t6hbCeDkuCUIDCkAmh6vBBT/SKJ19PtC3ZEzLzHsef0xG+5/gGbxGmj/BmqC1QgydUm UCOqCNP4UK2qqAwcqPENUeFHLj7a1su9F2lRYfRV/CQnxxA+lxFTQEayOVwc6aIN/aIiGjAc5b NMM= X-SBRS: 2.7 X-MesageID: 10560147 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,406,1571716800"; d="scan'208";a="10560147" From: Andrew Cooper To: Xen-devel Date: Tue, 7 Jan 2020 12:25:01 +0000 Message-ID: <20200107122501.15511-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[] X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Kevin Tian , Jan Beulich , Wei Liu , Andrew Cooper , Jun Nakajima , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) No need to use 4-byte integers to store two bits of information. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich Reviewed-by: Kevin Tian --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: Jun Nakajima CC: Kevin Tian --- xen/arch/x86/hvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index f83f102638..b79bca71ad 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3978,7 +3978,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) vmx_update_cpu_exec_control(v); break; case EXIT_REASON_TASK_SWITCH: { - static const enum hvm_task_switch_reason reasons[] =3D { + static const int8_t reasons[] =3D { TSW_call_or_int, TSW_iret, TSW_jmp, TSW_call_or_int }; unsigned int inst_len, source; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel