From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikunj A Dadhania Subject: Re: [PATCH v2 1/7] KVM Guest: Add VCPU running/pre-empted state for guest Date: Tue, 19 Jun 2012 11:33:30 +0530 Message-ID: <87d34vsurx.fsf@abhimanyu.in.ibm.com> References: <20120604050223.4560.2874.stgit@abhimanyu.in.ibm.com> <20120604050547.4560.48709.stgit@abhimanyu.in.ibm.com> <20120612224310.GC1973@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain Cc: peterz@infradead.org, mingo@elte.hu, avi@redhat.com, raghukt@linux.vnet.ibm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, jeremy@goop.org, vatsa@linux.vnet.ibm.com, hpa@zytor.com To: Marcelo Tosatti Return-path: In-Reply-To: <20120612224310.GC1973@amt.cnet> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, 12 Jun 2012 19:43:10 -0300, Marcelo Tosatti wrote: > On Mon, Jun 04, 2012 at 10:36:05AM +0530, Nikunj A. Dadhania wrote: > > The patch adds guest code for msr between guest and hypervisor. The > > msr will export the vcpu running/pre-empted information to the guest > > from host. This will enable guest to intelligently send ipi to running > > vcpus and set flag for pre-empted vcpus. This will prevent waiting for > > vcpus that are not running. > > > > Suggested-by: Peter Zijlstra > > Signed-off-by: Nikunj A. Dadhania [...] > > @@ -433,6 +464,8 @@ void __init kvm_guest_init(void) > > pv_time_ops.steal_clock = kvm_steal_clock; > > } > > > > + has_vcpu_state = 1; > > + > > Should be checking for a feature bit, see kvm_para_has_feature() > examples above in the function. > Sure, will take of this in my next version.