From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: [patch] KVM: mmu.c, change BUG_ON() to WARN_ON() Date: Mon, 12 Mar 2007 08:44:26 +0100 Message-ID: <20070312074426.GA13373@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Avi Kivity Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Subject: [patch] KVM: mmu.c, change BUG_ON() to WARN_ON() From: Ingo Molnar this triggered for me with the cr3 cache - do not crash the host, just warn about the condition. (Given that there is code after the BUG_ON() this was the anticipated behavior i suspect.) Signed-off-by: Ingo Molnar Index: linux/drivers/kvm/mmu.c =================================================================== --- linux.orig/drivers/kvm/mmu.c +++ linux/drivers/kvm/mmu.c @@ -514,7 +514,7 @@ static void mmu_page_remove_parent_pte(s int i; if (!page->multimapped) { - BUG_ON(page->parent_pte != parent_pte); + WARN_ON(page->parent_pte != parent_pte); page->parent_pte = NULL; return; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV