Received: by 10.223.176.46 with SMTP id f43csp278357wra; Tue, 23 Jan 2018 20:55:15 -0800 (PST) X-Google-Smtp-Source: AH8x227bANSjwsbLb7N8KBCBQ2sWEzeqhAiycBQy/O/Oy/99PZUuFZO/yUmJfHTs3smtYtDcD5YP X-Received: by 10.98.13.14 with SMTP id v14mr11739812pfi.184.1516769715669; Tue, 23 Jan 2018 20:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516769715; cv=none; d=google.com; s=arc-20160816; b=lHlPZJK7qKMnDf5QKomjVHp1kB2EWwi7LLfSQ44FpJhN/3eFhJc5GREA6tMmwe3Q28 j8x/CY7RPyYD/NNEjy2pp879bLhrt/XVu0hIQRrSDSo7hbyRxssCYmliqXX4c/NZjT/5 WCTpIZ7knI0iSt8zhmroPTum1BzONeyBGditNYGr34ntmfJ57yk5jYjvMowQXN3iK2z7 YB7f4VaQOFUEYFEUSz0nQA1tyqhfFzlUGF7eHco3xrrEaUuMhbMvr1ILsxJuMHTdE5iF +ReWBkLdzKQ35dSCkQAK2OwbRMRQpq/IuiAZoCXhlYVBw45TSSK0gO26exGT9pN6A6PE DiZw== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6iEvtdziF2XV/YbZraPZa1W6If1FI1iS6KR/VB8W7g0=; b=qow4yR/3IS2N/CXGvfcQREkAuAEw5jewlRb6yCIDa2i/8yiOBxlNTkzhQ7goIuE2vM Y8LZFDGn4lWsgtWigvll8NwBwauD4onr3lZtDmy1i03To2/CMdIiU9hhfReYeyaeRN0L InuYq6/huRox6TnRAlZnFAEC/I8g2KKrt3jAGka8bAmYCicqlrVv9M708DGqkhID37C3 a3CX0lQ5iBzpeNGyNSzeffpL7wgRcVmuVtLTkhY+AXPIUsCEIa/8rCviByM6Id6bwJlN 305z5NBLhLu/Nmc/lkkgrTrt2l3pB8oPg6CgiTU31oeUBruoopiXD6feCRm3GMOVfQ5r Ui3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KMQp1Ble; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11-v6si5579100plj.596.2018.01.23.20.55.01; Tue, 23 Jan 2018 20:55:15 -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=@microsoft.com header.s=selector1 header.b=KMQp1Ble; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932271AbeAXEPc (ORCPT + 99 others); Tue, 23 Jan 2018 23:15:32 -0500 Received: from mail-cys01nam02on0117.outbound.protection.outlook.com ([104.47.37.117]:59166 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932199AbeAXEPX (ORCPT ); Tue, 23 Jan 2018 23:15:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6iEvtdziF2XV/YbZraPZa1W6If1FI1iS6KR/VB8W7g0=; b=KMQp1BleJTcfvTQUgKwilz/16fsGGuex9eHDuvMyKLMedRFAaEcLzBTa2TX5ghZqnS3QyP5HBjzfypfoDkqIbOYcTodZ+E0G2LgOdRUsSsxUbFPcJG9LkeBfRrRTQ9/rx+9kLtPgAJJTO9Er/gVlaIwWSdGtdKOUySbMXG4Qazw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1080.namprd21.prod.outlook.com (52.132.130.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.1; Wed, 24 Jan 2018 04:15:16 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:15:16 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Wanpeng Li , Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Nadav Amit , Dmitry Vyukov , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 048/100] KVM: VMX: Fix rflags cache during vCPU reset Thread-Topic: [PATCH AUTOSEL for 4.14 048/100] KVM: VMX: Fix rflags cache during vCPU reset Thread-Index: AQHTlMnf2kkYrvwCaUKNlU8/+ghVpg== Date: Wed, 24 Jan 2018 04:14:48 +0000 Message-ID: <20180124041414.32065-48-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1080;7:wYPO0mkLkYTscvQUjgWzqytUDcK4FUn3IepYy2gbErzqang45IQawhpDOL70qUgte7JtWVNbTP5iPJHWRQyL8jn6RlYsdnuJQEOND1old+bevtMxkTTJX3t9lyrUxnsHyK1c+xE5LGV+jEcGGaoih1yuM0hVd0ogEu/PSUb5q9mrDl//uHDWCwa/zuieAi5ur7OyxrpRd2TQ42zFWljb7hFqgho/1hp3AZWmRqzFYuHbb6WtTRJdcZSDJ/WmUhLr x-ms-office365-filtering-correlation-id: 432e7d55-dd5c-4434-341a-08d562e112f2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB1080; x-ms-traffictypediagnostic: DM5PR2101MB1080: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158)(211936372134217)(130873036417446)(153496737603132)(194151415913766); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231046)(2400081)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1080;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1080; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(346002)(39860400002)(39380400002)(366004)(189003)(199004)(72206003)(110136005)(316002)(5250100002)(6346003)(2900100001)(54906003)(1076002)(6116002)(3846002)(22452003)(36756003)(53936002)(99286004)(6512007)(68736007)(2501003)(3660700001)(14454004)(3280700002)(86362001)(102836004)(7736002)(5660300001)(305945005)(575784001)(107886003)(6486002)(6506007)(2906002)(81156014)(26005)(25786009)(4326008)(81166006)(39060400002)(105586002)(8936002)(59450400001)(106356001)(478600001)(10290500003)(6436002)(8676002)(2950100002)(86612001)(97736004)(76176011)(6666003)(10090500001)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1080;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: EzPdTNfreDQR/3hxFyGgy9lHY4gzSKPdKXxXBJICHy+ska6ulJfTO9ydGrH92CCkhnBJt/pFjNRKzAvZpdP4Qw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <5CEC7708B5363A48A22F43E07022A8C6@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 432e7d55-dd5c-4434-341a-08d562e112f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:48.5089 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogV2FucGVuZyBMaSA8d2FucGVuZy5saUBob3RtYWlsLmNvbT4NCg0KWyBVcHN0cmVhbSBj b21taXQgYzM3YzI4NzMwYmIwMzFjYzhhNDRhMTMwYzI1NTVjMGYzZWZiZTJkMCBdDQoNClJlcG9y dGVkIGJ5IHN5emthbGxlcjoNCg0KICAgKioqIEd1ZXN0IFN0YXRlICoqKg0KICAgQ1IwOiBhY3R1 YWw9MHgwMDAwMDAwMDgwMDEwMDMxLCBzaGFkb3c9MHgwMDAwMDAwMDYwMDAwMDEwLCBnaF9tYXNr PWZmZmZmZmZm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