From nobody Wed May 14 02:45:29 2025 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.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15264600088251019.7878190824332; Wed, 16 May 2018 01:40:08 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2E7C3177BD6; Wed, 16 May 2018 08:40:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6908D98F76; Wed, 16 May 2018 08:40:06 +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 CA0F31801250; Wed, 16 May 2018 08:40:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4G8dk99018381 for ; Wed, 16 May 2018 04:39:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3C8D92166BCC; Wed, 16 May 2018 08:39:46 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1ABE02166BAD for ; Wed, 16 May 2018 08:39:46 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id CDBB7102EEA; Wed, 16 May 2018 10:39:42 +0200 (CEST) From: Jiri Denemark To: libvir-list@redhat.com Date: Wed, 16 May 2018 10:39:32 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 13/22] remote: Implement virConnectBaselineHypervisorCPU 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.84 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 16 May 2018 08:40:08 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark Reviewed-by: J=EF=BF=BDn Tomko --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 21 ++++++++++++++++++++- src/remote_protocol-structs | 15 +++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index acefe8c457..d106a18510 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -8450,6 +8450,7 @@ static virHypervisorDriver hypervisor_driver =3D { .domainSetBlockThreshold =3D remoteDomainSetBlockThreshold, /* 3.2.0 */ .domainSetLifecycleAction =3D remoteDomainSetLifecycleAction, /* 3.9.0= */ .connectCompareHypervisorCPU =3D remoteConnectCompareHypervisorCPU, /*= 4.4.0 */ + .connectBaselineHypervisorCPU =3D remoteConnectBaselineHypervisorCPU, = /* 4.4.0 */ }; =20 static virNetworkDriver network_driver =3D { diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 0aa123b5ac..ff28cec50f 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -3461,6 +3461,19 @@ struct remote_connect_compare_hypervisor_cpu_ret { int result; }; =20 +struct remote_connect_baseline_hypervisor_cpu_args { + remote_string emulator; + remote_string arch; + remote_string machine; + remote_string virttype; + remote_nonnull_string xmlCPUs; /* (const char= **) */ + unsigned int flags; +}; + +struct remote_connect_baseline_hypervisor_cpu_ret { + remote_nonnull_string cpu; +}; + /*----- Protocol. -----*/ =20 /* Define the program number, protocol version and procedure numbers here.= */ @@ -6154,5 +6167,11 @@ enum remote_procedure { * @generate: both * @acl: connect:write */ - REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU =3D 392 + REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU =3D 392, + + /** + * @generate: both + * @acl: connect:write + */ + REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU =3D 393 }; diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index 64e48c52ba..99251ac0e8 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -2888,6 +2888,20 @@ struct remote_connect_compare_hypervisor_cpu_args { struct remote_connect_compare_hypervisor_cpu_ret { int result; }; +struct remote_connect_baseline_hypervisor_cpu_args { + remote_string emulator; + remote_string arch; + remote_string machine; + remote_string virttype; + struct { + u_int xmlCPUs_len; + remote_nonnull_string * xmlCPUs_val; + } xmlCPUs; + u_int flags; +}; +struct remote_connect_baseline_hypervisor_cpu_ret { + remote_nonnull_string cpu; +}; enum remote_procedure { REMOTE_PROC_CONNECT_OPEN =3D 1, REMOTE_PROC_CONNECT_CLOSE =3D 2, @@ -3281,4 +3295,5 @@ enum remote_procedure { REMOTE_PROC_DOMAIN_SET_LIFECYCLE_ACTION =3D 390, REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_TARGET_PATH =3D 391, REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU =3D 392, + REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU =3D 393, }; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list