From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejNRQ-0008Tq-Pi for qemu-devel@nongnu.org; Wed, 07 Feb 2018 05:59:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejNRN-00079r-PO for qemu-devel@nongnu.org; Wed, 07 Feb 2018 05:59:04 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:51663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejNRN-00079Z-Iu for qemu-devel@nongnu.org; Wed, 07 Feb 2018 05:59:01 -0500 Received: by mail-wm0-f54.google.com with SMTP id r71so2353369wmd.1 for ; Wed, 07 Feb 2018 02:59:01 -0800 (PST) References: <20180206203048.11096-1-rkagan@virtuozzo.com> <20180206203048.11096-13-rkagan@virtuozzo.com> From: Paolo Bonzini Message-ID: Date: Wed, 7 Feb 2018 11:58:58 +0100 MIME-Version: 1.0 In-Reply-To: <20180206203048.11096-13-rkagan@virtuozzo.com> 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 Cc: 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 06/02/2018 21:30, 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? Thanks, Paolo > +{ > + int ret; > + SynICState *synic = sint_route->synic; > + unsigned long *flags, set_mask; > + unsigned set_idx; > + > + if (evtno > HV_EVENT_FLAGS_COUNT) { > + return -EINVAL; > + } > + if (!synic->enabled || !synic->evt_page_addr) {