Received: from eggs.gnu.org ([2001:4830:134:3::10]:44949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejnj5-0002RD-86 for qemu-devel@nongnu.org; Thu, 08 Feb 2018 10:03:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejnj0-0001gb-8M for qemu-devel@nongnu.org; Thu, 08 Feb 2018 10:03:03 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:40238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejnj0-0001fu-1w for qemu-devel@nongnu.org; Thu, 08 Feb 2018 10:02:58 -0500 Received: by mail-wm0-f48.google.com with SMTP id v123so10537872wmd.5 for ; Thu, 08 Feb 2018 07:02:57 -0800 (PST) References: <20180206203048.11096-1-rkagan@virtuozzo.com> <20180206203048.11096-13-rkagan@virtuozzo.com> <20180207191126.GD18247@rkaganb.sw.ru> From: Paolo Bonzini Message-ID: Date: Thu, 8 Feb 2018 16:02:54 +0100 MIME-Version: 1.0 In-Reply-To: <20180207191126.GD18247@rkaganb.sw.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 12/34] hyperv: add synic event flag signaling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Kagan , qemu-devel@nongnu.org, Ben Warren , Konrad Rzeszutek Wilk , Krish Sadhukhan , "Marcos E. Matsunaga" , Jan Dakinevich , Vadim Rozenfeld , "Denis V. Lunev" , si-wei liu , Vitaly Kuznetsov , Cathy Avery On 07/02/2018 20:11, Roman Kagan wrote: >>> +/* >>> + * Set given event flag for a given sint on a given vcpu, and signal the sint. >>> + */ >>> +int hyperv_set_evt_flag(HvSintRoute *sint_route, unsigned evtno) >> Any reason (e.g. something from the spec) not to spell "event" and >> "eventno" in full? > None beyond me being on the "shortest-comprehensible-name" camp :) > > I thought "evt" was unambiguously parsed as "event", and "msg" as > "message". Isn't it? Yes, it's understandable, however my guess would have been that "msg" is way more common than "evt". grep seems to agree $ git grep '\Bmessage\|message\B' | wc -l 451 $ git grep '\Bmsg\|msg\B' | wc -l 2504 $ git grep '\Bevent\|event\B' | wc -l 4998 $ git grep '\Bevt\|evt\B' | wc -l 483 where quite a few "evt" instances are matching "devtree" or "devtype". ("\Bfoo|foo\B" avoids the cases where "foo" is an entire word, which would probably favor "message" and "event" when they appear as English text). Paolo