From patchwork Wed Jan 23 21:32:39 2019
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Cole Robinson
X-Patchwork-Id: 156402
Delivered-To: patch@linaro.org
Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1201519jaa;
Wed, 23 Jan 2019 13:33:35 -0800 (PST)
X-Google-Smtp-Source: ALg8bN4dSqzYzIFKavz+EDGpYnAr/PrwxqxLamxdJfcNMCM3BbIqptyyBr6VXF/x3MSmAOqpstx+
X-Received: by 2002:aed:384a:: with SMTP id j68mr4112666qte.171.1548279215288;
Wed, 23 Jan 2019 13:33:35 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1548279215; cv=none;
d=google.com; s=arc-20160816;
b=H+feObUtzk3060bQzgun/WEB9Nid6mQE+W5Da8mGBwaJ7U4pIU0dD5+xVE11K3uJKc
aSEIUDfFSrMwf4b8XY7tjS+qKAaNDSPo7jB8Z1Kub2Ky4GUm+oJxSlKCKCAsyBPXGUK9
EJoXkXQTEbLYVE6xT7O72nMvwkv3lsO6yzWUl+3Zt4GgMSLAumnxriTUAoSa8hlgELq0
0oGVHa3fQQs+z17zY7dzkkf6NPssONGbNbn5aFizxQK5gysEIM3NdmXc3ipa/8EdVQH7
5tGmc91VTkbDnpzkd9LOYtDo/S++bVqhxEKaNbt5Smn2VPCkrTqPAK+bMhatzAgjXH5q
pOAQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:cc:mime-version:references:in-reply-to:message-id:date:to:from
:delivered-to;
bh=uk4ybrKQDXf0u3p1wNiHaZdTr9fu7IrQqgBlJKkVN3s=;
b=cVsZuyPtequd9hfwxM64gwk9hBYo64j5l8MD4GAjTJH8ywAMDLcG83kYZ0lVtnPwF3
6B3Mge5GoMnUwZnpZ2xvt7G8LnxEl3RtmsBWDZckrCzVhzaJMhUiXS+Pfnwax8XY8jPH
GsOmTqgoXkpbqjA8SSknQxXWnbXxphOsMKoMjFy8fCyr8+KiaKdOnJiWXOukl0Jp/fOv
OlDCXxB5FPhietzYuOq/btmo9DcgJgqAtk38555kXfTSa1G7PCGO9h5uKxkYKzWYxpHf
ptGmxg3tl/ezmpMCocY1f28kPMeHYvWAINZPD6fuSYYCPGRHOQEiyuAwbsdJZ2ue5Rzp
DHlA==
ARC-Authentication-Results: i=1; mx.google.com;
spf=pass (google.com: domain of libvir-list-bounces@redhat.com
designates 209.132.183.28 as permitted sender)
smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28])
by mx.google.com with ESMTPS id
z3si4162749qtj.337.2019.01.23.13.33.35
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 23 Jan 2019 13:33:35 -0800 (PST)
Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com
designates 209.132.183.28 as permitted sender)
client-ip=209.132.183.28;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of libvir-list-bounces@redhat.com
designates 209.132.183.28 as permitted sender)
smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com
Received: from smtp.corp.redhat.com
(int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 00DA2AD896;
Wed, 23 Jan 2019 21:33:32 +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 A9FAB58824;
Wed, 23 Jan 2019 21:33:31 +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 5CBBC3F606;
Wed, 23 Jan 2019 21:33:31 +0000 (UTC)
Received: from smtp.corp.redhat.com
(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with
ESMTP
id x0NLXRtY032340 for ;
Wed, 23 Jan 2019 16:33:27 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 6F787BA96; Wed, 23 Jan 2019 21:33:27 +0000 (UTC)
Delivered-To: libvirt-list@redhat.com
Received: from worklaptop.redhat.com (ovpn-120-34.rdu2.redhat.com
[10.10.120.34])
by smtp.corp.redhat.com (Postfix) with ESMTP id 2D48EBA50;
Wed, 23 Jan 2019 21:33:25 +0000 (UTC)
From: Cole Robinson
To: libvirt-list@redhat.com
Date: Wed, 23 Jan 2019 16:32:39 -0500
Message-Id:
In-Reply-To:
References:
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Andrea Bolognani
Subject: [libvirt] [PATCH v2 11/25] conf: Add
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.16
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.28]);
Wed, 23 Jan 2019 21:33:33 +0000 (UTC)
devices lack the model= attribute which is used by
most other device types. bus= mostly acts as one, but it
serves other purposes too like determing what target=
prefix to use, and for matching against controller type=
values.
Extending bus= to handle additional virtio transitional
devices will complicate apps lives, and it isn't a clean
mapping anyways. So let's bite the bullet and add a new
attribute, and wire up common handling
for virtio and virtio-{non-}transitional
Reviewed-by: Andrea Bolognani
Signed-off-by: Cole Robinson
---
docs/formatdomain.html.in | 10 +++++
docs/schemas/domaincommon.rng | 9 ++++
src/conf/domain_conf.c | 40 ++++++++++++++++++
src/conf/domain_conf.h | 11 +++++
src/libvirt_private.syms | 2 +
.../virtio-non-transitional.x86_64-3.1.0.args | 34 +++++++++++++++
...virtio-non-transitional.x86_64-latest.args | 34 +++++++++++++++
.../virtio-non-transitional.xml | 18 ++++++++
.../virtio-transitional.x86_64-3.1.0.args | 34 +++++++++++++++
.../virtio-transitional.x86_64-latest.args | 34 +++++++++++++++
.../qemuxml2argvdata/virtio-transitional.xml | 18 ++++++++
tests/qemuxml2argvtest.c | 6 +++
.../virtio-non-transitional.xml | 42 +++++++++++++++++++
.../virtio-transitional.xml | 42 +++++++++++++++++++
tests/qemuxml2xmltest.c | 11 +++++
15 files changed, 345 insertions(+)
create mode 100644 tests/qemuxml2argvdata/virtio-non-transitional.x86_64-3.1.0.args
create mode 100644 tests/qemuxml2argvdata/virtio-non-transitional.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/virtio-non-transitional.xml
create mode 100644 tests/qemuxml2argvdata/virtio-transitional.x86_64-3.1.0.args
create mode 100644 tests/qemuxml2argvdata/virtio-transitional.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/virtio-transitional.xml
create mode 100644 tests/qemuxml2xmloutdata/virtio-non-transitional.xml
create mode 100644 tests/qemuxml2xmloutdata/virtio-transitional.xml
--
2.20.1
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 7f07bb7f55..0f66b5a1fc 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -2922,6 +2922,16 @@
Since 0.1.4
+
model
+
+ Indicates the emulated device model of the disk. Typically
+ this is indicated solely by the bus property but
+ for bus "virtio" the model can be specified further
+ with "virtio-transitional", "virtio-non-transitional", or
+ "virtio" which matches the old behavior. These settings are
+ only applicable when using controller bus type "pci".
+ Since 5.1.0
+