Message ID | 20181108141944.15769-2-minyard@acm.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp880027ljp; Thu, 8 Nov 2018 06:22:15 -0800 (PST) X-Google-Smtp-Source: AJdET5dDAV/hQ4hjy76dWVa8h2uXmonh1RylHWfS6tgB/6NByXkgUYJpxJ/i9DFVEzjTrZnQMkX2 X-Received: by 2002:a37:aa0c:: with SMTP id t12mr4214742qke.358.1541686935736; Thu, 08 Nov 2018 06:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541686935; cv=none; d=google.com; s=arc-20160816; b=DFjt1LgPULk93sSq0tD3sata7WrYPilsaPqv4lwdyFuGQ544tZKqBAvFN8nVRTy/JT wl5nIKbP1fjrttRjugIR+R1C8EvN2ZxFQdhuqIwAB7/t5HpiC+feB97Z4XAgD5+9MegR WNd+OL9ZlGAN/in/PIFrIRYj2SiFrN1ld/yyxBBTPRqRkFv1j22c5AKz5qi26X+Boaqr 69Fr/6obZfw2C34C7DS8TrIPUrrol5W6NgPqqgi0XMEdNvM4f40dDhA8pJ/vR4UNdpeQ wiTCz5B4z5CJqf2VHUgo0aHA8G4CkLj4yUABJlTJoBGLXSlr2nW6FjgX/A1K8Ms2NlQI 00lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=FpOujx9Bk417L4EdcLHsX3Vn6UpY1D12FCl09w3NAtg=; b=vxfNQg+/1cRK5Dnp1h6mkPZy8W6MQDYjQpGALrnYmZkrHEkHGaj+CDIidPWmnb8E21 n+VNF7vOBueMG+/R/5XRAwJYJd6JTURb61srt5zaPkp7NroSLr/rkyLX25blBfd8MrNT b4nNZgCXYP4nf71WP4OTue/WX8YH+ZA1g8Dt8yzWTaVChC9WoX4D4h/1sDKLcm/qrK7r iVvU7B9t2ox9ep39LB4CuKA8G63178jLUasza9dCFTUVvbIIYZqhsJdBRioSRBFHgiyR DENydObJJ20tAY4C4lg8rWd+SjKmTYf5c7xSJmX6IUr0HweUUzOpx1WS7nDGjn9QkBKm hc8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qxI7mQ0y; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o135si825863qke.7.2018.11.08.06.22.15 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Nov 2018 06:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qxI7mQ0y; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:57061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1gKlCJ-0005oi-8H for patch@linaro.org; Thu, 08 Nov 2018 09:22:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1gKlAB-0004Vm-DK for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1gKlA8-00075h-GK for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:20:03 -0500 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]:36690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1gKlA8-000711-9O for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:20:00 -0500 Received: by mail-io1-xd42.google.com with SMTP id o19-v6so14704895iod.3 for <qemu-devel@nongnu.org>; Thu, 08 Nov 2018 06:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FpOujx9Bk417L4EdcLHsX3Vn6UpY1D12FCl09w3NAtg=; b=qxI7mQ0yswARL0T7vBhqjctL9APszI385cMRqPRWFNjBP03LEwkxiMdKLmyWQn0Czo 3x84qvsbaZKI2Rhpa0OEOASKwQwBymr1pSGeZJwny58mBT4InXzGl194txCtprjYuADP RlX0950vOydPpeH4qI0fkNqTLt1PYKla+9b43iXzUjCbUxIXzuqbrKNa/skPTsyrHOPX Nab+pQeLiDu4Mra4oa7FuJp9MIh80LmdEYPGXK/baLqJ8PBKD0bq5UZYVHAl39uf2DSH lgFNyJ1axuVuj4awmCjzL9T5SIH6xs3/bbF+iFSnTvoqR/QkYx4ZNzTCrAdEjpxHBUaB WkdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=FpOujx9Bk417L4EdcLHsX3Vn6UpY1D12FCl09w3NAtg=; b=bqzwh74x7xwAbxaVVCamFsU7Yy5cCn1HidFF+3+FrSE9/pBinYGIzFM/zugi5CFDEt u7142sIEQFisvAlssgRwUnQ9KebpvktLKYV0p65aMjvRUkvEqt+1XylrjXnG79Ie4553 uwa8JnAtORBVHStmbB7dBtWu4Og+zD07wc9VWOAOgtQ8dXmHM6YxSvOzzf7ak3Z9kLDs ZoLcVcpgforYNsa6JopAgARbYxKkSHNTakoJxd1t8XpjL7xl6oQ8VE1UOoHuwE8MUU0r J3cyUnoO22pKL+rPNrOtnk3V3N1Y+H6wdGvJ0qaibyDDutN/jQD8tgilCd4sMpe8J2ru x53Q== X-Gm-Message-State: AGRZ1gKZWx16EqXQ0FiqKNPrey89GvUwQwet6d6Mz8fKk7/4ieHJ2+v7 sEhiCdWXR8j3fLqoDaCHUodLc3w= X-Received: by 2002:a6b:1742:: with SMTP id 63-v6mr3775631iox.158.1541686791506; Thu, 08 Nov 2018 06:19:51 -0800 (PST) Received: from serve.minyard.net ([47.184.170.128]) by smtp.gmail.com with ESMTPSA id v4-v6sm1305342iol.77.2018.11.08.06.19.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 06:19:48 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 7FDD78FC; Thu, 8 Nov 2018 08:19:47 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 965A2301151; Thu, 8 Nov 2018 08:19:46 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 8 Nov 2018 08:19:43 -0600 Message-Id: <20181108141944.15769-2-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181108141944.15769-1-minyard@acm.org> References: <20181108141944.15769-1-minyard@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d42 Subject: [Qemu-devel] [PATCH 1/2] qdev: Add a no default uuid property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Corey Minyard <cminyard@mvista.com>, Fam Zheng <famz@redhat.com>, "Michael S . Tsirkin" <mst@redhat.com>, =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= <clg@kaod.org>, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, David Gibson <david@gibson.dropbear.id.au> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[1/2] qdev: Add a no default uuid property
|
expand
|
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h index 4f60cc88f3..d614f931c9 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -226,6 +226,13 @@ extern const PropertyInfo qdev_prop_off_auto_pcibar; .set_default = true, \ } +#define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) { \ + .name = (_name), \ + .info = &qdev_prop_uuid, \ + .offset = offsetof(_state, _field) \ + + type_check(QemuUUID, typeof_field(_state, _field)), \ + } + #define DEFINE_PROP_END_OF_LIST() \ {}