| Message ID | 20260923171116.31276-19-philmd@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <qemu-ppc-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; dkim=pass (2048-bit key; unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=puIIDaR6; dkim=pass (2048-bit key; unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=BjWtUF2A; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists1p.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists1p.gnu.org (lists1p.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 4hqkCt0qJRz1xqn for <incoming@patchwork.ozlabs.org>; Thu, 24 Sep 2026 03:16:58 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-ppc-bounces@nongnu.org>) id 1x9QYn-00006R-9M; Wed, 23 Sep 2026 13:15:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@oss.qualcomm.com>) id 1x9QXU-0006Q6-L0 for qemu-ppc@nongnu.org; Wed, 23 Sep 2026 13:13:52 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@oss.qualcomm.com>) id 1x9QXS-0001LQ-Vg for qemu-ppc@nongnu.org; Wed, 23 Sep 2026 13:13:48 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68NGTur53665903 for <qemu-ppc@nongnu.org>; Wed, 23 Sep 2026 17:13:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /5gPZ0r9el1io2TJV/MmocNJREFtJ5CHkCI5Btb3anw=; b=puIIDaR63fI+3uYW 4W041okidglmLhaedEalM+0c9Abq2Ulva1r/iFZAIWYWMynbEo6wGxrhMRQR6osd T7avsjHucBZcCIp4PMifaa3wwBWPZE1nFXq0uht2afJ5Nxis5kfw4q8MlredVs6o ZN0jKjpC/Ki7DJocls0cD+1tT35n/s1ogq2/bPR6QQIeEwkVLCo46ULFzlPTMGPj ncNNI0MZTORgw+SCKXdRbtfEmNt5xLEMbxAaDnioO9nMzXGRe9U5Y2zWXPVCt+rU Mmj1nHU2F0sV2cxskhO/qiJflsdCG7+NP4aFD0yHDHt2KfD0Du9lZSJDHmaraJfo x5E9oQ== Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gvbwat1hm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for <qemu-ppc@nongnu.org>; Wed, 23 Sep 2026 17:13:35 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-79129463bb2so465473137.0 for <qemu-ppc@nongnu.org>; Wed, 23 Sep 2026 10:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790183615; x=1790788415; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/5gPZ0r9el1io2TJV/MmocNJREFtJ5CHkCI5Btb3anw=; b=BjWtUF2A39y/eMkVM0Rwkq6NnytT/Yi0y/23z1W/EBzJGbKZp+fcC0WwG4lanjhcDI ATwR13j22Gf+wDu33iwr5YL6kYhrXIcgO1n3ZpwxnKmKYyha/kTkONkG1oE9XVm9JJQj EzR0K/Z4H5Gnem5Gs9+7Q2xuIDjslsrZ3kH5ntUU8gV5yZR1g0TTqfecimFwMzTwULmE ghx6GrWwteyrPXuKBgZnkxNdQvc9F8/HCTIvmOrk+JvwIfKhunA6TtIInSayZe0LE6SH 4zy3fE2AYtNEkQqC/PXbfFoMKRZiwPH/qX2y+7WNOrfKgJOwRk3IH9yvrI3fAI68Y+ZH V0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790183615; x=1790788415; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/5gPZ0r9el1io2TJV/MmocNJREFtJ5CHkCI5Btb3anw=; b=ebAAgstPmZC2YciAmnr5xeZqsE6YWGt6uTusBhY0cBYv91j14Mj1cYyVfcsztYQVXx t/eGW5I/VBPl/GVMTEicXHpSZAgyk3RQf6H/N4UKKY4A5mxYVXU/AVsqVbJtUroEVDkF MVEItbDLnsH9TyhOV+ASrkV1lB9tvFR7esXnpfC2AuGDp87mjnKTtBEeQdImbuYFEEn3 CKsQeLZstoZQ3nr1pkXSRirY86nMWL1YuP1WQFb307ZY6lyGL5HvCHDoO63nkt6agtYn x7yrDgri5TJPJOzpZ9ptjMPDy7qT8CiRBrvfC3m/zMfm0569jIYMOfOHVV5BJaYNNQ6h KhrQ== X-Forwarded-Encrypted: i=1; AKwUvBxGDlOmNfWfis6uJaJePIiyrpcwz0c/f+6Fl7z6JAzmQdlk9ce0vca3cK0nPlzrrmKkoZH1eLAozg==@nongnu.org X-Gm-Message-State: AFuF++lygGWkASvGR8ztLcAGNrTunfJ99LUqo2wsnl4w8xyJFG0VvQyZ G8bHjPsAdoUKaybMmBjESB/T/a4hPsFm6R4rY8yxi7xpXuFqIHd/wWuLLw0sZyq7d3yeKpYz1sn wOMEmjYVMiIJdvzTbmbmUgiVk7GwDu1YT/cL5gQ3PTUWXKDYzdVINIsc= X-Gm-Gg: AYBFou1ZXolh1xdCgZ2nHe79SsRspnKP6NbHjLuwHl3SrDeV77VEk+gVjk7ftxRh7rU 6eG67D8adS6g8IOXWobdOph+8gpbNJNPNzxew4FH8wRawLPpbL9xTLz2lCyPab7uhl3ulcIWo7E ZltbW6MvRsDFPlYJFc2qtnb8S6MMZTPTdQ4qcDS9SV6PPjEftSi9tPCEDi55Ei9awVyxzlC5YE2 zSyhUHgNlnK6mgmODHjMcSzoCKBc3mftlN+BUVVjFU5CTpElkJk7zigttrPwSk2hO/MBXApylIK E6Jh50w72jC6hrisE1Elskt4hIRJiCAN1o/yUPzcj7qOLPSFYzEJJ029kH87mIdzjHihbbF24yT ytePTlK3thtjvWwLi9fvCzI34s/BuGHF4qPBQ6IwF X-Received: by 2002:a05:6102:8083:b0:798:8ca:3452 with SMTP id ada2fe7eead31-7ac1aad2aa1mr3022007137.1.1790183615254; Wed, 23 Sep 2026 10:13:35 -0700 (PDT) X-Received: by 2002:a05:6102:8083:b0:798:8ca:3452 with SMTP id ada2fe7eead31-7ac1aad2aa1mr3021994137.1.1790183614917; Wed, 23 Sep 2026 10:13:34 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fe5de187asm317215e9.7.2026.09.23.10.13.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 23 Sep 2026 10:13:34 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@oss.qualcomm.com> To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, qemu-riscv@nongnu.org, Richard Henderson <richard.henderson@linaro.org>, Peter Maydell <peter.maydell@linaro.org>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@oss.qualcomm.com> Subject: [PATCH v3 18/21] target/i386: Split APIC polling from x86_cpu_exec_halt() Date: Wed, 23 Sep 2026 19:11:12 +0200 Message-ID: <20260923171116.31276-19-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260923171116.31276-1-philmd@oss.qualcomm.com> References: <20260923171116.31276-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIzMDA2OCBTYWx0ZWRfXzh6bQb7VDeTp XP+UQsQsJfFbFCvWp+FNJTd145ZMXyfjlN0ZvWxk/FgR4dk5fOBbLHFpsO+SJJlzL9tTcCygk3L uKKChMGplrP5yYMs319vinG68LXQBCrJzfxwOhwJnAF/7CL7cwD12u8AhiC9DPD2tLJjyDrw726 DFhl30U7bDe1LoR04XdBME1k4evYyc5yGFpEhDHlF1MWI4kka1mqYpcxWz46aEQXw1UTLtBitv/ t7Udm6okok7PLMQrChKqYRkyLrpH3Qy5smk/YNozujZe7JwQbPsgFc0RZYbB7CrFwlyEpt2w68Z mdaAMjqIoENVbbbYmkTWRfFJg0rV+74l4NfB27mU1zVkki3nFX+bHgSXcRftjCBgAeoPgC3EKml w7xkp1WEgIrfq94ixZxJy0ZZoIjJMJmWdtS/64ch49EGNVrndnNyc7SxfsgfMSCMl3bs46X/DZq yVlcALOaxEsLv1ZtjSg== X-Authority-Analysis: v=2.4 cv=HfuB3SE8 c=1 sm=1 tr=0 ts=6ab408c0 cx=c_pps a=P2rfLEam3zuxRRdjJWA2cw==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=h7OMh5kjI76PbTVxvEwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: 43WJY2lVRGote93Ruk93sSb2sMp-xsZM X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIzMDA2OCBTYWx0ZWRfX2IGaNLuhsUbB UqmzyFBwK8nQq4EuE5VFRNbYwVqWmR7pTwyoZleBkBRZ3MS33hIpvt4sbWYM1CUDNI6miD4bkju wBYEXV6jJR/zjczpLsRLFz9ik+el5Mc= X-Proofpoint-ORIG-GUID: 43WJY2lVRGote93Ruk93sSb2sMp-xsZM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-23_06,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 suspectscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609230068 Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-ppc.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-ppc>, <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-ppc> List-Post: <mailto:qemu-ppc@nongnu.org> List-Help: <mailto:qemu-ppc-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-ppc>, <mailto:qemu-ppc-request@nongnu.org?subject=subscribe> Errors-To: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
| Series |
accel/tcg: Make halt-to-exec transition explicit and remove cpu_exec_halt
|
expand
|
diff --git a/target/i386/tcg/helper-tcg.h b/target/i386/tcg/helper-tcg.h index f4b2ff740d5..58e8ca0bc1b 100644 --- a/target/i386/tcg/helper-tcg.h +++ b/target/i386/tcg/helper-tcg.h @@ -37,6 +37,7 @@ */ void x86_cpu_do_interrupt(CPUState *cpu); #ifndef CONFIG_USER_ONLY +void x86_cpu_poll_during_halt(CPUState *cpu); bool x86_cpu_exec_halt(CPUState *cpu); bool x86_need_replay_interrupt(int interrupt_request); bool x86_cpu_exec_interrupt(CPUState *cpu, int int_req); diff --git a/target/i386/tcg/system/seg_helper.c b/target/i386/tcg/system/seg_helper.c index 8c7856be81e..9ce608a0bb7 100644 --- a/target/i386/tcg/system/seg_helper.c +++ b/target/i386/tcg/system/seg_helper.c @@ -128,10 +128,9 @@ void x86_cpu_do_interrupt(CPUState *cs) } } -bool x86_cpu_exec_halt(CPUState *cpu) +void x86_cpu_poll_during_halt(CPUState *cpu) { X86CPU *x86_cpu = X86_CPU(cpu); - CPUX86State *env = &x86_cpu->env; if (cpu_test_interrupt(cpu, CPU_INTERRUPT_POLL)) { bql_lock(); @@ -139,6 +138,14 @@ bool x86_cpu_exec_halt(CPUState *cpu) cpu_reset_interrupt(cpu, CPU_INTERRUPT_POLL); bql_unlock(); } +} + +bool x86_cpu_exec_halt(CPUState *cpu) +{ + X86CPU *x86_cpu = X86_CPU(cpu); + CPUX86State *env = &x86_cpu->env; + + x86_cpu_poll_during_halt(cpu); if (!cpu_has_work(cpu)) { return false;