From nobody Mon Feb 9 03:16:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1522071595376738.0773879028998; Mon, 26 Mar 2018 06:39:55 -0700 (PDT) Received: from localhost ([::1]:56808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0SLq-0000Wl-1L for importer@patchew.org; Mon, 26 Mar 2018 09:39:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0SIv-0006TD-9u for qemu-devel@nongnu.org; Mon, 26 Mar 2018 09:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0SIt-0006tS-Sf for qemu-devel@nongnu.org; Mon, 26 Mar 2018 09:36:53 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:33362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0SIt-0006s4-Ly for qemu-devel@nongnu.org; Mon, 26 Mar 2018 09:36:51 -0400 Received: by mail-wr0-x244.google.com with SMTP id z73so18974107wrb.0 for ; Mon, 26 Mar 2018 06:36:51 -0700 (PDT) Received: from 640k.lan (94-36-194-48.adsl-ull.clienti.tiscali.it. [94.36.194.48]) by smtp.gmail.com with ESMTPSA id g186sm6710105wmd.41.2018.03.26.06.36.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 06:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Re3Io6EBGAuZii2NendGL6XdvSDYjEf6+aFU27H5YGs=; b=XgFKoDTdLPYNAcjQ52rZC+BFn3u9mkafzQoT+zkD4yoaG4kt5akfmeZkg3kDNt1sCp 2p+VGpkG3cjV0So1V3VHFSAdlNQkQF17fdFmezCELZCq+Kyr/koLhfKLtl8hWu7tVyV3 v9TDikPGGGOpzciaOrfWBw6ZL+bCSJ/U0e+cnraba/9SUwuQiNmMglGfLupz5Wc8S0+u 2eFTdOdh06xUOd+cIyxG1ha4jss7mGWEOraT00JhiJQhSeFkGARzvuiHvulo5Xcn+K1G +pt57UYdfYJoMzTkGIYrcVZoWaXn/Iz8SlKTXrEoOYHIB8ANOLP7LjyMwfk7YpS5X/uM xDUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Re3Io6EBGAuZii2NendGL6XdvSDYjEf6+aFU27H5YGs=; b=NCjomAJI+zYa3iNeQYRlwXVE4fWgCr/AfB0E9MqL0UabsludpbDIGHJ8uzzeUKnGjF oinz4oEsw/C4Lfd+O3bEMYPFuDohZ9xfJdH+ZLWP4U9dIX9X3V/CtBV8rFb3JMz5Sl/1 rWDXTa4H05MBiHtExewFtQbE4fJ60vW1vbdWSMFOQCFtN4+GyRYajCQ8N0CfQgafskeS KhaAYek24ODabDBmi9dXMkbROx2kYKZqxCkgwK31ytU3H8UkzYfv0kF+GEQBQ4zcR5gt 0FJtuB8UPrjcHyxUV41hbsjj4f+hF8n400DDzpfPJYZnmJ7FGR485nQutpvw2j5ma6j4 GprA== X-Gm-Message-State: AElRT7F5O6tNob0tdspxtrX5f7GSBuZWkMLRaTJhOGZFP97la/i9SMYj 9t48Lc/1Kdvl9aDZR1t8Yj2bxCpW X-Google-Smtp-Source: AG47ELvvBPrg8V95qTRWTNBd3T0E6s65YDn0WDvKvgXfYTNLWaFjzWK/Fdu1oENme7IDSaCzZ/ksSQ== X-Received: by 10.223.195.124 with SMTP id e57mr28990175wrg.135.1522071410200; Mon, 26 Mar 2018 06:36:50 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 26 Mar 2018 15:36:30 +0200 Message-Id: <1522071403-52486-4-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1522071403-52486-1-git-send-email-pbonzini@redhat.com> References: <1522071403-52486-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PULL 03/16] WHPX fix WHvSetPartitionProperty in PropertyCode 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: "Justin Terry \(VM\)" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Justin Terry (VM)" 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 passe= d 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) Message-Id: <1521039163-138-3-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini --- target/i386/whpx-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c index 2080d58..63e6e1b 100644 --- a/target/i386/whpx-all.c +++ b/target/i386/whpx-all.c @@ -1278,9 +1278,9 @@ static int whpx_accel_init(MachineState *ms) } =20 memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); - prop.PropertyCode =3D WHvPartitionPropertyCodeProcessorCount; prop.ProcessorCount =3D smp_cpus; hr =3D WHvSetPartitionProperty(whpx->partition, + WHvPartitionPropertyCodeProcessorCount, &prop, sizeof(WHV_PARTITION_PROPERTY)); =20 --=20 1.8.3.1