Message ID | 1519665216-1078-9-git-send-email-juterry@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 CF04B602A0 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 26 Feb 2018 17:16:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C126D2A150 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 26 Feb 2018 17:16:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4CFE2A1EA; Mon, 26 Feb 2018 17:16:02 +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 3A9F02A150 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 26 Feb 2018 17:16:01 +0000 (UTC) Received: from localhost ([::1]:60468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1eqMNd-0000Ni-2u for patchwork-qemu-devel@patchwork.kernel.org; Mon, 26 Feb 2018 12:16:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <juterry@microsoft.com>) id 1eqMLx-0007NA-S3 for qemu-devel@nongnu.org; Mon, 26 Feb 2018 12:14:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <juterry@microsoft.com>) id 1eqMLt-0004g9-QC for qemu-devel@nongnu.org; Mon, 26 Feb 2018 12:14:17 -0500 Received: from mail-sn1nam02on0137.outbound.protection.outlook.com ([104.47.36.137]:41302 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <juterry@microsoft.com>) id 1eqMLt-0004fp-Hw for qemu-devel@nongnu.org; Mon, 26 Feb 2018 12:14:13 -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=LN52OAAAWY9b49y9b7UE8JU9Hy4BgyV3WNKVkSTCrms=; b=lVXaqQkliaf+67GXqzGWHabhlA1AQoDLiHaXHaQrzApF3n8Mrf+kij1zS6jl6QFQoyNk523O3GbiXX/bw3NYzjdLtwag/P6tWy6wJxwlPfKxk3tGuPETJ9tUbZPJTO1CQqNfSK4v7IWszjQi7oXgygcgTdgZpaFbXMfI7JsTWHA= Received: from DESKTOP-CS4P60I.corp.microsoft.com (2001:4898:80e8:9::75b) by CY4PR21MB0168.namprd21.prod.outlook.com (2603:10b6:903:b9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Mon, 26 Feb 2018 17:14:11 +0000 To: qemu-devel@nongnu.org Date: Mon, 26 Feb 2018 09:13:36 -0800 Message-Id: <1519665216-1078-9-git-send-email-juterry@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519665216-1078-1-git-send-email-juterry@microsoft.com> References: <1519665216-1078-1-git-send-email-juterry@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2001:4898:80e8:9::75b] X-ClientProxiedBy: DM5PR1401CA0003.namprd14.prod.outlook.com (2603:10b6:4:4a::13) To CY4PR21MB0168.namprd21.prod.outlook.com (2603:10b6:903:b9::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0ddb4f9b-09b3-4cb7-94ec-08d57d3c5ad6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7193020); SRVR:CY4PR21MB0168; X-Microsoft-Exchange-Diagnostics: 1; CY4PR21MB0168; 3:B8FCgiO30qVieFdh8gWZ4iZRueuCW8NkIFoFpTzujiXYII7jsHOGmp37Gg5gIZCjBw6Pw07RvE+J8LHduMbSY20UC9XeolbBLIR1lbAJLDSeXzORTxeAErS/g9UJlMiK288Xp0kEBYJcn4Tn/ynzqoZ2H8igWcZbtylfHDwLxcAY7jQPhkagMmhe0N5E6c/kkIE8bu3TghX3LtGiOB3vQCh0XLfsW2fQI3oEtgiEmviyZG750Lav5hLp3ikAi1DK; 25:63qX7swv33W6qQ165UQqrq8joiditYbLYFhP/hLtvzIR3q6N3iSGkSmH9MM8EHMccdT35h0vs6KO+KGE6Ahse/7SJJpNZVPGjKMJFZ1TPZ6QeG/156g94iY+O4s1aQ6sWHQjl/0F4pU/pZ1seS8zrKhFGiiXcI8XQw1X0YaVi2KLOwzSk7uE7A6gMsenae0VBvKih83vUFgcbcRpClm10uGbDMgnt5a1SbQ4LccOQLm3HofSSYCld0qOcDaBuuhTM2N7NA0CBtcob8XeNtD3BDhzVM3hiG6uZntQTNNzJLF71Fm5wvfnZUqOvxiBxx22cq+LaUIRlXcoCGXN4Gcp0w==; 31:PEZDkMornmHiiYPE/XjVR9A9Q/z1knoH8sdj1WSug4bxatxiqKavikmk2J/KHPEMGQUHNXZ7hsRkMjZL5JM6vZ30QG9MpEXOSsxPAMucKlvCrtLUUN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3FxZs= X-Microsoft-Antispam-PRVS: <CY4PR21MB01681528B79686D8433B5845B6C10@CY4PR21MB0168.namprd21.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(28532068793085)(89211679590171); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231220)(944501187)(52105095)(3002001)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:CY4PR21MB0168; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0168; X-Forefront-PRVS: 05954A7C45 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(39860400002)(366004)(346002)(39380400002)(189003)(199004)(5660300001)(36756003)(53936002)(10290500003)(7736002)(6116002)(105586002)(478600001)(6666003)(8936002)(8676002)(81166006)(47776003)(2950100002)(81156014)(50226002)(10090500001)(6916009)(106356001)(2906002)(52396003)(50466002)(51416003)(6486002)(48376002)(52116002)(7696005)(97736004)(76176011)(68736007)(86612001)(6346003)(107886003)(386003)(15650500001)(25786009)(86362001)(22452003)(2351001)(2361001)(316002)(305945005)(16526019)(59450400001)(4326008)(186003)(16586007); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0168; H:DESKTOP-CS4P60I.corp.microsoft.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=juterry@microsoft.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR21MB0168; 23:kgH03GpGnTAcvHARc7HxeMd6b7XxtYN6P/v5DkqAK?= =?us-ascii?Q?SelLx2kqGE64D3BQ/Kn7rySjpSoUtaoHUfHYGDJhv5qXV/Y8ijSybQZ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; 7:rB8qeboXn5XWxVQNrp73Dz0rssUdoITBi+iJXi5wQ7iVe3xikQpwU4iyv99a/LCBfGelPOsA7nzON9lx02g1sQ+V3E/umENqCmqzFibOjYQWayQ3fTQmHyaPzxCqHDdeq4ifJCmMzoerH1nrcmBcsO5nhcFEUdG6iXYyzw0lf/yTYCg2NMzlajMq3chBoNvrWS3PqxL6Ksm8eP2RRcL9e3Df5/huRSEhh8AIhlQ+/vV5/N4qzF7S4HDnC3amoCEF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2018 17:14:11.3251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ddb4f9b-09b3-4cb7-94ec-08d57d3c5ad6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0168 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.36.137 Subject: [Qemu-devel] [PATCH 8/8] WHPX improve interrupt notification registration X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> From: "Justin Terry \(VM\) via Qemu-devel" <qemu-devel@nongnu.org> Reply-To: "Justin Terry \(VM\)" <juterry@microsoft.com> Cc: pbonzini@redhat.com, "Justin Terry \(VM\)" <juterry@microsoft.com>, ehabkost@redhat.com, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c index 24387bebad..940bbe590d 100644 --- a/target/i386/whpx-all.c +++ b/target/i386/whpx-all.c @@ -756,12 +756,11 @@ static void whpx_vcpu_pre_run(CPUState *cpu) } /* Update the state of the interrupt delivery notification */ - if (cpu->interrupt_request & CPU_INTERRUPT_HARD) { + if (!vcpu->window_registered && + cpu->interrupt_request & CPU_INTERRUPT_HARD) { reg_values[reg_count].DeliverabilityNotifications.InterruptNotification = 1; - if (vcpu->window_registered != 1) { - vcpu->window_registered = 1; - } + vcpu->window_registered = 1; reg_names[reg_count] = WHvX64RegisterDeliverabilityNotifications; reg_count += 1; }
Improves the usage of the InterruptNotification registration by skipping the additional call to WHvSetVirtualProcessorRegisters if we have already registered for the window exit. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> --- target/i386/whpx-all.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)