Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/2227575/?format=api
{ "id": 2227575, "url": "http://patchwork.ozlabs.org/api/1.1/covers/2227575/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260424000544.9617-1-lucaaamaral@gmail.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "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": "<20260424000544.9617-1-lucaaamaral@gmail.com>", "date": "2026-04-24T00:05:41", "name": "[v5,0/3] hvf: map granule abstraction, configurable IPA, and MAP_FIXED alignment fix", "submitter": { "id": 92822, "url": "http://patchwork.ozlabs.org/api/1.1/people/92822/?format=api", "name": "Lucas Amaral", "email": "lucaaamaral@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260424000544.9617-1-lucaaamaral@gmail.com/mbox/", "series": [ { "id": 501263, "url": "http://patchwork.ozlabs.org/api/1.1/series/501263/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501263", "date": "2026-04-24T00:05:43", "name": "hvf: map granule abstraction, configurable IPA, and MAP_FIXED alignment fix", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/501263/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2227575/comments/", "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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=dEnidser;\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 4g1tYl16NVz1yJF\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 10:07:05 +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 1wG43Q-0006bM-90; Thu, 23 Apr 2026 20:05: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 <lucaaamaral@gmail.com>)\n id 1wG43O-0006aU-6V\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 20:05:54 -0400", "from mail-dy1-x1329.google.com ([2607:f8b0:4864:20::1329])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <lucaaamaral@gmail.com>)\n id 1wG43M-0000xu-La\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 20:05:53 -0400", "by mail-dy1-x1329.google.com with SMTP id\n 5a478bee46e88-2eadb000b8cso861809eec.0\n for <qemu-devel@nongnu.org>; Thu, 23 Apr 2026 17:05:52 -0700 (PDT)", "from localhost.localdomain ([2804:7f4:c030:44a8:c4b9:45be:963d:f3a])\n by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2ea8e4b373dsm12958055eec.6.2026.04.23.17.05.47\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Thu, 23 Apr 2026 17:05:50 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776989151; x=1777593951; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=oCzWXRgOCadYTORyOC3+pSx/THt4GuRTdvIpDdRgxN0=;\n b=dEnidserK1gQSFBAGWSQjWHnJH+KjSmKGd9PEIBTunudpiDOYhwPzbkfIdMCfFy5bf\n gEL1b7VSl5YkTyaETXBWqJz2lk4qgo3+F8ogUfawsRqTPxM/h3G8kRbUk0YjoOqqKdNl\n oMsysZDiH0dfpcNkOFZwIY4Podo/tJehhdXhH9a2soMHSoS1ixNCarOyrBOOpEJI83No\n KqTDRalHKvOozv4CclCgexSNvvLGS/qep9KnDjvHQTiztd4JMLiAquj5+qey/eiySi4Z\n ymWw7VGLIh551U0cUbJs3vWyyQEt1DIqUbh9At2BDxgc2Gg/GztK1HkTeAXqOIjZcvrR\n NOVw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776989151; x=1777593951;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=oCzWXRgOCadYTORyOC3+pSx/THt4GuRTdvIpDdRgxN0=;\n b=fTDHW8eXNO9GFP+d55Z9CfCjVpzM8UBm+B3s+BM5ZAo002Ahid7D0XFxMxiy2MW9B9\n dSWWuH07Gbq0B+I7DEA9ip634Llldv++/LoYbTl8YVCFy+orbn6ekINxtrzyhZTlx1lJ\n vvIvVjUj3gNzvc2hSh6GjsEiqU0EY1B2q0INDagijwifCu1oI78MWF1H7u85gfuM3Ay6\n bZJ6nGjWwP9CHOnfgN9y5dHXTJZiWHWHQcQPA5TkgRiTw8MZnvVSYMJhWRzNQ9ek4QUR\n aDEabeGE7VDR5Z1rrKnrRrfbmtfzPScAp6YGPz0jUqHN+eaDNNhgg1netIXRvjrlRYyL\n hVaw==", "X-Gm-Message-State": "AOJu0YyVjseKI/m3kcQRZwqrBt9ibMNdKTBhTPC+q2Qcg0g+4g7BFu6I\n lZ4yjHCuGq8+LD+uA7+4fyzIrIfknuqrVq67gQuk97aehCgQ+Dd1oU5spSatW9jYXtQ=", "X-Gm-Gg": "AeBDieuTWFW+BNiG4Y1Z2oYsLlsUAYvsFyBHfYL2ter8K0dnURrGwDzeh3ZxdDBY8/e\n LRERgNp7MbskYzyitsFZ3sqf7Yisvbnr3sStMDMGmfHyPsQeKK8kOSkU/AE3mdl7DNklGJPgpYH\n Cf8ZZ5DXXrZvSRdD3UHVFqFS4odYEWG2xuklYsjRNL+k2b8MfAGmjjHu6FtWmf/xaUVa/DrfvT+\n NIaD9m8SJVZeTY23LI5vBSVFqI/0+p4btXgNCCwpuWQUBU/plo/h3cNyQIdl4Y7kzUN1+ETunHe\n rx1VZqmI7jrefrvB+JTCiP2gFn52j6xAeegLL5hy7a6LWqq+VWBFxLsqxyETvY0WM26qOV7fsLB\n gsASu8TMFfswMKpIYc6pOMl97dZHkLK3h9XNNEi1OJh7eN7ICTq8wE4sFYC9ND5vCepN/uaFIV6\n t6AVhiHUSUnCMXZ7y4paXdpvKy60VuVpwq5k17kKNVzmMKji7X1ErJJDFDD8411XEpK7d+8ASe", "X-Received": "by 2002:a05:7300:8622:b0:2c9:1943:e7ff with SMTP id\n 5a478bee46e88-2e465773791mr16890359eec.10.1776989150657;\n Thu, 23 Apr 2026 17:05:50 -0700 (PDT)", "From": "Lucas Amaral <lucaaamaral@gmail.com>", "To": "qemu-devel@nongnu.org", "Cc": "qemu-arm@nongnu.org, agraf@csgraf.de, peter.maydell@linaro.org,\n mohamed@unpredictable.fr, alex.bennee@linaro.org,\n Lucas Amaral <lucaaamaral@gmail.com>", "Subject": "[PATCH v5 0/3] hvf: map granule abstraction, configurable IPA,\n and MAP_FIXED alignment fix", "Date": "Thu, 23 Apr 2026 21:05:41 -0300", "Message-ID": "<20260424000544.9617-1-lucaaamaral@gmail.com>", "X-Mailer": "git-send-email 2.52.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::1329;\n envelope-from=lucaaamaral@gmail.com; helo=mail-dy1-x1329.google.com", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable 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": "Fix a bug in the MAP_FIXED blob mapping path (introduced by 4eb0aace)\nwhere non-host-page-aligned offsets cause mmap(MAP_FIXED) to fail with\nEINVAL. This affects any host where the page size exceeds the guest's\n(ARM64 with 16KB/64KB pages, macOS ARM64).\n\nThis series introduces:\n\n1. MAP_FIXED alignment validation in virtio-gpu: check that both\n offset and blob size are aligned to the host page size before\n calling virgl_renderer_resource_map_fixed(). When not aligned,\n fall through to the subregion method (which works at any\n alignment).\n\n2. A map granule abstraction (hvf_set/get_map_granule) replacing\n hardcoded qemu_real_host_page_size() calls in HVF memory mapping.\n Non-aligned regions return early instead of proceeding with\n add=false (which attempted an unnecessary unmap).\n An 'ipa-granule' property (auto, 4k, 16k) on the HVF accelerator\n object allows opt-in configuration:\n\n -accel hvf,ipa-granule=4k\n\n The property follows the kvm_arch_accel_class_init() pattern:\n ARM registers the property in hvf_arch_accel_class_init(), x86\n provides an empty stub.\n\n3. macOS 26 IPA granule support via hv_vm_config_set_ipa_granule(),\n reading the ipa-granule property to select HV_IPA_GRANULE_4KB or\n HV_IPA_GRANULE_16KB. Falls back with a warning on macOS < 26.\n\nDependencies: none.\n\nChanges v4 -> v5:\n - Use g_strcmp0() instead of strcmp() (Alex Bennée)\n\nChanges v3 -> v4:\n - Rebased onto current master (no code changes)\n - Fix Signed-off-by email in patches 2/3 and 3/3\n - Resent as new top-level thread per Alex Bennée's feedback\n\nChanges v2 -> v3:\n - Rebased on current master\n - Add MAP_FIXED alignment validation (new patch 1)\n - Move #ifdef __aarch64__ property code into hvf_arch_accel_class_init\n following kvm_arch_accel_class_init() pattern (x86 empty stub)\n - Use MAC_OS_VERSION_26_0 named constant\n - Remove Venus blob mapping warning\n\nChanges v1 -> v2 (Mohamed Mosaad review):\n - Replace hardcoded 4KB with configurable ipa-granule property\n (auto, 4k, 16k) on the HVF accelerator object.\n - 'auto' defaults to host page size; explicit values opt in.\n - Add fallback warning when macOS < 26 can't honor the request.\n - Add Venus blob mapping safety warning.\n - Use KiB constants instead of magic numbers.\n\nLucas Amaral (3):\n virtio-gpu: validate host page alignment for MAP_FIXED blobs\n accel/hvf: introduce map granule abstraction and IPA property\n target/arm/hvf: configure IPA granule on macOS 26\n\n accel/hvf/hvf-all.c | 30 +++++++++++++--\n hw/display/virtio-gpu-virgl.c | 45 +++++++++++++---------\n include/system/hvf.h | 15 ++++++++\n include/system/hvf_int.h | 2 +\n target/arm/hvf/hvf.c | 72 +++++++++++++++++++++++++++++++++++\n target/i386/hvf/hvf.c | 4 ++\n 6 files changed, 147 insertions(+), 21 deletions(-)" }