Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3803764imu; Mon, 10 Dec 2018 08:05:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VrKsnY7nsPTaBhqohEHwxH0w0g8UHAOgOiIk15WBXf7EytwINke4/GNKI9kfW/HG2cgTpu X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr12711321plg.61.1544457938231; Mon, 10 Dec 2018 08:05:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544457938; cv=none; d=google.com; s=arc-20160816; b=zcs11gparMmKAWraeuWQK9CsPBAxBrhklRElu2hqOhOFvtgXt3l2yL4tyZthLqksvL TZuVQw1QTTY3Cn2sVb4OS7nFjrJ+2Ny6AfH/Eu7aMZmRMw2abNaz/EjLl6uWhViJizNk ETyvjKybux7B/p01QVyNWME6z1mwOO8UNBJJ3E7+aG76dnPX+7joxF5L4jCLVfI5BuoC efIjGpcLSZvnVKH/ZkkkNt9G34iFGx7vJ7GrbnzhsJbgLUS5AyHMYWV69n82d9Uhb9yj ZrSxA951bgxgpKKbg+qJWbVlwVEHsg5LTAvMxSPZuim+BK/Wn8+57lgL2YxaAXHditjz P/jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticoutput:mail-followup-to:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=4GZ3jtg3u9d61PdyaKY7s6sLBWVVkUVvxu2ft1XdTs8=; b=b2twu8eWWg7EqKyhZ58sE/DVbNxxb6BWZ9hl6y/hdYEdAFnPFYMMVlyknEftXLqSix VJv1D24w/WnS90sM+PrmrhwuYoXYNtxmLllLPwtUpwhFUauHo+f7NBRiFaNpR1TZu8rO GDRwtfmnIRn59JmoQpGcjzeTmAPhc16yBrDW+TmZw2IgrmB1+1bjkbFbIcS5JRLFQfrC mm/qSsFQJ25lI4A0lvoh/DJzWGFtqmBr0XiepBSXRssAj4VjRLySfMwcnJvuQZeQCJZn kI0QaQwU4mafL+UD1qwbvbVzFwfpP+qjzGb5Mz2/GkxdQSDr+m/rBqQwZ37+cHkCn+Zj bajA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=OSLzkvUk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z67si10646576pfb.268.2018.12.10.08.05.22; Mon, 10 Dec 2018 08:05:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=OSLzkvUk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727285AbeLJNVv (ORCPT + 99 others); Mon, 10 Dec 2018 08:21:51 -0500 Received: from mail-bgr052101131079.outbound.protection.outlook.com ([52.101.131.79]:10270 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726146AbeLJNVv (ORCPT ); Mon, 10 Dec 2018 08:21:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4GZ3jtg3u9d61PdyaKY7s6sLBWVVkUVvxu2ft1XdTs8=; b=OSLzkvUkvcMaSaa/Z23zguADURbGEtpurG0raY2NNYyp1p6x41DKDnKVZ0HnKaerTpLjAlHdmqtQ/pNcASdmGanH4OaERqcgjbzDtWG25HQ8ui+q+Ay1JDhxsXZhEV5hXv3VEjrK9PWWDjCnAnBBsNnW6UVVlW1X+dRa/ngxnMA= Received: from DB8PR08MB4092.eurprd08.prod.outlook.com (20.179.10.210) by DB8PR08MB3948.eurprd08.prod.outlook.com (20.179.8.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.22; Mon, 10 Dec 2018 13:21:39 +0000 Received: from DB8PR08MB4092.eurprd08.prod.outlook.com ([fe80::d41:d012:1944:5810]) by DB8PR08MB4092.eurprd08.prod.outlook.com ([fe80::d41:d012:1944:5810%6]) with mapi id 15.20.1404.026; Mon, 10 Dec 2018 13:21:39 +0000 From: Roman Kagan To: Vitaly Kuznetsov 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)" Subject: Re: [PATCH v2 3/4] x86/kvm/hyper-v: direct mode for synthetic timers Thread-Topic: [PATCH v2 3/4] x86/kvm/hyper-v: direct mode for synthetic timers Thread-Index: AQHUhZ9mV1oam64KnkyNE5PKjfame6V4KKWA///bCACAAAeggA== 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> In-Reply-To: <87va41czk5.fsf@vitty.brq.redhat.com> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mutt/1.10.1 (2018-07-13) mail-followup-to: =?iso-8859-2?Q?Roman_Kagan_,=09Vitaly_Kuznetsov_,=09"kvm@vger.kernel.org"_,=09Paolo_Bonzini_,=09Radim_Kr?= =?iso-8859-2?Q?=E8m=E1=F8_,=09"linux-kernel@vger.kern?= =?iso-8859-2?Q?el.org"_,=09"K._Y._Srinivasa?= =?iso-8859-2?Q?n"_,=09Haiyang_Zhang_,=09Stephen_Hemminger_,=09"x?= =?iso-8859-2?Q?86@kernel.org"_,=09"Michael_Kelley_(EOSG)"?= =?iso-8859-2?Q?_?= x-originating-ip: [185.231.240.5] x-clientproxiedby: HE1PR0901CA0058.eurprd09.prod.outlook.com (2603:10a6:3:45::26) To DB8PR08MB4092.eurprd08.prod.outlook.com (2603:10a6:10:ab::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB8PR08MB3948;7:rmkX43Plxn/xLglUZlNW/ntxS6/918FLcCHZcLOhDbGVpSLY9W8u8vm45l730ss8VM7fFyHLnhI3brjozyF85Q/XEhRbvUZDhSil1zzoqyrwDhEn+o/O6AJENUNWYHPpk5Vi3dBj0a6xpDu3CaDO7g==;20:t93PL8nuJgg2Jr1ZRsiPjEGqPUolwNoYTQPrdcTv8vUTWz+zc9MTieHk6RZ6/7fOcRQv9Scl3KbvNpQPTnZmonMV4XTCtpVoGXQ0KnPgzrh/P6VOjbkQCqk9ybjbLFsp7d3tFJtnRDsZx6O35z/S1t7TkzFNAgJlO/gbXnVmTrE= x-ms-office365-filtering-correlation-id: dd771855-c4e7-4882-7ef9-08d65ea26b17 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:DB8PR08MB3948; x-ms-traffictypediagnostic: DB8PR08MB3948:|DB8PR08MB3948: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231455)(999002)(944501520)(52105112)(10201501046)(3002001)(93006095)(93001095)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:DB8PR08MB3948;BCL:0;PCL:0;RULEID:;SRVR:DB8PR08MB3948; x-forefront-prvs: 08828D20BC x-forefront-antispam-report: SFV:SPM;SFS:(10019020)(136003)(396003)(366004)(39840400004)(346002)(376002)(189003)(199004)(6246003)(2906002)(7736002)(25786009)(99286004)(5660300001)(97736004)(305945005)(33656002)(14454004)(6916009)(36756003)(68736007)(6116002)(3846002)(52116002)(105586002)(476003)(446003)(486006)(11346002)(106356001)(4326008)(1076002)(478600001)(6506007)(6486002)(66066001)(53936002)(386003)(9686003)(256004)(186003)(6436002)(58126008)(6512007)(54906003)(76176011)(8936002)(33896004)(26005)(102836004)(71200400001)(86362001)(8676002)(81166006)(7416002)(316002)(93886005)(229853002)(71190400001)(81156014)(30126002);DIR:OUT;SFP:1501;SCL:5;SRVR:DB8PR08MB3948;H:DB8PR08MB4092.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 99KuPJV3FS1ckFuvKqXX0tSJCdUUEuSRhGmsmhjLnh/F9Wo9NEOcCEaZlNKV2OaNMViUMUMHUH/lkU0QVj9/NzZ+YjK93HoYRjTi8YsNNPfgtqEYBKWVp6tkUOgBNay0PWONKdSfVYtzCBIsTav8a792KAwRbJfp0PO4QDybBt/NRadqeFaJHmzV+AA0XKDAA+9Yk/ZI0jXzoDd50fRCRRdVNbwkPrbJqcN5qlR6SswSbr3hmB5rIMDyuUgixt/M7a2u4EpPPuazw4nzXFFyJPI88ecosM7RJboGc+i/cJCqgjJGWpBrG3K8xF7+v5wZ33wylR6EAGbsG1bmFeL6w/ZyHlUo1Sqle/wbP5kZzt/JcTieNOeiPyXhylknbOh6CCjPaZlHiYEmCqQ1doQK/Dy+7XIIhp7f3zzDxacdbQqyI42+bZ3ddUN7Y9wauK0OOXcWwb4tWf6Pzrz4yN4BHt8OhIt4LgHgOhJhl9cWfPkX/cxV5TW43VNk1eVnbwan spamdiagnosticoutput: 1:22 Content-Type: text/plain; charset="iso-8859-2" Content-ID: <91D0B01C8708804BAB304B253D278442@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd771855-c4e7-4882-7ef9-08d65ea26b17 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2018 13:21:39.8712 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB3948 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.