From nobody Wed Feb 11 07:33:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1491108800791585.9232869094624; Sat, 1 Apr 2017 21:53:20 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 49352C065846; Sun, 2 Apr 2017 04:53:18 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0949E18EFF; Sun, 2 Apr 2017 04:53:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 85B8B5EC63; Sun, 2 Apr 2017 04:53:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v324pVit019149 for ; Sun, 2 Apr 2017 00:51:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7C0CB17CCD; Sun, 2 Apr 2017 04:51:30 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 758325DD6A for ; Sun, 2 Apr 2017 04:51:29 +0000 (UTC) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 85DE280F6D for ; Sun, 2 Apr 2017 04:50:58 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id p22so93442275qka.3 for ; Sat, 01 Apr 2017 21:50:56 -0700 (PDT) Received: from dawid-fedora.datto.lan ([47.19.105.250]) by smtp.gmail.com with ESMTPSA id c10sm6934829qka.1.2017.04.01.21.50.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Apr 2017 21:50:51 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 49352C065846 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=datto.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 49352C065846 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=datto-com.20150623.gappssmtp.com header.i=@datto-com.20150623.gappssmtp.com header.b="M5wPT/fq" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 85DE280F6D Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=datto.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dzamirski@datto.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 85DE280F6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datto-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZnBGKfqBXblb18P0HCOeOCkcTPM840zzG60UQTXjD7k=; b=M5wPT/fq8puk0yP7A8pUifrZ8nJk9gaqfrE8jmvj7PnctPmfTSHnad3I/ouTP+JasV cRIw1h59pQeMeRx2CSL8Pm0Bgx7ON3aFcdpZQGISrdHghrKptx+4yU5/bLuhTJJTsUGZ U7Ti2uzpFnToz0HSEfdwIckXBLZi/aNctHH7FnXlxHrLISKRny2YtG6fZHaosv0UI+jP lh933KeEAihxgye8GILXyG0XXAduDuCZU+KVCxgAfeukMxVq+0tc1UTvmczSwFeO6KZP qnht85a+43xe2YpZ28a34MqJHrZM7GaJcQkehqRSCbvOtX8zCQJZUpu33YNiq0ioNvpx AN2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZnBGKfqBXblb18P0HCOeOCkcTPM840zzG60UQTXjD7k=; b=h1d3vOCl6RN4dCe07AWOmoXb1+/mI+GqoFcJO68zFty13Fq2PdCoyseRIaVpC/Smmj Ay4CrxuXvv+rRv2Lzfx0d0ofWpqd2JryTL2kRS5YOgv5yOjLoFrrDBDKyb6HgnRa9XCa a6Rl5E0SaTn8wE1uxp/930EQs2QVkVjFOUPztRhcUrhiDXm8spr7Do/pRnsk6VfoaZqI j6UVPQhP/fp8QKPieLi7odKFhvUjTd7l5G8OAADppdoiIiH36aRSARfOgiywjZJ5pAv4 q4k5iyPsI5jyaBuTiUSPH/FScU7J7CQJi33j6G5X6Ib+akEqupyZuW4uxghsHTOP/s16 tZUg== X-Gm-Message-State: AFeK/H0fQAZDIFGICS0j1LUXu5gvZ0EHF62iM7cROIobL0M4O3yhzWScNCVbzQQ5hE3j7+Qj X-Received: by 10.55.49.130 with SMTP id x124mr11085064qkx.63.1491108651548; Sat, 01 Apr 2017 21:50:51 -0700 (PDT) From: Dawid Zamirski To: libvir-list@redhat.com Date: Sun, 2 Apr 2017 00:50:40 -0400 Message-Id: <20170402045049.19631-2-dzamirski@datto.com> In-Reply-To: <20170402045049.19631-1-dzamirski@datto.com> References: <20170402045049.19631-1-dzamirski@datto.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Sun, 02 Apr 2017 04:51:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Sun, 02 Apr 2017 04:51:05 +0000 (UTC) for IP:'209.85.220.170' DOMAIN:'mail-qk0-f170.google.com' HELO:'mail-qk0-f170.google.com' FROM:'dzamirski@datto.com' RCPT:'' X-RedHat-Spam-Score: 0.389 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_PASS) 209.85.220.170 mail-qk0-f170.google.com 209.85.220.170 mail-qk0-f170.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Sri Ramanujam Subject: [libvirt] [PATCH v2 01/10] hyperv: store WMI version in hypervPrivate. X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 02 Apr 2017 04:53:19 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Hyper-V 2012+ uses a new "v2" version of Msvm_* WMI classes so we will store that info in hypervPrivate so that it is easily accessbile in the driver API callbacks and handled accordingly. --- src/hyperv/hyperv_private.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hyperv/hyperv_private.h b/src/hyperv/hyperv_private.h index 574bb5f..4e70699 100644 --- a/src/hyperv/hyperv_private.h +++ b/src/hyperv/hyperv_private.h @@ -28,11 +28,17 @@ # include "hyperv_util.h" # include "openwsman.h" =20 -typedef struct _hypervPrivate hypervPrivate; +typedef enum _hypervWmiVersion hypervWmiVersion; +enum _hypervWmiVersion { + HYPERV_WMI_VERSION_V1, + HYPERV_WMI_VERSION_V2, +}; =20 +typedef struct _hypervPrivate hypervPrivate; struct _hypervPrivate { hypervParsedUri *parsedUri; WsManClient *client; + hypervWmiVersion wmiVersion; }; =20 #endif /* __HYPERV_PRIVATE_H__ */ --=20 2.9.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list