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 Return-path: Content-Disposition: inline In-Reply-To: <20110119171239.GB726@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org To: Jeremy Fitzhardinge 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 List-Id: xen-devel@lists.xenproject.org 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