From: Roman Kagan Subject: Re: [PATCH v2 3/4] x86/kvm/hyper-v: direct mode for synthetic timers Date: Mon, 10 Dec 2018 13:21:39 +0000 Message-ID: <20181210132134.GA5888@rkaganb.sw.ru> References: <20181126154732.23025-1-vkuznets@redhat.com> <20181126154732.23025-4-vkuznets@redhat.com> <20181210120637.GA13294@rkaganb.sw.ru> <87va41czk5.fsf@vitty.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Cc: "kvm@vger.kernel.org" , Paolo Bonzini , =?iso-8859-2?Q?Radim_Kr=E8m=E1=F8?= , "linux-kernel@vger.kernel.org" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "x86@kernel.org" , "Michael Kelley (EOSG)" To: Vitaly Kuznetsov Return-path: In-Reply-To: <87va41czk5.fsf@vitty.brq.redhat.com> Content-Language: en-US Content-ID: <91D0B01C8708804BAB304B253D278442@eurprd08.prod.outlook.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Dec 10, 2018 at 01:54:18PM +0100, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > Just noticed that the patch seems to assume that "direct" timers are > > allowed to use any vectors including 0-15. I guess this is incorrect, > > and instead stimer_set_config should error out on direct mode with a > > vector less than HV_SYNIC_FIRST_VALID_VECTOR. >=20 > The spec is really vague about this and I'm not sure that this has > anything to do with HV_SYNIC_FIRST_VALID_VECTOR (as these are actually > not "synic" vectors, I *think* that SynIC doesn't even need to be > enabled to make them work). >=20 > I checked and Hyper-V 2016 uses vector '0xff', not sure if it proves > your point :-) >=20 > Do you envision any issues in KVM if we keep allowing vectors < > HV_SYNIC_FIRST_VALID_VECTOR? It's actually lapic that treats vectors 0..15 as illegal. Nothing Hyper-V specific here. Roman.