public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix -DDEBUG oops
@ 2010-06-14 21:42 Zachary Amsden
  2010-06-16  2:30 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Zachary Amsden @ 2010-06-14 21:42 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti, kvm

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

Patch is fairly self-explanatory.

[-- Attachment #2: x86-kvm-debug-oops.patch --]
[-- Type: text/plain, Size: 565 bytes --]

KVM -DDEBUG fix

Fix a slight error with assertion in local APIC code.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>

diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index d8258a0..024f6d1 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -329,7 +329,7 @@ int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
 		   "dest_mode 0x%x, short_hand 0x%x\n",
 		   target, source, dest, dest_mode, short_hand);
 
-	ASSERT(!target);
+	ASSERT(target);
 	switch (short_hand) {
 	case APIC_DEST_NOSHORT:
 		if (dest_mode == 0)

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

end of thread, other threads:[~2010-06-16  3:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-14 21:42 [PATCH] fix -DDEBUG oops Zachary Amsden
2010-06-16  2:30 ` Marcelo Tosatti

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