From: Roman Kagan Subject: Re: [PATCH v8 2/2] kvm: x86: hyperv: guest->host event signaling via eventfd Date: Thu, 1 Feb 2018 15:45:57 +0300 Message-ID: <20180201124557.GA10738@rkaganb.sw.ru> References: <20180131135633.11228-1-rkagan@virtuozzo.com> <20180131135633.11228-3-rkagan@virtuozzo.com> <20180131181812.GA31080@flask> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: kvm@vger.kernel.org, Paolo Bonzini , "Denis V. Lunev" , Konrad Rzeszutek Wilk , Vitaly Kuznetsov , David Hildenbrand To: Radim =?utf-8?B?S3LEjW3DocWZ?= Return-path: Received: from mail-ve1eur02hn0235.outbound.protection.outlook.com ([104.47.6.235]:60067 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752450AbeBAMqO (ORCPT ); Thu, 1 Feb 2018 07:46:14 -0500 Content-Disposition: inline In-Reply-To: <20180131181812.GA31080@flask> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jan 31, 2018 at 07:18:12PM +0100, Radim Krčmář wrote: > 2018-01-31 16:56+0300, Roman Kagan: > I have completely missed this series in the past, sorry. No wonder, everybody was too busy with all this Meltdown+Spectre stuff. > > + /* > > + * Per spec, bits 32-47 contain the extra "flag number". However, we > > + * have no use for it, and in all known usecases it is zero, so just > > + * require it here. > > + */ > > The spec says: > > FlagNumber specifies the relative index of the event flag that the > caller wants to set within the target SIEF area. This number is > relative to the base flag number associated with the port. This smells like an overdesign to me. Anyway we've never seen non-zero FlagNumbers. The guest code in Linux doesn't even define a way to pass such a FlagNumber. > Don't we want to pass the flag into userspace? To be future-proof in case there turns out to be a user for non-zero FlagNumber? Makes sense, will respin with that. Thanks, Roman.