From patchwork Wed Jun 28 18:49:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 106560 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp246894qge; Wed, 28 Jun 2017 11:49:47 -0700 (PDT) X-Received: by 10.200.61.130 with SMTP id v2mr6264572qtf.230.1498675787332; Wed, 28 Jun 2017 11:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498675787; cv=none; d=google.com; s=arc-20160816; b=YCqXOy0g0cXdHtVYvmEsDuE8NWlnJm0OzZEzLJFYBzK991jPejsEbPVOQtQQyWaYpF 4Y8HtrHDxxuKPb0+RdUmgrq8M4PE6mVCjfk852xpGDxVLdFfpL+27Wj+B1IAJUjqYK/g 04n3ITcgsMi7TfzvuzJQpLlIT8geTUI6+UEZjUgizzJAAFeXWZlmIlJGautkrOEB2zgD bZtpQVOKVOcGyAy3/YFx3LBw6yxHzjAYnLhk0JcLuWlUTNw384pTiuavbEGHpgZ1VC55 lB4oX1M2OQBe9omafTXr16zIipcw1mLFJor2JB5XdMcKIhs9nAYEuFGDXRy2mBMwAwG1 YEdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :dkim-filter:dmarc-filter:arc-authentication-results; bh=b8WsDEP3TiYk4UycrDy9Fh5r2shIN4tK9iwQI/B9lqM=; b=zquN68mh9iC/YxabT/tiBliEbAdAddB4L9YKPecG1pyQNo7eYeare9TNLF4KtCfOlG l8hgsmuZujuDxnsjuBKm3le1JrUdE9poNENTUy2z8ZPNrzXiqk9srQj4PjF3JzK6J9ou LJscRlJSd2NYD2A3wtl63PPUFUN6ahN6ANgPZs9b3R4XqkDtXcWpuFnGkWFnD+pnPDTY 36wCsdOLIsp44Fp7vqRBu2opi23ZfDCdt9xCSFzPTmWnc15SjJpdqdfn36fWLR+GnGtY rFOqeRJfwK5EJOdQ05ovyRBu5iLuBRjDTgVsMNtMecjA+bhOdbt8wHYQY6IiAj0OQQA0 ZUsw== 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 x24si2712798qtb.1.2017.06.28.11.49.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 11:49:47 -0700 (PDT) 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-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 AECAA61B86; Wed, 28 Jun 2017 18:49:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AECAA61B86 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com AECAA61B86 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 14607173A7; Wed, 28 Jun 2017 18:49: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 3B55B1853E2F; Wed, 28 Jun 2017 18:49: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 v5SInfkK031233 for ; Wed, 28 Jun 2017 14:49:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2A21717B73; Wed, 28 Jun 2017 18:49:41 +0000 (UTC) Delivered-To: libvir-list@redhat.com Received: from worklaptop.redhat.com (ovpn-116-174.phx2.redhat.com [10.3.116.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id B0A5B5D6A6; Wed, 28 Jun 2017 18:49:38 +0000 (UTC) From: Cole Robinson To: libvir-list@redhat.com Date: Wed, 28 Jun 2017 14:49:26 -0400 Message-Id: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 0/8] qemu: Default to video type=virtio for machvirt 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: , MIME-Version: 1.0 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.39]); Wed, 28 Jun 2017 18:49:46 +0000 (UTC) This series aim is to change the qemu machvirt video type default to virtio, but rather than continue to hack things into place in domain_conf.c, this rearranges things to allow drivers to set a video type default. Patches 1-4 are small cleanups/improvements in this area Patches 5-7 are the plumbing to allow drivers to set their own default Patch 8 is the actual default change https://bugzilla.redhat.com/show_bug.cgi?id=1404112 Cole Robinson (8): qemu: parse: drop redundant video config qemu: domain: Move some validation out of DeviceDefPostParse qemu: annotate some VIDEO_TYPE enum switch conf: add virDomainVideoDefNew conf: domain: add VIDEO_TYPE_DEFAULT conf: domain: move video type validation to DeviceDefValidate qemu: Set default video type in qemu PostParse qemu: Default to video type=virtio for machvirt src/conf/domain_conf.c | 54 +++++++++++------- src/conf/domain_conf.h | 2 + src/libvirt_private.syms | 1 + src/qemu/qemu_command.c | 7 +-- src/qemu/qemu_domain.c | 66 ++++++++++++++-------- src/qemu/qemu_domain_address.c | 1 + src/qemu/qemu_monitor_json.c | 16 ++---- src/qemu/qemu_parse_command.c | 14 +---- src/qemu/qemu_process.c | 7 +-- src/vz/vz_sdk.c | 3 +- tests/domaincapsschemadata/full.xml | 1 + .../qemuxml2argv-aarch64-video-default.args | 24 ++++++++ .../qemuxml2argv-aarch64-video-default.xml | 17 ++++++ tests/qemuxml2argvtest.c | 6 ++ .../qemuxml2xmlout-aarch64-video-default.xml | 46 +++++++++++++++ tests/qemuxml2xmltest.c | 6 ++ 16 files changed, 191 insertions(+), 80 deletions(-) create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-default.args create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-default.xml create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-video-default.xml -- 2.13.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list