From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Build fix for #define KVM_DEBUG Date: Tue, 09 Feb 2010 12:27:11 +0200 Message-ID: <4B71387F.4000203@redhat.com> References: <411a180c1002082240u520516fck3cb93372626c5a77@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM ML To: Tsuyoshi Ozawa Return-path: Received: from mx1.redhat.com ([209.132.183.28]:23580 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911Ab0BIK1X (ORCPT ); Tue, 9 Feb 2010 05:27:23 -0500 In-Reply-To: <411a180c1002082240u520516fck3cb93372626c5a77@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 02/09/2010 08:40 AM, Tsuyoshi Ozawa wrote: > Build fix for #define KVM_DEBUG > > If KVM_DEBUG is defined, the build for kvm_kmod is failed because : > > 1. is_long_mode() has moved to x86.h. > 2. shadow_efer no longer exists. > 3. The registers R8 - R15 don't exist on i386 architecture. > > This patch fix this problem. > > > 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, > shadow_efer was renamed to efer, so this should be modified rather than deleted. -- error compiling committee.c: too many arguments to function