From: Ian Campbell Subject: Re: [PATCH v4 2/2] x86/PV: support data breakpoint extension registers Date: Wed, 23 Apr 2014 14:35:04 +0100 Message-ID: <1398260104.18537.113.camel@kazak.uk.xensource.com> References: <534EAE6402000078000098FB@nat28.tlf.novell.com> <534EB110020000780000996D@nat28.tlf.novell.com> <1398248621.18537.14.camel@kazak.uk.xensource.com> <5357C581020000780000B6A8@nat28.tlf.novell.com> <1398255805.18537.73.camel@kazak.uk.xensource.com> <5357CFA6020000780000B73D@nat28.tlf.novell.com> <1398256790.18537.80.camel@kazak.uk.xensource.com> <5357D327020000780000B780@nat28.tlf.novell.com> <5357D63C020000780000B86B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WcxKR-0001tE-0F for xen-devel@lists.xenproject.org; Wed, 23 Apr 2014 13:35:11 +0000 In-Reply-To: <5357D63C020000780000B86B@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , TimDeegan , IanJackson , Aravind Gopalakrishnan , suravee.suthikulpanit@amd.com, xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2014-04-23 at 14:03 +0100, Jan Beulich wrote: > >>> On 23.04.14 at 14:50, wrote: > >>>> On 23.04.14 at 14:39, wrote: > >> On Wed, 2014-04-23 at 13:35 +0100, Jan Beulich wrote: > >>> >>> On 23.04.14 at 14:23, wrote: > >>> > All makes sense. Worth a comment though? > >>> > >>> Not sure - it's no more subtle than other code in the handling of that > >>> specific sub-hypercall. But yes, by my own argumentation elsewhere > >>> maybe I shouldn't be extending badness - if only I saw ways of > >>> describing things like this without just converting C to human language > >>> (which doesn't seem all that helpful)... > >> > >> Nothing the behaviour of msr_count you describe doesn't sound like just > >> converting the C to human readable to me, unless you expect readers of > >> this interface header to go digging into the implementation to figure > >> this out, which shouldn't be needed (that's the point of docs after all!) > > > > Oh, right, I didn't realize your comment was in the context of the > > public header changes - I blindly assumed them to be on the code > > implementing the interface extension. Will see to put something like > > the above in there. > > /* > * When, for the "get" version, msr_count is too small to cover all MSRs > * the hypervisor needs to be saved, the call will return -ENOBUFS and > * set msr_count to the required (minimum) value. Furthermore, for both > * "get" and "set", that field as well as the msrs one only get looked at > * if the size field above covers the structure up to the entire msrs one. > */ >From the ARM (complete lack of impact) and generic headers pov with this comment in the appropriate place: Acked-by: Ian Campbell