From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srivatsa Vaddagiri Subject: Re: [PATCH 2/3] kvm hypervisor : Add hypercalls to support pv-ticketlock Date: Wed, 19 Jan 2011 22:53:07 +0530 Message-ID: <20110119172306.GA2863@linux.vnet.ibm.com> References: <20110119164432.GA30669@linux.vnet.ibm.com> <20110119171239.GB726@linux.vnet.ibm.com> Reply-To: vatsa@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter Zijlstra , Linux Kernel Mailing List , Nick Piggin , Mathieu Desnoyers , =?iso-8859-1?Q?Am=E9rico?= Wang , Eric Dumazet , Jan Beulich , Avi Kivity , Xen-devel , "H. Peter Anvin" , Linux Virtualization , Jeremy Fitzhardinge , kvm@vger.kernel.org, suzuki@in.ibm.com To: Jeremy Fitzhardinge Return-path: Received: from e6.ny.us.ibm.com ([32.97.182.146]:56892 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137Ab1ASRXP (ORCPT ); Wed, 19 Jan 2011 12:23:15 -0500 Content-Disposition: inline In-Reply-To: <20110119171239.GB726@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jan 19, 2011 at 10:42:39PM +0530, Srivatsa Vaddagiri wrote: > Add two hypercalls to KVM hypervisor to support pv-ticketlocks. > > KVM_HC_WAIT_FOR_KICK blocks the calling vcpu until another vcpu kicks it or it > is woken up because of an event like interrupt. One possibility is to extend this hypercall to do a directed yield as well, which needs some more thought. Another issue that needs to be resolved with pv-ticketlocks is the impact on intra-VM fairness. A guest experiencing heavy contention can keep yielding cpu, allowing other VMs to get more time than they deserve. - vatsa