{"id":2230471,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230471/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429183310.12455-8-harshpb@linux.ibm.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260429183310.12455-8-harshpb@linux.ibm.com>","date":"2026-04-29T18:32:57","name":"[PULL,07/13] pnv/mpipl: Write the preserved CPU and MDRT state","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"604c160ec06a95a434224c2e9842745697c6bc5c","submitter":{"id":85411,"url":"http://patchwork.ozlabs.org/api/1.1/people/85411/?format=json","name":"Harsh Prateek Bora","email":"harshpb@linux.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429183310.12455-8-harshpb@linux.ibm.com/mbox/","series":[{"id":502132,"url":"http://patchwork.ozlabs.org/api/1.1/series/502132/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502132","date":"2026-04-29T18:32:53","name":"[PULL,01/13] ppc/pnv: Move SBE host doorbell function to top of file","version":1,"mbox":"http://patchwork.ozlabs.org/series/502132/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230471/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230471/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=U93k8m1u;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5Qw01tTxz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:35:12 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wI9jQ-0007gl-MK; Wed, 29 Apr 2026 14:33:56 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <harshpb@linux.ibm.com>)\n id 1wI9jP-0007gJ-IC\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 14:33:55 -0400","from mx0a-001b2d01.pphosted.com ([148.163.156.1])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <harshpb@linux.ibm.com>)\n id 1wI9jN-0007AL-5S\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 14:33:55 -0400","from pps.filterd (m0360083.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63T9djj13293550\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 18:33:51 GMT","from ppma11.dal12v.mail.ibm.com\n (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4drn44v6ax-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 18:33:51 +0000 (GMT)","from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1])\n by ppma11.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63TINmaJ004855\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 18:33:50 GMT","from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229])\n by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dsamyfbjt-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 18:33:50 +0000 (GMT)","from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com\n [10.20.54.105])\n by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63TIXkfM52035892\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Wed, 29 Apr 2026 18:33:46 GMT","from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id B14EE2004E;\n Wed, 29 Apr 2026 18:33:46 +0000 (GMT)","from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id AEF312004B;\n Wed, 29 Apr 2026 18:33:44 +0000 (GMT)","from localhost.localdomain (unknown [9.39.31.77])\n by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Wed, 29 Apr 2026 18:33:44 +0000 (GMT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=pp1; bh=yldXvNtGi4Nx79HXk\n sBy+Ox3vRjtxXUTxKqLeD78E8Q=; b=U93k8m1uwGTDst4Q1CoihmanJYJt5W3Z9\n w04r+nF7rEeHa/1QM04OxpF0ahIdBmJ8NnWR2XGyK0v08AKwEQBVvrRWwPIAGFiT\n Kmf55Ly1Tk/mR6ZFos5eNczG++Yc3LUJPRDE1v9o5ya39wqVupNUK0vcj6q6L0i7\n Lf4DViQ4YwfoitRWzeXsvRpgPZbJJsv0vUcblqmpZ8MXuo2jt9KhZd7jPQ7DaW4y\n Q5hI8njsLuaOCw6QSdpMTKTl83Q+18En8ixZjpCxlKbEsbyRLVE3Z3IQlnktneSo\n zwWSG/bbQQQXVGfNNCTuKc9ecUxkpnpG5I67fEseCD68DVSblbY1w==","From":"Harsh Prateek Bora <harshpb@linux.ibm.com>","To":"qemu-devel@nongnu.org","Cc":"Aditya Gupta <adityag@linux.ibm.com>,\n Hari Bathini <hbathini@linux.ibm.com>,\n Sourabh Jain <sourabhjain@linux.ibm.com>,\n Shivang Upadhyay <shivangu@linux.ibm.com>","Subject":"[PULL 07/13] pnv/mpipl: Write the preserved CPU and MDRT state","Date":"Thu, 30 Apr 2026 00:02:57 +0530","Message-ID":"<20260429183310.12455-8-harshpb@linux.ibm.com>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20260429183310.12455-1-harshpb@linux.ibm.com>","References":"<20260429183310.12455-1-harshpb@linux.ibm.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-TM-AS-GCONF":"00","X-Proofpoint-ORIG-GUID":"5fB-gwzjl1m29IsYxXIwUKQWhmc5nN0u","X-Authority-Analysis":"v=2.4 cv=Ft81OWrq c=1 sm=1 tr=0 ts=69f24f0f cx=c_pps\n a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17\n a=A5OVakUREuEA:10 a=f7IdgyKtn90A:10 a=VkNPw1HP01LnGYTKEx00:22\n a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=VwQbUJbxAAAA:8\n a=VnNF1IyMAAAA:8 a=dzawcXaIV5huiJcXlfYA:9","X-Proofpoint-GUID":"5fB-gwzjl1m29IsYxXIwUKQWhmc5nN0u","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDI5MDE4NCBTYWx0ZWRfX7yBC/3oXy1oW\n 330ACjSMkju1ChUB0xdmi/bEaNSvoI+9tuh65V/KObmeXHqpEiQ2DoM1iXe5do5QzTRazhpUgrj\n 37qr6s9cSCfQkUCfSMS5fNfgEjrXtLVuwv9s4m9fINm2umI1fCSwmKFl1YMEi+ihqsOHJASozp+\n JHNNSvPWops7oljdy8PS0P0TUPRrJxKhTO/sWdB0ZInQ4pkXRmET3PIG1bl9mQkFNY6MGeVYd0r\n YyFvIMNItq/udAxRKmGneNlZdg5837Ya0G3aPMC2t0JCpr0FPCps9e/k8+UN5GRpUMpamBxH6tB\n jOrXhWIx7HXkpRg3UlPDxvdhm09h0JOeE2ywViY2+IZOseMIU4vdtCZHITBUI9Ei5YwYCprvxdU\n zLQRbeCxA0ASpZMIfi6z/224Zkwe/NjtbNDIrkoKgh97W2m4MX/BGKhRGRFvQ8TvTVwS5IA8MvH\n VzYAPwvqPTJCAGQchBw==","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-29_01,2026-04-28_01,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 lowpriorityscore=0 bulkscore=0 spamscore=0 impostorscore=0\n clxscore=1015 malwarescore=0 phishscore=0 suspectscore=0 adultscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604290184","Received-SPF":"pass client-ip=148.163.156.1;\n envelope-from=harshpb@linux.ibm.com;\n helo=mx0a-001b2d01.pphosted.com","X-Spam_score_int":"-26","X-Spam_score":"-2.7","X-Spam_bar":"--","X-Spam_report":"(-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\n RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,\n 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":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Aditya Gupta <adityag@linux.ibm.com>\n\nLogic for preserving the CPU registers and memory regions has been done\nin previous patches.\n\nWrite those data at the relevant memory address, such as PROC_DUMP_AREA\nfor CPU registers, and MDRT for preserved memory regions.\n\nAlso export \"mpipl-boot\" device tree node, for kernel to know that it's\na 'dump active' boot\n\nReviewed-by: Hari Bathini <hbathini@linux.ibm.com>\nReviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>\nSigned-off-by: Aditya Gupta <adityag@linux.ibm.com>\nTested-by: Shivang Upadhyay <shivangu@linux.ibm.com>\nLink: https://lore.kernel.org/qemu-devel/20260424083837.214947-8-adityag@linux.ibm.com\nSigned-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>\n---\n include/hw/ppc/pnv.h |   1 +\n hw/ppc/pnv.c         |  39 +++++++++++-\n hw/ppc/pnv_mpipl.c   | 140 +++++++++++++++++++++++++++++++++++++++++++\n 3 files changed, 179 insertions(+), 1 deletion(-)","diff":"diff --git a/include/hw/ppc/pnv.h b/include/hw/ppc/pnv.h\nindex 19c7170e74..f8234fb3cd 100644\n--- a/include/hw/ppc/pnv.h\n+++ b/include/hw/ppc/pnv.h\n@@ -296,5 +296,6 @@ void pnv_bmc_set_pnor(IPMIBmc *bmc, PnvPnor *pnor);\n \n /* MPIPL helpers */\n void do_mpipl_preserve(PnvMachineState *pnv);\n+bool do_mpipl_write(PnvMachineState *pnv);\n \n #endif /* PPC_PNV_H */\ndiff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c\nindex 09b69c355a..48f49bef82 100644\n--- a/hw/ppc/pnv.c\n+++ b/hw/ppc/pnv.c\n@@ -750,10 +750,47 @@ static void pnv_reset(MachineState *machine, ResetType type)\n {\n     PnvMachineState *pnv = PNV_MACHINE(machine);\n     void *fdt;\n+    int node_offset;\n+    bool mpipl_write_succeeded = false;\n \n     qemu_devices_reset(type);\n \n-    if (!pnv->mpipl_state.is_next_boot_mpipl) {\n+    /*\n+     * Only on success of writing MPIPL data will the next boot be provided\n+     * \"mpipl-boot\" property in device tree\n+     * Otherwise boot like a normal non-MPIPL boot\n+     */\n+    if (pnv->mpipl_state.is_next_boot_mpipl) {\n+        /* Write the preserved MDRT and CPU State Data */\n+        mpipl_write_succeeded = do_mpipl_write(pnv);\n+    }\n+\n+    /*\n+     * If it's a MPIPL boot, add the \"mpipl-boot\" property, and reset the\n+     * boolean for MPIPL boot for next boot\n+     */\n+    if (mpipl_write_succeeded) {\n+        void *fdt_copy = g_malloc0(FDT_MAX_SIZE);\n+\n+        /* Create a writable copy of the fdt */\n+        _FDT((fdt_open_into(fdt, fdt_copy, FDT_MAX_SIZE)));\n+\n+        node_offset = fdt_path_offset(fdt_copy, \"/ibm,opal/dump\");\n+        _FDT((fdt_appendprop_u64(fdt_copy, node_offset, \"mpipl-boot\", 1)));\n+\n+        /* Update the fdt, and free the original fdt */\n+        if (fdt != machine->fdt) {\n+            /*\n+             * Only free the fdt if it's not machine->fdt, to prevent\n+             * double free, since we already free machine->fdt later\n+             */\n+            g_free(fdt);\n+        }\n+        fdt = fdt_copy;\n+\n+        /* This boot is an MPIPL, reset the boolean for next boot */\n+        pnv->mpipl_state.is_next_boot_mpipl = false;\n+    } else {\n         /*\n          * Set the \"Thread Register State Entry Size\", so that firmware can\n          * allocate enough memory to capture CPU state in the event of a\ndiff --git a/hw/ppc/pnv_mpipl.c b/hw/ppc/pnv_mpipl.c\nindex 308948b829..f5b228f5ba 100644\n--- a/hw/ppc/pnv_mpipl.c\n+++ b/hw/ppc/pnv_mpipl.c\n@@ -20,6 +20,8 @@\n     (pnv->mpipl_state.skiboot_base + MDST_TABLE_OFF)\n #define MDDT_TABLE_RELOCATED                            \\\n     (pnv->mpipl_state.skiboot_base + MDDT_TABLE_OFF)\n+#define MDRT_TABLE_RELOCATED                            \\\n+    (pnv->mpipl_state.skiboot_base + MDRT_TABLE_OFF)\n #define PROC_DUMP_RELOCATED                             \\\n     (pnv->mpipl_state.skiboot_base + PROC_DUMP_AREA_OFF)\n \n@@ -320,6 +322,139 @@ static bool pnv_mpipl_preserve_cpu_state(PnvMachineState *pnv)\n     return true;\n }\n \n+/*\n+ * Write the preserved CPU state data in Processor Dump Area (PROC_DUMP_AREA)\n+ *\n+ * Returns true if everything went fine, else false for any error\n+ */\n+static bool pnv_mpipl_write_cpu_state(PnvMachineState *pnv)\n+{\n+    MpiplProcDumpArea *proc_area = &pnv->mpipl_state.proc_area;\n+    MpiplPreservedCPUState *cpu_state = pnv->mpipl_state.cpu_states;\n+    const uint32_t num_cpu_states = pnv->mpipl_state.num_cpu_states;\n+    hwaddr next_regentries_hdr;\n+    AddressSpace *default_as = &address_space_memory;\n+    MemTxResult io_result;\n+    MemTxAttrs attrs;\n+\n+    /* Mark the memory transactions as privileged memory access */\n+    attrs.user = 0;\n+    attrs.memory = 1;\n+\n+    if (be32_to_cpu(proc_area->alloc_size) <\n+       (num_cpu_states * sizeof(MpiplPreservedCPUState))) {\n+        qemu_log_mask(LOG_GUEST_ERROR,\n+            \"MPIPL: Size of buffer allocate by skiboot (%u bytes) is not\"\n+            \"enough to save all CPUs registers needed (%zu bytes)\",\n+            be32_to_cpu(proc_area->alloc_size),\n+            num_cpu_states * sizeof(MpiplPreservedCPUState));\n+\n+        return false;\n+    }\n+\n+    proc_area->version = PROC_DUMP_AREA_VERSION_P9;\n+\n+    /*\n+     * This is the stride kernel/firmware should use to jump from a\n+     * register entries header to next CPU's header\n+     */\n+    proc_area->thread_size = cpu_to_be32(sizeof(MpiplPreservedCPUState));\n+\n+    /* Write the header and register entries for each CPU */\n+    next_regentries_hdr = be64_to_cpu(proc_area->alloc_addr) & (~HRMOR_BIT);\n+    for (int i = 0; i < num_cpu_states; ++i) {\n+        io_result = address_space_write(default_as, next_regentries_hdr, attrs,\n+            &cpu_state->hdr, sizeof(MpiplRegDataHdr));\n+        if (io_result != MEMTX_OK) {\n+            qemu_log_mask(LOG_GUEST_ERROR,\n+                \"MPIPL: Failed to write RegEntries Header\\n\");\n+            return false;\n+        }\n+\n+        io_result = address_space_write(default_as,\n+            next_regentries_hdr + sizeof(MpiplRegDataHdr), attrs,\n+            &cpu_state->reg_entries,\n+            NUM_REGS_PER_CPU * (sizeof(MpiplRegEntry)));\n+        if (io_result != MEMTX_OK) {\n+            qemu_log_mask(LOG_GUEST_ERROR,\n+                \"MPIPL: Failed to write Register Entries\\n\");\n+            return false;\n+        }\n+\n+        /*\n+         * According to HDAT section:\n+         *  \"15.3.1.5 Architected Register Data content\":\n+         *\n+         * The next register entries header will be at current header +\n+         * \"Thread Register State Entry size\"\n+         *\n+         * Note: proc_area.thread_size == sizeof(MpiplPreservedCPUState)\n+         */\n+        next_regentries_hdr += sizeof(MpiplPreservedCPUState);\n+        ++cpu_state;\n+    }\n+\n+    /* Point the destination address to the preserved memory region */\n+    proc_area->dest_addr = proc_area->alloc_addr;\n+    proc_area->act_size  = cpu_to_be32(num_cpu_states *\n+            sizeof(MpiplPreservedCPUState));\n+\n+    io_result = address_space_write(default_as, PROC_DUMP_AREA_OFF, attrs,\n+        proc_area, sizeof(MpiplProcDumpArea));\n+    if (io_result != MEMTX_OK) {\n+        qemu_log_mask(LOG_GUEST_ERROR,\n+            \"MPIPL: Failed to write Register Entries\\n\");\n+        return false;\n+    }\n+\n+    return true;\n+}\n+\n+/*\n+ * Write the preserved MDRT table, representing preserved memory regions\n+ *\n+ * Returns true if everything went fine, else false for any error\n+ */\n+static bool pnv_mpipl_write_mdrt(PnvMachineState *pnv)\n+{\n+    MpiplPreservedState *state = &pnv->mpipl_state;\n+    AddressSpace *default_as = &address_space_memory;\n+    MemTxResult io_result;\n+    MemTxAttrs attrs;\n+\n+    /* Mark the memory transactions as privileged memory access */\n+    attrs.user = 0;\n+    attrs.memory = 1;\n+\n+    /*\n+     * Generally writes from platform during MPIPL don't go to a relocated\n+     * skiboot address\n+     *\n+     * Though for MDRT we are doing so, as this is the address skiboot\n+     * considers by default for MDRT\n+     *\n+     * MDRT/MDST/MDDT base addresses are actually meant to be shared by\n+     * platform in SPIRA structures.\n+     *\n+     * Not implementing SPIRA as it increases complexity for no gains.\n+     * Using the default address skiboot expects for MDRT, which is the\n+     * relocated MDRT, hence writing to it\n+     *\n+     * Other tables like MDST/MDDT should not be written to relocated\n+     * addresses, as skiboot will overwrite anything from SKIBOOT_BASE till\n+     * SKIBOOT_BASE+SKIBOOT_SIZE (which is 0x30000000-0x31c00000 by default)\n+     */\n+    io_result = address_space_write(default_as, MDRT_TABLE_RELOCATED, attrs,\n+            state->mdrt_table,\n+            state->num_mdrt_entries * sizeof(MdrtTableEntry));\n+    if (io_result != MEMTX_OK) {\n+        qemu_log_mask(LOG_GUEST_ERROR, \"MPIPL: Failed to write MDRT table\\n\");\n+        return false;\n+    }\n+\n+    return true;\n+}\n+\n void do_mpipl_preserve(PnvMachineState *pnv)\n {\n     pause_all_vcpus();\n@@ -340,3 +475,8 @@ void do_mpipl_preserve(PnvMachineState *pnv)\n      */\n     qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET);\n }\n+\n+bool do_mpipl_write(PnvMachineState *pnv)\n+{\n+    return pnv_mpipl_write_mdrt(pnv) && pnv_mpipl_write_cpu_state(pnv);\n+}\n","prefixes":["PULL","07/13"]}