From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: [patch 0/2] do not run halted vcpu's Date: Fri, 01 Aug 2008 20:09:12 -0300 Message-ID: <20080801230912.013317832@localhost.localdomain> Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([66.187.233.31]:60105 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754555AbYHAXVa (ORCPT ); Fri, 1 Aug 2008 19:21:30 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Any reason this is not in __vcpu_run()? > > Our main loop could look like > > while (no reason to stop) > if (runnable) > enter guest > else > block > deal with aftermath > > kvm_emulate_halt would then simply modify the mp state. Like this? - I don't think it is necessary to test for pending signals inside irq safe section, so move that to exit processing. - Same for need_resched().