From patchwork Thu Sep 19 21:39:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 11153457 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 479D214DB for ; Thu, 19 Sep 2019 22:06:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E97421907 for ; Thu, 19 Sep 2019 22:06:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZkPB2Qv/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E97421907 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:48956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB4ZL-00059g-Ja for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 Sep 2019 18:06:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56280) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB49b-0001Xm-6T for qemu-devel@nongnu.org; Thu, 19 Sep 2019 17:40:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB49Q-0006AN-3q for qemu-devel@nongnu.org; Thu, 19 Sep 2019 17:39:51 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:46631) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB49P-0006AC-TQ for qemu-devel@nongnu.org; Thu, 19 Sep 2019 17:39:44 -0400 Received: by mail-oi1-x243.google.com with SMTP id k25so3980224oiw.13 for ; Thu, 19 Sep 2019 14:39:43 -0700 (PDT) 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=gWzJgnmTsjgDALss2ZvZftEVRHxBMzzLKAhMT/OJ2C4=; b=ZkPB2Qv/ZTphNpr1Cclbl3gSK3dZziExaL0MZGDcu14/ggovvDLoCqNMeeng7b5b2r PHSWJn9qIh6Ujt9mZnbKfVA8Y0egX9Ix5dMJr11C/8mckWjSVf0LuiOtJ7fGzDVKUopu wrD1LZ17BvJBm0C/HZOLsjKTn7HUe+tjMO19ki6RSwd9nI9clh4e96zISBLlGtxRdZdj LODrkSMe9fOZyH0zYDEwnui6mZ3pbMGe4Q7ZOCu5NtAJ08sGjtorTbBlOAc7sJ0U3O41 sKaU5pig5DkOD8ipzGuGxPWjzOE0+e0AN6z0TIAmeZbrVN3EFQCxN52HyfFxGqwdh6Yt Oqyw== 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=gWzJgnmTsjgDALss2ZvZftEVRHxBMzzLKAhMT/OJ2C4=; b=lQF7fTU01lUorYT2cx0VDP2mCyZVN0lismbqKwYzMmbsCnxC9vfJGmIC6p7TnfPwNC NdpZJ/Xv8oAw4EDdJ21Dmls2Kq4ZqcO9OP+OLxjxCVoTZ1ShohZ3m1T2+9WCLpxMVmM0 DAdQq9SauS0vsfi9vK2OuodaEEDthxQ8H9/+nAAS0l1JIUum+ILjiKeqej1a7wIAFyef RTZWXPg6nVg6+fdUtZVjCKdX2ESblUzrq4DW4dqyKTA/KGe1XTidV/cjaBZmUDx+kGZy Px2rku4SN7DRQCPlgCmm1Vvfjf9yIqeVFd1VZUojr4vj43gyyIpx4ummk1Hpzq5Et1xC Je3Q== X-Gm-Message-State: APjAAAWZLgyOdcRPkmgGpfHxVDKhYy12Mm/ngjGztklAZs0KxSgtMpjA w2nc16PEwregkFOPa2kwMg== X-Google-Smtp-Source: APXvYqyQ2lfqpjjaLX6qhYLtBAa2f+Bq/a8RtqwE2Z8IalQXEMAvxn3ouTVqfzjEf4vI/h7jvpsbPQ== X-Received: by 2002:aca:4cf:: with SMTP id 198mr22057oie.109.1568929183027; Thu, 19 Sep 2019 14:39:43 -0700 (PDT) Received: from serve.minyard.net ([47.184.136.59]) by smtp.gmail.com with ESMTPSA id 8sm35705oti.41.2019.09.19.14.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 14:39:40 -0700 (PDT) Received: from t560.minyard.net (unknown [192.168.27.180]) by serve.minyard.net (Postfix) with ESMTPA id 37AEE18059E; Thu, 19 Sep 2019 21:39:36 +0000 (UTC) From: minyard@acm.org To: Peter Maydell Subject: [PATCH 05/15] qdev: Add a no default uuid property Date: Thu, 19 Sep 2019 16:39:14 -0500 Message-Id: <20190919213924.31852-6-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190919213924.31852-1-minyard@acm.org> References: <20190919213924.31852-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::243 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard , Fam Zheng , "Michael S . Tsirkin" , QEMU Developers , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Paolo Bonzini , Igor Mammedov , David Gibson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.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 Reviewed-by: Cédric Le Goater --- 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 2e98dd60db..c6a8cb5516 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -238,6 +238,13 @@ extern const PropertyInfo qdev_prop_pcie_link_width; #define DEFINE_PROP_AUDIODEV(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard) +#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() \ {}