From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937358; cv=none; d=zohomail.com; s=zohoarc; b=KhoEg4KZIns4uSLr2hrx/yxDrxtr+GnkKUKHKdkvP7TloAagHli8xB5T0AXIgK3ThKsn0Ophf1u2cb92bFXAYCg1K/fWrSPCITw0Bf+xB+WJhfw8jJbQFgmF3RcKaVetrQRs2ZUeeMegrHHRIZAX01sAPz5RKlXVbnLgYC4LcSU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937358; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=AXvp8R9Iagafl8Da7HoIjd6v5dtfSSiFFn8V178MXAk=; b=Oy/9EFwXbojbl9C112ciHKsx3eve3bhDpCRJJBBnceLuvQ9byyv5BrwO0XWYJ8EYd3y49ASLeavWMflZ6VB2iZK8jbxv+w2irPvJLqmsl9g+OCui2WuomYaMNMeO6s0SVRWUKhjFQwyJZZbjwxwbxcnvVX5iLSs50hGGBBmzga0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1637937358807445.28420665601163; Fri, 26 Nov 2021 06:35:58 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-317-n4Xq4ejhMGulOzRZMxt9KA-1; Fri, 26 Nov 2021 09:35:55 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1419919251A3; Fri, 26 Nov 2021 14:35:49 +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 D58F65F4ED; Fri, 26 Nov 2021 14:35:47 +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 923A61809C8A; Fri, 26 Nov 2021 14:35:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEZha4020689 for ; Fri, 26 Nov 2021 09:35:43 -0500 Received: by smtp.corp.redhat.com (Postfix) id DD56D5F4ED; Fri, 26 Nov 2021 14:35:43 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 32BE25F4E1; Fri, 26 Nov 2021 14:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937357; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AXvp8R9Iagafl8Da7HoIjd6v5dtfSSiFFn8V178MXAk=; b=LTli36uWpEk2eRQ6uAfIzSSTamK28NUJIbHBlyJoxi7NiIEvHhdk6lLcUPHTmrf9D+DFnm mZZLBuOi3jwzFyeOM6VkmMU4jc8xYmgXFPlF0+qncPaahPEPr2ejcskQYagqa+Jh+z8LyR seaGJTtul2dJGQduhK1mZcl6iiRme3A= X-MC-Unique: n4Xq4ejhMGulOzRZMxt9KA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 01/10] schema: Wrap hyperv element in choice and group Date: Fri, 26 Nov 2021 15:34:53 +0100 Message-Id: <20211126143502.94574-2-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937359435100001 Content-Type: text/plain; charset="utf-8" This does not change the schema, but will make upcoming changes easier. Signed-off-by: Tim Wiederhake --- docs/schemas/domaincommon.rng | 164 +++++++++++++++++----------------- 1 file changed, 84 insertions(+), 80 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index f01b7a6470..3d57d417ca 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -7087,90 +7087,94 @@ - - - - - - - - - - - - - - + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [^,]{0,12} - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [^,]{0,12} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =20 --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937370; cv=none; d=zohomail.com; s=zohoarc; b=lrx8WhdzTDXYFInQJWmKZoBxa+S6O3FuD7lNa7lqtnl8wkgrim85WW/ITJ8RwJU7X1VlpVcBBLHl4+JsgpyFXdjfvgmqlSq8/X9VGgRdzCXD95sgqEqvKVqpFvgnl/gcXzx/sw9p+yirJSdhtZrOYsRPMwPCdT9wMeh3c4i0C0A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937370; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=tCH3zsgf924t8nH5F+Ib7Q/x5t09VhE6RKUrBFXfMkk=; b=GQnll4AjLc1iBcPVzS8HkWmrroNcoCN/UtkcGmHre0PeV7xY97DybxbZOg6/Dbn/aSa20mI6jf9Kdre4mxwnN+kEWSXZ7oM+tWflql7MhSwdGTsDl3SJu5HDYbU/99DTCjC2OjEC4gl/fYJBdQeow/rYu5G0gBXr1rwVK+vY3lo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 16379373708631010.4020305470926; Fri, 26 Nov 2021 06:36:10 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-121-z7XFuuHFNyGnGRDenwQ8ew-1; Fri, 26 Nov 2021 09:36:06 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B379805747; Fri, 26 Nov 2021 14:36:01 +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 3B74619C79; Fri, 26 Nov 2021 14:36:01 +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 0F7E21809CBA; Fri, 26 Nov 2021 14:36:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEZiKV020713 for ; Fri, 26 Nov 2021 09:35:44 -0500 Received: by smtp.corp.redhat.com (Postfix) id E89215F4ED; Fri, 26 Nov 2021 14:35:44 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CC7E5F4E1; Fri, 26 Nov 2021 14:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937369; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=tCH3zsgf924t8nH5F+Ib7Q/x5t09VhE6RKUrBFXfMkk=; b=XbEIYRP/0aR+KRMpE7dCuKDQ8kRn7kJZ2FyZ2+j7vfKbLkM59MsAYPc+QmUSuc5gzm5UNf 1CRpeCGl77srsy6f4oOZp4+IoLCh1lCKGTnzuLaOwOANcV3aGUozqwJz+sbXMQG4TP9A+O drVBkpJQ2ZhQ9HIKLNYz0mqi+bcxurI= X-MC-Unique: z7XFuuHFNyGnGRDenwQ8ew-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 02/10] schema: Add optional "mode" attribute to hyperv Date: Fri, 26 Nov 2021 15:34:54 +0100 Message-Id: <20211126143502.94574-3-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937372982100001 Content-Type: text/plain; charset="utf-8" Allow for an optional attribute "mode", set to the string "custom". Later patches will introduce different modes. Omitting this attribute will default to "custom" for backwards compatibility. Signed-off-by: Tim Wiederhake --- docs/schemas/domaincommon.rng | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 3d57d417ca..14a4f528ab 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -7089,6 +7089,11 @@ + + + custom + + --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937360; cv=none; d=zohomail.com; s=zohoarc; b=YMgef0gJh6GMyYs2NiPdJcvsyqxcwJRkFqwQYHAzX6OkVLA5Vepd0mlF6Y+nV9RXxz3AqLOr8YgI2GerQCvxGWqBOYZhhrTNO1JhMvnTf6KUHSJrmV6kLbtOgyNAkG0s1Qh7yX/0Qbe/rK85JnYA9sMScU3Hw0pl6dnC2jwhyXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937360; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2YQLCtka4F0zyuyx+BXTYFxdUAylIfnxWFsgpctRv6I=; b=m0MGSXFa95jn/4XMphPbCdoaErTjr3wMJAcg1Qj6eMH+31w+W63jvkbwKWU39jheTwOKzpL5C1YmdOafC1pQ5mh/ltr70V4M8gx0dvqGj9HAtjoeoCN8cbcSoAnl0oUyJXNa2nxXmCT5ObwdJ4Oz3iFCUofHQCwFyxobH64CTDM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 16379373599971015.9114047561028; Fri, 26 Nov 2021 06:35:59 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-fgFgbvr_P5iMaTlDlrcSxA-1; Fri, 26 Nov 2021 09:35:55 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 752411006AA3; Fri, 26 Nov 2021 14:35:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2CDF319C46; Fri, 26 Nov 2021 14:35:49 +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 573CC4CA93; Fri, 26 Nov 2021 14:35:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEZkBR020728 for ; Fri, 26 Nov 2021 09:35:46 -0500 Received: by smtp.corp.redhat.com (Postfix) id 018015F4ED; Fri, 26 Nov 2021 14:35:46 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 476CD5F4E1; Fri, 26 Nov 2021 14:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937358; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2YQLCtka4F0zyuyx+BXTYFxdUAylIfnxWFsgpctRv6I=; b=ezlVBsBbitT2rVxkDQz0LSqdXNzr5a4zoleqGkxGbA9TVaRjil6Ydz7Uavxd09jeF4oF6Q CvTytRhlRZQv1hbku53Q3a5NFPc++9pI1LIorBOJ1ZgNDrbz5bQapWfPoAkAVkRw0hWDIV K2mkYrE0Mn4lDbnYdOQye3T3fwOxKvc= X-MC-Unique: fgFgbvr_P5iMaTlDlrcSxA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 03/10] conf: domain: Define enum for HyperV mode Date: Fri, 26 Nov 2021 15:34:55 +0100 Message-Id: <20211126143502.94574-4-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937361811100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 6 ++++++ src/conf/domain_conf.h | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f88405ab02..74d86a346a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -137,6 +137,12 @@ VIR_ENUM_IMPL(virDomainOS, "xenpvh", ); =20 +VIR_ENUM_IMPL(virDomainHyperVMode, + VIR_DOMAIN_HYPERV_MODE_LAST, + "none", + "custom", +); + VIR_ENUM_IMPL(virDomainBoot, VIR_DOMAIN_BOOT_LAST, "fd", diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index c4a8dcc2ea..169fc17039 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -155,6 +155,13 @@ typedef enum { } virDomainOSType; VIR_ENUM_DECL(virDomainOS); =20 +typedef enum { + VIR_DOMAIN_HYPERV_MODE_NONE =3D 0, + VIR_DOMAIN_HYPERV_MODE_CUSTOM, + + VIR_DOMAIN_HYPERV_MODE_LAST +} virDomainHyperVMode; +VIR_ENUM_DECL(virDomainHyperVMode); =20 struct _virDomainHostdevOrigStates { union { --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937373; cv=none; d=zohomail.com; s=zohoarc; b=KI1SsI6abUTF526X4Brsn7qdYMg0JkXvMVlExzS5RLfLXLkMWJBQ2LV8MmpvlM4JSymcdNzNP10q8FfOa6lSNXDXVvCz8Xl38A1OJ8mpnKzvUnN6q8cgtfTH0mj5g5KgVLq3zV7TYFJYb9rD3qm8+DLttGiJLErdBCO5Sd9/8GQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937373; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zuTSaLoOSVo+d6i19caG5vH32LJ9ke3/cDOPBvYW7OE=; b=kYDHzvP3XQD29OQ2jUwkxx73b1Dz5nM0kc4Rc5JAXlW4QsUgUWMQcYubF8VqPdiEQfn6EqnNEFDHzWh3/5U7kymcBnlS0qDJ3vxukRY9vVbomIpuT08+MEpWZhQ2ggEiH0IvjL/dA2AQUypObf/MXGliQ5TWmDHj9KrY2ienz8U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937373619173.332647095845; Fri, 26 Nov 2021 06:36:13 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-60-IVDqf7MTM3yEr0EJKyvZRg-1; Fri, 26 Nov 2021 09:36:10 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7521080573B; Fri, 26 Nov 2021 14:36:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B41C7ACE0; Fri, 26 Nov 2021 14:36:04 +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 25DA94A7CD; Fri, 26 Nov 2021 14:36:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEZlKt020738 for ; Fri, 26 Nov 2021 09:35:47 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0A72D5F4EF; Fri, 26 Nov 2021 14:35:47 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 542575F4ED; Fri, 26 Nov 2021 14:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937372; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zuTSaLoOSVo+d6i19caG5vH32LJ9ke3/cDOPBvYW7OE=; b=RUjb9uuYue4lYDvg7G3mP70jGOm+IeqWgRnWlWSxVSdbvcjSHK6tgx1izX8ymH4KQ3REJc AbwMU6389oKSsjT1CSi6CMwXIx/4oia8ut41x066o0DwqP/sCPNXY0dlLHawDWLnNaXyHj QrOSAcrB2Zi9ALGrWgXtnGzksTT2q3o= X-MC-Unique: IVDqf7MTM3yEr0EJKyvZRg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 04/10] virDomainFeaturesHyperVDefParse: Read attribute "mode" of element "hyperv" Date: Fri, 26 Nov 2021 15:34:56 +0100 Message-Id: <20211126143502.94574-5-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937376135100001 Content-Type: text/plain; charset="utf-8" Currently, this attribute may either have a value of "custom", or be absent (which defaults to "custom"), for backwards compatibility. Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 11 +++++++++-- src/qemu/qemu_command.c | 2 +- src/qemu/qemu_validate.c | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 74d86a346a..0ea00955c5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -17453,7 +17453,14 @@ static int virDomainFeaturesHyperVDefParse(virDomainDef *def, xmlNodePtr node) { - def->features[VIR_DOMAIN_FEATURE_HYPERV] =3D VIR_TRISTATE_SWITCH_ON; + virDomainHyperVMode mode; + + if (virXMLPropEnumDefault(node, "mode", virDomainHyperVModeTypeFromStr= ing, + VIR_XML_PROP_NONZERO, &mode, + VIR_DOMAIN_HYPERV_MODE_CUSTOM) < 0) + return -1; + + def->features[VIR_DOMAIN_FEATURE_HYPERV] =3D mode; =20 node =3D xmlFirstElementChild(node); while (node !=3D NULL) { @@ -21703,7 +21710,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, } =20 /* hyperv */ - if (src->features[VIR_DOMAIN_FEATURE_HYPERV] =3D=3D VIR_TRISTATE_SWITC= H_ON) { + if (src->features[VIR_DOMAIN_FEATURE_HYPERV] !=3D VIR_DOMAIN_HYPERV_MO= DE_NONE) { for (i =3D 0; i < VIR_DOMAIN_HYPERV_LAST; i++) { switch ((virDomainHyperv) i) { case VIR_DOMAIN_HYPERV_RELAXED: diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 7a185061d8..0d62a735f6 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6788,7 +6788,7 @@ qemuBuildCpuCommandLine(virCommand *cmd, VIR_TRISTATE_SWITCH_ON ? "on" : "off"); } =20 - if (def->features[VIR_DOMAIN_FEATURE_HYPERV] =3D=3D VIR_TRISTATE_SWITC= H_ON) { + if (def->features[VIR_DOMAIN_FEATURE_HYPERV] !=3D VIR_DOMAIN_HYPERV_MO= DE_NONE) { for (i =3D 0; i < VIR_DOMAIN_HYPERV_LAST; i++) { switch ((virDomainHyperv) i) { case VIR_DOMAIN_HYPERV_RELAXED: diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 397eea5ede..9dc8be02d4 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -273,7 +273,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, break; =20 case VIR_DOMAIN_FEATURE_HYPERV: - if (def->features[i] !=3D VIR_TRISTATE_SWITCH_ABSENT && + if (def->features[i] !=3D VIR_DOMAIN_HYPERV_MODE_NONE && !ARCH_IS_X86(def->os.arch) && !qemuDomainIsARMVirt(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Hyperv features are not supported for " --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937463; cv=none; d=zohomail.com; s=zohoarc; b=nsgFG5o5VdvbLA2mMKo+ljeXnfoW8Jle5RLjAzThXVWKPB+2n/IYQvlPr29SN2ITmxeShjf6tRthB1aFtGwnGKxZt1byk5Fo3Jbn2jrS4YA7MxosRv8j1rC1oJAl/oUXrhVYIevr+oFYy+M2TPh9hQwZivsGRieSmja2qlQrnzg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937463; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=5WdHtP2XmYst7T0htTrGaTE4OlJnTQ0W+biRW+ciBm0=; b=RynWAi7Zek/1MMcwvh9bFpjsS/btl0K080IjHwc2nRaPEKgY+yLNmSH9F7eo6AuMZjhmryFbEQWPMD6Elu6bDZcGMJW0pqcej/MTEUfW5E8Mq7pxo3fzkeuzjmK6aYS3YSLisGHYRI1jBE44Q9j0gfqUVj37KM4dJGBXdfiCszo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937463727545.9104334213811; Fri, 26 Nov 2021 06:37:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-454-zGWOHJ4iMcStNpF24qxORg-1; Fri, 26 Nov 2021 09:36:09 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D836380574E; Fri, 26 Nov 2021 14:36:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BAE5E5F4ED; Fri, 26 Nov 2021 14:36:03 +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 8DB114A7C9; Fri, 26 Nov 2021 14:36:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEZwfa020862 for ; Fri, 26 Nov 2021 09:35:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8CB2B5F4E1; Fri, 26 Nov 2021 14:35:58 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id D582F5D6B1; Fri, 26 Nov 2021 14:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937462; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5WdHtP2XmYst7T0htTrGaTE4OlJnTQ0W+biRW+ciBm0=; b=QyYaF3v3AOoPDvj7600RidruuKT27tBSB0O/QEg36PqFDgYXgf3Q5kGqC/ecXhS1AdJ2Xo +vGbdhl/6jd+zJAE6tUsrR0+QOLYx8poPfJz/9m+vz9xQ8fbdoeAcB2mUo54UuesCIJfqX +hjVqVHO/A4+l6q1mXAkNrdcIDTUcgU= X-MC-Unique: zGWOHJ4iMcStNpF24qxORg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 05/10] virDomainDefFormatFeatures: Write attribute "mode" of element "hyperv" Date: Fri, 26 Nov 2021 15:34:57 +0100 Message-Id: <20211126143502.94574-6-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937464265100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 5 +++-- tests/qemuxml2xmloutdata/hyperv-off.xml | 2 +- tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml | 2 +- tests/qemuxml2xmloutdata/hyperv.xml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0ea00955c5..7d1edf14c3 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27785,10 +27785,11 @@ virDomainDefFormatFeatures(virBuffer *buf, break; =20 case VIR_DOMAIN_FEATURE_HYPERV: - if (def->features[i] !=3D VIR_TRISTATE_SWITCH_ON) + if (def->features[i] =3D=3D VIR_DOMAIN_HYPERV_MODE_NONE) break; =20 - virBufferAddLit(&childBuf, "\n"); + virBufferAsprintf(&childBuf, "\n", + virDomainHyperVModeTypeToString(def->feature= s[i])); virBufferAdjustIndent(&childBuf, 2); for (j =3D 0; j < VIR_DOMAIN_HYPERV_LAST; j++) { if (def->hyperv_features[j] =3D=3D VIR_TRISTATE_SWITCH_ABS= ENT) diff --git a/tests/qemuxml2xmloutdata/hyperv-off.xml b/tests/qemuxml2xmlout= data/hyperv-off.xml index 20c7f653af..94288e2516 100644 --- a/tests/qemuxml2xmloutdata/hyperv-off.xml +++ b/tests/qemuxml2xmloutdata/hyperv-off.xml @@ -10,7 +10,7 @@ - + diff --git a/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml b/tests/qemu= xml2xmloutdata/hyperv-stimer-direct.xml index d49eb75b12..3710191d75 100644 --- a/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml +++ b/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml @@ -10,7 +10,7 @@ - + diff --git a/tests/qemuxml2xmloutdata/hyperv.xml b/tests/qemuxml2xmloutdata= /hyperv.xml index 00af005671..87f09257c7 100644 --- a/tests/qemuxml2xmloutdata/hyperv.xml +++ b/tests/qemuxml2xmloutdata/hyperv.xml @@ -10,7 +10,7 @@ - + --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937410; cv=none; d=zohomail.com; s=zohoarc; b=SFNZgrivk3wCF2TLRJzP9vwEu1FfnT2qKv11xiPYnweNBx5qp+d5OaPzGzCOqG9X857gO4iBo34qk7WB3+oweBWs65OibEHZ0mtkBRM9QRTPf4VUHtvFJKQU0cJ7Gs832q1Mi8KK43bxW/24xSpv6JQM2RycAGqMHgiGyctzYOM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937410; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QOZKmX2rI0whg4Ucjhy0NHgkobC6PskiIGZqW4wo5M8=; b=Ey3epAu9Phv6TNlHCciMnA/qtSd1h11qczNgE0uHXUtcAf5v9zO8ASpZmXRdjN2vQ88UG6XStOUPgwycxJ8rx3gJDm5X+eSKkvklKk9KK7lvv0uTeTiUZwr1jRCHUX9iUhDq9Hhh9h2ldvvesWkEQkjYmptrVsZ4JoBYpPHSA3E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937410841537.0029306486113; Fri, 26 Nov 2021 06:36:50 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-264-Dc6mX8xyP3iukxrHJuH3jQ-1; Fri, 26 Nov 2021 09:36:48 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35E21102CB76; Fri, 26 Nov 2021 14:36:43 +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 1840E100961B; Fri, 26 Nov 2021 14:36:43 +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 E0AB11809CBF; Fri, 26 Nov 2021 14:36:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEagkc021164 for ; Fri, 26 Nov 2021 09:36:42 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6A3255F4F5; Fri, 26 Nov 2021 14:36:42 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id AF7525F4EF; Fri, 26 Nov 2021 14:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937409; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QOZKmX2rI0whg4Ucjhy0NHgkobC6PskiIGZqW4wo5M8=; b=f1SpSHpVh2WC6IqDA9x+OnEetu3NOy4UT+AZLwK5Pn4WdhhmKYf9EnIXa8BD7HNyIA1C/d a7PzLsmkfAOWJO6WQxUQBCy85Ve5MFTO8Dorx4XPn5ngqxiEpRReSY78ch0Sj7rrtHkt83 memuEB0wW29uyVGV6bkyzDo/xoE6gdE= X-MC-Unique: Dc6mX8xyP3iukxrHJuH3jQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 06/10] docs: domain: Add documentation for "hyperv"'s new "mode" attribute Date: Fri, 26 Nov 2021 15:34:58 +0100 Message-Id: <20211126143502.94574-7-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937411779100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- docs/formatdomain.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index eb8c973cf1..95ef2e0d05 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1820,7 +1820,7 @@ Hypervisors may allow certain CPU / machine features = to be toggled on/off. - + @@ -1918,6 +1918,14 @@ are: evmcs Enable Enlightened VMCS = on, off :since:`4.10.0= (QEMU 3.1)` =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 + :since:`Since 7.11.0` , the hypervisor can be configured further by set= ting + the ``mode`` attribute to one of the following values: + + ``custom`` + Set exactly the specified features. + + The ``mode`` attribute can be omitted and will default to ``custom``. + ``pvspinlock`` Notify the guest that the host supports paravirtual spinlocks for examp= le by exposing the pvticketlocks mechanism. This feature can be explicitly di= sabled --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937413; cv=none; d=zohomail.com; s=zohoarc; b=SBwC0u3c5sR+jRicESmNCL/EsENkM9yKXmcZK+S5oo6/KSP1y8rcVoasR2ooebJgFc+nFz+WP7rMAIBLLmIXm0f119ZH637B1797i8/hOkz/2gBAOF1yP5i0QbG0H9U2K/bdZJeU6OZICE+9d9F8GiudZFv37JiPa7ydkknirGM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937413; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xP4ZL///yEiYuWHItCzsU+zF3zCLoONC/eZ0LqMIbaE=; b=RxRASvj8M83GKMxWubYUdAsuw6unH7YNkxhsmgq4gQ6TRxRonVC+aoIarFWojWk1cjoU3OFtPBimYIqZw0QDpCwYtfJrI9mzRAWq7j0Zn9au//tT/X1hINC2R4vYwWbuEWCphHprv2o2KYOs83PIbYCjyZggi7MKX2pBkU+CM9M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937413963168.02978256058668; Fri, 26 Nov 2021 06:36:53 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-388-_afNmZH0OE2cG8ygHhQcYA-1; Fri, 26 Nov 2021 09:36:49 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A6874801B01; Fri, 26 Nov 2021 14:36:44 +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 890D760BE5; Fri, 26 Nov 2021 14:36:44 +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 5BE301802E28; Fri, 26 Nov 2021 14:36:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEahDC021172 for ; Fri, 26 Nov 2021 09:36:43 -0500 Received: by smtp.corp.redhat.com (Postfix) id 73E045F4F5; Fri, 26 Nov 2021 14:36:43 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDCD35F4ED; Fri, 26 Nov 2021 14:36:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937412; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=xP4ZL///yEiYuWHItCzsU+zF3zCLoONC/eZ0LqMIbaE=; b=GlWlU/G3zyNjdvZq92ILFgCDGZI4givPHeUJkjyIyjNgPQCTvKDqAYTODFHO52pbpvuKBy wDz1atner9m61W8dNyu5dvJ54bzIgLXPV/iYS10+MUZo0IqizHRWQmy9QNgYoMN6yp1YRO 18UmBZWxBwhuYWlzR+qVDWy8eL37R6o= X-MC-Unique: _afNmZH0OE2cG8ygHhQcYA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 07/10] conf: domain: Add hyperv passthrough mode Date: Fri, 26 Nov 2021 15:34:59 +0100 Message-Id: <20211126143502.94574-8-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937414494100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 1 + src/qemu/qemu_command.c | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 7d1edf14c3..6c1d8e6353 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -141,6 +141,7 @@ VIR_ENUM_IMPL(virDomainHyperVMode, VIR_DOMAIN_HYPERV_MODE_LAST, "none", "custom", + "passthrough", ); =20 VIR_ENUM_IMPL(virDomainBoot, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 169fc17039..abf7b37dc8 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -158,6 +158,7 @@ VIR_ENUM_DECL(virDomainOS); typedef enum { VIR_DOMAIN_HYPERV_MODE_NONE =3D 0, VIR_DOMAIN_HYPERV_MODE_CUSTOM, + VIR_DOMAIN_HYPERV_MODE_PASSTHROUGH, =20 VIR_DOMAIN_HYPERV_MODE_LAST } virDomainHyperVMode; diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 0d62a735f6..adbac46936 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6789,6 +6789,22 @@ qemuBuildCpuCommandLine(virCommand *cmd, } =20 if (def->features[VIR_DOMAIN_FEATURE_HYPERV] !=3D VIR_DOMAIN_HYPERV_MO= DE_NONE) { + switch ((virDomainHyperVMode) def->features[VIR_DOMAIN_FEATURE_HYP= ERV]) { + case VIR_DOMAIN_HYPERV_MODE_CUSTOM: + break; + + case VIR_DOMAIN_HYPERV_MODE_PASSTHROUGH: + virBufferAsprintf(&buf, ",hv-%s=3Don", "passthrough"); + break; + + case VIR_DOMAIN_HYPERV_MODE_NONE: + case VIR_DOMAIN_HYPERV_MODE_LAST: + default: + virReportEnumRangeError(virDomainHyperVMode, + def->features[VIR_DOMAIN_FEATURE_HYPER= V]); + return -1; + } + for (i =3D 0; i < VIR_DOMAIN_HYPERV_LAST; i++) { switch ((virDomainHyperv) i) { case VIR_DOMAIN_HYPERV_RELAXED: --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937415; cv=none; d=zohomail.com; s=zohoarc; b=ICRiUkvfZjMYsfoLJR8nMbW1mR1AxJdYQfcRcrIFnJfdLjEoc3QKLpBAx7OMtSTvz747gS9BmeX7Ka1uBvjDuF/LBiyvIibtJG3izGULtUNqvN/mi/NnrX8eL+//32cYRkhDQ9pxqV2E3YoBFVjV8NXu0C1UDUiB1fYp/YrDaJI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937415; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9Ha3fuDkRE24BVkuc2h2jhh86CQovRg0uGByfS7h+BU=; b=Wuo9gjfVaFjRE/iTWRYjNRX12em0nIt/vNgA+2d565vu/3AG59xM952bNXfsUCsJR2RuAk4+kzparBt/0LAT3q/4R+Vj8OwoaFWMpAWlffj88iWzRunr2M6YZ4ehnt/HH7RVMATR9fJsdBHEOJK/HC+1ZYjcTp1qbcpWaWSdz/8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937415231974.8181298214577; Fri, 26 Nov 2021 06:36:55 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-192-oO8mBwFKNp6C5iNkTmW4fg-1; Fri, 26 Nov 2021 09:36:52 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3B2BB2F22; Fri, 26 Nov 2021 14:36:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 20D6D100164A; Fri, 26 Nov 2021 14:36:47 +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 E89274A70A; Fri, 26 Nov 2021 14:36:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEaiov021180 for ; Fri, 26 Nov 2021 09:36:44 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7DCF45F4F5; Fri, 26 Nov 2021 14:36:44 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6E915F4ED; Fri, 26 Nov 2021 14:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937414; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=9Ha3fuDkRE24BVkuc2h2jhh86CQovRg0uGByfS7h+BU=; b=RRCOiSHmkm0Y5oFvsqZ+UXq/wHM6gtLDWnPUALWuZ64dBEVfgbpmlctXRoI/woQqL+umvZ NOoQAKBoy9SAZm/sdjmGUulM/Jd5kopXzNlcTO//Nk1U4+Z2QpZAMV+goQGEwBEBm+gaXX HMvcnGNRgGL8BmWgBTsPuX3UKWso+QA= X-MC-Unique: oO8mBwFKNp6C5iNkTmW4fg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 08/10] schema: hyperv: Add mode "passthrough" Date: Fri, 26 Nov 2021 15:35:00 +0100 Message-Id: <20211126143502.94574-9-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937416628100005 Content-Type: text/plain; charset="utf-8" This mode will enable all enlightenments known to the hypervisor. See https://bugzilla.redhat.com/show_bug.cgi?id=3D1851249 Example: ... Signed-off-by: Tim Wiederhake --- docs/schemas/domaincommon.rng | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 14a4f528ab..12e657269d 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -7088,6 +7088,9 @@ + + passthrough + --=20 2.31.1 From nobody Mon Apr 29 04:07:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637937414; cv=none; d=zohomail.com; s=zohoarc; b=I7Ut9lSraN0Rkss/e77WdS+W8Nn4D3E6JpysjfeaIz+QtNTsEXx0UZWnUVS8lDXvnnYqs8U2ghsYhbTgoDJBRX6gY0kfOb+Pge8LHlSg8Ea7v6+FPao4FClbQHnFouQpm2umjhhch0XTSPRNaHZAYgjHWYYWxInSaddDCkDb4Ic= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637937414; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1cP6c7w951uPXLq1hs2UwcTBak/lqp3oQj5rF7gb0X4=; b=jve20/YVZSYvy9VXQnP07gmA4R1nTSVggq+2Lbn/luRMjoac4W62ClQP5Ey5f4On2JBTnMSNk3hgpiVlb9WsFSHNUYx420Baf470pxeq8miVcPKfb8foPaHk+OQ0KGBrkJxCzPuo0PK8bqiYMGV4iPoTvz024tuq+zlNI/nEZyQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637937414202880.1529824387859; Fri, 26 Nov 2021 06:36:54 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-134-VnDZptMrNjyOCZd4L5IhDQ-1; Fri, 26 Nov 2021 09:36:51 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D84C7102CB7D; Fri, 26 Nov 2021 14:36:46 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B971C2C928; Fri, 26 Nov 2021 14:36:46 +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 8C7104A707; Fri, 26 Nov 2021 14:36:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AQEajBt021188 for ; Fri, 26 Nov 2021 09:36:45 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8F5045F4F5; Fri, 26 Nov 2021 14:36:45 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id D21185F4ED; Fri, 26 Nov 2021 14:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637937413; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1cP6c7w951uPXLq1hs2UwcTBak/lqp3oQj5rF7gb0X4=; b=MYU0xuMSLRGOiNg8kZ0POQm4P312mCV5GP/uj0KMTYaUP8ZHo5NEFslsrL1EYzHCh4TzIW Nc7iXiwauMOni3DUMve241LB97LZJpAoZIzvLmRID646ObjTCFWHs3H1nwvehXGoAMbyvD 9jAsZhuxNjMp5UoZ1Nz0AMVcOeEMhMk= X-MC-Unique: VnDZptMrNjyOCZd4L5IhDQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 09/10] tests: Add tests for hyperv-passthrough Date: Fri, 26 Nov 2021 15:35:01 +0100 Message-Id: <20211126143502.94574-10-twiederh@redhat.com> In-Reply-To: <20211126143502.94574-1-twiederh@redhat.com> References: <20211126143502.94574-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637937414569100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- .../hyperv-passthrough.x86_64-6.1.0.args | 32 +++++++++++++++++++ .../hyperv-passthrough.x86_64-latest.args | 32 +++++++++++++++++++ tests/qemuxml2argvdata/hyperv-passthrough.xml | 27 ++++++++++++++++ tests/qemuxml2argvtest.c | 2 ++ .../qemuxml2xmloutdata/hyperv-passthrough.xml | 31 ++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 6 files changed, 125 insertions(+) create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.x86_64-6.1.0.= args create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.x86_64-latest= .args create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.xml create mode 100644 tests/qemuxml2xmloutdata/hyperv-passthrough.xml diff --git a/tests/qemuxml2argvdata/hyperv-passthrough.x86_64-6.1.0.args b/= tests/qemuxml2argvdata/hyperv-passthrough.x86_64-6.1.0.args new file mode 100644 index 0000000000..87755b5042 --- /dev/null +++ b/tests/qemuxml2argvdata/hyperv-passthrough.x86_64-6.1.0.args @@ -0,0 +1,32 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \ +/usr/bin/qemu-system-i386 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc-i440fx-6.1,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc= .ram \ +-accel tcg \ +-cpu qemu64,hv-passthrough=3Don \ +-m 214 \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}'= \ +-overcommit mem-lock=3Doff \ +-smp 6,sockets=3D6,cores=3D1,threads=3D1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot strict=3Don \ +-device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/hyperv-passthrough.x86_64-latest.args b= /tests/qemuxml2argvdata/hyperv-passthrough.x86_64-latest.args new file mode 100644 index 0000000000..aab8c09d71 --- /dev/null +++ b/tests/qemuxml2argvdata/hyperv-passthrough.x86_64-latest.args @@ -0,0 +1,32 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \ +/usr/bin/qemu-system-i386 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram \ +-accel tcg \ +-cpu qemu64,hv-passthrough=3Don \ +-m 214 \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}'= \ +-overcommit mem-lock=3Doff \ +-smp 6,sockets=3D6,cores=3D1,threads=3D1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot strict=3Don \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0= x2"}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/hyperv-passthrough.xml b/tests/qemuxml2= argvdata/hyperv-passthrough.xml new file mode 100644 index 0000000000..9d6a872a41 --- /dev/null +++ b/tests/qemuxml2argvdata/hyperv-passthrough.xml @@ -0,0 +1,27 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 6 + + hvm + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i386 + + + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index b3fa676af7..94b0025281 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1217,6 +1217,8 @@ mymain(void) DO_TEST_CAPS_LATEST("hyperv-off"); DO_TEST_CAPS_VER("hyperv-panic", "4.0.0"); DO_TEST_CAPS_LATEST("hyperv-panic"); + DO_TEST_CAPS_VER("hyperv-passthrough", "6.1.0"); + DO_TEST_CAPS_LATEST("hyperv-passthrough"); DO_TEST_CAPS_LATEST("hyperv-stimer-direct"); =20 DO_TEST_NOCAPS("kvm-features"); diff --git a/tests/qemuxml2xmloutdata/hyperv-passthrough.xml b/tests/qemuxm= l2xmloutdata/hyperv-passthrough.xml new file mode 100644 index 0000000000..f833860997 --- /dev/null +++ b/tests/qemuxml2xmloutdata/hyperv-passthrough.xml @@ -0,0 +1,31 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 6 + + hvm + + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-i386 + +
+ + + + +