From patchwork Tue Jul 25 18:39:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Ni X-Patchwork-Id: 1812821 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=WNtt5pMK; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R9Qsx0G9Fz1yXx for ; Wed, 26 Jul 2023 04:44:05 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOMxA-0000VA-L1; Tue, 25 Jul 2023 14:40:12 -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 1qOMx0-0000TE-OJ for qemu-devel@nongnu.org; Tue, 25 Jul 2023 14:40:03 -0400 Received: from mailout1.w2.samsung.com ([211.189.100.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOMwx-0000hS-Nt for qemu-devel@nongnu.org; Tue, 25 Jul 2023 14:40:02 -0400 Received: from uscas1p2.samsung.com (unknown [182.198.245.207]) by mailout1.w2.samsung.com (KnoxPortal) with ESMTP id 20230725183957usoutp01cb0ac2b7d0945f87dcc750325c3c5dca~1MFm2x1Ci1107711077usoutp01t; Tue, 25 Jul 2023 18:39:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w2.samsung.com 20230725183957usoutp01cb0ac2b7d0945f87dcc750325c3c5dca~1MFm2x1Ci1107711077usoutp01t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1690310397; bh=B1j67K7Wo9LB7R3854Ms8sUmfcxuACxDq7d7l8I3jpQ=; h=From:To:CC:Subject:Date:References:From; b=WNtt5pMK94OK6Vmm6bWyFrK35uvZryYfkPY6w+NqxRPFAyw4n3Vg5zGOkC6jHJibQ SIv7dJkyymB5p5c/biYQWLSuQ+UQXgZlni5Lzitv6N4OSXtuZT6MHVuQ+pgljaqwpq 7WNNX1YY5Txn/iqwR2lY6sLrleyBRCVXpQ91hPDM= Received: from ussmges1new.samsung.com (u109.gpu85.samsung.co.kr [203.254.195.109]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20230725183956uscas1p19e375d2106e3399f7a8036e23a16153f~1MFmr36MM2195121951uscas1p1m; Tue, 25 Jul 2023 18:39:56 +0000 (GMT) Received: from uscas1p1.samsung.com ( [182.198.245.206]) by ussmges1new.samsung.com (USCPEMTA) with SMTP id 42.DD.51475.CF610C46; Tue, 25 Jul 2023 14:39:56 -0400 (EDT) Received: from ussmgxs2new.samsung.com (u91.gpu85.samsung.co.kr [203.254.195.91]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20230725183956uscas1p154e945516c2a4091479f4906d7652648~1MFmIgDjd1452314523uscas1p1B; Tue, 25 Jul 2023 18:39:56 +0000 (GMT) X-AuditID: cbfec36d-8a3ff7000001c913-3e-64c016fc5d02 Received: from SSI-EX1.ssi.samsung.com ( [105.128.2.145]) by ussmgxs2new.samsung.com (USCPEXMTA) with SMTP id E2.83.44215.BF610C46; Tue, 25 Jul 2023 14:39:56 -0400 (EDT) Received: from SSI-EX2.ssi.samsung.com (105.128.2.227) by SSI-EX1.ssi.samsung.com (105.128.2.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.24; Tue, 25 Jul 2023 11:39:55 -0700 Received: from SSI-EX2.ssi.samsung.com ([105.128.2.227]) by SSI-EX2.ssi.samsung.com ([105.128.2.227]) with mapi id 15.01.2375.024; Tue, 25 Jul 2023 11:39:55 -0700 From: Fan Ni To: "qemu-devel@nongnu.org" CC: "jonathan.cameron@huawei.com" , "linux-cxl@vger.kernel.org" , "gregory.price@memverge.com" , "hchkuo@avery-design.com.tw" , "cbrowy@avery-design.com" , "ira.weiny@intel.com" , "dan.j.williams@intel.com" , Adam Manzanares , "dave@stgolabs.net" , "nmtadam.samsung@gmail.com" , "nifan@outlook.com" , Fan Ni Subject: [Qemu PATCH v2 0/9] Enabling DCD emulation support in Qemu Thread-Topic: [Qemu PATCH v2 0/9] Enabling DCD emulation support in Qemu Thread-Index: AQHZvydn8pbwbQd4g0ikjj4shw3FGw== Date: Tue, 25 Jul 2023 18:39:55 +0000 Message-ID: <20230725183939.2741025-1-fan.ni@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.25.1 x-originating-ip: [105.128.2.176] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDKsWRmVeSWpSXmKPExsWy7djXc7p/xA6kGDxeoG3RfX4Do8X0qRcY LVbfXMNo0dD0iMWiZfd7Jov9T5+zWKxaeI3N4vysUywWzyc+Z7JYuuQRs8Xx3h0sDtweFyZP YPVY3ODqsXPWXXaPliNvgbw9L5k8Nn78z+7x5NpmJo/Nr18we0ydXe/xeZNcAFcUl01Kak5m WWqRvl0CV8bl/rVsBXt5Kq696GJrYJzK1cXIySEhYCLxZnc3SxcjF4eQwEpGiQvvnjFBOK1M EqfP/2aEqXq5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xo//2T2eXNvM5LH59Qtmj6mz6z0+b5IL4IrisklJzcks Sy3St0vgyrjcv5atYC9PxbUXXWwNjFO5uhg5OSQETCRe7pnI3sXIxSEksJpR4sTeZhYI5xOj xPXzP5ghnGWMEosPL2AHaWETUJTY17WdDcQWETCWOHZ4CTOIzSzwmkXi20VuEFtYwFliaccr FogaD4mlB/azQth6EsuW3QSrZxFQlehYuYMJxOYVsJTYv3gmWA2jgJjE91NrmCBmikvcejKf CeJUAYkle84zQ9iiEi8f/2OFsOUlJv+YwQZhK0rc//6SHaJXT+LG1ClsELa2xLKFr5khdglK nJz5hAWiXlLi4IobLBMYxWYhWTcLSfssJO2zkLQvYGRZxSheWlycm15RbJSXWq5XnJhbXJqX rpecn7uJERjrp/8djt7BePvWR71DjEwcjIcYJTiYlUR4DWP2pQjxpiRWVqUW5ccXleakFh9i lOZgURLnfRk1MV5IID2xJDU7NbUgtQgmy8TBKdXAFO6XmZf79vZCU5POyxVXN5w8oL5Lynzy konPqt+ftlgjz229MeBTx4Le2ET1wOneMczmYqu4pA7ELmr++Heq+FyWKstqA5MZGaV7NBuV 7wbxSi0780fZa2Z+AsfDrUV//s/VCQ5eInDx+F6Re4v9XjwP5gvU9Ph5x32BDvOeu2V+6fVb 9paIub+y35yxxiHro99kVcVi3+lxdmkctkcKd3JPfsRlqiscsqw0YUHcgppljutVzVz5xGW/ Bh/4Y1ReyTRpmfvWae9yXLO7v8XPm2auVbngUZ1tiH1pMuvujLf/HNLt2/c1PbztkrShJlFQ +UThSbM8HQepjNx65Z3dst5yvyTXl/VmsZtOFVNiKc5INNRiLipOBADZ1pLiZAMAAA== X-CMS-MailID: 20230725183956uscas1p154e945516c2a4091479f4906d7652648 CMS-TYPE: 301P X-CMS-RootMailID: 20230725183956uscas1p154e945516c2a4091479f4906d7652648 References: Received-SPF: pass client-ip=211.189.100.11; envelope-from=fan.ni@samsung.com; helo=mailout1.w2.samsung.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org v1[1]->v2: 1. fix a regression issue reported by Ira[2]: 2. fix a compile warning due to uninitialized 'rip' in qmp processing function. [1] https://lore.kernel.org/linux-cxl/20230724162313.34196-1-fan.ni@samsung.com/T/#t [2] https://lore.kernel.org/linux-cxl/64bfe7b090843_12757b2945b@iweiny-mobl.notmuch/T/#m09983a3dbaa9135a850e345d86714bf2ab957ef6 Fan Ni (9): hw/cxl/cxl-mailbox-utils: Add dc_event_log_size field to output payload of identify memory device command hw/cxl/cxl-mailbox-utils: Add dynamic capacity region representative and mailbox command support include/hw/cxl/cxl_device: Rename mem_size as static_mem_size for type3 memory devices hw/mem/cxl_type3: Add support to create DC regions to type3 memory devices hw/mem/cxl_type3: Add host backend and address space handling for DC regions hw/mem/cxl_type3: Add DC extent list representative and get DC extent list mailbox support hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents hw/mem/cxl_type3: Add dpa range validation for accesses to dc regions hw/cxl/cxl-mailbox-utils.c | 424 +++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 545 +++++++++++++++++++++++++++++++++--- hw/mem/cxl_type3_stubs.c | 6 + include/hw/cxl/cxl_device.h | 50 +++- include/hw/cxl/cxl_events.h | 16 ++ qapi/cxl.json | 49 ++++ 6 files changed, 1044 insertions(+), 46 deletions(-)