From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Amsden Subject: [PATCH] fix -DDEBUG oops Date: Mon, 14 Jun 2010 11:42:15 -1000 Message-ID: <4C16A237.20008@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010109070605060408000502" To: Avi Kivity , Marcelo Tosatti , kvm Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57786 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756728Ab0FNVm2 (ORCPT ); Mon, 14 Jun 2010 17:42:28 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5ELgICM014629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Jun 2010 17:42:20 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------010109070605060408000502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Patch is fairly self-explanatory. --------------010109070605060408000502 Content-Type: text/plain; name="x86-kvm-debug-oops.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="x86-kvm-debug-oops.patch" KVM -DDEBUG fix Fix a slight error with assertion in local APIC code. Signed-off-by: Zachary Amsden 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) --------------010109070605060408000502--