From patchwork Wed Jul 29 12:56:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 38128 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6TD1goG014016 for ; Wed, 29 Jul 2009 13:01:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754779AbZG2M5Q (ORCPT ); Wed, 29 Jul 2009 08:57:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754841AbZG2M5O (ORCPT ); Wed, 29 Jul 2009 08:57:14 -0400 Received: from va3ehsobe005.messaging.microsoft.com ([216.32.180.15]:23084 "EHLO VA3EHSOBE006.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754778AbZG2M47 (ORCPT ); Wed, 29 Jul 2009 08:56:59 -0400 Received: from mail11-va3-R.bigfish.com (10.7.14.237) by VA3EHSOBE006.bigfish.com (10.7.40.26) with Microsoft SMTP Server id 8.1.340.0; Wed, 29 Jul 2009 12:57:00 +0000 Received: from mail11-va3 (localhost.localdomain [127.0.0.1]) by mail11-va3-R.bigfish.com (Postfix) with ESMTP id E1EE6DD02CC; Wed, 29 Jul 2009 12:56:59 +0000 (UTC) X-SpamScore: 3 X-BigFish: VPS3(zzzz1202hzzz32i203h43j64h) X-Spam-TCS-SCL: 3:0 Received: by mail11-va3 (MessageSwitch) id 1248872208181050_23380; Wed, 29 Jul 2009 12:56:48 +0000 (UCT) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail11-va3.bigfish.com (Postfix) with ESMTP id 015C842804E; Wed, 29 Jul 2009 12:56:47 +0000 (UTC) Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n6TCuhw3008965; Wed, 29 Jul 2009 05:56:46 -0700 X-WSS-ID: 0KNJNYD-04-3ZX-01 Received: from SSVLEXBH2.amd.com (ssvlexbh2.amd.com [139.95.53.183]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 295AE1103BE; Wed, 29 Jul 2009 05:56:37 -0700 (PDT) Received: from ssvlexmb2.amd.com ([139.95.53.7]) by SSVLEXBH2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 05:56:42 -0700 Received: from SF30EXMB1.amd.com ([172.20.6.49]) by ssvlexmb2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 05:56:42 -0700 Received: from seurexmb1.amd.com ([165.204.9.130]) by SF30EXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 14:56:38 +0200 Received: from lemmy.amd.com ([165.204.15.93]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 14:56:36 +0200 Received: by lemmy.amd.com (Postfix, from userid 41430) id 66E0FC9B86; Wed, 29 Jul 2009 14:56:36 +0200 (CEST) From: Joerg Roedel To: Avi Kivity CC: Alexander Graf , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH 01/12] kvm/svm: make nested svm debugging runtime configurable Date: Wed, 29 Jul 2009 14:56:21 +0200 Message-ID: <1248872192-30881-2-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1248872192-30881-1-git-send-email-joerg.roedel@amd.com> References: <1248872192-30881-1-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 29 Jul 2009 12:56:36.0639 (UTC) FILETIME=[01BFDAF0:01CA104C] MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Joerg Roedel Acked-by: Alexander Graf --- arch/x86/kvm/svm.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index b720b02..27d26c3 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -49,11 +49,17 @@ MODULE_LICENSE("GPL"); #define DEBUGCTL_RESERVED_BITS (~(0x3fULL)) -/* Turn on to get debugging output*/ -/* #define NESTED_DEBUG */ +/* Turn on to get debugging output for nested svm */ +#undef NESTED_DEBUG #ifdef NESTED_DEBUG -#define nsvm_printk(fmt, args...) printk(KERN_INFO fmt, ## args) + +static int nested_dbg; +module_param(nested_dbg, bool, 0644); + +#define nsvm_printk(fmt, args...) \ + if (nested_dbg) \ + printk(KERN_INFO fmt, ## args) #else #define nsvm_printk(fmt, args...) do {} while(0) #endif