From patchwork Thu Jun 1 14:27:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263884 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 11648C7EE2F for ; Thu, 1 Jun 2023 14:28:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542544.846523 (Exim 4.92) (envelope-from ) id 1q4jHY-0006Pe-IM; Thu, 01 Jun 2023 14:28:04 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542544.846523; Thu, 01 Jun 2023 14:28:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHY-0006PX-Eb; Thu, 01 Jun 2023 14:28:04 +0000 Received: by outflank-mailman (input) for mailman id 542544; Thu, 01 Jun 2023 14:28:03 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHX-0006Od-6m for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:03 +0000 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.23]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8354966e-0088-11ee-8611-37d641c3527e; Thu, 01 Jun 2023 16:28:01 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ERr1Sk (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:27:53 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8354966e-0088-11ee-8611-37d641c3527e ARC-Seal: i=1; a=rsa-sha256; t=1685629673; cv=none; d=strato.com; s=strato-dkim-0002; b=sJriocoYi7qieJcktu3vYQ1uYhv59B5RhT5eGihspvpS/Qr5KvXZbJEqpbPt9+dHOb 11WkBJhC8ta5pyMFYj5o5VM/EpUNAgXlVGo2e0P+y76vOrHTGkNCdNuL9mWQ2TdOHnyo xHIDVoMAdBbM0OKN3LZEXsHGIsaLCEfZLUyeLKEFoOf1qn3qIKhlFfrkBYoL6P41RfQG +BMbVPkizCipYeXhQkr1bzsbKSMn54iJT2GAFgyc840XldxA1HC7tKl1qZ7Sw3BOfw4N SFe986SMN3qmJ51xSOPGRGBeK6+xD6m9JLRaB03u6eU0J6KpDdokGcGw9fp3RPhXweFg KPpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629673; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=yHH/K7mLKUIuVEhep20I7pu3fZbR52QQbMM0Cljd+e4=; b=XRgIqSKsXdDVi8I6JweiJyqIEj5kEPp6r3FYeyOEJgzmYm9wj6faBbNmN0ongQPcO2 eBUwRLsjjEDQfQaFPfBHfOmHsV14RI3KXfFBgV7mEQF0JfLFjcMoiBLELc09MSqV3EFq 6kFa0PP7W9hhy6X7jIgwIq3ppxN9J0QvGdMDMwL4XnXEeoHyrzxIixD9Igkbx0uqKbZi dvuSg/syyYQeWWF6glmcTXOd3ZhXqeVl45bd6roVKOAIROVCLAE+eFaY+JidoRSpyQ/e EJtSPmWck1275GOhltziklOa9adsGDLnYx7OklcjZKFnsYOxf9e/DES59bdXHh/hRNo2 782w== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629673; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=yHH/K7mLKUIuVEhep20I7pu3fZbR52QQbMM0Cljd+e4=; b=NUxyFsZvRq9KzWZcs8dNGLUTBfCJ2RkB0lnGJy/vAsTmmvBd0yoMnFOhQmebo1k1Ow LDJc520CDRnGGAGv1Yb3dmx8TUtGaKTI9sn1rMY4jMMQxhEfHyiC22ob6AlUoAZkX9La iXeqQe76DmQCNUOw+SWeKxsAlhjE19s6YWBTPDY9C6sDTEoQCXhhmyYjXVpWTbn8T5bI fhm56mL6C7lfoVzqrT+yw9uOJRmQDAsllONOXi1oUiSffhqPg037Fd1iRSEYHQGZspAc mkTZlSRiWg2q6e8SWd78Dky8XosBL8ta9cyGmtLQNPiKdUthNY1AYBZ/FAn7AO+cvl+n UmtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629673; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=yHH/K7mLKUIuVEhep20I7pu3fZbR52QQbMM0Cljd+e4=; b=7S/bqvTDfDoEkI4pHVWxU2Ga0h711EvwcxLawl/g9cxzTxAEA0DenCl77W6Ej0mBaE rR4oUUQORzhqpn0azACg== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: Wei Liu , Anthony PERARD Subject: [PATCH v1 1/7] xentrace: remove unimplemented option from man page Date: Thu, 1 Jun 2023 16:27:36 +0200 Message-Id: <20230601142742.15489-2-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 The documented option --usage worked because every unknown option showed the help. Signed-off-by: Olaf Hering Reviewed-by: George Dunlap --- docs/man/xentrace.8.pod | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/man/xentrace.8.pod b/docs/man/xentrace.8.pod index 69aef05f65..4c174a84c0 100644 --- a/docs/man/xentrace.8.pod +++ b/docs/man/xentrace.8.pod @@ -69,10 +69,6 @@ set event capture mask. If not specified the TRC_ALL will be used. =item B<-?>, B<--help> -Give this help list - -=item B<--usage> - Give a short usage message =item B<-V>, B<--version> From patchwork Thu Jun 1 14:27:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263887 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 BBCD6C7EE2E for ; Thu, 1 Jun 2023 14:28:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542545.846532 (Exim 4.92) (envelope-from ) id 1q4jHb-0006iU-Uz; Thu, 01 Jun 2023 14:28:07 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542545.846532; Thu, 01 Jun 2023 14:28:07 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHb-0006iJ-Rv; Thu, 01 Jun 2023 14:28:07 +0000 Received: by outflank-mailman (input) for mailman id 542545; Thu, 01 Jun 2023 14:28:07 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHb-00066T-3W for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:07 +0000 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.54]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8621ad0a-0088-11ee-b231-6b7b168915f2; Thu, 01 Jun 2023 16:28:06 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ERw1Sm (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:27:58 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8621ad0a-0088-11ee-b231-6b7b168915f2 ARC-Seal: i=1; a=rsa-sha256; t=1685629678; cv=none; d=strato.com; s=strato-dkim-0002; b=r/eu1fIER1wPtZpC+xC77N6N7DJLuru5V1w9oFBuvxjO5WUkg8NrG4CtdMC5BcCLO+ A6k7twbEcn6oKNcybOKlsc3AKnbfz7LGXC+JTLuenYilG2jbmyP4wS1e0LsQnsi+Ijmr wYQrXcopUZYpgGyae55grBaS10fh2ASOcF5OjVwMwnH0DJGC2xoRmWRTnYjTxllde9nF iX8s71tIXigDG2ayhNrt0v1utwjcrkVzCMvivlM6SxDdf9fm3xETwBhEcYlC1mNAR5Bd zgIhe3oKLd/phROPzvWAOtzff7ipGsuATRxIv7HslBIVKhum/+azFuqa/mXOtSBfz3uS 3GWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629678; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Ycz8f4S+YBpjwDakc+Obg3kVrNZi3RzeWmvuw/COUYA=; b=bpf85c1++ih3Ove1r592do1uITxcPaD31yENAjapJ9D5EcO0doWfqZ8TExpczXA5N7 ospyr40816WHbdGMbCPWHaOJsU4sDhc2q2aXz7dQPuFb/dj0zZj1L59Lll24NZ7FlaDX 12zNCcOEgt02alAoH4vretWqQPz6xFGdvBe9jnHLsgMSIqvDPb6tsU519g5WC0hRmp6I oZElnIGXCf1yXK6gO4epLDPLxFoiNU3UkTKBzAVj7PWfTh2MOQ+FVYACa3s37VHnrlqC UU6XGiNT/ha8vVOy++JY0RGsnGeqpTZly4EVxGrlvSktKGRCyC2pPbeiml/AhYrN5R0F U6Jg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629678; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Ycz8f4S+YBpjwDakc+Obg3kVrNZi3RzeWmvuw/COUYA=; b=PFTAfY8BdVyFK3M5hmk0NxfmH0KBGS3IvFEy8DSDdbJ5ydt5H4UtVfEnwDkFamiTzK XvEH0JCTlaUJspRrwSAOik+HkOCrWtWjHK90Xut8HvHunEKULxNZLr4PC748Y/tRhZiS HdfZERiDTkBy6vbQJO0in4xsbEHnUytI4JdWJnWIfgQeuPTsuuOumPYVNYskxDC7azlA gA8QrJn0XLUzAXcPAVY2phzUmK+voH1ZdUMcKeRFiDzotI8qPolEfWqiFOfhLYRzmo6O 1ewt8W9Oeo43CzQTZ/UvJbOrBJ+G+O27b6JKwd9ZbXB0gQs5LzfW9q3z3ckxsiM+6Sjc rC5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629678; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Ycz8f4S+YBpjwDakc+Obg3kVrNZi3RzeWmvuw/COUYA=; b=jPeOf2U4nhZ/BQZKRx1Hm0HaDs/pgr8xOyOlw2IYdmDb/XGB/XBveXnMUgq4EVNnlN ccz9cwRMgObZnfiWYQBg== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 2/7] xentrace: use correct output format for pit and rtc Date: Thu, 1 Jun 2023 16:27:37 +0200 Message-Id: <20230601142742.15489-3-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 The input values were always 32bit. Fixes 55ee5dea32 ("xentrace: add TRC_HVM_EMUL") Signed-off-by: Olaf Hering Reviewed-by: George Dunlap --- tools/xentrace/formats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xentrace/formats b/tools/xentrace/formats index 0fcc327a40..afb5ee0112 100644 --- a/tools/xentrace/formats +++ b/tools/xentrace/formats @@ -211,8 +211,8 @@ 0x00802008 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) do_irq [ irq = %(1)d, began = %(2)dus, ended = %(3)dus ] 0x00084001 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) hpet create [ tn = %(1)d, irq = %(2)d, delta = 0x%(4)08x%(3)08x, period = 0x%(6)08x%(5)08x ] -0x00084002 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) pit create [ delta = 0x%(1)016x, period = 0x%(2)016x ] -0x00084003 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtc create [ delta = 0x%(1)016x , period = 0x%(2)016x ] +0x00084002 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) pit create [ delta = 0x%(1)08x, period = 0x%(2)08x ] +0x00084003 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtc create [ delta = 0x%(1)08x, period = 0x%(2)08x ] 0x00084004 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) vlapic create [ delta = 0x%(2)08x%(1)08x , period = 0x%(4)08x%(3)08x, irq = %(5)d ] 0x00084005 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) hpet destroy [ tn = %(1)d ] 0x00084006 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) pit destroy [ ] From patchwork Thu Jun 1 14:27:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263883 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 1CEC7C77B7A for ; Thu, 1 Jun 2023 14:28:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542546.846542 (Exim 4.92) (envelope-from ) id 1q4jHd-000709-6m; Thu, 01 Jun 2023 14:28:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542546.846542; Thu, 01 Jun 2023 14:28:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHd-000702-3t; Thu, 01 Jun 2023 14:28:09 +0000 Received: by outflank-mailman (input) for mailman id 542546; Thu, 01 Jun 2023 14:28:08 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHc-00066T-59 for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:08 +0000 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.165]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 86e6c215-0088-11ee-b231-6b7b168915f2; Thu, 01 Jun 2023 16:28:07 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ES11So (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:28:01 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 86e6c215-0088-11ee-b231-6b7b168915f2 ARC-Seal: i=1; a=rsa-sha256; t=1685629681; cv=none; d=strato.com; s=strato-dkim-0002; b=RdU2wH2wP6gPwbVMH62EKme8z/QCnUaXOiHFqncxlGmIdDBvPrbQourb0aBlOgOH/V obEQFi3tltEgdnzIzBgndNvHBHtH5tXZ0ovBWCdbGXBvgz/+pejT5xN5BaJjHBypQ7AQ 5ZFXDh0YBj01CetBE82YDSTEhuH/wYsqlPU8mq2E0T3TR4XoqYpzGn2KAJbNln5WjRzi FLGFH4qIhYJG20bxyNK6+8QJvJxyF0tHqFUUdRfmPZ2UrAymCc1euy6GTpBbm2S1np75 DyoL4cv6zRYZTzWQdnpegGYyrtPTiMF9/1IyMQ2KwI04mWUQaFZEZcndXlylUS3XmRqh coSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629681; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j6XBpMmDw+ppBy9pdGC4zIeWbEgfy6izbkgl65jdiEw=; b=qJMe87sKlyuMaZB4GpR5nWLyeFEz1xReFafLn9OtuY39fPVQK43uqR6HucyloRHzak r6iCLwWfGCbYkzg7zSNfTvpHF26kogC4aRlvVPdo2fSMHryaDig66ZK4iqW8LH1e6jTr 3KQbmuij/f24Zdvw0n4Yb1U0f7SsQnlKHXoKkgQ8rfOh4G6xbuMRF21X6eRWlk4RJKgW U90i698cXEHjZSLv2NRTXgfLxAEANirPVD3RjzX/yde1YZjhoHCXu4XtKQJjN6RiO7X0 NsctqvyZph6HpnMbOeuVM6A48fEoAAPm9pzuUFWvJEai3OBP6zFjWWllNyJe5KEPMp65 djzA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629681; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j6XBpMmDw+ppBy9pdGC4zIeWbEgfy6izbkgl65jdiEw=; b=hYFBOR4+N24HBqH7GBW6Qcmj2MK/zxJ9kFTOQdnTwbDB/1DXy0aiRbWO5jxKEAUXMJ Mp6v9zgB3pI8BJPKILRaLTj0qYFOkueRgX46SBJW0eUdj9fOsP9n1prpVEOOg80itDOV px4cA+qv1FZTYBpRhQmQBoKH1+yLG53dwArkJwdv5QSDAZYeXl6dG0rlMN8bQ1Cvc2Cf 1P2wXENH7yWKVZb8JiMR1rfeBOR7V6RosILrNT+XkQ0oV2HADWLHXAhcGCcI+NijkhbQ iNBlpxlDIPBuCuDwhfCdPhl6VSHV9cXPO1+lPop66vGMqhaIGCturjJhMuR4qCCUbMLi pRdw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629681; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j6XBpMmDw+ppBy9pdGC4zIeWbEgfy6izbkgl65jdiEw=; b=5nc3yv1RMR484ne3P7YoKcYcBhohN8FvCgQkyKZruYSi2v0xkJZQS8/d5kaiy17XMX rAUTrvjMRd1xYKEWQTAg== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 3/7] xenalyze: sync with vmx.h, use EXIT_REASON_PENDING_VIRT_INTR Date: Thu, 1 Jun 2023 16:27:38 +0200 Message-Id: <20230601142742.15489-4-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 Signed-off-by: Olaf Hering Reviewed-by: George Dunlap --- tools/xentrace/xenalyze.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index a50538e9a8..1cae055ef4 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -447,7 +447,7 @@ struct { #define EXIT_REASON_SIPI 4 #define EXIT_REASON_IO_SMI 5 #define EXIT_REASON_OTHER_SMI 6 -#define EXIT_REASON_PENDING_INTERRUPT 7 +#define EXIT_REASON_PENDING_VIRT_INTR 7 #define EXIT_REASON_PENDING_VIRT_NMI 8 #define EXIT_REASON_TASK_SWITCH 9 #define EXIT_REASON_CPUID 10 @@ -503,7 +503,7 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_SIPI]="SIPI", [EXIT_REASON_IO_SMI]="IO_SMI", [EXIT_REASON_OTHER_SMI]="OTHER_SMI", - [EXIT_REASON_PENDING_INTERRUPT]="PENDING_INTERRUPT", + [EXIT_REASON_PENDING_VIRT_INTR]="PENDING_VIRT_INTR", [EXIT_REASON_PENDING_VIRT_NMI]="PENDING_VIRT_NMI", [EXIT_REASON_TASK_SWITCH]="TASK_SWITCH", [EXIT_REASON_CPUID]="CPUID", @@ -4632,7 +4632,7 @@ void hvm_generic_postprocess(struct hvm_data *h) switch(h->exit_reason) { /* These just need us to go through the return path */ - case EXIT_REASON_PENDING_INTERRUPT: + case EXIT_REASON_PENDING_VIRT_INTR: case EXIT_REASON_TPR_BELOW_THRESHOLD: /* Not much to log now; may need later */ case EXIT_REASON_WBINVD: From patchwork Thu Jun 1 14:27:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263885 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 5D7D9C7EE23 for ; Thu, 1 Jun 2023 14:28:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542547.846553 (Exim 4.92) (envelope-from ) id 1q4jHf-0007Jy-Ff; Thu, 01 Jun 2023 14:28:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542547.846553; Thu, 01 Jun 2023 14:28:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHf-0007Jr-Bo; Thu, 01 Jun 2023 14:28:11 +0000 Received: by outflank-mailman (input) for mailman id 542547; Thu, 01 Jun 2023 14:28:09 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHd-0006Od-FO for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:09 +0000 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.165]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8706b633-0088-11ee-8611-37d641c3527e; Thu, 01 Jun 2023 16:28:07 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ES31Sp (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:28:03 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8706b633-0088-11ee-8611-37d641c3527e ARC-Seal: i=1; a=rsa-sha256; t=1685629683; cv=none; d=strato.com; s=strato-dkim-0002; b=V2AqSPRTo2ADTBlHivIVmoTl6fbKn6rALIEKD0CK1dgvAg5Eym3dYkbWjRJXmvg4ZQ 3lpQuVHF8f5/wOufxMZ9gcH4Kk2fZaQW1hPrAycUd2m2pE3ihewnB1PizLVnzz9YXhNE +L74NdAkQln/4Nt4W6ESDQeO1ZsvJMTAnGaTtPHiZlUduY7C5iTiK2te5fCpU3HkJn2J KhLf+lM1CeWE7T26SGAZ9Sm9dDO3LP8OGpGPHtTFW58TsXPgvwkWWHuWwfO3nVCNbG24 0CqRMhT5Emn+SD1x+8Klghz+0doOIPFxL0576CLTlJVsZXN3b0si9al26gReeUbtRdq0 oYDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629683; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=xbEvrUB85PE48j/FXd9UoILkjnq6sVytJsciS71Vlqk=; b=aAZILsivoofiPA8eOXvwifi1Qtilm4q5oGH1VeuW/rS7lsfklpZBCKbXw4r0l53X9N AcmfmPztGQgZKaUB29h2QfgvN426qUO6oEFsLQaJAybU7UDhPJOmTXJDpZmLd7KXyWQC hi40pvhocxOrG5hQAxbs9TQUcBErT0YaKjRcw54VNP4MQbTKQpK5jcf6zQ15yr5Zn3NP Pc4l9dDN0YvwnG0ANYBHJ75Ayu1Ee43MRvMH3d6tlAdU3W1cQGIOhqEeD6QYx8HckEXX flEuSVm4pA8pvTjjtNl1Ac0EkfYtaIl3WC9BA25+N3SD3jX3W+26DGTrTfu02ll7vinB tCAQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629683; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=xbEvrUB85PE48j/FXd9UoILkjnq6sVytJsciS71Vlqk=; b=Vy38Eq7x8yzBr6kdTpvniKyWwah/aYicFwoiOz4B/PEZ/Rtsdr/e9Kl2/auVpXXmnJ WzgVcsY+iWBH2GNvYUOzzpPzT1QxQImcMfxr9YwTkU6bffB+6O0oPGS4jl3dXY19zZHM g76kX+eBCbEhyC8lJldCHMe0oVSP7+7JKno0sFVOYzDW7PUgLeiUO9arnPwLM0Q5rCRW i74z0nqGeNiK4MIczK7UjiTPnoFmEQUfiHetkEmmYNiF+Vb0uLQqm4p7sKLB5hDt9h7m nJ6eh1ftIOJ5me7RigoKrQrYnlgh7gONyDvsPKmBMK32L2f+W3dnrpCMnA1gY1vAl2NW ReMw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629683; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=xbEvrUB85PE48j/FXd9UoILkjnq6sVytJsciS71Vlqk=; b=Hs4rrx8I/RUD3nHSaz4jwvkmnxPToiqLb3RE+rmgtd9E3E3/6FbO9v16KJA7hqOStc ptaaTYlPfqpkfBqWK5BQ== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 4/7] xenalyze: sync with vmx.h, use EXIT_REASON_VMXOFF Date: Thu, 1 Jun 2023 16:27:39 +0200 Message-Id: <20230601142742.15489-5-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 Signed-off-by: Olaf Hering --- tools/xentrace/xenalyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 1cae055ef4..d2e6c77590 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -466,7 +466,7 @@ struct { #define EXIT_REASON_VMREAD 23 #define EXIT_REASON_VMRESUME 24 #define EXIT_REASON_VMWRITE 25 -#define EXIT_REASON_VMOFF 26 +#define EXIT_REASON_VMXOFF 26 #define EXIT_REASON_VMON 27 #define EXIT_REASON_CR_ACCESS 28 #define EXIT_REASON_DR_ACCESS 29 @@ -522,7 +522,7 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_VMREAD]="VMREAD", [EXIT_REASON_VMRESUME]="VMRESUME", [EXIT_REASON_VMWRITE]="VMWRITE", - [EXIT_REASON_VMOFF]="VMOFF", + [EXIT_REASON_VMXOFF]="VMXOFF", [EXIT_REASON_VMON]="VMON", [EXIT_REASON_CR_ACCESS]="CR_ACCESS", [EXIT_REASON_DR_ACCESS]="DR_ACCESS", From patchwork Thu Jun 1 14:27:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263889 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 4E607C7EE33 for ; Thu, 1 Jun 2023 14:28:29 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542551.846567 (Exim 4.92) (envelope-from ) id 1q4jHn-0007sk-67; Thu, 01 Jun 2023 14:28:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542551.846567; Thu, 01 Jun 2023 14:28:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHn-0007sQ-05; Thu, 01 Jun 2023 14:28:19 +0000 Received: by outflank-mailman (input) for mailman id 542551; Thu, 01 Jun 2023 14:28:18 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHm-00066T-48 for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:18 +0000 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.51]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8be95341-0088-11ee-b231-6b7b168915f2; Thu, 01 Jun 2023 16:28:16 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ES51Sr (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:28:05 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8be95341-0088-11ee-b231-6b7b168915f2 ARC-Seal: i=1; a=rsa-sha256; t=1685629685; cv=none; d=strato.com; s=strato-dkim-0002; b=SIOUw3EQmua1o2yYjwPMmZJASr8qKyB18adecfXyJTcidVR5teLqazBGF7tfTPWRCc ukgfcn2V5Q3ywavto+O4Br7if/vxBYUeh2MvFzzXTT6diYInabhG8d5qNjNUEZETN0ae qrxG1DkmFsHg9WRN9+lxN+6UxGZ6IBbljCCC7a9FIRcF5WUF2x4zMW+p/py7KokbxHNI E9JFGSS7APuuemkE6rXhWay6CBGLDF8S+1iN632dvMvL2NQ/x0ttb29QfCzFGH6mH+1U djVnGtw2lCSwoFFkLt804D65dvg52datdUbXnk+gJU/KYu1F088AauA44PnFDFFwG7g9 Zgtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629685; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=sEjTVHfAtskHvr19kdJi/74vu4hsTpqgsbMYJvEi80s=; b=hBziwFjJ1c9zxmW61CjU+NHyP9ICF3LDN4/Xlo8yc/tQNWV8ysN6ZIPJFyXGPPV6ry 617XZfslMvpSgDdi5ykSeF1l/Hto/HT58y2QW3A+VqAcibxJz5WmftOAeBWgYOm80NND vmL7EEDxxt/omdoU8uAuGAAnaM4kmxe+Z4NrFhjD5SIURzjRe0xhJXMaVcF0ouiUBhAW ChV6TSWt8K6xK711Sz6rKk8MUx1mo4fO1xbmi2iQVgH0zuolUPb/0CZwkJJPA/0GUu/b inCNtgsxAvVLf1EpMoYPdqM1tZBtCtMcblt9Ft9osoXiNJq3FGpBR1SCGofRdABmz86q Jb/w== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629685; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=sEjTVHfAtskHvr19kdJi/74vu4hsTpqgsbMYJvEi80s=; b=pMDxacqZHLaasY15wAueKT5OUZfIcZFvAp/ugSYRXXJmoyHChGM90QDbqPM+KxDGeA NWf29QfrGqCCZCkG8Z2D2amnxx37jcE1/3E1cljR3MfMJCn1jtebbZJNAYh4tQRLirEy 5EMW+C5YcTkLLEVQOTGWYC3svm2q9Vz1ZlHSUr5o08ps+nnpmRqkSx05mDkmqyQlj61z tsmRqxT38J1EDRRMx10VL8Ykahs4klBKMtkCgyr0HcBYcyiG1vzRiUAmw/JmFuLfBxCm kjRFrUUCUXmkk5fboN6DP+uGQfmyksQV4C2z62mr8wRJYmms7eBKLmlX6jdBGkL/aWBV CL8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629685; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=sEjTVHfAtskHvr19kdJi/74vu4hsTpqgsbMYJvEi80s=; b=JgS/g5VBquZoEB8kWoy9QgyeV88159RDKDae9L7Wu1jJ7QTw7bkEXRCsAts8ZzK2Qi JgSlEuQqoD5MMygOYfDA== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 5/7] xenalyze: sync with vmx.h, use EXIT_REASON_VMXON Date: Thu, 1 Jun 2023 16:27:40 +0200 Message-Id: <20230601142742.15489-6-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 Signed-off-by: Olaf Hering --- tools/xentrace/xenalyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index d2e6c77590..88c3d5f873 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -467,7 +467,7 @@ struct { #define EXIT_REASON_VMRESUME 24 #define EXIT_REASON_VMWRITE 25 #define EXIT_REASON_VMXOFF 26 -#define EXIT_REASON_VMON 27 +#define EXIT_REASON_VMXON 27 #define EXIT_REASON_CR_ACCESS 28 #define EXIT_REASON_DR_ACCESS 29 #define EXIT_REASON_IO_INSTRUCTION 30 @@ -523,7 +523,7 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_VMRESUME]="VMRESUME", [EXIT_REASON_VMWRITE]="VMWRITE", [EXIT_REASON_VMXOFF]="VMXOFF", - [EXIT_REASON_VMON]="VMON", + [EXIT_REASON_VMXON]="VMXON", [EXIT_REASON_CR_ACCESS]="CR_ACCESS", [EXIT_REASON_DR_ACCESS]="DR_ACCESS", [EXIT_REASON_IO_INSTRUCTION]="IO_INSTRUCTION", From patchwork Thu Jun 1 14:27:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263886 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 7372AC7EE32 for ; Thu, 1 Jun 2023 14:28:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542550.846563 (Exim 4.92) (envelope-from ) id 1q4jHm-0007pB-PK; Thu, 01 Jun 2023 14:28:18 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542550.846563; Thu, 01 Jun 2023 14:28:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHm-0007ol-LM; Thu, 01 Jun 2023 14:28:18 +0000 Received: by outflank-mailman (input) for mailman id 542550; Thu, 01 Jun 2023 14:28:17 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHl-00066T-5b for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:17 +0000 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.84]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8bf95890-0088-11ee-b231-6b7b168915f2; Thu, 01 Jun 2023 16:28:16 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ES81Ss (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:28:08 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8bf95890-0088-11ee-b231-6b7b168915f2 ARC-Seal: i=1; a=rsa-sha256; t=1685629688; cv=none; d=strato.com; s=strato-dkim-0002; b=Ove1LYdv1F1zZ8/lpMv+lHx1waTDajyudAE3Xrpyk4C2HjAve37r3cRDF98o0ntc0u bdXFL8YECsCHmA1IuezW0oDoMPgW065xk+a3adcAeLXimYUVmYP9zsJjP3oQ7bknsyK0 F144FoHuLno6y9+ZhUqL+pAa4IrV70aRzCvTZZzd+YDliwBH1r5bAfXV+3ifV/X9Ho10 rQ8aW5cnTjoGryRs9xV7NiShLv6gDE0sjkzOaavHcfMgztDfggWVOYdPC69A893uVlmO fnqmQJf/hQpUxh26yqSg1Eshb6xckb3t55VktBMeaMcwqHIXRG4BycsEqUyh/I9VCLfI R4HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629688; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=I9MWc2n55o6vA3siJudYHwyC8auPsBD7aRozeGWe0dM=; b=mq/+ErMzu2+6i9NEILZZPJ7nqq7VT6lecnh/JfELPWoo6EVWSQZU7V2xWiputaU61Q NgPG8WKD25fVyJ9dhCko0Llt/q3pU/ytTvfaxt8esBZESBBn+bNSpPbgtoomprxJ9QCY RqTY2t5JbruDR+QiwO0GcsSPVHTDDdXzN4gvcNYctnI8Yc8+nV93WQWmQfhBSKR2JJRv 5YlaimMfNxen2cwOnU+e6SqZd+3lVhpElx3g+pAx/icABy0TnlDi/Nw2ZFFPl6Gd1wDK XUlJrCV14umHPZt46IUD5Fky+7b07RWaekKdcSf//qWuSE9+MkyNBsGVZ144geqCDjJO +yIA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629688; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=I9MWc2n55o6vA3siJudYHwyC8auPsBD7aRozeGWe0dM=; b=g7vJ6BhztBPcl21ZmU7lSi66ztSigfRoQDag53c4QRS3Oh957a19IJXq+ItyeDLZzg upmWrSALfglNvS2fs/oGPx+H5MZT1KN7nbVXAnlez4VYodneFcxbFf3InQc3WC+bc3rN 9Q8aMeLJrt8Kl47Y9rTTR3NtMa7yrEfaG9clJLyCPMneaCSl7kDBR7yU7sJSBnkio5Z2 K8sIMPjcxXJMFDewZNqGH3wbraiTmbac4H6crKXMtnHYTHWtubWIFvKbN53qFpx+4d1w ozO/bJJHkuPQz3TxhRWP/eGkBY5sdQrhnEJmUKrB2H+d+SF+FHwrkB1NTi6/aYK5/J7H FKUA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629688; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=I9MWc2n55o6vA3siJudYHwyC8auPsBD7aRozeGWe0dM=; b=xludnOnizQuRw6Sf+zLW9P6bkBSgGunnb0O7nbaGDdBauEjDLDeCarcfaGOC9ODjo+ pi0FaES0IxFOq9GqMlAw== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 6/7] xenalyze: sync with vmx.h, use EXIT_REASON_MCE_DURING_VMENTRY Date: Thu, 1 Jun 2023 16:27:41 +0200 Message-Id: <20230601142742.15489-7-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 Signed-off-by: Olaf Hering Reviewed-by: George Dunlap --- tools/xentrace/xenalyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 88c3d5f873..9635ff453a 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -479,7 +479,7 @@ struct { #define EXIT_REASON_MONITOR_TRAP_FLAG 37 #define EXIT_REASON_MONITOR_INSTRUCTION 39 #define EXIT_REASON_PAUSE_INSTRUCTION 40 -#define EXIT_REASON_MACHINE_CHECK 41 +#define EXIT_REASON_MCE_DURING_VMENTRY 41 #define EXIT_REASON_TPR_BELOW_THRESHOLD 43 #define EXIT_REASON_APIC_ACCESS 44 #define EXIT_REASON_ACCESS_GDTR_OR_IDTR 46 @@ -535,7 +535,7 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_MONITOR_TRAP_FLAG]="MONITOR_TRAP_FLAG", [EXIT_REASON_MONITOR_INSTRUCTION]="MONITOR_INSTRUCTION", [EXIT_REASON_PAUSE_INSTRUCTION]="PAUSE_INSTRUCTION", - [EXIT_REASON_MACHINE_CHECK]="MACHINE_CHECK", + [EXIT_REASON_MCE_DURING_VMENTRY]="MCE_DURING_VMENTRY", [EXIT_REASON_TPR_BELOW_THRESHOLD]="TPR_BELOW_THRESHOLD", [EXIT_REASON_APIC_ACCESS]="APIC_ACCESS", [EXIT_REASON_EPT_VIOLATION]="EPT_VIOLATION", From patchwork Thu Jun 1 14:27:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 13263888 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 85EE9C7EE31 for ; Thu, 1 Jun 2023 14:28:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.542552.846571 (Exim 4.92) (envelope-from ) id 1q4jHn-0007xj-GU; Thu, 01 Jun 2023 14:28:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 542552.846571; Thu, 01 Jun 2023 14:28:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHn-0007vu-Co; Thu, 01 Jun 2023 14:28:19 +0000 Received: by outflank-mailman (input) for mailman id 542552; Thu, 01 Jun 2023 14:28:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q4jHm-0006Od-C5 for xen-devel@lists.xenproject.org; Thu, 01 Jun 2023 14:28:18 +0000 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.171]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8c62c1b9-0088-11ee-8611-37d641c3527e; Thu, 01 Jun 2023 16:28:16 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id L38909z51ESD1St (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 1 Jun 2023 16:28:13 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8c62c1b9-0088-11ee-8611-37d641c3527e ARC-Seal: i=1; a=rsa-sha256; t=1685629693; cv=none; d=strato.com; s=strato-dkim-0002; b=GXTCs3A3z/A4tDwzDgPrnzO+QXZJFyTjXNCa1tFuCTDuaccbOzVIm/ileLQVJZZ/vY h1qJxVvDz9wWobfX6jIDmd8z3qiWNqI5CgxyEt2O5/U4Dm+8oPy1qaioPW2Svfp0UjLG RP29REsdwzf/AtB5S4Ppty1xr05YIHbFOfkpn16JAWVm+OinGN3fNw8rQRnTGu6ViXM3 ui/hZN3N5Gr70YVMLb5iv6nKYPGLqP8fAPbbxoHLhnqNe2kWifE8pOeo5HxzlBW3Hypn wkwnRIy3O0b0WIFDN1BLlxruCPt9cqr68/ILTG0pAd5wtN21n/83ILG819QAvbYR2Hw4 iVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629693; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=SQPnzeSPdSzTN5oSP1cg888bULG0jZM8rNP+r5k/y38=; b=bRSqTxPWEgX+Q3mndArTMg/ytsqLcaVXZzI07FNpQPol2GmOXF3SXxHcX5bkJtDw/Q 3p2t0Vn84Sy+/uH4CODaowGkPhunRyWuIdZqDWYtPUbdLmUXUTYIy36X1vE4uAcnttB2 8B3ggFm8C1tCGxRlorGqyRhj4eJoUIEckZICUenGoAcPATuRCPUtE6MHg2BtWzyqndgg iGNs0ZZqFtglPNqopPS5GJNvSYtCd8rSaxcf9+Y8Y6JoAlKKIThtNCVIlv7ULwqSoW/Y tWwr5ilRH0v1ugpqf0wNRf15P0THto1t3Mz+MqAIHAxJ4ItrMKLomTMoraeidsWS/iC0 9eHA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685629693; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=SQPnzeSPdSzTN5oSP1cg888bULG0jZM8rNP+r5k/y38=; b=DLoJ7ayIeAIhsPq6GiRv8vPJw62l1ovEXlAlB247dZDRqFaBI79x4Q+tFhQf80TD7m u68Swltnp5PROnmexmB9go+sZygFQ9LKOoWr3rJv8MbMH/+cJkbsXzn5xBebTPkHT08h zuH46ynq1qNh3p+zHCUKP4E64mAidq/4tDJYOFNRP1/S405kmtnrI9ssIKAnBBCHDOKn 0bXKNWFpUFdhjpMifZEtlX7nYyGBBu9FnQR0H8eP8OWytdk3x5VKmA67TlIG9XautjAx OH8GJeGW3hOwlHJ5KcZlQ3+lQeYCn7wWWr3prWRlGzsZphIOKgWwny2D0c5XfiUnZzkX 7a6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685629693; s=strato-dkim-0003; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=SQPnzeSPdSzTN5oSP1cg888bULG0jZM8rNP+r5k/y38=; b=GiPtReQAZDCrkIY7YgLqP1fmV57RMM38WKtlA6L4snx7wsYCuFq2nAlqzJbTRYl1mB xKU0mqEOEeYs5hECXxDA== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4xqFv7EJ0tgRX/vKfT/e8Ig6v0dNw4QAWpzMWrRQ==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: George Dunlap , Wei Liu , Anthony PERARD Subject: [PATCH v1 7/7] xenalyze: handle more potential exit reason values from vmx.h Date: Thu, 1 Jun 2023 16:27:42 +0200 Message-Id: <20230601142742.15489-8-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230601142742.15489-1-olaf@aepfle.de> References: <20230601142742.15489-1-olaf@aepfle.de> MIME-Version: 1.0 Copy and use more constants from vmx.h, to turn numbers into strings. Adjust the REASON_MAX value accordingly. Remove the size constraint from string array, the compiler will grow it as needed. Signed-off-by: Olaf Hering --- tools/xentrace/xenalyze.c | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 9635ff453a..9af17d45bf 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -482,6 +482,7 @@ struct { #define EXIT_REASON_MCE_DURING_VMENTRY 41 #define EXIT_REASON_TPR_BELOW_THRESHOLD 43 #define EXIT_REASON_APIC_ACCESS 44 +#define EXIT_REASON_EOI_INDUCED 45 #define EXIT_REASON_ACCESS_GDTR_OR_IDTR 46 #define EXIT_REASON_ACCESS_LDTR_OR_TR 47 #define EXIT_REASON_EPT_VIOLATION 48 @@ -492,10 +493,18 @@ struct { #define EXIT_REASON_INVVPID 53 #define EXIT_REASON_WBINVD 54 #define EXIT_REASON_XSETBV 55 - -#define HVM_VMX_EXIT_REASON_MAX (EXIT_REASON_XSETBV+1) - -const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { +#define EXIT_REASON_APIC_WRITE 56 +#define EXIT_REASON_INVPCID 58 +#define EXIT_REASON_VMFUNC 59 +#define EXIT_REASON_PML_FULL 62 +#define EXIT_REASON_XSAVES 63 +#define EXIT_REASON_XRSTORS 64 +#define EXIT_REASON_BUS_LOCK 74 +#define EXIT_REASON_NOTIFY 75 + +#define HVM_VMX_EXIT_REASON_MAX (EXIT_REASON_NOTIFY+1) + +const char * hvm_vmx_exit_reason_name[] = { [EXIT_REASON_EXCEPTION_NMI]="EXCEPTION_NMI", [EXIT_REASON_EXTERNAL_INTERRUPT]="EXTERNAL_INTERRUPT", [EXIT_REASON_TRIPLE_FAULT]="TRIPLE_FAULT", @@ -538,6 +547,9 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_MCE_DURING_VMENTRY]="MCE_DURING_VMENTRY", [EXIT_REASON_TPR_BELOW_THRESHOLD]="TPR_BELOW_THRESHOLD", [EXIT_REASON_APIC_ACCESS]="APIC_ACCESS", + [EXIT_REASON_EOI_INDUCED]="EOI_INDUCED", + [EXIT_REASON_ACCESS_GDTR_OR_IDTR]="ACCESS_GDTR_OR_IDTR", + [EXIT_REASON_ACCESS_LDTR_OR_TR]="ACCESS_LDTR_OR_TR", [EXIT_REASON_EPT_VIOLATION]="EPT_VIOLATION", [EXIT_REASON_EPT_MISCONFIG]="EPT_MISCONFIG", [EXIT_REASON_INVEPT]="INVEPT", @@ -546,6 +558,14 @@ const char * hvm_vmx_exit_reason_name[HVM_VMX_EXIT_REASON_MAX] = { [EXIT_REASON_INVVPID]="INVVPID", [EXIT_REASON_WBINVD]="WBINVD", [EXIT_REASON_XSETBV]="XSETBV", + [EXIT_REASON_APIC_WRITE]="APIC_WRITE", + [EXIT_REASON_INVPCID]="INVPCID", + [EXIT_REASON_VMFUNC]="VMFUNC", + [EXIT_REASON_PML_FULL]="PML_FULL", + [EXIT_REASON_XSAVES]="XSAVES", + [EXIT_REASON_XRSTORS]="XRSTORS", + [EXIT_REASON_BUS_LOCK]="BUS_LOCK", + [EXIT_REASON_NOTIFY]="NOTIFY", }; /* SVM data */