Message ID | 1521039163-138-3-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 8EED160211 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Mar 2018 14:56:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FC75289B9 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Mar 2018 14:56:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 746EB289BE; Wed, 14 Mar 2018 14:56:37 +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 EF343289B9 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 14 Mar 2018 14:56:36 +0000 (UTC) Received: from localhost ([::1]:46667 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 1ew7pU-0005ve-7j for patchwork-qemu-devel@patchwork.kernel.org; Wed, 14 Mar 2018 10:56:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <juterry@microsoft.com>) id 1ew7mI-0002fT-LG for qemu-devel@nongnu.org; Wed, 14 Mar 2018 10:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <juterry@microsoft.com>) id 1ew7mE-0001AY-Fs for qemu-devel@nongnu.org; Wed, 14 Mar 2018 10:53:18 -0400 Received: from mail-co1nam03on0105.outbound.protection.outlook.com ([104.47.40.105]:27552 helo=NAM03-CO1-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 1ew7mE-00018f-8K for qemu-devel@nongnu.org; Wed, 14 Mar 2018 10:53:14 -0400 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=hVg3LUiqHx2kDIgItwk278RFUHRyEl0Eh+oo/8Gi9SQ=; b=WbPNpCIO+rFP7Wp0nnFbi7vdLr1E859BgEwgRd39xpFTAhf/snsEToi0/Lg4XYfHNRvGKt7toY02dNU/6vLPSpTC7kq5oJe9M7Nx3YBCauxFZaJHTU8AsIrywWdrtsJS8hv5JtMcuoT6OiO9iZ2HDq+mZ8/DZx9qV+I6LAB5HDY= Received: from DESKTOP-CS4P60I.corp.microsoft.com (2001:4898:80e8:d::573) by DM5PR21MB0171.namprd21.prod.outlook.com (2603:10b6:3:a5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.2; Wed, 14 Mar 2018 14:53:10 +0000 To: qemu-devel@nongnu.org Date: Wed, 14 Mar 2018 07:52:42 -0700 Message-Id: <1521039163-138-3-git-send-email-juterry@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521039163-138-1-git-send-email-juterry@microsoft.com> References: <1521039163-138-1-git-send-email-juterry@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2001:4898:80e8:d::573] X-ClientProxiedBy: SN2PR01CA0002.prod.exchangelabs.com (2603:10b6:804:2::12) To DM5PR21MB0171.namprd21.prod.outlook.com (2603:10b6:3:a5::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6cdc97ab-2527-42cc-70b7-08d589bb4e94 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:DM5PR21MB0171; X-Microsoft-Exchange-Diagnostics: 1; DM5PR21MB0171; 3:Wv2ofUV4wMEjXnzgnbMF/l7ma6hTNDH0jz+DQ3THxkFEo0jSOlfH19C9OQlfZVh3sqTw9LmQL97iC1XxgTN9bPs/G2QTF8X4nP+i6nenf1Ze/5M9jiclJPR2p/x5h0642z7N9rNcSDTtUd6MVIFv+UZZQjD7ShGSZMBoFxq+1w9BOJGgghjls0yzNffNgBLdaS/MEIegicxebr+1CdJ9xeFKa8F7/CYFIEDWgbfYJd33iHWIS88Qi7TdeyUStuLy; 25:K0Me2tnD6s1anC0+LbvtSLws33LVpWgmhdK+FwARcTAfxbOs4+DInUqw1KLqbh5i1HzJnmjptyRnMm4Gm+mdPNSrpr/M6cCi6s/RYEBU2uvQELrl7J5Da+QAP87gZN3FEdoShuVgs6QJcdQg3vu1Fevt8Yr2kDohaDbcJM5UQ0mpqWc0573Oep3oImJFzLy44n3gJBfgAmU+jisC4gg/ZfASXn59RYZnGD7hDiyRWwXb9KoUl+0wk7tC/ak/SeCmaZL/J8aYXsDXoDX7UpiT+Yk3GNiFn6g1UWqySBSTxpXp+oN12C/AvhzKujd8qwmgWrh6YOCLAgrbAf32e9eDMQ==; 31:bg12qylbe9pOqoXbj/WH4HyXptEJeX4JiYNSV8m1VAQXa29fbFeCij2xhwReMRlD9DoTJR8bJ8UYCDcNAXlm8pq63haqLi1Xs0XAllcKOpL9gISy95p+y/fsPcbRi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5PR21MB0171DF17E853C9E1D8D00452B6D10@DM5PR21MB0171.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)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231221)(944501260)(52105095)(6055026)(61426038)(61427038)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:DM5PR21MB0171; BCL:0; PCL:0; RULEID:; SRVR:DM5PR21MB0171; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6029001)(39860400002)(346002)(366004)(376002)(39380400002)(396003)(189003)(199004)(36756003)(2906002)(22452003)(59450400001)(25786009)(16526019)(46003)(52396003)(16586007)(316002)(86362001)(51416003)(6346003)(8676002)(6486002)(186003)(7696005)(8936002)(52116002)(50226002)(5660300001)(10090500001)(305945005)(386003)(53936002)(105586002)(76176011)(81156014)(81166006)(10290500003)(6116002)(7736002)(68736007)(2351001)(106356001)(2361001)(107886003)(47776003)(4326008)(2950100002)(6666003)(6916009)(478600001)(48376002)(86612001)(97736004)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR21MB0171; 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; DM5PR21MB0171; 23:I6geoi/BpNnZwNPa22A0lSjEhngvmpDDXn0HZEf8n?= =?us-ascii?Q?hMsptDH+6kTSZ1/8d5mbCBg0Mzwk9cp9e2E+kaIuH5jBL+QdCTJyUbR7SMCa?= =?us-ascii?Q?P9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OWffBLOKx?= =?us-ascii?Q?8CeVKf4/uf/G9QD6Ns21aVYNC58+8qfxI8vRq9zVkbddWHYUPPNmxy0ebp+o?= =?us-ascii?Q?5uDPgxM4/ukuyTW9NNZD86rNbQUgIE8vkH+jg60Lqd4cug9w21yWMpD561D5?= =?us-ascii?Q?6lceVhBRwdvtzIaFc0N9APFE3kFwWF62DghTr+ARokzaFGz4Na99409378X4?= =?us-ascii?Q?Snc3jgVxteIyFL+zPwclqfQRVjVXo57zaH2EzDOiO2fuDFAL5/hWcyaWoHOe?= =?us-ascii?Q?MCR4tbOJPmzxQXcjP44xYCS/CJww2rj6Yx4oZXe8eA79/cAmzOElUmFE42Vi?= =?us-ascii?B?QT09?= X-Microsoft-Antispam-Message-Info: 8KsnFAfzUs2GS6SocZM0l7FkBpipEzPwk9yV0VsM8laMoXJOsXj83wMRtoaaCx5vvcqDHyoHhKEtmQGRU/LvV8YrE4/puQEhxEO3fChHCK2A+BcVYAFmGOJrijfW89+OddSIBq15f6n52VnnHU8uBfI8PZZYXokBI6eTTWA4wtOtIabHSobRMFF6tRLRnHB+ X-Microsoft-Exchange-Diagnostics: 1; DM5PR21MB0171; 6:PyWKoCD2XXAW89aN6kqYlQMf/XtcXqoeeAIRLpHL38Poc8ivLDWaUj01VWFosUbWYLPa0HmhBjdLWu48DVZtkFapq03wBJl/yYv7EGFDPA8h8snes94llMBMvCioohsskr5hZp7HCL9BwTwGS318m5qr7+oFVUK+5FMEioCRDa31HMV+bm+hLySWTl/Sx/BwfEu2ln9vM+SSSz1EWP5gP4jmRneYCDXBHzXxPk8BflbcTI3A6dtpoj+YzDp+5MFpfVWJEWuHXKg91aezPS/hMH2PPubaS6+7vVekD7b2068IDr+s1qVJNQVkSVsYQYzbNtK4gS9Q6HQR7H5oYruo4Tpv8pkyBH4ODoQaIgaSHSzFtUrP6k5VAuRgnReIHwA0ij2XUzXkxbPrLRChUpR1av2AYfaQgWkQ3RWN/NiPfzn0XiNjyx8xPxCW8YwAAXsvEeptkEaaSAHanjQGkiRZtA==; 5:vN2WRnAOBol4scCTNDW5PR1SyRG7dSpXPEgIQT/ZTf+IEVHYJsNUWyzdEwNKODv6EpY3ol0sBrr4Xq/x+CjCuNS4Q9eAxDAxYrUAra53h8wAXsvn4Gc9qNW30iJq2R/GXmVe8NWuj1y6WvE4U5DIGGEh5pfE/2PLSUyPagePgds=; 24:ZhJk2CgPkCkm+ydcwA6flZn5dSQ7jZYQrdvoonlWayiSeBtOfAW4pCdi9vfm5Y72PkoUI2uv3+SKpx6+Cg2ntp7n5cXyoQDUsTTBrEkV20I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR21MB0171; 7:6tng2UHr8CgGXTfnj77zxjkan6a+GN2+YujTiyev9MJ6zdCFSsfLvO9dTuGBl640L7JQ/lasGW1YVeAZnZLp0uF6TZD+TRydPiTW75M8hxuorMHxBoVhCE5l95FcrULWrwCgwNuTZjoPwqEWQk7/9RnoDbiXpVaQ9ABflt0Z63uzt10jPqk/zjYKJEvc/LoiWfcb8LVMSfa2aX/kJThvXiMt64/D4drzZEvd/cbgdZYOIsCdi35llrdo5x60oj1i; 20:iK814HtjIOfEG+QYegY4zUfxadoa+3xJholVO8E/Qai8iNlqcoesvunzz6NRXtjVEO8+l+ntuZ5SJVSahV/SArBEtzcUZ7waJH2jNyYTdlyRKrHPVRjWD278H/4JE0yl8jHmCYc6zRWe9TViGpQSWTOzz8BKy3RxSOGteEx9F+c= X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 14:53:10.7769 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6cdc97ab-2527-42cc-70b7-08d589bb4e94 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0171 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.40.105 Subject: [Qemu-devel] [PATCH 2/3] WHPX fix WHvSetPartitionProperty in PropertyCode 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 2080d58c4c..63e6e1b6f2 100644 --- a/target/i386/whpx-all.c +++ b/target/i386/whpx-all.c @@ -1278,9 +1278,9 @@ static int whpx_accel_init(MachineState *ms) } memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); - prop.PropertyCode = WHvPartitionPropertyCodeProcessorCount; prop.ProcessorCount = smp_cpus; hr = WHvSetPartitionProperty(whpx->partition, + WHvPartitionPropertyCodeProcessorCount, &prop, sizeof(WHV_PARTITION_PROPERTY));
This fixes a breaking change to WHvSetPartitionProperty to pass the 'in' PropertyCode on function invocation introduced in Windows Insider SDK 17110. Usage of this indicates the PropertyCode of the opaque PropertyBuffer passed in on function invocation. Also fixes the removal of the PropertyCode parameter from the WHV_PARTITION_PROPERTY struct as it is now passed to the function directly. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> --- target/i386/whpx-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)