From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/6] Enable pvclock flags in vcpu_time_info structure Date: Tue, 27 Apr 2010 21:07:18 +0300 Message-ID: <4BD727D6.20609@redhat.com> References: <1272303988-21929-1-git-send-email-glommer@redhat.com> <1272303988-21929-2-git-send-email-glommer@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Fitzhardinge To: Glauber Costa Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38831 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581Ab0D0SHX (ORCPT ); Tue, 27 Apr 2010 14:07:23 -0400 In-Reply-To: <1272303988-21929-2-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/26/2010 08:46 PM, Glauber Costa wrote: > This patch removes one padding byte and transform it into a flags > field. New versions of guests using pvclock will query these flags > upon each read. > > Flags, however, will only be interpreted when the guest decides to. > It uses the pvclock_valid_flags function to signal that a specific > set of flags should be taken into consideration. Which flags are valid > are usually devised via HV negotiation. > > > +void pvclock_valid_flags(u8 flags); > set_pvclock_valid_flags() (or just set_pvclock_flags? pvclock_set_flags()?). The original name looks like a getter. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.