From nobody Sat Sep 6 06:53:19 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1756568762; cv=none; d=zohomail.com; s=zohoarc; b=LwbkiNKBOCGM8OHaqjrBjX7ZZrW88lElPaYRrHEJbyArgkj1CJhzgRUHHWpvTN7/38ChJLgIWZyM9bUlgfWpwJdxBceh7u8M7QrBn6rG6q2MKbNN5MWGxGesZl8Mwcga81NWi39NAlMSl9B5ZPNxT5kPgYP/72vETYI2bBWd9B4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756568762; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mlTIbJwiIwq0If++9g+C1KJj+kHFMOoHzQVRSslQuLU=; b=bbzWTeNXbYD3mwghhhk4ZjyX0H6Lat1RVRdUyyUk1r1FF4VWFz+0d0b4an+0eKjVnn7fNjU+TCXrlYb1SU6lT9/yPZQQXsW4L+ZTcu1iEICh4Rb0e3hgmsWdFMJZ4lW5CxK8hahyq4USmVWDg8HoHFKa1zQ31TY24etRopz+JqE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1756568762231407.371908510763; Sat, 30 Aug 2025 08:46:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1usNOU-0003XT-Aa; Sat, 30 Aug 2025 11:21:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1us12o-00015N-J4 for qemu-devel@nongnu.org; Fri, 29 Aug 2025 11:29:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1us12m-0008T8-S5 for qemu-devel@nongnu.org; Fri, 29 Aug 2025 11:29:38 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-613-gaoRWRLiNxmk-GknoSfO1w-1; Fri, 29 Aug 2025 11:29:34 -0400 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-45a1b05d31cso11192395e9.1 for ; Fri, 29 Aug 2025 08:29:34 -0700 (PDT) Received: from [192.168.10.48] ([151.95.56.250]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf276c751esm3737041f8f.16.2025.08.29.08.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Aug 2025 08:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1756481375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mlTIbJwiIwq0If++9g+C1KJj+kHFMOoHzQVRSslQuLU=; b=AGDPi8PrA+KeNH8RopmXKW0ltZs/yt7wywJ4PCa885Wa5cRBlAQMeZehT7cE+nl5LwP3E/ 2P3/QtwXxAj9KLN9ZISUuNZVNKyy7Kqo1I5CFgX+W1uY2DDzW+F4lK40dCjag9/GKmO9vl BIVXS8waKLOARfUzLq1rkorpKJNKQMQ= X-MC-Unique: gaoRWRLiNxmk-GknoSfO1w-1 X-Mimecast-MFC-AGG-ID: gaoRWRLiNxmk-GknoSfO1w_1756481373 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756481368; x=1757086168; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mlTIbJwiIwq0If++9g+C1KJj+kHFMOoHzQVRSslQuLU=; b=v/S/QdX29DDZCXKHk3iMvGSqpeO238bMAy2FWS009EB5EXaehLO2ADYcpyk0Qn20LG sDWZvHWCS6ofLDeTEmJR6/fzfgf4CqNRKcJvMXCSs2Ikj+RVuJAGa5itvP5Jcn0AnHGP 1Ckw04ST0aq1cpZ5UHie8R+giNMZEqKoUlj4JYOymWQL7h7SeixsZI7ZllYto1u54uoA Rnp+VfsDkGVLJIAcf3yn1mgjt4vGV4yKBkrLpQkGfDimYfVMhFFcxLd3eV7kdsAZM9nr Ts6WCoaymRJctZRyhnrkcx3Z736HmX1Ml7p1iOZ1yN9pxBzthAwS3zLJxg7Y1Bc9LR4y UANQ== X-Gm-Message-State: AOJu0YyQQmnLtfb0i3lMRPNoLzHbzFqhH+jCx5NtuOGDvAHEr8NctyNf qP64jSy7Rovh7PdKW4DkfDkUy6BwRSWNMfpo/0wlzK/+n2s28DZRELcGcoUxmMO5yP9/uqm0TpE 1MWz0w8c2QJxRadq61AEz0hmzzt3cG86m5lq+d1hk+5A7TO07DgfS5vOljTJExCtdeCJ9wbICtg 2z323RC0Ht2FLIF/jt4/tfeKmAguL1ljQjN31LIexS X-Gm-Gg: ASbGncuoH1EHf8Ugnp5Yo/y52mFR1epOYM/mC4nQVewJcq6/CjMhandStzdRD6IQb4f Xz7LVkrRCISEg81i/2OIGX8COnqzj1RjCDJt+xhkdCc3AVVZg+TSgNgqh8Kn3maNnjgQeVjusyg 4jkIb3b3h1rOD9in98ylxWiHt2ABv6YXvcWjO9yyQs2Mkmfk7iqWCZK7Kds6bX+v9WZ71vLVgb4 nFZggNOvsVAYSZVjK3dfFFyrxwY8l/vjOtZ4RVMCl5z7A0ksjXQ2V9wWaSkjuAvPv1Ss5z0arC1 e+1nEhrtMjm72gwgXhbPSMTqnMAbAjZz3Wgms8yF6kN6hth3aCH2iZJWxsL070sEaiuaP1+Qioe L0Ikg5Fsw6tddSYJ/GOqvb0Svh35ZYZwOYZ+jnc2Kz0Y= X-Received: by 2002:a05:6000:438a:b0:3cd:6477:a3c8 with SMTP id ffacd0b85a97d-3cd6486e955mr7218515f8f.16.1756481368380; Fri, 29 Aug 2025 08:29:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvE3rr0qhc74dGJjFOFc3DbS+Y0GaA97+f6HIDKn8EXjlHA9UrLMyTEUyx0b+hgpmr2NwYKw== X-Received: by 2002:a05:6000:438a:b0:3cd:6477:a3c8 with SMTP id ffacd0b85a97d-3cd6486e955mr7218496f8f.16.1756481367910; Fri, 29 Aug 2025 08:29:27 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: peterx@redhat.com, richard.henderson@linaro.org, imammedo@redhat.com Subject: [PATCH 03/18] target/i386: limit a20 to system emulation Date: Fri, 29 Aug 2025 17:28:54 +0200 Message-ID: <20250829152909.1589668-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250829152909.1589668-1-pbonzini@redhat.com> References: <20250829152909.1589668-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1756568763061116600 Content-Type: text/plain; charset="utf-8" It is not used by user-mode emulation and is the only caller of cpu_interrupt() in qemu-i386 and qemu-x86_64. Signed-off-by: Paolo Bonzini Reviewed-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/i386/helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/i386/helper.c b/target/i386/helper.c index e0aaed3c4c4..651041ccfa6 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -110,6 +110,7 @@ int cpu_x86_support_mca_broadcast(CPUX86State *env) /* x86 mmu */ /* XXX: add PGE support */ =20 +#ifndef CONFIG_USER_ONLY void x86_cpu_set_a20(X86CPU *cpu, int a20_state) { CPUX86State *env =3D &cpu->env; @@ -129,6 +130,7 @@ void x86_cpu_set_a20(X86CPU *cpu, int a20_state) env->a20_mask =3D ~(1 << 20) | (a20_state << 20); } } +#endif =20 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) { --=20 2.51.0