From nobody Tue Nov 26 20:12:31 2024 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=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704547641; cv=none; d=zohomail.com; s=zohoarc; b=mEyxCmC5o00HvLot7JadSRTB5PSjCCsf0gmexD4d1hnv+a4c1canUzSnD3zRyR5//OA94HI9M88oOcT4KDtA2naDvXEL8kvT+Hs6OR+lR37BtJN7C2JjLb3FZbP2gNhRuz1vjZngimwkkhUjlmiP9Wo9fwVMG/lHZFPTrYPsYiY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704547641; 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=/a3uZAXmye1jvF0NadDhii00zuAt23ZrEREzrYmaBKk=; b=JVVH0FCYM48qQOCkI6C333xVUdVEodIk8CwcVtAejdBjVZHKgcfMLPsBcJEE0X+r3t6+j5ESdYFJVui1Vw13dyVsx5DMUQSUzzMmzkdC/eILD7ly0DTh9oiSU9FtT6V0iXHAOKiYGOyB+pcMAKbhKXtr1XlGSF50DPyqgx0ktHU= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704547641601508.09095133983374; Sat, 6 Jan 2024 05:27:21 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM6go-0000d7-9G; Sat, 06 Jan 2024 08:26:14 -0500 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 1rM6ga-0000Y8-7U for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:26:00 -0500 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rM6gY-0005xz-Lw for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:25:59 -0500 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-55778f7662bso49959a12.1 for ; Sat, 06 Jan 2024 05:25:57 -0800 (PST) Received: from Provence.localdomain (dynamic-077-011-174-094.77.11.pool.telefonica.de. [77.11.174.94]) by smtp.gmail.com with ESMTPSA id 3-20020a508e03000000b0055515b40464sm2159752edw.81.2024.01.06.05.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 05:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704547556; x=1705152356; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/a3uZAXmye1jvF0NadDhii00zuAt23ZrEREzrYmaBKk=; b=XupCpiCHktwONwXEAlDxzN6I90WOExCjfJPMDcyKUFaSsq70AUx0Wb+J15xXgTEeYk G95hpJAuwehoaHmi7M7svrt9ycx3JewHyXq+q62OX2gsa6VhICgVh2CBfn9uAdXMTVyg 2MJxke19iURP/qY3Xol8zrbI8YDgG7axtJ5wAV/A2sXAzyifqIngH3PafxCax2O6ry0u NFKf6A/PX3kDosd4w29TYpvZxn/0DCNeNMGMAM4pcuMSoMWARf/NFDHlL1fba3gwPS+p 4X/UnNYMpzeV2dTjqwQxhwiet4SjN2oYD1ZYndJZT+CwjCUlg7xOzayBHqF/PGWYvg1r Ixyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704547556; x=1705152356; 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=/a3uZAXmye1jvF0NadDhii00zuAt23ZrEREzrYmaBKk=; b=vK/n1LYOFORALxGbuRqt5QZYVxsZe7HJtPE4ruQh6HZLAfiwePlShaG4vjtS+FJ/xU IPp1H/qtscRiv8XzfxiYbi1TNGVTRf6hRyF5fYdElXzuTncFmCVjQldB7Ywenyg9ip2p dfaHzVXp0bHwNwDcDOiJVPBPneH0lb0GuZvIXC17ovrT5PZMgAKDdkXz9ayMmTTALNSG SGMdmS3dEAjqAkg4Gw7yjsbs9DLCkMUx0Sr6rK90bJOtKOgbZaGw48htgPjSXWsfSaay c5N+5wqVT9/pC/gBTFdC5i0xTo4/FPxn1mBIhIIGfVqNsXtWbw2JxkPYOjedokls7SHO lEuw== X-Gm-Message-State: AOJu0YxNhdGT/sToZDL5aDb3Qley9WdFgtbqpH6LdCOWjiqmcFcBdIAW AEPTcUT/bRlXvIGXgcOROt3InZyb+vI= X-Google-Smtp-Source: AGHT+IGru39AzgFUl0fww+fXcbcpXmnkSQGe5mnCd/pUwsnBTy70LBw+WRdunCourTIWu814KcIrkw== X-Received: by 2002:a05:6402:2684:b0:557:4a49:26b0 with SMTP id w4-20020a056402268400b005574a4926b0mr1270310edd.20.1704547556199; Sat, 06 Jan 2024 05:25:56 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Eduardo Habkost , Richard Henderson , Paolo Bonzini , Marcel Apfelbaum , Bernhard Beschow Subject: [PATCH v2 1/3] hw/i386/x86: Reverse if statement Date: Sat, 6 Jan 2024 14:25:44 +0100 Message-ID: <20240106132546.21248-2-shentey@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106132546.21248-1-shentey@gmail.com> References: <20240106132546.21248-1-shentey@gmail.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=2a00:1450:4864:20::536; envelope-from=shentey@gmail.com; helo=mail-ed1-x536.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1704547642754100003 Content-Type: text/plain; charset="utf-8" The if statement currently uses double negation when executing the else bra= nch. So swap the branches and simplify the condition to make the code more comprehensible. Signed-off-by: Bernhard Beschow --- hw/i386/x86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/i386/x86.c b/hw/i386/x86.c index 2b6291ad8d..61af705e90 100644 --- a/hw/i386/x86.c +++ b/hw/i386/x86.c @@ -516,10 +516,10 @@ static void x86_nmi(NMIState *n, int cpu_index, Error= **errp) CPU_FOREACH(cs) { X86CPU *cpu =3D X86_CPU(cs); =20 - if (!cpu->apic_state) { - cpu_interrupt(cs, CPU_INTERRUPT_NMI); - } else { + if (cpu->apic_state) { apic_deliver_nmi(cpu->apic_state); + } else { + cpu_interrupt(cs, CPU_INTERRUPT_NMI); } } } --=20 2.43.0 From nobody Tue Nov 26 20:12:31 2024 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=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704547627; cv=none; d=zohomail.com; s=zohoarc; b=HWF+r86u4GfhPwQzplMaaH1EUB3o9gy5ZitUaavVETBrzkdGWHsBgUFk4Ezov0+BUJ8aFv/Fzlj/OT8/hT6Rh422/cJtyisQRwPsyA3ig89+4FyGT/KGRJSWqnn/WLU2dJ1UhuyO2XpOEIhXqeK9lcxuqB98y1Hkuet4BQifS34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704547627; 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=ngDy4AuSjsLm+pNaNgB5RjRDQ+EvhkuQYpdltE6Gki0=; b=d0Jx4jcqlQaW+B6F+LbusvDGPIWAPbRmbemOhUxA2TYyDG2iSnRmy4tKWwfgn1XdypIJVimSEFMm9pNGwgcSZZsG7yNA7S1X+zgXSvayjk/pLxf5sEUYRAUsne4qpqSeEfZ6ghdvX7f6BodTAxCT0DF3BFoIx56KJG2IYeWkPXM= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704547626995544.1833788829683; Sat, 6 Jan 2024 05:27:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM6gg-0000au-TI; Sat, 06 Jan 2024 08:26:06 -0500 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 1rM6gc-0000Z7-0X for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:26:02 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rM6ga-0005y6-8N for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:26:01 -0500 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-557642101d2so309813a12.1 for ; Sat, 06 Jan 2024 05:25:59 -0800 (PST) Received: from Provence.localdomain (dynamic-077-011-174-094.77.11.pool.telefonica.de. [77.11.174.94]) by smtp.gmail.com with ESMTPSA id 3-20020a508e03000000b0055515b40464sm2159752edw.81.2024.01.06.05.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 05:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704547557; x=1705152357; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ngDy4AuSjsLm+pNaNgB5RjRDQ+EvhkuQYpdltE6Gki0=; b=GjFIpenonGSoZb2huSa28e0jcFs/Q9NWS76uZfi4euIAjC1SePH2ngfeC5nlQ+HMd/ 3o1WZT5lweApex9q0IqS+cQdpnvDp0j+5q5dC3bNgZtwjBFhDcvgA0vxK4VJHvyr3+Ec Vu2TvuTUbFja+9oqfKGMnevCVKZg0t5BhxX4wWI+0DYnyAID3937NztFyPDXmidK3UH9 YEL+C8ujEOWHOrXGwDzR/tOsIl4Z9HHibLo3O1OXYituN4nYtcekZHm+UAbowVfSUM7/ vqhEz8XTxGifwMqhEH86/4mL05KB+I/vIBIsQzyRwwP8NwsFuY2ypHMh/87O1USBDF9S 3vsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704547557; x=1705152357; 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=ngDy4AuSjsLm+pNaNgB5RjRDQ+EvhkuQYpdltE6Gki0=; b=lzU1qBdLy6Ld2/yhjiWvWaRnTb6tFx5ZK3nRhnhIXG9qZZcr0PWz/vV/mgf/5R9BAU /h+umjoOYizSG2ThM0RGjuiWAcyqudt5NSiAeCitvI5e8swuxBCLv7zNAsLhAfLOgUgm EcrFVZwtI+jOQJEA5BKy5W3ZB8THXCSfvcNP/rtK5id6YrQ973soHzJxD7hR1DqQzFne XECjPnh930f9nyWvp6osqLOmsXdSPgDR0xiMF8BtymYAOQJynxoH3tUSZuvI/73LUpu6 zzMwPe6T7ySROLxYM1KM5LhqX2QQM4fS1qpipyhTfWpAeji7RxRi06vsgBisdXx3gI9e tSig== X-Gm-Message-State: AOJu0Yzk2jgvQFH+VZQL3gY/ym3NZ+JpWu0Xw+XbwOsnLkF2jwGeixku UUs/+FI+4PiS1qK0uAOPaRLTHnFq9tg= X-Google-Smtp-Source: AGHT+IF9ou1qSybLYQD6QdjwW6u7eVqOieqxHm52cgPxaf4xRcabHETmDORd9n00fwTDXwO9AnBoqA== X-Received: by 2002:aa7:d814:0:b0:557:4f8b:ed9 with SMTP id v20-20020aa7d814000000b005574f8b0ed9mr513039edq.4.1704547557559; Sat, 06 Jan 2024 05:25:57 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Eduardo Habkost , Richard Henderson , Paolo Bonzini , Marcel Apfelbaum , Bernhard Beschow Subject: [PATCH v2 2/3] hw/i386/x86: Fix PIC interrupt handling if APIC is globally disabled Date: Sat, 6 Jan 2024 14:25:45 +0100 Message-ID: <20240106132546.21248-3-shentey@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106132546.21248-1-shentey@gmail.com> References: <20240106132546.21248-1-shentey@gmail.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=2a00:1450:4864:20::52a; envelope-from=shentey@gmail.com; helo=mail-ed1-x52a.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1704547628952100006 Content-Type: text/plain; charset="utf-8" QEMU populates the apic_state attribute of x86 CPUs if supported by real hardware or if SMP is active. When handling interrupts, it just checks whet= her apic_state is populated to route the interrupt to the PIC or to the APIC. However, chapter 10.4.3 of [1] requires that: When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to= an IA-32 processor without an on-chip APIC. This means that when apic_state is populated, QEMU needs to check for the MSR_IA32_APICBASE_ENABLE flag in addition. Implement this which fixes some real-world BIOSes. [1] Intel 64 and IA-32 Architectures Software Developer's Manual, Vol. 3A: System Programming Guide, Part 1 Signed-off-by: Bernhard Beschow --- include/hw/i386/apic.h | 1 + hw/i386/x86.c | 4 ++-- hw/intc/apic_common.c | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h index bdc15a7a73..b2907c7179 100644 --- a/include/hw/i386/apic.h +++ b/include/hw/i386/apic.h @@ -11,6 +11,7 @@ void apic_deliver_nmi(DeviceState *d); int apic_get_interrupt(DeviceState *s); void cpu_set_apic_base(DeviceState *s, uint64_t val); uint64_t cpu_get_apic_base(DeviceState *s); +bool cpu_is_apic_enabled(DeviceState *s); void cpu_set_apic_tpr(DeviceState *s, uint8_t val); uint8_t cpu_get_apic_tpr(DeviceState *s); void apic_init_reset(DeviceState *s); diff --git a/hw/i386/x86.c b/hw/i386/x86.c index 61af705e90..16cd06c594 100644 --- a/hw/i386/x86.c +++ b/hw/i386/x86.c @@ -516,7 +516,7 @@ static void x86_nmi(NMIState *n, int cpu_index, Error *= *errp) CPU_FOREACH(cs) { X86CPU *cpu =3D X86_CPU(cs); =20 - if (cpu->apic_state) { + if (cpu_is_apic_enabled(cpu->apic_state)) { apic_deliver_nmi(cpu->apic_state); } else { cpu_interrupt(cs, CPU_INTERRUPT_NMI); @@ -551,7 +551,7 @@ static void pic_irq_request(void *opaque, int irq, int = level) X86CPU *cpu =3D X86_CPU(cs); =20 trace_x86_pic_interrupt(irq, level); - if (cpu->apic_state && !kvm_irqchip_in_kernel() && + if (cpu_is_apic_enabled(cpu->apic_state) && !kvm_irqchip_in_kernel() && !whpx_apic_in_platform()) { CPU_FOREACH(cs) { cpu =3D X86_CPU(cs); diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 6c100b48d6..bb5e916e9d 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -63,6 +63,19 @@ uint64_t cpu_get_apic_base(DeviceState *dev) } } =20 +bool cpu_is_apic_enabled(DeviceState *dev) +{ + APICCommonState *s; + + if (!dev) { + return false; + } + + s =3D APIC_COMMON(dev); + + return s->apicbase & MSR_IA32_APICBASE_ENABLE; +} + void cpu_set_apic_tpr(DeviceState *dev, uint8_t val) { APICCommonState *s; --=20 2.43.0 From nobody Tue Nov 26 20:12:31 2024 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=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704547627; cv=none; d=zohomail.com; s=zohoarc; b=QzvDhMkm2PV1OxlOchAcGWESJCJX5NVsyKWKjONZ/q03trbp2+OKvx4narXAGK8iHpbCAPF++OFUWANIOmxQmwz6TzQRl0N86a3kFxUCqVwOf9Qu5/3VpfTTIoPGsuahbYIjTHfAqfOwioJJ8lJHOuIYJPvxJYd1YJ9s+IS/EWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704547627; h=Content-Type: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=rVIESXOk5bK140JAyI+BSQBXs83euXAOCnCvVsW03eQ=; b=cYNFBxbMUcjCWkfUaT0jPhRkvvB3kCXfazXzuwg5MzdqnC+zxHPEIaZFWOkSWYmemx6sTaFYkXHaZHuvAtiL4Bp1ry6IqyqodEV+k+ZWgHD2mZ/ccS0PwFl7aM8RlKTClyRDTSPqK/ZevBw5/I9rlf7G+iovId4hnuQg+XSj44A= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704547627032172.03691765893007; Sat, 6 Jan 2024 05:27:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM6gk-0000bj-MN; Sat, 06 Jan 2024 08:26:12 -0500 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 1rM6gd-0000Zl-0E for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:26:04 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rM6gb-0005yV-HN for qemu-devel@nongnu.org; Sat, 06 Jan 2024 08:26:02 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-555f581aed9so454523a12.3 for ; Sat, 06 Jan 2024 05:26:01 -0800 (PST) Received: from Provence.localdomain (dynamic-077-011-174-094.77.11.pool.telefonica.de. [77.11.174.94]) by smtp.gmail.com with ESMTPSA id 3-20020a508e03000000b0055515b40464sm2159752edw.81.2024.01.06.05.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 05:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704547559; x=1705152359; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rVIESXOk5bK140JAyI+BSQBXs83euXAOCnCvVsW03eQ=; b=Z30GFj4hRzSPx99Lo85e/zrLuzDfLJxQJcAH03c2xSKpxCR2gUM9LinK+w6rcIvgJv rZbivZAc5dRkjXIMis9crf9j12isg4mp3pG2m55Ueu9nLeRiEFdS93uyIWomirGUSosV KvJhmUWdPd+XvYeKz2LA080zy50Ba2YY4BPZMy3TL85fLvoo/bAMF28iPf5viOPqthwf 5bLl9IBRYVDvqRXFA+MTxeKYOdYOtRiUrvJ+wAs7IrrQtFsjVZqRSpLPJvzOIwCmNql1 qc5JVO7TslklhAMhsJ0xmERDhoW2sl/6UTPpLmPd7yo2Og5k/zKVVu7wJvIv5M7qzVn4 YStw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704547559; x=1705152359; 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=rVIESXOk5bK140JAyI+BSQBXs83euXAOCnCvVsW03eQ=; b=iwUAFp6+tOdoxAHIMLHxjAYn9liflt8JuSuM+Yyw1eHQmXPVfsQTzIloxgntWA4q8h bpM/5EdEDEIMRXw2zjyjymhoQkvWnUJhTfqhmWByx9yEbn+PeKnawbWmUEcn2gP9zwlL zHijnJvMKTFb4w6DWFkz3sxM+Q6q8lPXr5CM0NxO7n+X3icv/Mycu6BsKZyh068UqAa6 DnuaJAlwpOHdUm/GarZwgLwsWDQv2VNBfzPpFUT2eF/U126o8kdl2CaGXuxSByk0Y0wj vTHnNGkD6e+YD8FOYFJ96JNKYFw8D1tWkrA8vBp9VVCATiX67zl3L3nm+7ZaVIKUmby4 0Vng== X-Gm-Message-State: AOJu0YxYcXkZoGgmchmt1ePoUz4RQqU3HhHtCyOaRmyLzxpB7f8mbjMJ x2FF9RE8++iDnknMO2MAhehmP3VHS1s= X-Google-Smtp-Source: AGHT+IEHVgmFHG/slMf/wkbvSNJ8IBWa1UDTFSBK3GF4z8UlOuvIQQtA74Vo++VkRaHCNdb4l0H1VA== X-Received: by 2002:a50:ab15:0:b0:557:34d4:e523 with SMTP id s21-20020a50ab15000000b0055734d4e523mr506665edc.39.1704547559206; Sat, 06 Jan 2024 05:25:59 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Eduardo Habkost , Richard Henderson , Paolo Bonzini , Marcel Apfelbaum , Bernhard Beschow , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v2 3/3] target/i386/cpu: Fix typo in comment Date: Sat, 6 Jan 2024 14:25:46 +0100 Message-ID: <20240106132546.21248-4-shentey@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106132546.21248-1-shentey@gmail.com> References: <20240106132546.21248-1-shentey@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::52f; envelope-from=shentey@gmail.com; helo=mail-ed1-x52f.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1704547628941100005 Signed-off-by: Bernhard Beschow Reviewed-by: Alex Benn=C3=A9e --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 2524881ce2..7d11edf4fa 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -2178,7 +2178,7 @@ static const CPUCaches epyc_genoa_cache_info =3D { * Conceal VM entries from PT * Enable ENCLS exiting * Mode-based execute control (XS/XU) - s TSC scaling (Skylake Server and newer) + * TSC scaling (Skylake Server and newer) * GPA translation for PT (IceLake and newer) * User wait and pause * ENCLV exiting --=20 2.43.0