From nobody Mon Feb 9 02:27:55 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612542412; cv=none; d=zohomail.com; s=zohoarc; b=AQtoKUokrKwmXGXoblfqUgGmugVhKPxIqFAqu4v/EXJmvD39H5rOUltTP0EBrFHjCCJ1DgpqC0lBugGxpI/mWwXJhJ8dUztztN7W5/tyceWzV3HQ1FcvFzCK/6YSPeIdzHgFM9QheqJgByftgb3MJz1g6e1h/wA5MXZ4dQCcTAM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612542412; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NM5gGdPhi2A0Xfk2U2Gp/inbSM/ee2Z72/b98qblcAQ=; b=RZOA1uIz8I1B/EV5Dc9liQ3615PCnqKDnS7zZgRiTv8dW4/EOn6wIoHvu58W56BVVHfCvdtqlgRUwEObWcTPr+QjNZyPDAO3DKnnDkEryhaUHckr7KotHZGYFuix02Ye6D/nPKFpeu/JePEJtjJp1PVaCHqZ7hvw/vrPV8jLcNk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612542412274173.93333608395767; Fri, 5 Feb 2021 08:26:52 -0800 (PST) Received: from localhost ([::1]:54910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l82mD-0003Cm-27 for importer@patchew.org; Fri, 05 Feb 2021 10:12:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l82hS-0007HE-RT for qemu-devel@nongnu.org; Fri, 05 Feb 2021 10:07:11 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:52545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l82hN-0004IV-8e for qemu-devel@nongnu.org; Fri, 05 Feb 2021 10:07:10 -0500 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-73-HESJU1FtN_CsJZN_k0Ewow-1; Fri, 05 Feb 2021 10:03:58 -0500 Received: by mail-ed1-f69.google.com with SMTP id l23so4453238edt.23 for ; Fri, 05 Feb 2021 07:03:58 -0800 (PST) Received: from redhat.com (bzq-79-180-2-31.red.bezeqint.net. [79.180.2.31]) by smtp.gmail.com with ESMTPSA id sb6sm3755295ejb.54.2021.02.05.07.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 07:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612537624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NM5gGdPhi2A0Xfk2U2Gp/inbSM/ee2Z72/b98qblcAQ=; b=YhvNGA3I3qTaKMefKJvarZtOtNT3K0aZXQMAbt1kHsXciE43jbcQwUYOYLV9Nf3bDFMFtA LfpwNYj43Mwp0r3vkyeD2BFnrlP5NS4Vg+cinAYhT4izhcafuaCYcTwBSH7ZfjKIzME7aQ /4wTgw1P1l27W7z9rVx1v5HhktmoJyE= X-MC-Unique: HESJU1FtN_CsJZN_k0Ewow-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NM5gGdPhi2A0Xfk2U2Gp/inbSM/ee2Z72/b98qblcAQ=; b=G2DeVMMAOwWhlHsWsK/S17nhlfINyQX2T9VxsOwv1cKm0pbVxlV2eh126dRUVgWJk2 P6MEbRwo/p21ijYNUz8cVLYSildqxJiRYnB2fPxA1lG50u1HhoYzlTEEa06MZpxcWGQQ Sdf0aemDxEGY0WFGmLkpuFPb69ecVDypswvh5XJGIU90She1WuRAVXi8Pun69Ej37sjg A9eJSTOKj/XwY0mukoB8xbP9prMRsyWVGEdXLkAGVZy7mpE+IMdYj2sfPj+ORkGG7PuH XWVLYTeaJdW6vDdb6xawJex4omlxeft0uFngyTATpqdDei/UeNK1TaQVTZ3niuAlIaI9 Vqrw== X-Gm-Message-State: AOAM531ThkY4AExFECW82gkBfpKwOJWvkq0L5tRSZU9eUKRe8mkEysPh aYMMPekjzIGvXR8yE/JEG/meWlbnrE1AkR/a0ofAPwgFwiNmueu9iaXM7h7Aa+JDqZrPjpVjs4W 6C6yZ/IJHPJuI0y60JPTr1k4D8ipYDQgIv3cGS7BYMK7rRIvunUIcrFOXVVvT X-Received: by 2002:a17:906:d189:: with SMTP id c9mr4533481ejz.36.1612537437445; Fri, 05 Feb 2021 07:03:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFkKNbCT01jdx/jX7L40+CRAp4II9nQ02wxf9EHJPpNC5SkmJjQFpmIfk7Y9nOe5ST4JM+qw== X-Received: by 2002:a17:906:d189:: with SMTP id c9mr4533459ejz.36.1612537437238; Fri, 05 Feb 2021 07:03:57 -0800 (PST) Date: Fri, 5 Feb 2021 10:03:54 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL v2 09/16] hw/virtio/virtio-balloon: Remove the "class" property Message-ID: <20210205150135.94643-10-mst@redhat.com> References: <20210205150135.94643-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210205150135.94643-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.352, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Peter Maydell , Thomas Huth , David Hildenbrand Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Thomas Huth This property was only required for compatibility reasons in the pc-1.0 machine type and earlier. Now that these machine types have been removed, the property is not useful anymore. Signed-off-by: Thomas Huth Message-Id: <20210203171832.483176-4-thuth@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: David Hildenbrand --- hw/virtio/virtio-balloon-pci.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/hw/virtio/virtio-balloon-pci.c b/hw/virtio/virtio-balloon-pci.c index a2c5cc7207..79a3ba979a 100644 --- a/hw/virtio/virtio-balloon-pci.c +++ b/hw/virtio/virtio-balloon-pci.c @@ -34,21 +34,13 @@ struct VirtIOBalloonPCI { VirtIOPCIProxy parent_obj; VirtIOBalloon vdev; }; -static Property virtio_balloon_pci_properties[] =3D { - DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), - DEFINE_PROP_END_OF_LIST(), -}; =20 static void virtio_balloon_pci_realize(VirtIOPCIProxy *vpci_dev, Error **e= rrp) { VirtIOBalloonPCI *dev =3D VIRTIO_BALLOON_PCI(vpci_dev); DeviceState *vdev =3D DEVICE(&dev->vdev); =20 - if (vpci_dev->class_code !=3D PCI_CLASS_OTHERS && - vpci_dev->class_code !=3D PCI_CLASS_MEMORY_RAM) { /* qemu < 1.1 */ - vpci_dev->class_code =3D PCI_CLASS_OTHERS; - } - + vpci_dev->class_code =3D PCI_CLASS_OTHERS; qdev_realize(vdev, BUS(&vpci_dev->bus), errp); } =20 @@ -59,7 +51,6 @@ static void virtio_balloon_pci_class_init(ObjectClass *kl= ass, void *data) PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); k->realize =3D virtio_balloon_pci_realize; set_bit(DEVICE_CATEGORY_MISC, dc->categories); - device_class_set_props(dc, virtio_balloon_pci_properties); pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_BALLOON; pcidev_k->revision =3D VIRTIO_PCI_ABI_VERSION; --=20 MST