From: Pekka Enberg Subject: KVM_EXIT_HALT and KVM_CREATE_IRQCHIP Date: Thu, 10 Jun 2010 12:52:24 +0300 Message-ID: <4C10B5D8.2040409@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Avi Kivity , KVM General , Cyrill Gorcunov , Asias He Return-path: Received: from courier.cs.helsinki.fi ([128.214.9.1]:32935 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753709Ab0FJJw0 (ORCPT ); Thu, 10 Jun 2010 05:52:26 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi! How is the guest supposed to halt the hypervisor if KVM_CREATE_IRQCHIP is being used? The kvm_emulate_halt() function seems to handle the halt event completely if irqchip_in_kernel() returns true and thus never exits to the hypervisor. I see there's a KVM_GET_MP_STATE ioctl that can be used to check if state is KVM_MP_STATE_HALTED but as we never exit to the hypervisor, how is this supposed to work? Am I missing something obvious here? Pekka