Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp772375imu; Thu, 13 Dec 2018 04:19:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/WkIpA9Jw4A9+76XX1gjBwFGtSf3gKAuINpqPvevWXHNmhqkU0s7edLGV81SDIvnkUy3FV2 X-Received: by 2002:a63:4456:: with SMTP id t22mr22248417pgk.0.1544703572009; Thu, 13 Dec 2018 04:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544703571; cv=none; d=google.com; s=arc-20160816; b=Q6g6mkyPzW7vkzbTlrKgKLjqWxt31NviAv9oiSxKCOmADqhX9h3AtCHKiyQNnrZQn3 NmPlexC1t4e5hMynRw9ZpsctpeXuOjrjv9s3CT2h8yqeJrtpqF80J3fshi5ThWBtgkrO lJ6PbWHW6ovbP6wDgS9bsK7/5v2Ez7rkATh90RYyn5mG++tox2tHGl+aLwWFPXttGER/ XyGhGnzhnM+/G/Ncv8I9VOewMIT8gSxPhIge3WTH+OZo5xAAblN5vIik8lOdfXgRWGMp Jq+mkRlhXWftyruXmma8GgtcMI1BZk3kvJ1FNZNhT2Ek1DXhx8b0L+5qtYNUqt/6V1eL WX2Q== 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=K3vMSgYp2qfTuw9XDhtrN+dRcIW8HaruF1dKNNyWjz4=; b=BtO2juGtOvHrMVs0eQlh7SCIN1DtIVSI5eVLxbb4AvBCVKZs4NlYKruoxsURi9LSYS davCRLgPmt8fUsdbsq2SkWvcs0bPFTBP67M2oEOIZpzPgBS7xQwot+RvoQPY7YB/uISq zvMXzqhqIyTiJKXGF0yqlmyAqw8hQ5MIlG8qxEAxJ0/cV4QsIXKuBNTtimBe6CjcFC3x eAuLrnl2OaexzI/6yl30KfiigIs4mVb+p01xA+lbuzytbIa/knKrr7hJvEpSQvYOjRJ5 GVZqktf+HLI5eycNzsp2aOFXztMw09WU/AOQ33NFm5M64MiNAYvX+clB8cuh+PVP2uFV 14Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=QbP2x2qh; 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 a23si1393842plm.334.2018.12.13.04.19.16; Thu, 13 Dec 2018 04:19:31 -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=QbP2x2qh; 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 S1729001AbeLMMRi (ORCPT + 99 others); Thu, 13 Dec 2018 07:17:38 -0500 Received: from mail-bgr052101130037.outbound.protection.outlook.com ([52.101.130.37]:6308 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728860AbeLMMRh (ORCPT ); Thu, 13 Dec 2018 07:17:37 -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=K3vMSgYp2qfTuw9XDhtrN+dRcIW8HaruF1dKNNyWjz4=; b=QbP2x2qhr+NYDZNfQG/65JvGqaeF7tnh5Ya0YLcom6TRn6WrPTmeME4GVhH8OLxid0CzbJfT3zS49bxk1CV326qCLSBFGHRytVnnj6L2bFof9j+CLGGSIlaLoKnD1tCD/KqSCSz0B5w9ceNZxbDh4ntqus/gg0k6tvZCMajphXs= Received: from DB8PR08MB4092.eurprd08.prod.outlook.com (20.179.10.210) by DB8PR08MB4012.eurprd08.prod.outlook.com (20.179.9.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.22; Thu, 13 Dec 2018 12:17:26 +0000 Received: from DB8PR08MB4092.eurprd08.prod.outlook.com ([fe80::d0e0:ff54:c6fe:1407]) by DB8PR08MB4092.eurprd08.prod.outlook.com ([fe80::d0e0:ff54:c6fe:1407%3]) with mapi id 15.20.1425.016; Thu, 13 Dec 2018 12:17:26 +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" Subject: Re: [PATCH v2 1/2] x86/hyper-v: Stop caring about EOI for direct stimers Thread-Topic: [PATCH v2 1/2] x86/hyper-v: Stop caring about EOI for direct stimers Thread-Index: AQHUkjrHjHKyrPOUG0Sh6Y24a/reJKV8lyWA Date: Thu, 13 Dec 2018 12:17:26 +0000 Message-ID: <20181213121722.GA2474@rkaganb.sw.ru> References: <20181212165017.13278-1-vkuznets@redhat.com> <20181212165017.13278-2-vkuznets@redhat.com> In-Reply-To: <20181212165017.13278-2-vkuznets@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_,_kvm@vger.kernel.org,=09Paolo_Bonzini_,=09Radim_Kr=E8m=E1=F8_,=09linux-kernel@vger.kernel.org?= x-originating-ip: [185.231.240.5] x-clientproxiedby: HE1P18901CA0012.EURP189.PROD.OUTLOOK.COM (2603:10a6:3:8b::22) 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;DB8PR08MB4012;7:MQwtfGhssLt1cg6hhqkILD8vVE9StbmhvQjLvUrKf/Fx3PRPXVm7fukXyfUj5oBCz4JdM70tHHA72RWZLEtbb8ZNuOW980OF+Dg7LjC9D92emNLGJAZ2dddgeiB7uiMOpgYYru4dtanECy37qwHJqw==;20:emgIz/VXbQENYuWiwwN2+PCrfoojNoHUa5R7P2fd7epD15gbzvu8lAWuGHXS7pFQ4c414UmBF5mMNNHA/zTV228KCHD9Gn5qeLFv5f/Fbo2So+/Sc2c+CrnfSFMWxCdb5obtnOIzOH/R12EeeursrQjJYadog9dYcB08LSalTWk= x-ms-office365-filtering-correlation-id: 36ddad59-e7d2-4eb8-a34e-08d660f4f1a1 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:DB8PR08MB4012; x-ms-traffictypediagnostic: DB8PR08MB4012:|DB8PR08MB4012: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3231475)(944501520)(52105112)(10201501046)(93006095)(93001095)(3002001)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:DB8PR08MB4012;BCL:0;PCL:0;RULEID:;SRVR:DB8PR08MB4012; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:SPM;SFS:(10019020)(136003)(396003)(39850400004)(366004)(376002)(346002)(189003)(199004)(71200400001)(68736007)(58126008)(186003)(386003)(86362001)(102836004)(4326008)(71190400001)(33896004)(6506007)(26005)(105586002)(2906002)(54906003)(316002)(53936002)(97736004)(6116002)(6512007)(9686003)(1076002)(14454004)(6246003)(106356001)(36756003)(8676002)(5660300001)(478600001)(8936002)(81156014)(14444005)(6436002)(3846002)(81166006)(229853002)(256004)(7736002)(25786009)(99286004)(33656002)(6486002)(52116002)(446003)(66066001)(11346002)(476003)(486006)(6916009)(76176011)(305945005)(30126002);DIR:OUT;SFP:1501;SCL:5;SRVR:DB8PR08MB4012;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: yuTK6m6oAefHNDYqB6/SLjnCYZSEqtYi4dFgJz5Gk78MYRHWORNOUucn5jVtCXJCZhNws3SYCjMmV3rzA/FUnMgpQN6wps6hwIAXrhzNpLAaV9nbIJPCLYBHXtqyOgynd5TrOQRnaHS/JHXs7iBJZuHc7SPaQsQ6c7Uztwikq2wWw39D+i82TS/UNU/gGIgcjiCrHPGqS2FDiF/nwp2lclqrBuwkl9CurVRIbBBGQIC+loZydKjwUL3hdZHtxg/W3xhNr1rPEgKQSIefW2a6CNU3VmZ85GLE7wkT6mIHmtkicGzWK79F0EyNH0v0U2oNlcZgSEBa3EXNjBtInduyQQ8W7itpPBjuuwF/8WDURNGBjVxDBTjo4xrwTIFmJiDqbR08ZQ98EAxZqu5qYWKGDB1m7RYi9yVWJwMUbcdDivaz2Jex0C4bD3VPBLYf2EO4XLPODZgqNLw0FYPEtNnGdcVzz4F6tnQtqddBXW+ZAwq4KOfcvZX9exG1CmTmmCR/ spamdiagnosticoutput: 1:22 Content-Type: text/plain; charset="iso-8859-2" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36ddad59-e7d2-4eb8-a34e-08d660f4f1a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 12:17:26.3724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4012 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 12, 2018 at 05:50:16PM +0100, Vitaly Kuznetsov wrote: > Turns out we over-engineered Direct Mode for stimers a bit: unlike > traditional stimers where we may want to try to re-inject the message upo= n > EOI, Direct Mode stimers just set the irq in APIC and kvm_apic_set_irq() > fails only when APIC is disabled (see APIC_DM_FIXED case in > __apic_accept_irq()). Remove the redundant part. >=20 > Suggested-by: Roman Kagan > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/kvm/hyperv.c | 36 +++--------------------------------- > 1 file changed, 3 insertions(+), 33 deletions(-) Reviewed-by: Roman Kagan