From patchwork Wed Jul 6 15:53:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corneliu ZUZU X-Patchwork-Id: 9216579 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 18E5060752 for ; Wed, 6 Jul 2016 15:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A5A92705B for ; Wed, 6 Jul 2016 15:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1F8527165; Wed, 6 Jul 2016 15:56:20 +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 8E2B72705B for ; Wed, 6 Jul 2016 15:56:20 +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 1bKp9P-0001xd-LM; Wed, 06 Jul 2016 15:54:11 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKp9P-0001xO-5Q for xen-devel@lists.xen.org; Wed, 06 Jul 2016 15:54:11 +0000 Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id B1/D7-30934-2A92D775; Wed, 06 Jul 2016 15:54:10 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRWlGSWpSXmKPExsUSfTxjoe5Czdp wg/mbjCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxdzy+xFDSzVexqcGtgfM/SxcjJISTgJvHn dBtTFyMXkL2GUeLD2WnMEM5JRokNc06wQVS5S/Remc8MYa9ilGj9YwpiswloS5w7dI8JxBYRk Ja49vkyI4jNLBAucax3P1ivsECcROv0/WC9LAKqEj++rwCL8wq4SnTv/wkU5+CQEJCTWHAhHc TkBDrozuNqiE2uEosWXgTrlBDIkdh66gEjRLWUxP9WJYhwN4vEq7fcELaMxKOJN9kmMAotYGR YxahRnFpUllqka2iul1SUmZ5RkpuYmaNraGiil5taXJyYnpqTmFSsl5yfu4kRGID1DAyMOxh/ nvY8xCjJwaQkysvyrTpciC8pP6UyI7E4I76oNCe1+BCjDAeHkgSvtUZtuJBgUWp6akVaZg4wF mDSEhw8SiK84iBp3uKCxNzizHSI1ClGXY4FP26vZRJiycvPS5US5+UCKRIAKcoozYMbAYvLS4 yyUsK8jAwMDEI8BalFuZklqPKvGMU5GJWEee1ApvBk5pXAbXoFdAQT0BE/XapBjihJREhJNTD arDz5RfLVs3m9n15u3rFxwXE+Eca3rpLba+9df62f/Lb2W8muVx57qk+ErThiP7G1tGiVwkQZ zR+lCbtKA95pXvjl2/jDT02T4b/HcnbvhQ4ROYqbm9ZNP2D5errAhjXh37NnpD9gYtAvO6oWK RXUuXVLlPdZbb3Nb5m4PzTHX1g85/1Eo79ZSizFGYmGWsxFxYkAP0h1ccYCAAA= X-Env-Sender: czuzu@bitdefender.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1467820449!40082610!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 2174 invoked from network); 6 Jul 2016 15:54:09 -0000 Received: from mx01.bbu.dsd.mx.bitdefender.com (HELO mx01.bbu.dsd.mx.bitdefender.com) (91.199.104.161) by server-14.tower-27.messagelabs.com with DHE-RSA-AES128-GCM-SHA256 encrypted SMTP; 6 Jul 2016 15:54:09 -0000 Received: (qmail 3518 invoked from network); 6 Jul 2016 18:54:08 +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; 6 Jul 2016 18:54:08 +0300 Received: from smtp03.buh.bitdefender.org (unknown [10.17.80.77]) by mx-sr.buh.bitdefender.com (Postfix) with ESMTP id 9F5B47FC00 for ; Wed, 6 Jul 2016 18:54:08 +0300 (EEST) Received: (qmail 22290 invoked from network); 6 Jul 2016 18:54:08 +0300 Received: from unknown (HELO czuzu-dev-vm.clj.bitdefender.biz) (czuzu@bitdefender.com@91.199.104.243) by smtp03.buh.bitdefender.org with SMTP; 6 Jul 2016 18:54:08 +0300 From: Corneliu ZUZU To: xen-devel@lists.xen.org Date: Wed, 6 Jul 2016 18:53:39 +0300 Message-Id: <1467820419-13493-1-git-send-email-czuzu@bitdefender.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1467820154-13256-1-git-send-email-czuzu@bitdefender.com> References: <1467820154-13256-1-git-send-email-czuzu@bitdefender.com> X-BitDefender-Scanner: Clean, Agent: BitDefender qmail 3.1.6 on smtp03.buh.bitdefender.org, sigver: 7.66204 X-BitDefender-Spam: No (0) X-BitDefender-SpamStamp: Build: [Engines: 2.15.6.911, Dats: 425554, Stamp: 3], Multi: [Enabled, t: (0.000008, 0.001379)], BW: [Enabled, t: (0.000006,0.000001)], RBL DNSBL: [Disabled], APM: [Enabled, Score: 500, t: (0.001966), 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.006946)], URL: [Enabled, t: (0.000004)], RTDA: [Enabled, t: (0.015627), Hit: No, Details: v2.3.10; Id: 2m1ghhv.1amgktn52.p47f], total: 0(775) X-BitDefender-CF-Stamp: none Cc: Tamas K Lengyel , Razvan Cojocaru Subject: [Xen-devel] [PATCH v3 5/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 --- Changed since v2: --- 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 47ae96c..40a7e56 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;