From nobody Sun Feb 8 12:51:54 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.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 1547747628553708.9744369727744;
Thu, 17 Jan 2019 09:53:48 -0800 (PST)
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 mx1.redhat.com (Postfix) with ESMTPS id 2BC107FD54;
Thu, 17 Jan 2019 17:53: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 F12125D77C;
Thu, 17 Jan 2019 17:53:45 +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 A12B83F612;
Thu, 17 Jan 2019 17:53:45 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
[10.5.11.11])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id x0HHrG7S005579 for ;
Thu, 17 Jan 2019 12:53:16 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 51210600CC; Thu, 17 Jan 2019 17:53:16 +0000 (UTC)
Received: from worklaptop.redhat.com (ovpn-122-144.rdu2.redhat.com
[10.10.122.144])
by smtp.corp.redhat.com (Postfix) with ESMTP id E30C1600C6;
Thu, 17 Jan 2019 17:53:15 +0000 (UTC)
From: Cole Robinson
To: libvirt-list@redhat.com
Date: Thu, 17 Jan 2019 12:52:41 -0500
Message-Id:
<9331a6fd11736d77159da8be6464c5210af8216a.1547746868.git.crobinso@redhat.com>
In-Reply-To:
References:
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-loop: libvir-list@redhat.com
Subject: [libvirt] [PATCH 14/18] 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: ,
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.15
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]);
Thu, 17 Jan 2019 17:53:46 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
devices lack the model=3D attribute which is used by
most other device types. To eventually support
virtio-9p-pci-{non-}traditional in qemu, let's add a standard
model=3D attribute. This just adds the domain_conf wiring
Signed-off-by: Cole Robinson
---
docs/formatdomain.html.in | 4 +++
docs/schemas/domaincommon.rng | 9 +++++
src/conf/domain_conf.c | 34 +++++++++++++++++++
src/conf/domain_conf.h | 15 ++++++--
.../virtio-non-transitional.x86_64-3.1.0.args | 5 ++-
...virtio-non-transitional.x86_64-latest.args | 5 ++-
.../virtio-non-transitional.xml | 3 ++
.../virtio-transitional.x86_64-3.1.0.args | 3 ++
.../virtio-transitional.x86_64-latest.args | 3 ++
.../qemuxml2argvdata/virtio-transitional.xml | 3 ++
.../virtio-non-transitional.xml | 11 +++++-
.../virtio-transitional.xml | 9 +++++
tests/qemuxml2xmltest.c | 6 ++--
13 files changed, 103 insertions(+), 7 deletions(-)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 5c342cfcfb..63bdf2c86b 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -6431,6 +6431,10 @@ qemu-kvm -net nic,model=3D? /dev/null
For type passthrough, the mandatory sub-element s=
ource
must have an evdev attribute containing the absolute pa=
th to the
event device passed through to guests. (KVM only)
+
+ Since 5.1.0, the input ele=
ment
+ accepts a model attribute which has the values 'virtio',
+ 'virtio-transitional' and 'virtio-non-transitional'.