From patchwork Wed Jun 21 16:24:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kagan X-Patchwork-Id: 9802247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A97BB60329 for ; Wed, 21 Jun 2017 16:31:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 984721FFCA for ; Wed, 21 Jun 2017 16:31:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CE16223A5; Wed, 21 Jun 2017 16:31:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D62F81FFCA for ; Wed, 21 Jun 2017 16:31:17 +0000 (UTC) Received: from localhost ([::1]:55053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNiXE-0002zN-Ti for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Jun 2017 12:31:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNiRQ-0006Tm-VX for qemu-devel@nongnu.org; Wed, 21 Jun 2017 12:25:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNiRO-0004QR-C5 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 12:25:16 -0400 Received: from mail-eopbgr30138.outbound.protection.outlook.com ([40.107.3.138]:35184 helo=EUR03-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dNiRO-0004Pv-06 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 12:25:14 -0400 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; bh=4fIjFX323CkJo27LkG5kvZ6QPVlKjsQsvO4NP+kuS1k=; b=CJCN1G79gb0DQRdMe+YwcuSGKLbwRSO5QuKGMC68+jyrxXRlxr6Oev8Mjgo8+XRnTLUKRPQNXy/+3efZSPDIQmd3LSOnx6smZTXVNKEUqcZeC/0ADUN1Z0YSSw+oPySUL4AnaTFxBfu3pL483N4fWU0UkNYcFnWRz9anaL3kQGg= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none; nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.6) by HE1PR08MB0842.eurprd08.prod.outlook.com (2a01:111:e400:59b2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Wed, 21 Jun 2017 16:25:07 +0000 From: Roman Kagan To: qemu-devel@nongnu.org, Paolo Bonzini , Eduardo Habkost Date: Wed, 21 Jun 2017 19:24:05 +0300 Message-Id: <20170621162424.10462-5-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170621162424.10462-1-rkagan@virtuozzo.com> References: <20170621162424.10462-1-rkagan@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HK2P15301CA0022.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::32) To HE1PR08MB0842.eurprd08.prod.outlook.com (2a01:111:e400:59b2::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 586c0301-22fe-45ac-1ede-08d4b8c2170f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:HE1PR08MB0842; X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0842; 3:VZKVc5jUQO7eK52esmfdXk7uXEXKzB1fLZhHX/hi5J/1gPzq1LHttALGzbDRW3oDY1b1fSATh3s7srPSxiCS69wxKTQ7eGoO6IKOmrQBfKsbJyMLXlnZLS6V2H+WfBby7AAOzmM048t7SRqYg4cujkwm32xRmMibuJ/L/WbvbT8LfhcjmTkzIqcPWqMQ6l2dpAVZm/d0OkB9vTAklzCyBmnMhGxsx+39QiFkl5znVV1Q0YigTGVAYULFRVPetuGE/K9UAe7bq6DGc6oqPwr7x3SyY7dY8c2BAs2iEqRV009JLpLzeYO8Yvi5d3r0+jevU65yCbjQnT4AE5/KgyQNhg==; 25:OKlo+K7NdZApSkTUgxONxhB/SAT8KX5r6mjJfGTxAN3fggFicwTcQDrFUQgjb8f8pQb01x+8xu24wRY3ewV9NQ0PPCZZ4siVo5Bz8HOduLlvcApxpZ5nunnYGWdNXkJRYCgtnyhlr9dPGZTQM3wjx1x67HbY2vJdwnqbfS1s0qBKSFKXIJ6QdI4qVgvsNFZr48LkBCN2YSSNn0bELRuelAXNCIabuNVV8VFIvFqBBOTsqDDpiWHexLtMj8QxCBKtZeXq6Uan9VnbhtBLNoIoiyad/WOFmUv5pkcv1Em0d2iYeELIKKLG3+Y6VrjLVMOKSivZBliWvuFTCE5SBOUvX8ceR5DTttjjycpbX6dOMeqSWP6xQxj6QKD8Y92IPWM6RairGt4N5UblhtG2ryWkUIMQTjwThB3XErsPZO36ZNFQ3+Hhk/fwm9GKXcjhKtLYie1MvVrZKUIj8Ho/yzkZMKm2OluqdVcsN7MZKiSbnEw= X-MS-TrafficTypeDiagnostic: HE1PR08MB0842: X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0842; 31:xrk958C14hg05zuXiBl7MN0u6U5YF86dTlh5riq5TT/JIL302LSxciRar9/ZaaNN6oZg4rWhBQN14vXU2++bjSuQNKy43SjnSSgaPzfwGF+n4QxXR87P+F+YYQUeCwd9/8ej+8Di4vTut5OpE1UEMnceOTE3h5cVfMzoD4iV0hjcdpCAK2mqpa4qoghdMW9pNtW2wIG230CXejP0JbmPYhGOMgzCNDqJW++cC8wEwQU=; 20:t1DhKkyinifduUHszMoOoZc8MOGAGD1Rx6+sO7HvHbYFXO5vOhk01T2KADvp8bvQ+8mBzX/8vBt26dgblld76w5FzZEIHZl4BqqBapv1PBruwLhsk2+okANUOm9ScNLV2tYQebroaoX+sZ01j2RrWzzkHeh4gOfG0BK5obdMbt1mXeyEx3o3sgwSkuLazGT5RGNm1A0kYSvAp3MViz2JvPBiVnpvDo32woRRleejyIMyeAiVoWCzNwGq0U59S+FAUicxvtvPTFb2KwPWSxQauT4rbFhEey0Yr0EU4c7owAPQrqLBKEHEmRqdJn8ErhxLKEMRmCcvtwUFyV39DrWpT6jN6+vOrOxs4agyNJjE+8nksTbBdXieAQpGT986wOtXmrewNh+ZLDCIouOrmqxpSRSPWn8fBYYaBYlCGpPZcZ4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR08MB0842; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR08MB0842; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR08MB0842; 4:C3wEvxM2sXU5umQm+MNmU5P83V0HviRkRLjwbbsmEe?= =?us-ascii?Q?sCEIYwPvqNpZt9es7GXOT06wTpg25AMdD65kvbr6hrRnN9QRM3Su8kqsYTGV?= =?us-ascii?Q?lyXHtQY4no7ux6JNrEH1hIIyEsoB1dO6ZQMy4wLUJz6o5PxfOZAEDfSIpwZi?= =?us-ascii?Q?PbP1nVb8divoTxl9IyM9WEleDytquKW6fTfZ+/6MXMoI2tAxXkFAgPP1yeOr?= =?us-ascii?Q?toVKM49Mp/ZNJbZruRINpJNOnL0Pd64GgVarOaQY9XmYl5bQGRY2T/CqoyQ3?= =?us-ascii?Q?PrRWftgGh/E17z6piHEnkA4+iN7lBMQrkX8kcP+gVEYFX0T7Y1V6C+RQWJL/?= =?us-ascii?Q?pkb2F5F4xztpaxJGAuiGSfQ91qwPqGtTZB9Ek5CBRD5HoNq7NjudRcd0UDFu?= =?us-ascii?Q?u0LbcKfkCPKUs7ekSTP3IzwITMeb+H0YGx/bpIZjX9BMmEjIOvsf++/HuyxF?= =?us-ascii?Q?0oL4BS4/vMC9owWukTWRKulFhsafqKoxRXoemrnjPXPGRg/bMDXY15Ee7h23?= =?us-ascii?Q?+m5mjZoNTL0rJu++OuPnS/OQ33y0C4+xyTLk5Wvh8/llJ6oCVuLeWiKtM8wV?= =?us-ascii?Q?JNMV2C7hJtM15hLhXqon+FdV43M1JyBrqOvcaDKbCNbreyoM2xekrP8mtAN9?= =?us-ascii?Q?T15CVxvnmw9mnG8cjXPyikcsqs1fJ5df4KNNIHvtVUSsxkjVtdrY6N3CMDzX?= =?us-ascii?Q?D+nBead6RqZAspihUD3ezE3Dy0QQ4B603ABPtcF80Xbs3SxrIX9PqmD91anO?= =?us-ascii?Q?ynsVtt/ZunffTcdBRSQDuW47Z92A6EZQhnI7wQYCzqxaUSkF3MjdS4FWu/0A?= =?us-ascii?Q?218/MXYcPAWy7LdLrkcxOst6vv2ScTK5MW0ejJut+SxSPvhnC/HIU9+ERlbm?= =?us-ascii?Q?1wtza2uovHmf5llxC0uIeJPcqmgbPvNO63o7TRdhIExwap2NlEVULZaslqrB?= =?us-ascii?Q?uwO+JJJmWimgj6S+RXZ7FqkqF8xJkFwf3qdGEIFa7PU/sFNIjU5PV26V+x6N?= =?us-ascii?Q?jqwKeM1WLer+pJ6vN7+fRt95ld7tgqQSydKhongcVXZzQBIYc1E7guHgKxAo?= =?us-ascii?Q?mT5iRL+FsnPCvtxD7Nh484Sg3d/Ah5p8xReLO1wNrk1YuSyxQ8BXO86zJvM6?= =?us-ascii?Q?SWiyGpgX584qJklHEEIGM/5E115VzG?= X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(4326008)(2950100002)(6512007)(6506006)(5003940100001)(42186005)(53416004)(54906002)(50466002)(86362001)(38730400002)(33646002)(478600001)(50986999)(76176999)(66066001)(53936002)(81166006)(7736002)(6486002)(189998001)(8676002)(50226002)(305945005)(36756003)(25786009)(5660300001)(1076002)(3846002)(6116002)(47776003)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR08MB0842; H:rkaganb.sw.ru; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR08MB0842; 23:xYwl28J/pe+hEGerVoamrxa2WaXYWwOiQVMiVJKEZ?= =?us-ascii?Q?+ebLnp6sl70cwR4P195VRx12k4pSkdK/kD6IbYq6fxpbQpgdhr/WlqOF5pvN?= =?us-ascii?Q?LfgNfVbGfzNM6zIM9JRvPpCvx4ERSoTvTNVyRY22Pz/1PfXMpAj8mXBYkfxr?= =?us-ascii?Q?9zMywglBfoJ8wxwubFh6upzM3SlgIK+xw4LklcBpdYVNG+2t+LKN7naH6eRL?= =?us-ascii?Q?cU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IAv/vN?= =?us-ascii?Q?nNdgJZsWGoeOJNQqS8KClGZJputW03WTPnABldLhJl4fRokn8EUzUXLbK0Kk?= =?us-ascii?Q?Q=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0842; 5:lc75WeALWmTVOZAwjPvh78yb8Sx1GBP+PwCvXcsEK7YahERZP3tha6eoNKPcHFD6f4YflCIIrW5t8KgWjiSmYRQsWghUPXAWCOmi8WLENjS4tR03xMhs3aojKEiFL1x3NTrZTHgf8LtEbadD88tfrHxsZBc0JqVexY0KSPL0ds/86a1gyeMqOYadm9K7Ya5cSs339yDZI6iC0SfnZ2V8Gy/ZFN4RQzoCdfwjUYmoGdeMLHhfqp7Aebs2dAxuKqCILeo1rhUIWUG+W+dZ8CsF2tveNKeR+3JyZonRbO1TJhTbQFpwp19iwQIdW2N8bpFhmP79gxed4TJdocSZFciR3pDq0qKfPKbjVsInZf39DOARixWn/yk6kTQf2yuVKlwdOAV4InIl5OGv/sfkGTHLK1Y5aNpYUcf0D4MbmcGLCEB2/oRKmpFQA6OzjIrR/jlR2WGDK5E7OuxJu4x9QKBOYVpk/FvK+cXvlSJQlj1o0RBEaMuo58con2/eFFkQ+oAq; 24:+WXg8OMfJZb9SzGzThQo907imUcnTxw1LQ8/Gkikdzzk7GG+BrU8SUHDikPssgmvQxM+f//rgPZcFTFAC3S/siNqaQiOSacQuvQhkghckuA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0842; 7:p6VpDdRZ0MNiMPYRF5/u0VCpxoo2wOpjdVX7nDu21M4rrtvM9edek8Y48rG8HvQaL7DtLi/ZMTkzdXHWsk19f2oeu3axk81ZSoLEp3ECTgQ7Mrb/tuaoF+mY5zrMUe2Va1HiKNU3rmZt0xk2N44g74fKnO890aLzDfvCMsE1gLewoMbOm7lFHKsIMWO12DXxfYK4WJJytACTtLICNYdmh5fb1HOiN7rdqyZGthmV8OMd15Zmwz+7+X9mWmFwduXXoaUom4ZGKo2aXM50tCpNWee1SZStL2Ir/4rLfy9DeNcB9AYWxr8ThK02ojAgyl1ckLQMQkNmp6jdqL6vjib0lVaT720vefFJo10ewORBEXQ931Hx3VOH+cQBgyJWOHY/XI6pnrG04hbv4DPDM02BBI/YMzD72xOiTCPG7FpFJlhKdN9uLQ1upTqaeyGgXnD9co8pKFayKbU8clhHUPZoKvC+wnOpKI9iNg76QjWBHf0b2pyBncJKRT3/jeMvZPn831wyeHw+jNkzsupImEZEh160T+gcYkv5l2Kb+sPa0EVh9zqFZovtiFaKYfZMr+8zbADClk5uGqvW7JWCXIDDJevDUrbhqXKHQ8Bg90Tgk/+0Ez/2L0AQh6FvqXVb4vJ83ApomhlKhgSgy+DaXgOjjtwl71ddLgbwLRRqOF8NGzoBrWqLmdCKliE2JuGmtQUtsI5AtnVp2zLIJNX/j6m8svWMOpAXL/4T2B6z8cecRENp4iFi1ZK9JCbts2+H/EhpN6L6cFjgcfhwJvrZj/m4w4OJeBqzRmRv/m/sOXJs5R0= X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0842; 20:5LYcqgc0Ul3kwaQMtlyfQWxsubnu4r4Yt4OhtZm8Fm0w8lqF5xEl4lKU/dZferXoWJ0i3eDj7xfz6IHvT+EDjmsIxsKOR6Bqqbd8cVm9uKoApCf1NSmIQE046cuy1fouVPLLd3dI7zxKlLWsoxLP5I8czgmeIWGjxCPWIqKLKVc= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 16:25:07.2051 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB0842 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.3.138 Subject: [Qemu-devel] [PATCH v2 04/23] hyperv: ensure SINTx msrs are reset properly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Denis V . Lunev" , Evgeny Yakovlev , Igor Mammedov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Initially SINTx msrs should be in "masked" state. To ensure that happens on *every* reset, move setting their values to kvm_arch_vcpu_reset. Signed-off-by: Roman Kagan --- v1 -> v2: - split out of v1 patch 4 target/i386/kvm.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 183a85b..27404dd 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -647,8 +647,6 @@ static int hyperv_handle_properties(CPUState *cs) env->features[FEAT_HYPERV_EAX] |= HV_VP_RUNTIME_AVAILABLE; } if (cpu->hyperv_synic) { - int sint; - if (!has_msr_hv_synic || kvm_vcpu_enable_cap(cs, KVM_CAP_HYPERV_SYNIC, 0)) { fprintf(stderr, "Hyper-V SynIC is not supported by kernel\n"); @@ -657,9 +655,6 @@ static int hyperv_handle_properties(CPUState *cs) env->features[FEAT_HYPERV_EAX] |= HV_SYNIC_AVAILABLE; env->msr_hv_synic_version = HV_SYNIC_VERSION; - for (sint = 0; sint < ARRAY_SIZE(env->msr_hv_synic_sint); sint++) { - env->msr_hv_synic_sint[sint] = HV_SINT_MASKED; - } } if (cpu->hyperv_stimer) { if (!has_msr_hv_stimer) { @@ -1039,6 +1034,13 @@ void kvm_arch_reset_vcpu(X86CPU *cpu) } else { env->mp_state = KVM_MP_STATE_RUNNABLE; } + + if (cpu->hyperv_synic) { + int i; + for (i = 0; i < ARRAY_SIZE(env->msr_hv_synic_sint); i++) { + env->msr_hv_synic_sint[i] = HV_SINT_MASKED; + } + } } void kvm_arch_do_init_vcpu(X86CPU *cpu)