From patchwork Thu Jun 30 18:46:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corneliu ZUZU X-Patchwork-Id: 9208841 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 317B8607D8 for ; Thu, 30 Jun 2016 18:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 244CA2844E for ; Thu, 30 Jun 2016 18:48:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1508A284A4; Thu, 30 Jun 2016 18:48:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1A7F2844E for ; Thu, 30 Jun 2016 18:48:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIgyo-0001yD-AH; Thu, 30 Jun 2016 18:46:26 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIgym-0001xl-Le for xen-devel@lists.xen.org; Thu, 30 Jun 2016 18:46:24 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id A9/C3-11548-00965775; Thu, 30 Jun 2016 18:46:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRWlGSWpSXmKPExsUSfTxjoe7/jNJ wg1M/1C2WfFzM4sDocXT3b6YAxijWzLyk/IoE1ox3/28wFqxlrVjwSKOBcRFLFyMnh5CAh8SM R3fZuxi5gOy1jBKbP55lhnBOMkosX7kLyOEActwlLmypgyv6uHciO0g3m4C2xLlD95hAbBEBa Ylrny8zgtjMAuESx3r3s4HYwgLREqs/rgOLswioSnx4coEZxOYVcJGYuGM9G8h8CQE5iQUX0k HCnAKuElt+9zNDHOci8fvXbhaIkhyJM6eMIUwpif+tSiDXSAh0s0gsW/kObLqEgIzEo4k32SY wCi1gZFjFqF6cWlSWWqRrqJdUlJmeUZKbmJmja2hgppebWlycmJ6ak5hUrJecn7uJERiADECw g3Hnc6dDjJIcTEqivPdCSsOF+JLyUyozEosz4otKc1KLDzHKcHAoSfCWAwNaSLAoNT21Ii0zB xgLMGkJDh4lEd4v6UBp3uKCxNzizHSI1ClGXY4FP26vZRJiycvPS5US5/0BUiQAUpRRmgc3Ah aXlxhlpYR5GYGOEuIpSC3KzSxBlX/FKM7BqCTMWwlyCU9mXgncpldARzABHcFcWgxyREkiQkq qgdG4jnn73ITVYRt+v7p4a83y+B/HnwcrzNQzeJazx7z0tfbHCrvUyF9Ky25/v+Xx89Otj8f/ NLPP+b0luiHt0G7JfmteU+tlcw0VPqasetJm9/T/2bU/9adP5E+q7mow53z8yUWGZ9kJs4MVZ /sr2j3jjZkKLr7T2XYw3acoO3qKptt31W8i1dOUWIozEg21mIuKEwEbU3pXxgIAAA== X-Env-Sender: czuzu@bitdefender.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1467312382!21730000!1 X-Originating-IP: [91.199.104.161] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 55118 invoked from network); 30 Jun 2016 18:46:23 -0000 Received: from mx01.bbu.dsd.mx.bitdefender.com (HELO mx01.bbu.dsd.mx.bitdefender.com) (91.199.104.161) by server-5.tower-21.messagelabs.com with DHE-RSA-AES128-GCM-SHA256 encrypted SMTP; 30 Jun 2016 18:46:23 -0000 Received: (qmail 23197 invoked from network); 30 Jun 2016 21:46:22 +0300 Received: from unknown (HELO mx-sr.buh.bitdefender.com) (10.17.80.103) by mx01.bbu.dsd.mx.bitdefender.com with AES256-GCM-SHA384 encrypted SMTP; 30 Jun 2016 21:46:22 +0300 Received: from smtp01.buh.bitdefender.com (unknown [10.17.80.75]) by mx-sr.buh.bitdefender.com (Postfix) with ESMTP id 82B547FBE5 for ; Thu, 30 Jun 2016 21:46:22 +0300 (EEST) Received: (qmail 1381 invoked from network); 30 Jun 2016 21:46:22 +0300 Received: from 188-24-82-29.rdsnet.ro (HELO localhost.localdomain) (czuzu@bitdefender.com@188.24.82.29) by smtp01.buh.bitdefender.com with SMTP; 30 Jun 2016 21:46:22 +0300 From: Corneliu ZUZU To: xen-devel@lists.xen.org Date: Thu, 30 Jun 2016 21:46:17 +0300 Message-Id: <1467312377-3142-1-git-send-email-czuzu@bitdefender.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1467312015-2867-1-git-send-email-czuzu@bitdefender.com> References: <1467312015-2867-1-git-send-email-czuzu@bitdefender.com> X-BitDefender-Scanner: Clean, Agent: BitDefender qmail 3.1.6 on smtp01.buh.bitdefender.com, sigver: 7.66124 X-BitDefender-Spam: No (0) X-BitDefender-SpamStamp: Build: [Engines: 2.15.6.911, Dats: 425113, Stamp: 3], Multi: [Enabled, t: (0.000008, 0.001375)], BW: [Enabled, t: (0.000007,0.000001)], RBL DNSBL: [Disabled], APM: [Enabled, Score: 500, t: (0.001980), Flags: BB9BAF5C; NN_NO_CONTENT_TYPE; NN_NO_LINK_NMD; NN_LEGIT_BITDEFENDER; NN_LEGIT_S_SQARE_BRACKETS; NN_LEGIT_MAILING_LIST_TO], SGN: [Enabled, t: (0.006828)], URL: [Enabled, t: (0.000005)], RTDA: [Enabled, t: (0.013165), Hit: No, Details: v2.3.10; Id: 2m1ghk0.1amgknva0.1bh7], total: 0(775) X-BitDefender-CF-Stamp: none Cc: Tamas K Lengyel , Razvan Cojocaru Subject: [Xen-devel] [PATCH 6/8] x86/vm_event_resume: surround VM_EVENT_REASON_MOV_TO_MSR w/ CONFIG_X86 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP VM_EVENT_REASON_MOV_TO_MSR is X86-specific, surround w/ #ifdef accordingly. Signed-off-by: Corneliu ZUZU Acked-by: Razvan Cojocaru --- xen/common/vm_event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 17d2716..89a25d1 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -394,7 +394,9 @@ void vm_event_resume(struct domain *d, struct vm_event_domain *ved) */ switch ( rsp.reason ) { +#ifdef CONFIG_X86 case VM_EVENT_REASON_MOV_TO_MSR: +#endif case VM_EVENT_REASON_WRITE_CTRLREG: vm_event_register_write_resume(v, &rsp); break;