public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] kvm-kmod: Build fix for #define KVM_DEBUG
@ 2010-02-17 18:15 Tsuyoshi Ozawa
  2010-02-17 19:00 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Tsuyoshi Ozawa @ 2010-02-17 18:15 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Avi Kivity, KVM ML

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

>> Copy Jan - he maintains kvm-kmod, and probably didn't see your patch.
>>
>
> Yes, I did. Proper subject prefixing can help a lot here...
>

I'm sorry for I forgot to prefix "kvm-kmod" and thank you for telling me this.
I mind this from now.

> Could you please repost, avoiding that the patch is line-wrapped and
> giving it an up-to-date changelog?

Yes, this new patch for the newest commit passed checkpatch.

[-- Attachment #2: 0001-Build-fix-for-define-KVM_DEBUG.patch --]
[-- Type: application/octet-stream, Size: 2618 bytes --]

From 1ec34d2461395a78d5887ed2e86f9fe4184eae61 Mon Sep 17 00:00:00 2001
From: Tsuyoshi Ozawa <ozawa@t-oza.net>
Date: Thu, 18 Feb 2010 02:57:46 +0900
Subject: [PATCH] Build fix for #define KVM_DEBUG


Signed-off-by: Tsuyoshi Ozawa <ozawa@t-oza.net>
---
 x86/vmx-debug.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/x86/vmx-debug.c b/x86/vmx-debug.c
index d466f03..1549b39 100644
--- a/x86/vmx-debug.c
+++ b/x86/vmx-debug.c
@@ -23,6 +23,8 @@
 #include "lapic.h"
 #include "debug.h"
 
+#include "x86.h"
+
 #ifdef KVM_DEBUG
 
 static unsigned long vmcs_readl(unsigned long field)
@@ -64,7 +66,7 @@ void show_code(struct kvm_vcpu *vcpu)
 	if (!is_long_mode(vcpu))
 		rip += vmcs_readl(GUEST_CS_BASE);
 
-	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, rip);
+	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, rip, 0, NULL);
 	if (gpa == UNMAPPED_GVA)
 		return;
 	kvm_read_guest(vcpu->kvm, gpa, code, sizeof code);
@@ -99,7 +101,8 @@ void show_irq(struct kvm_vcpu *vcpu,  int irq)
 		return;
 	}
 
-	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, idt_base + irq * sizeof(gate));
+	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, idt_base + irq * sizeof(gate),
+								0, NULL);
 	if (gpa == UNMAPPED_GVA)
 		return;
 
@@ -127,7 +130,7 @@ void show_page(struct kvm_vcpu *vcpu,
 		return;
 
 	addr &= PAGE_MASK;
-	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, addr);
+	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, addr, 0, NULL);
 	if (gpa == UNMAPPED_GVA)
 		return;
 	if (kvm_read_guest(vcpu->kvm, gpa, buf, PAGE_SIZE)) {
@@ -150,7 +153,7 @@ void show_u64(struct kvm_vcpu *vcpu, gva_t addr)
 	u64 buf;
 	gpa_t gpa;
 
-	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, addr);
+	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, addr, 0, NULL);
 	if (gpa == UNMAPPED_GVA)
 		return;
 	if (kvm_read_guest(vcpu->kvm, gpa, &buf, sizeof(u64)) == sizeof(u64)) {
@@ -1064,6 +1067,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 +1076,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 +1093,7 @@ 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, "efer = 0x%llx\n", vcpu->arch.efer);
 	vcpu_printf(vcpu, "***********************************************************\n");
 }
 
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm-kmod: Build fix for #define KVM_DEBUG
  2010-02-17 18:15 [PATCH] kvm-kmod: Build fix for #define KVM_DEBUG Tsuyoshi Ozawa
@ 2010-02-17 19:00 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2010-02-17 19:00 UTC (permalink / raw)
  To: Tsuyoshi Ozawa; +Cc: Avi Kivity, KVM ML

Tsuyoshi Ozawa wrote:
>>> Copy Jan - he maintains kvm-kmod, and probably didn't see your patch.
>>>
>> Yes, I did. Proper subject prefixing can help a lot here...
>>
> 
> I'm sorry for I forgot to prefix "kvm-kmod" and thank you for telling me this.
> I mind this from now.
> 
>> Could you please repost, avoiding that the patch is line-wrapped and
>> giving it an up-to-date changelog?
> 
> Yes, this new patch for the newest commit passed checkpatch.

Thanks, merged.
[And as your original changelog was even better, I included it as well.]

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-17 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 18:15 [PATCH] kvm-kmod: Build fix for #define KVM_DEBUG Tsuyoshi Ozawa
2010-02-17 19:00 ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox