{"id":2231443,"url":"http://patchwork.ozlabs.org/api/patches/2231443/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430172204.1006673-49-pbonzini@redhat.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/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":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260430172204.1006673-49-pbonzini@redhat.com>","list_archive_url":null,"date":"2026-04-30T17:21:54","name":"[PULL,48/58] whpx: i386: set WHvX64RegisterInitialApicId","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"6e200e21a736d0a986ea7f84080646430d7d9055","submitter":{"id":2701,"url":"http://patchwork.ozlabs.org/api/people/2701/?format=json","name":"Paolo Bonzini","email":"pbonzini@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430172204.1006673-49-pbonzini@redhat.com/mbox/","series":[{"id":502347,"url":"http://patchwork.ozlabs.org/api/series/502347/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502347","date":"2026-04-30T17:21:16","name":"[PULL,01/58] pythondeps: bump to meson 1.11.1","version":1,"mbox":"http://patchwork.ozlabs.org/series/502347/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231443/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231443/checks/","tags":{},"related":[],"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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=agwioOs5;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=k8mA3/K/;\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 4g61Nd1K0qz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 03:28:33 +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 1wIV82-0001Gm-GB; Thu, 30 Apr 2026 13:24:46 -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 <pbonzini@redhat.com>)\n id 1wIV7z-00014O-5k\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 13:24:43 -0400","from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1wIV7x-0004wC-GO\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 13:24:42 -0400","from mail-qv1-f69.google.com (mail-qv1-f69.google.com\n [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-152-qUtKKCLXOduo4s3BDyylTw-1; Thu, 30 Apr 2026 13:24:38 -0400","by mail-qv1-f69.google.com with SMTP id\n 6a1803df08f44-8b49260e3d5so18188186d6.2\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 10:24:38 -0700 (PDT)","from [192.168.10.48] ([151.49.85.67])\n by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-8b3ff474374sm23105136d6.40.2026.04.30.10.24.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 10:24:35 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777569880;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=jUisL0WWMxIYnrFNVpkf+gUnH44d+KEPMfMzg1X2Elc=;\n b=agwioOs57s13Upb8pDAlhOKfbjIMqYZlJqTClZKimaqnSNHDbRb2PDYtWcH35hvzXDyjiN\n CLd+uQfICGcfgBPgkUx5efAAt5jkz9nxDl07E0bmUAvf1W700jT5MEQp9wW8/WbkpXGgLQ\n 98+1Q7oAinmX4qgNiHgPFDVqWOusI+0=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1777569877; x=1778174677; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=jUisL0WWMxIYnrFNVpkf+gUnH44d+KEPMfMzg1X2Elc=;\n b=k8mA3/K/gvWbvs7/dKbjaJ8flzk3vyVkCKZ8NNysBM7FsIQUdDpNyfA6moR+sFPVMZ\n cQCXKnXGp9mhT6xoMod/TAGlNKcrMyOAHV26rIAD8RR7etra2lUVzsnG2RbS5g9UaRff\n mu/1PXq5128Dp5irJspysax1JothPeVEtaD5uhvlWZ3HR9S6gZ7nOugtBvdMPQ4bkbt1\n ApNxR45CHspiOZm+ws/qAeNCbjUYLOZuqg8nOsotq25goPpfbKkWnK+fsV0ufUbyNwW9\n 542+xDtsM66QKSX+VjSr9cW3hXiNcQyhTESSCyDZBB5wsxwNHO1o99ku57ftsNtuXHZ/\n Jj8A=="],"X-MC-Unique":"qUtKKCLXOduo4s3BDyylTw-1","X-Mimecast-MFC-AGG-ID":"qUtKKCLXOduo4s3BDyylTw_1777569878","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777569877; x=1778174677;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=jUisL0WWMxIYnrFNVpkf+gUnH44d+KEPMfMzg1X2Elc=;\n b=P/kr26DLzMvAnKcL4I2s6YyQO3K1UpYMo8gNs+a/6lLpfeLwMEqmW+FpALilZH90A/\n 2etV+BHI3buCGknkJPRQrSR6AKppoSri9QAMTgVrQHe5kA2FkCTkGH9RR4eMwVBGiryn\n sJ1Xx+aWb3dK9LripZSlcIaFqiha/CPujB4cNIagerBvZAJvtIm5kRuLG0Iz/9FetaKq\n nIaCZSITZxoWKodNJYIoyNHbdkHxRINFLrsuM18mBjusXtaPAuoC9z046y6iXQ4prTBl\n qUP0zhhtEXM/CClO26AexCws3O2mthtMyjTZuTAfxAtSL/z/1MQ5Kjy3Nf25pjN+GLsb\n B2Iw==","X-Gm-Message-State":"AOJu0Yy4JsH8Lui2kiDeNjMZDxAx0VUV7oOcnqW7bXNfw+oayDLXH0aC\n cf0ajVcq1udVhTldjZ/SOfQsXcCdkq2KEcc6VEncxNsQTkyXke3P5elu+qMYioGJ49yt1L5Ry8B\n AbXuQyq6oG4v6+VO98qz8C73QuRLrpxJbFJf2nPXeUUFTKgoylW8w2JGswga4YjKRn5Y8ntkylE\n Kkn7EgrlN3AuP1SqwwSLn76OS4oVdOugGIdE6Va7sF","X-Gm-Gg":"AeBDies8wfdsrfKu94tlILog4NQKCGvQAhg73hZ7KxeUN4+gfaYmLCccwwYGoHmN6Bu\n hzT1MktQAg0A3Royvep5eqrkJPuplZdQx8PLqrI60P/Hqs68JoyclN9uxMZK5mqC+9s1R2AbW0S\n qv5x1ZDWOfXfHUfqpgif0iMlgCYw/ZgM/LeGmU5p3BEmVWRNj2oxH9kTZcWiinpQdVP/a0rpMGa\n jQs8sy/2TdCJ50WBx22Y2LeOArrLr/lAMgeEToZvb1MMnKkUzNKGohsVpHg4Gcs4UJsvLjzi3ZV\n X8NDulyPLuZiD+qJvu1HHf6Hj/A/Ug/G5qUe7gWch4VMl/nUyTehqfbSkrzUbtRTWyfMNUpMsbI\n pgQN32e2voMA6jA21SUEo/SQxiRZkfG+LSfQIEo8fFSlCwGzPeLy691StgENCxFLKdnUOqfExAA\n Rd1vwTZPUkZ5zN/OFrcuajS0eqSuRkcVUlrww=","X-Received":["by 2002:a05:6214:19c3:b0:8ac:a4f9:da76 with SMTP id\n 6a1803df08f44-8b3fe7969camr56263946d6.26.1777569877194;\n Thu, 30 Apr 2026 10:24:37 -0700 (PDT)","by 2002:a05:6214:19c3:b0:8ac:a4f9:da76 with SMTP id\n 6a1803df08f44-8b3fe7969camr56263496d6.26.1777569876650;\n Thu, 30 Apr 2026 10:24:36 -0700 (PDT)"],"From":"Paolo Bonzini <pbonzini@redhat.com>","To":"qemu-devel@nongnu.org","Cc":"Mohamed Mediouni <mohamed@unpredictable.fr>","Subject":"[PULL 48/58] whpx: i386: set WHvX64RegisterInitialApicId","Date":"Thu, 30 Apr 2026 19:21:54 +0200","Message-ID":"<20260430172204.1006673-49-pbonzini@redhat.com>","X-Mailer":"git-send-email 2.54.0","In-Reply-To":"<20260430172204.1006673-1-pbonzini@redhat.com>","References":"<20260430172204.1006673-1-pbonzini@redhat.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=170.10.133.124;\n envelope-from=pbonzini@redhat.com;\n helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,\n SPF_HELO_PASS=-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":"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: Mohamed Mediouni <mohamed@unpredictable.fr>\n\nKeep Hyper-V aware of the initial APIC ID chosen.\n\nSigned-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>\nLink: https://lore.kernel.org/r/20260422214225.2242-25-mohamed@unpredictable.fr\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n target/i386/whpx/whpx-all.c | 5 +++++\n 1 file changed, 5 insertions(+)","diff":"diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c\nindex 593a707e219..077a491664d 100644\n--- a/target/i386/whpx/whpx-all.c\n+++ b/target/i386/whpx/whpx-all.c\n@@ -2475,6 +2475,11 @@ int whpx_init_vcpu(CPUState *cpu)\n         goto error;\n     }\n \n+    if (!whpx_irqchip_in_kernel()) {\n+        WHV_REGISTER_VALUE apic_id = {.Reg64 = x86_cpu->apic_state->initial_apic_id};\n+        whpx_set_reg(cpu, WHvX64RegisterInitialApicId, apic_id);\n+    }\n+\n     /*\n      * vcpu's TSC frequency is either specified by user, or use the value\n      * provided by Hyper-V if the former is not present. In the latter case, we\n","prefixes":["PULL","48/58"]}