From patchwork Sun Jan 13 23:12:05 2019
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Cole Robinson
X-Patchwork-Id: 155387
Delivered-To: patch@linaro.org
Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3040783jaa;
Sun, 13 Jan 2019 15:13:52 -0800 (PST)
X-Google-Smtp-Source: ALg8bN7ggFDu+gSp2jMiw+Tn2yd6GbmCJ6JV85bGJWU/kpQ3iC2eYFVgPnJpx0Kfpf2Cl+HYmQ8p
X-Received: by 2002:aed:24c2:: with SMTP id u2mr21390609qtc.230.1547421232195;
Sun, 13 Jan 2019 15:13:52 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1547421232; cv=none;
d=google.com; s=arc-20160816;
b=iyKAcdvB3gM4SE3R/c5XFEzcUP9arzB0NCKwWUjh5eIvLzVrOMDk8c+9qodwHOy8+S
obSkG7VykhtmGt2Ucbx94f+CL65R8ZZzDa5WoqKDyMp7YIwi7u9ptEbyIkz85VatdbAC
npnMwWWTulZXNxqeUapB3M9psatyYLvBBKN1x+kZHPZnynjfX99vm/tEz0W9bsJDm6oB
xBWboIjcDLmWYtv88AAZdnukwvDBjFFXGHUn/nHuI0s+IKfe0vtaj4UffWlCOh3v0l5z
/G+QefPosZZc7bqkFqMRKBTQRAXQbQy/0H2+1HQbF3PEqColF6K6up2gaQLDPwiP6jEz
L7WA==
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
:mime-version:references:in-reply-to:message-id:date:to:from
:delivered-to;
bh=ScYt84x375xqvJL5reBq/tMu0jxmC0nKpi83vpF4H1I=;
b=dvwCiGPSsGvbjb6itvjZPDjvmC3TV6vO54Q0G51P4zCeXOc8vbY87bj+oHISomOL1p
zfr+/aBI2uVrCZkd+TG66JYBMtZhpilv0XzHhvre/JbHiJR5X1FvufMhxyoJWaioO0N+
0SnWqSje/RBrXqBfJJr8WZEsl7wexZicePCCOoqh8QrWMI+Y+hw5/wCOHaKJkde213ZZ
vSXr2rTiG/235fT05XqzoI7CLL+o77nusQai9uHnUvBNjMFwNDwj99++w71B7xThZ7OX
4TW9G/OxjBJ17oSphHU9439vhnGLRNmKTOEmn6YpiuPOx8ohsy+VfUuweieb1Kij3jXt
11Ig==
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
f1si6602655qkc.106.2019.01.13.15.13.51
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 13 Jan 2019 15:13:52 -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-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 7B6F2C056796;
Sun, 13 Jan 2019 23:13:50 +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 407D77C021;
Sun, 13 Jan 2019 23:13:50 +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 B3A331888BB6;
Sun, 13 Jan 2019 23:13:49 +0000 (UTC)
Received: from smtp.corp.redhat.com
(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with
ESMTP
id x0DNDAjc028620 for ;
Sun, 13 Jan 2019 18:13:10 -0500
Received: by smtp.corp.redhat.com (Postfix)
id ADE8117A9F; Sun, 13 Jan 2019 23:13:10 +0000 (UTC)
Delivered-To: libvirt-list@redhat.com
Received: from worklaptop.redhat.com (ovpn-120-202.rdu2.redhat.com
[10.10.120.202])
by smtp.corp.redhat.com (Postfix) with ESMTP id 2767117A6A;
Sun, 13 Jan 2019 23:13:10 +0000 (UTC)
From: Cole Robinson
To: libvirt-list@redhat.com
Date: Sun, 13 Jan 2019 18:12:05 -0500
Message-Id: <44a971b1e403a2480f2e0748727944b3b98dd09a.1547420060.git.crobinso@redhat.com>
In-Reply-To:
References:
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-loop: libvir-list@redhat.com
Subject: [libvirt] [PATCH 3/6] 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.14
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.32]);
Sun, 13 Jan 2019 23:13:51 +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-{non-}transitional
Signed-off-by: Cole Robinson
---
docs/formatdomain.html.in | 8 ++++
docs/schemas/domaincommon.rng | 8 ++++
src/conf/domain_conf.c | 28 +++++++++++++
src/conf/domain_conf.h | 10 +++++
src/libvirt_private.syms | 2 +
...virtio-non-transitional.x86_64-latest.args | 34 +++++++++++++++
.../virtio-non-transitional.xml | 26 ++++++++++++
.../virtio-transitional.x86_64-latest.args | 34 +++++++++++++++
.../qemuxml2argvdata/virtio-transitional.xml | 26 ++++++++++++
tests/qemuxml2argvtest.c | 3 ++
.../virtio-non-transitional.xml | 42 +++++++++++++++++++
.../virtio-transitional.xml | 42 +++++++++++++++++++
tests/qemuxml2xmltest.c | 3 ++
13 files changed, 266 insertions(+)
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-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..5220e19417 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -2922,6 +2922,14 @@
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" or "virtio-non-transitional"
+ Since 5.1.0
+