Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF8EBC43603 for ; Mon, 16 Dec 2019 09:35:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF3292075A for ; Mon, 16 Dec 2019 09:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576488936; bh=mv41O6TKPeqS9MkWiz0WI+gjdsFIaxYl3SSD2TIw+dM=; h=To:Subject:Date:From:Cc:In-Reply-To:References:List-ID:From; b=yTGZrM4DGX5SCSR6EQaIrhoGEFGwOQGZ+tSNSUOfcsh9udKmwdBeFSd/tHBhRDnS2 lzRRHtxNako0/hhB6yN+QQ+QZ2Au5euZLJn8puWMHA8omoIy6lvHQ52A6DYuQ5kMGO 1E7xJFlMW2viWxfF4DSvrHhr4Kk4GEmv16TqIDbA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbfLPJff (ORCPT ); Mon, 16 Dec 2019 04:35:35 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:42492 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfLPJff (ORCPT ); Mon, 16 Dec 2019 04:35:35 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1igmmr-0002J4-NM; Mon, 16 Dec 2019 10:35:33 +0100 To: Vitaly Kuznetsov Subject: Re: [PATCH 3/3] kvm/arm: Standardize kvm exit reason field X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 16 Dec 2019 09:35:33 +0000 From: Marc Zyngier Cc: Gavin Shan , , , , , , In-Reply-To: <87r214aazb.fsf@vitty.brq.redhat.com> References: <20191212024512.39930-4-gshan@redhat.com> <2e960d77afc7ac75f1be73a56a9aca66@www.loen.fr> <30c0da369a898143246106205cb3af59@www.loen.fr> <87r214aazb.fsf@vitty.brq.redhat.com> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: vkuznets@redhat.com, gshan@redhat.com, kvm@vger.kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com, paulus@ozlabs.org, jhogan@kernel.org, drjones@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2019-12-16 09:14, Vitaly Kuznetsov wrote: > Gavin Shan writes: > >> On 12/13/19 8:47 PM, Marc Zyngier wrote: >>> On 2019-12-13 00:50, Gavin Shan wrote: >>>> >>>> Yeah, I think it is ABI change unfortunately, but I'm not sure how >>>> many applications are using this filter. >>> >>> Nobody can tell. The problem is that someone will write a script >>> that >>> parses this trace point based on an older kernel release (such as >>> what the distros are shipping today), and two years from now will >>> shout at you (and me) for having broken their toy. >>> >> >> Well, I would like to receive Vitaly's comments here. Vitaly, it >> seems it's >> more realistic to fix the issue from kvm_stat side according to the >> comments >> given by Marc? >> > > Sure, if we decide to treat tracepoints as ABI then fixing users is > likely the way to go. Personally, I think that we should have certain > freedom with them and consider only tools which live in linux.git > when > making changes (and changing the tool to match in the same patch > series > is OK from this PoV, no need to support all possible versions of the > tool). So far, the approach has been a pretty conservative one, and there was countless discussions (including a pretty heated one at KS two years ago, see [1] which did set the tone for the whole of the discussion). So as far as I have something to say about this, we're not renaming fields in existing tracepoints. > Also, we can be a bit more conservative and in this particular case > instead of renaming fields just add 'exit_reason' to all > architectures > where it's missing. For ARM, 'esr_ec' will then stay with what it is > and > 'exit_reason' may contain something different (like the information > why > the guest exited actually). But I don't know much about ARM specifics > and I'm not sure how feasible the suggestion would be. It should be possible to /extend/ tracepoints without breaking compatibility, and I don't have any issue with that. This could either report the unmodified 'ret' value, or something more synthetic. It really depends on what you want this information for. M. [1] https://lwn.net/Articles/737532/ -- Jazz is not dead. It just smells funny...