From nobody Sat Nov 15 15:29:55 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1749027141; cv=none; d=zohomail.com; s=zohoarc; b=jmeq/+Szk8u/RXMmqxu+E1LrriwoU2xBxcnehjvG4FaRB8fF6xmoEGDlmKtr/P/MdXwvqAwiyRwoqgEMOq2h54IKfFQyLYjNx+7BwN09JjJzeMoEVz/5jIEiEbKtZZX6x+hsCXN0PWUOlytXYMzb13GuPmzVEz2CvYiWAa7Tg9Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749027141; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cHYQHMr+BfMdVOJsYWEi635W/BbfqyxaxcX2NVRXw0s=; b=Z3ewFmyxIJrHudRVZMh+TmO5pp8e7xpkXtz0y1EFtWgwMjNG1qXzWUtxYPvDb6AM6A2J6UI6YbdOhXFLGroxKRCUONJCFwyIF4TfIDF7ezFa2B2Nqt2UnzQxUEL6f+8b4PpbPPDSBlsJaoVXIwwatr14QeQ7t7UezwWQCWvm3e8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1749027141597745.116682735181; Wed, 4 Jun 2025 01:52:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uMjqk-0006jd-G6; Wed, 04 Jun 2025 04:51:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uMjqg-0006jK-Lm for qemu-devel@nongnu.org; Wed, 04 Jun 2025 04:51:51 -0400 Received: from mgamail.intel.com ([192.198.163.8]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uMjqe-0002E3-GB for qemu-devel@nongnu.org; Wed, 04 Jun 2025 04:51:50 -0400 Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2025 01:51:45 -0700 Received: from spr-s2600bt.bj.intel.com ([10.240.192.127]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2025 01:51:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749027108; x=1780563108; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=msbnNfrNenAFwAh9W4xXLltKPTkAd+yAVo4Glpwk/NE=; b=kzsYJqgJj5aamuVu3jPg3o9kx3NuqXjFXR1TIjTglzvjRislLaDhraSa K55RsdliTrlxQGeyp9wAy87zgkQNX5pMd+Qtb1NsvW7Eu02WsKoT9qAkQ mPnshDoW0uQPGhed1Qzzkqysk42Yr7z+Qid4xrv4dlee6mcJHj3LPbazJ arXq58hx39oXb76+rmXjLbTOp9amPMqeCaxkBIA573ZgSL+FQ5xn4L7Xe 8A6JUgUgCkQoPnwT/w4yYVFQptvRSlg/ma/eu1MKl6W/iYoyM7jP9tzxr DwTwPIg3fT7pAUKGotIk8vzMfpuXnNReFR5Iq/HP63lBm+YDPrsIMzBU5 w==; X-CSE-ConnectionGUID: soe3RQLWQlSLBrm8m7WL2w== X-CSE-MsgGUID: KvLUmGA+Rp6MPsJGgoZxpQ== X-IronPort-AV: E=McAfee;i="6700,10204,11453"; a="68648757" X-IronPort-AV: E=Sophos;i="6.16,208,1744095600"; d="scan'208";a="68648757" X-CSE-ConnectionGUID: Ri+ml3JRQ6CaCJYWTtb7dw== X-CSE-MsgGUID: cCwGzlyaSN2m4fOlFPIAUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,208,1744095600"; d="scan'208";a="150279434" From: Zhenzhong Duan To: qemu-devel@nongnu.org Cc: chao.p.peng@intel.com, Zhenzhong Duan , David Hildenbrand , "Michael S. Tsirkin" Subject: [PATCH] virtio-mem: Fix definition of VirtIOMEMClass Date: Wed, 4 Jun 2025 16:47:56 +0800 Message-Id: <20250604084757.4035354-1-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=192.198.163.8; envelope-from=zhenzhong.duan@intel.com; helo=mgamail.intel.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.128, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1749027144019116600 Content-Type: text/plain; charset="utf-8" Parent of VirtIOMEMClass is VirtioDeviceClass rather than VirtIODevice. Fixes: 910b25766b33 ("virtio-mem: Paravirtualized memory hot(un)plug") Signed-off-by: Zhenzhong Duan Reviewed-by: David Hildenbrand Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/virtio/virtio-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/virtio/virtio-mem.h b/include/hw/virtio/virtio-mem.h index bc4f787772..93fdf9e432 100644 --- a/include/hw/virtio/virtio-mem.h +++ b/include/hw/virtio/virtio-mem.h @@ -134,7 +134,7 @@ struct VirtioMemSystemReset { =20 struct VirtIOMEMClass { /* private */ - VirtIODevice parent; + VirtioDeviceClass parent; =20 /* public */ void (*fill_device_info)(const VirtIOMEM *vmen, VirtioMEMDeviceInfo *v= i); --=20 2.34.1