Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp444048imu; Tue, 27 Nov 2018 00:50:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNAs/dRQ8jTXNAWEDUmvJAKRO2OFdK+pcUSmW3muF+mitd6XyMIg+4ju88Psj+viTPH4Jn X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr31586292plb.192.1543308650150; Tue, 27 Nov 2018 00:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543308650; cv=none; d=google.com; s=arc-20160816; b=tjrY1DHl1QnhE61p4rEXpcli6DRBsFg0qgt5WoKgDKR5K1JYbGOJ5+v9Qr0WGx0lh1 ZK5bVkuC/V6UUVYwMgrSdYdQqzHbFDdvyl2oqweC4tRe6QqdW9RNB/LLmcfVt50VlXPi CBanHANmoVog2pSF1c6Dd/DytnObMM3IhAdbmhrJWz9zdkiM7wLqScPFP5WdAovcVxv5 2Or0XOTGWonYFc4PKxdJuK2Mp+ml2aiOKK7AMfWkxtkwocPD3nH4jh9oE/wp/vD8W6cR mZG5V1fJ48DnPq0P0LcnjA6u9RK/RXZrheECt1+AjeMhd7/hgdh0iO2GQuKrkvPlU9RP B4zA== 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=2Ri5Sgr+Ey2cSxQ+3WFURkXoqsubprMxIGim6vov370=; b=PF2vy4ts4x3tOz3mPzFRZQiHciQzSxtiREK0vxWOPqCfP0pkH5NGRcDiP3r+U5ZSv+ 2xnVH6B0e4QMQ1gYoLW0qpO8uK/rbbukKZeGgYW9LzXtFein9Fi5f+Wj1JcActDjXi2n kgYvjg4TnPx45GwwioET3fD3p8jprGT3Dssbpn5esskz/PID/KGobAhIOzyiFbYAxmE6 gdoXslljcoAl5yDt6ZUUxQ+uO++8W8Po2zgfSUiqKjLPvrnIi414s/fXQISsHH0arrrC XiXxyAN3Vvt+C5190H4WlhXXn7nX7n8u3J5OaOMHiZjI10Ywd8e+XAj7YcvM9L9A4ksv TSTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Nba5vuHA; 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 ba9si3233620plb.109.2018.11.27.00.50.35; Tue, 27 Nov 2018 00:50:50 -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=Nba5vuHA; 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 S1729761AbeK0Tqy (ORCPT + 99 others); Tue, 27 Nov 2018 14:46:54 -0500 Received: from mail-bgr052101134010.outbound.protection.outlook.com ([52.101.134.10]:59647 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729387AbeK0Tqx (ORCPT ); Tue, 27 Nov 2018 14:46:53 -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=2Ri5Sgr+Ey2cSxQ+3WFURkXoqsubprMxIGim6vov370=; b=Nba5vuHAaY+XpBMsQ1DxPFPcT/inqq7gJBTV9Gplz7b6qW8d46kvqHD6ihvURTJfPN7LobrcWIuBIYzR2fxDUEoz4vudDn88TnOSgLfqrX0pFX1mndSsT/nAsGR4g2Kx9jp9LaMeiJiucZWsFi0wIjkyO8oOr9nivR5TK2MUojY= Received: from VI1PR08MB3599.eurprd08.prod.outlook.com (20.177.61.74) by VI1PR08MB3760.eurprd08.prod.outlook.com (20.178.14.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.15; Tue, 27 Nov 2018 08:49:33 +0000 Received: from VI1PR08MB3599.eurprd08.prod.outlook.com ([fe80::5d2c:980a:d77e:34e2]) by VI1PR08MB3599.eurprd08.prod.outlook.com ([fe80::5d2c:980a:d77e:34e2%3]) with mapi id 15.20.1361.019; Tue, 27 Nov 2018 08:49:33 +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 4/4] x86/kvm/hyper-v: avoid open-coding stimer_mark_pending() in kvm_hv_notify_acked_sint() Thread-Topic: [PATCH v2 4/4] x86/kvm/hyper-v: avoid open-coding stimer_mark_pending() in kvm_hv_notify_acked_sint() Thread-Index: AQHUhZ9o3da6WPit0kW17k8z1cvR2KVjUPiA Date: Tue, 27 Nov 2018 08:49:33 +0000 Message-ID: <20181127084929.GC16047@rkaganb.sw.ru> References: <20181126154732.23025-1-vkuznets@redhat.com> <20181126154732.23025-5-vkuznets@redhat.com> In-Reply-To: <20181126154732.23025-5-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,=09"K._Y._Srinivasan?= =?iso-8859-2?Q?"_,=09Haiyang_Zhang_,=09Stephen_Hemminger_,_x86@k?= =?iso-8859-2?Q?ernel.org,=09"Michael_Kelley_(EOSG)"_?= x-originating-ip: [185.231.240.5] x-clientproxiedby: HE1PR0101CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:3:77::11) To VI1PR08MB3599.eurprd08.prod.outlook.com (2603:10a6:803:85::10) 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;VI1PR08MB3760;7:gELVKQKaBiWkT8YcayoWsIiLD0e3H7GfMEmkkZAdAML0iGbzEDQPRx88sfzuNULusAeicgPIalOYQ3PSY+6LtkSficSYYcw7UlhXv1cKYu4QeLznBx6swmvr8mOCx1rIriF34Lb5CZ7W1ovM4RJ6jA==;20:p5mfOhKcUlXXmvdy6wf1awjL+ShSnSQYRIEh43/CVxbWqOBUHmNAqTMxO9Z/vBwKPKDvET805UQ1PQIBLwbmJA/sjViSevBbRgJNqSegK3xgJbbjLsIGeucx1Pu51vHrWnbE8RS4wWIT1iVWXYkuN5NCDSloa9Li6n+lUQOqICQ= x-ms-office365-filtering-correlation-id: 2dc69142-4fe3-4af6-367f-08d654454068 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR08MB3760; x-ms-traffictypediagnostic: VI1PR08MB3760:|VI1PR08MB3760: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231443)(944501410)(52105112)(93006095)(93001095)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR08MB3760;BCL:0;PCL:0;RULEID:;SRVR:VI1PR08MB3760; x-forefront-prvs: 086943A159 x-forefront-antispam-report: SFV:SPM;SFS:(10019020)(376002)(346002)(366004)(396003)(39850400004)(136003)(189003)(199004)(97736004)(33656002)(8676002)(316002)(305945005)(7736002)(3846002)(6116002)(54906003)(8936002)(81166006)(81156014)(1076002)(7416002)(58126008)(229853002)(6916009)(6246003)(6486002)(478600001)(53936002)(9686003)(6512007)(6436002)(106356001)(25786009)(105586002)(36756003)(446003)(4326008)(11346002)(6506007)(33896004)(386003)(186003)(476003)(102836004)(26005)(14454004)(486006)(2906002)(68736007)(52116002)(76176011)(86362001)(99286004)(256004)(14444005)(5660300001)(66066001)(71200400001)(71190400001)(30126002);DIR:OUT;SFP:1501;SCL:5;SRVR:VI1PR08MB3760;H:VI1PR08MB3599.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: 9MfdbaLx9wxLHgH5V4NrwrfPZPkp1KSiO1WAOoS2DqXqTGZf6nuetmtmkL531Hs7Hss2VD6yPIGx+KZSpUwRMOX6q1+O5XzjsEpHiwRF9/x/MawZ/HXPZ68f7VO19he1CvN0BMTOo8wUgA4nzwPgzAw7B6kGjgElNUsBywxoWQJfx15BZxIx3GYWXWXf1y5P6Dt1Bk6wzo6MIXuLY1ZuNpQqMItRrGD2zwRejWNP4up+QR8Y2T9mF+E7wD3gc1MteSdRngE23ibqT2o4RppoRImFkqmqPcNDYgrC2RV9YA9Z+6Gg3Ah98Hq/OoKdHR/0YkqCgqTorNNvb06EeUfrIaHsv7vu9UZFtZfOXJ/iw0cROl6saA5Jrdk5XEBiGeyevVQ6ahE86ny9F0MYRuyTix4B/TBu/KxNu1DkbD4OIhPSd/qeYA7hcfph1nqO1UKO3aPItdOMVlZ5peX90zgCwuPR9//5USiTyfwUKMf4JaTuRCQ3rzHGgQYNYhLFlFRE2+a/Nrw8vTFhvz26hWpL538XQHzqjAe3Zxwmo0jBiJw= spamdiagnosticoutput: 1:22 Content-Type: text/plain; charset="iso-8859-2" Content-ID: <8C552FE84A789F4DA16FF4CA64DEB5E4@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dc69142-4fe3-4af6-367f-08d654454068 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2018 08:49:33.4595 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3760 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 04:47:32PM +0100, Vitaly Kuznetsov wrote: > stimers_pending optimization only helps us to avoid multiple > kvm_make_request() calls. This doesn't happen very often and these > calls are very cheap in the first place, remove open-coded version of > stimer_mark_pending() from kvm_hv_notify_acked_sint(). Frankly speaking, I've yet to see a guest that configures more than one SynIC timer. So it was indeed a bit of overengineering in the first place. > Suggested-by: Paolo Bonzini > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/kvm/hyperv.c | 12 +++--------- > 1 file changed, 3 insertions(+), 9 deletions(-) Reviewed-by: Roman Kagan