From patchwork Thu Nov 8 14:19:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 994906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qxI7mQ0y"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42rQRx2xgVz9sBZ for ; Fri, 9 Nov 2018 01:20:44 +1100 (AEDT) Received: from localhost ([::1]:57051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKlAn-0004cE-Cm for incoming@patchwork.ozlabs.org; Thu, 08 Nov 2018 09:20:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; 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-Google-Smtp-Source: AJdET5ewd4vXmq2ji6tXhm8VXNDoym/QqKCJKkkk0DgkLqSmStjAk16W/YW0Ixa68MDITeyj0DhiTA== 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 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard , Fam Zheng , "Michael S . Tsirkin" , =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard This is for IPMI, which will behave differently if the UUID is not set. Signed-off-by: Corey Minyard Cc: Fam Zheng Cc: Michael S. Tsirkin Cc: Marc-André Lureau --- include/hw/qdev-properties.h | 7 +++++++ 1 file changed, 7 insertions(+) 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() \ {}