From patchwork Tue Feb 9 06:40:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsuyoshi Ozawa X-Patchwork-Id: 77948 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o196eUk2010645 for ; Tue, 9 Feb 2010 06:40:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998Ab0BIGk2 (ORCPT ); Tue, 9 Feb 2010 01:40:28 -0500 Received: from mail-pz0-f171.google.com ([209.85.222.171]:51356 "EHLO mail-pz0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099Ab0BIGk1 (ORCPT ); Tue, 9 Feb 2010 01:40:27 -0500 Received: by pzk1 with SMTP id 1so1056871pzk.16 for ; Mon, 08 Feb 2010 22:40:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.119.24 with SMTP id r24mr5039855wfc.30.1265697626806; Mon, 08 Feb 2010 22:40:26 -0800 (PST) X-Originating-IP: [124.87.146.207] Date: Tue, 9 Feb 2010 15:40:26 +0900 Message-ID: <411a180c1002082240u520516fck3cb93372626c5a77@mail.gmail.com> Subject: [PATCH] Build fix for #define KVM_DEBUG From: Tsuyoshi Ozawa To: KVM ML Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 09 Feb 2010 06:40:30 +0000 (UTC) diff --git a/x86/vmx-debug.c b/x86/vmx-debug.c index d466f03..468b85a 100644 --- a/x86/vmx-debug.c +++ b/x86/vmx-debug.c @@ -22,6 +22,7 @@ #include "mmu.h" #include "lapic.h" #include "debug.h" +#include "x86.h" #ifdef KVM_DEBUG @@ -1064,6 +1065,7 @@ void regs_dump(struct kvm_vcpu *vcpu) REG_DUMP(RBP); REG_DUMP(RSI); REG_DUMP(RDI); +#ifdef CONFIG_X86_64 REG_DUMP(R8); REG_DUMP(R9); REG_DUMP(R10); @@ -1072,6 +1074,7 @@ void regs_dump(struct kvm_vcpu *vcpu) REG_DUMP(R13); REG_DUMP(R14); REG_DUMP(R15); +#endif VMCS_REG_DUMP(RSP); VMCS_REG_DUMP(RIP); @@ -1088,7 +1091,6 @@ void sregs_dump(struct kvm_vcpu *vcpu) vcpu_printf(vcpu, "cr3 = 0x%lx\n", vcpu->arch.cr3); vcpu_printf(vcpu, "cr4 = 0x%lx\n", vcpu->arch.cr4); vcpu_printf(vcpu, "cr8 = 0x%lx\n", vcpu->arch.cr8); - vcpu_printf(vcpu, "shadow_efer = 0x%llx\n", vcpu->arch.shadow_efer); vcpu_printf(vcpu, "***********************************************************\n"); }