[{"id":3668993,"web_url":"http://patchwork.ozlabs.org/comment/3668993/","msgid":"<f7c84a25-2f78-48ef-8901-2b752ead8900@rsg.ci.i.u-tokyo.ac.jp>","list_archive_url":null,"date":"2026-03-25T11:11:43","subject":"Re: [RFC PATCH v7 0/7] vmapple: making it work on the latest macOS\n host releases","submitter":{"id":90980,"url":"http://patchwork.ozlabs.org/api/people/90980/","name":"Akihiko Odaki","email":"odaki@rsg.ci.i.u-tokyo.ac.jp"},"content":"On 2026/03/25 5:48, Mohamed Mediouni wrote:\n> v7:\n> \n> Support for newer guest OSes.\n> \n> Added not mergable patch for private ISA enablement.\n> \n> Not grabbing a memory reference and still using flatview_for_each_range\n> for this one, which works fine as live migration is disallowed anyway.\n\nI prefer the other solutions suggested earlier. My preference order:\n- Use a listener or change flatview_for_each_range() to remove const.\n- Casting away const.\n- Avoid grabbing memory references (this version)\n\nRegards,\nAkihiko Odaki\n\n> \n> v6:\n> Rework the patches a bit, with making sure that there's no compiler warnings\n> \n> v5:\n> Address review comments and rebase.\n> \n> v4:\n> Rebase and resend without the RFC tag as I didn't get feedback.\n> Drop patch 1 (version I posted was incomplete anyways). Last patch isn't worth it too tbh.\n> \n> v2->v3:\n> Remove the Apple M4 support workaround part for now, to be part of another patchset perhaps\n> Address comments\n> \n> v1->v2:\n> Remove some lines that shouldn't have been present...\n> \n> Mohamed Mediouni (7):\n>    vmapple: apple-gfx: make it work on the latest macOS release\n>    hw/vmapple: aes: convert MAX_LEN to a #define\n>    vmapple: declare it as an AArch64-compatible machine\n>    Revert \"hw/arm: Do not build VMapple machine by default\"\n>    vmapple: add gicv2m\n>    vmapple, gicv2m: add macOS compat quirk\n>    hvf: do not merge: enable private ISA\n> \n>   accel/hvf/entitlements.plist                |  2 +-\n>   configs/devices/aarch64-softmmu/default.mak |  1 -\n>   hw/display/apple-gfx-mmio.m                 | 59 ++++++++++++++++-----\n>   hw/display/apple-gfx.h                      | 16 ++++++\n>   hw/display/apple-gfx.m                      | 41 +++++++++++++-\n>   hw/intc/arm_gicv2m.c                        |  5 ++\n>   hw/vmapple/aes.c                            |  3 +-\n>   hw/vmapple/vmapple.c                        | 27 ++++++++++\n>   target/arm/hvf/hvf.c                        |  8 +++\n>   9 files changed, 144 insertions(+), 18 deletions(-)\n>","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=fail reason=\"key not found in DNS\" header.d=rsg.ci.i.u-tokyo.ac.jp\n header.i=@rsg.ci.i.u-tokyo.ac.jp header.a=rsa-sha256 header.s=rs20250326\n header.b=pk8LNZ1d;\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=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.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 4fgkll1Zdwz1yG1\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 22:12:51 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w5M9l-0002UN-6e; Wed, 25 Mar 2026 07:12:13 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <odaki@rsg.ci.i.u-tokyo.ac.jp>)\n id 1w5M9g-0002RB-MJ; Wed, 25 Mar 2026 07:12:09 -0400","from www3579.sakura.ne.jp ([49.212.243.89])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <odaki@rsg.ci.i.u-tokyo.ac.jp>)\n id 1w5M9d-0003QR-1E; Wed, 25 Mar 2026 07:12:08 -0400","from [133.11.54.205] (h205.csg.ci.i.u-tokyo.ac.jp [133.11.54.205])\n (authenticated bits=0)\n by www3579.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 62PBBipP089583\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);\n Wed, 25 Mar 2026 20:11:44 +0900 (JST)\n (envelope-from odaki@rsg.ci.i.u-tokyo.ac.jp)"],"DKIM-Signature":"a=rsa-sha256; bh=DwQZgWYO+lfkraRGuO+n63GxyjOYJesnFSUlCgbcPNs=;\n c=relaxed/relaxed; d=rsg.ci.i.u-tokyo.ac.jp;\n h=From:Message-ID:To:Subject:Date;\n s=rs20250326; t=1774437104; v=1;\n b=pk8LNZ1dhm2/xFTbs244gRnnnD5Z/FMv7neiAvKRx7yiBEYzG10q7yOioPO3ZW3n\n TgjtxMoG2hxwvvP6JFRfYl4mp1B7zIFpW6ZXfOWKDZLSYSSOU8BDzm3phdUNReuv\n Rwwwf2BcdcjwuLpt7KdndCz9zNAG44KMbG2CrcrOoxeIYnSgAvcB28IOpwotkCFD\n wOcPdqUc+rjxN/sTTcrBF1pXFp6WISJl21G8rsWKk/GeMGBo6qb4/yoBgGLOnLwP\n Y+xR2UNoMeDQEmk+PmeDvhEGr7b+9i43aj/D/GyJrLeScz51QQfGXTGk77TC1cVs\n AADUiLX5DGaDEzam3YJsHg==","Message-ID":"<f7c84a25-2f78-48ef-8901-2b752ead8900@rsg.ci.i.u-tokyo.ac.jp>","Date":"Wed, 25 Mar 2026 20:11:43 +0900","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [RFC PATCH v7 0/7] vmapple: making it work on the latest macOS\n host releases","To":"Mohamed Mediouni <mohamed@unpredictable.fr>, qemu-devel@nongnu.org","Cc":"qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>, Phil Dennis-Jordan <phil@philjordan.eu>,\n Peter Xu <peterx@redhat.com>, Mads Ynddal <mads@ynddal.dk>,\n Roman Bolshakov <rbolshakov@ddn.com>, Alexander Graf <agraf@csgraf.de>","References":"<20260324204855.29759-1-mohamed@unpredictable.fr>","Content-Language":"en-US","From":"Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>","In-Reply-To":"<20260324204855.29759-1-mohamed@unpredictable.fr>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"7bit","Received-SPF":"pass client-ip=49.212.243.89;\n envelope-from=odaki@rsg.ci.i.u-tokyo.ac.jp; helo=www3579.sakura.ne.jp","X-Spam_score_int":"-16","X-Spam_score":"-1.7","X-Spam_bar":"-","X-Spam_report":"(-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,\n DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=no 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"}}]