From nobody Sun Feb 8 21:41:59 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 1548279266458789.7653335302064;
Wed, 23 Jan 2019 13:34:26 -0800 (PST)
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 3A586C0C7CAE;
Wed, 23 Jan 2019 21:34:24 +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 C8E276C95F;
Wed, 23 Jan 2019 21:34:23 +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 521943F60F;
Wed, 23 Jan 2019 21:34:23 +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 x0NLYDmq032649 for ;
Wed, 23 Jan 2019 16:34:13 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 07A7F67150; Wed, 23 Jan 2019 21:34:13 +0000 (UTC)
Received: from worklaptop.redhat.com (ovpn-120-34.rdu2.redhat.com
[10.10.120.34])
by smtp.corp.redhat.com (Postfix) with ESMTP id 5B1B0BA8B;
Wed, 23 Jan 2019 21:34:12 +0000 (UTC)
From: Cole Robinson
To: libvirt-list@redhat.com
Date: Wed, 23 Jan 2019 16:32:49 -0500
Message-Id:
<7c3e9140c0f0b08167d6614be8b942b8b6712de7.1548278586.git.crobinso@redhat.com>
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
Subject: [libvirt] [PATCH v2 21/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: ,
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.14
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]);
Wed, 23 Jan 2019 21:34:25 +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-input-host-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
Reviewed-by: Andrea Bolognani
---
docs/formatdomain.html.in | 4 +++
docs/schemas/domaincommon.rng | 9 +++++
src/conf/domain_conf.c | 35 +++++++++++++++++++
src/conf/domain_conf.h | 11 ++++++
.../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, 102 insertions(+), 5 deletions(-)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index eed35ef545..6838774c74 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'.