From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Stovall Subject: Re: is vmx_vcpu_run deprecated in kvm-77? Date: Thu, 15 Jan 2009 14:46:00 -0800 (PST) Message-ID: <21654469.30371232059560358.JavaMail.root@mailserv1> References: <28357612.30351232059365063.JavaMail.root@mailserv1> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.neuraliq.com ([12.129.246.136]:52583 "EHLO mail.neuraliq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936464AbZAOWru (ORCPT ); Thu, 15 Jan 2009 17:47:50 -0500 Received: from localhost (localhost.neuraliq.com [127.0.0.1]) by mail.neuraliq.com (Postfix) with ESMTP id CED12267011A for ; Thu, 15 Jan 2009 14:46:04 -0800 (PST) Received: from mail.neuraliq.com ([127.0.0.1]) by localhost (mail.neuraliq.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FEG8c3d3D+ek for ; Thu, 15 Jan 2009 14:46:00 -0800 (PST) Received: from mail.neuraliq.com (mail.neuraliq.com [12.129.246.135]) by mail.neuraliq.com (Postfix) with ESMTP id 68E852670119 for ; Thu, 15 Jan 2009 14:46:00 -0800 (PST) In-Reply-To: <28357612.30351232059365063.JavaMail.root@mailserv1> Sender: kvm-owner@vger.kernel.org List-ID: I don't mean to be obtuse, but are you saying kvm_main_loop_wait() *should* dequeue the pending signal or *does* dequeue the pending signal, just not for "host userspace"? Steven ----- Original Message ----- From: "Avi Kivity" To: "Steven Stovall" Sent: Thursday, January 15, 2009 1:46:30 PM GMT -08:00 US/Canada Pacific Subject: Re: is vmx_vcpu_run deprecated in kvm-77? Please keep the conversation on the kvm list. Steven Stovall wrote: > Avi, > > Not sure what you mean by "kvm-userspace", The code in kvm-userspace.git, namely libkvm and qemu. > but the app uses qemu and libkvm ioctls to interface with kvm. So this is a host-side app, right, not running in the guest? Please describe it. > The problem seems to be that for some reason the call to signal_pending() from __vcpu_run is always true and never lets vmx_vcpu_run() be called (i never see the msrs set either). The only exit_reasons seen are KVM_EXIT_INTR. I've been looking at this hard for 2 weeks now, and its driving me crazy. Not to mention my boss. > I don't care much about your boss, but you should have posted earlier. What happens is that a signal is pending, and host userspace doesn't dequeue it, so it remains pending. This is handled by kvm_main_loop_wait(). -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.