From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1BA0CE77188 for ; Tue, 7 Jan 2025 00:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Cc:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jVDp/Cb4SSvZVX5Ea6AleJ1ceY8sb3nep9vPQlniyUM=; b=kQwxAd38s/mGrH AmD5KykFo8wWOGlhIMnR23DOM65SEnKNEZw/l53FNllmHyvD7RwkzjfFKVymtUxfF4/byPiqEyqwF rvR4ecg2jOM/wVsqd3p3bM4J3pL30oZUAG3PFALzpHJ3sbL/f+Am9JKld0ReiD64IhMkcT8xRgSM0 VSscgH5SeWAcbjxZmtpvdf6WDzj/Mv51jbz4qLpLI8argNMMctMjrpZx8mfh3tdH9pHdyO55Gabvm JWnYFQ5tTflz+C/07AmXYpziaaD/I/DtANA6Gt2obY0RIN+Ot/ZHohnYtVSltTlpbfWb2+AOx91aH DAoWSlpfhyB+eZWfsWew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tUxsA-000000034ma-3JML; Tue, 07 Jan 2025 00:55:06 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tUxs7-000000034lF-0zum for kvm-riscv@lists.infradead.org; Tue, 07 Jan 2025 00:55:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736211301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8Vh0pBL5XxbRXfdAMJHXvrZrZ2HC9oCwCXuoOG8KyG8=; b=iF6jb7YuB/J8CLbIyZrbF/RXK83rymGkl2F41j+dHZO8yye/uBmFPNJNaosi4QJUguRnlw q2RJOvOtUOgizM3UQNdemrfqgMxhaywhZa1b0FlmCzCOUAui8Xb8ngbN22fau0d+MS6M3N jLztOls79hkL/mITb5oumhX3O+MEUcI= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-4ZslP1a2NSq0pt926aCIkQ-1; Mon, 06 Jan 2025 19:53:14 -0500 X-MC-Unique: 4ZslP1a2NSq0pt926aCIkQ-1 X-Mimecast-MFC-AGG-ID: 4ZslP1a2NSq0pt926aCIkQ Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7b6f3b93f5cso2895871785a.0 for ; Mon, 06 Jan 2025 16:53:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736211193; x=1736815993; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CtbBZcEWixSx8WxKTGxxVe9YGJddjHivheFuJ/OEl4U=; b=At95QoeuJ6hQhUhc3T4KAFPOH9yuSqIKxUvaotRR7HaKGl0Jjrxne0elcdogJIwlR/ jbo5Z1e9bxq2gwPkhpT0fGE6AoyeHJLAfhPZUTNF0jDAljYnPaU+oI26ldJmsVJmRiaO TMFQIy2Nr4ewXtBS35YvTTBgpo3fAfcwabzHJKod2zkCLouWjPESRkKeohCZRGhVnvvp csoM7p/3WXisOzxSdy1QyiE5fIJgL+9Ti5QG6EFY9BBOD/3GH9x+7V2iKygUa2NEtMJ3 NwR3PpPaJyRiJF2wwQBbHbMkDRJkC2BFhpQYtDrYj0emxYhmHrM5Q+V6qpmc7TTyJEtU GUfA== X-Forwarded-Encrypted: i=1; AJvYcCUByuIt9Zpj5vXDCG25IExZKSFWN+cubaMJ8PMWxs/qila1Ao75NzsqzN05ZM3WC5pyT/nyGUVN0Gs=@lists.infradead.org X-Gm-Message-State: AOJu0YxnnsAxc9pf3D8fTTMAN6i/71CeaYzgKcL+Eu0kxf7kPYVK70Kq +OPimf8VjqbTst4B7TXosL60RFmxrGqWFWXyPswxjGSY4cDG1NJ95Q2jdw7ZKhiurToS7rBw3LF CqVLMOIrbQPyNrml8Vs1L0BLe6veOP3wpxF9TQDO81Qd1gqaBqxZ+D8iESh5PJkA= X-Gm-Gg: ASbGncvCxMKjRvCPY2Cb5o+QhB5OFv4iEo2h20+AXG1Go4Rio7PYmxX2E1YQj+Mdyx0 5hvP9F9j2R3ZDy7EJyKYYMqaEGouBYQv6rb1ML34xItUPxpknmBC67QRZDR9wKoB688P8NrCCil Y4k4wvLneaJ9yqdRRa3nk+yk+VbU+zIDQlQ1MPyabLo5iJDeuT6iJKgmnufjSWGBMOnuQuym5Ir wRFfxMnUMM1j1XUYjn6Hg/hm4Cd94ZzGaaCRNcraTTlZswfzTTwad80r2iF1QQKxOgjDJ4KvheW X8+oB0ksVLSf/SjtLgcg5oZ0FXVt92pvdMDRnkcGpdbDlg== X-Received: by 2002:a05:620a:4391:b0:7b1:5545:7104 with SMTP id af79cd13be357-7bb90248f5emr233294885a.2.1736211193458; Mon, 06 Jan 2025 16:53:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH3zXukWoOxxE9GTC98eC7YuZVzhkxHUhqQrhYMYf+Tp1nGh3nJP16xZ6Vg5mME8zl35azTw== X-Received: by 2002:a05:620a:4391:b0:7b1:5545:7104 with SMTP id af79cd13be357-7bb90248f5emr233291885a.2.1736211193119; Mon, 06 Jan 2025 16:53:13 -0800 (PST) Received: from crwood-thinkpadp16vgen1.minnmso.csb (syn-050-074-019-099.biz.spectrum.com. [50.74.19.99]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b9ac4cd95fsm1549579385a.103.2025.01.06.16.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2025 16:53:12 -0800 (PST) Message-ID: Subject: Re: [PATCH v2 3/5] powerpc: kvm: drop 32-bit booke From: Crystal Wood To: Arnd Bergmann , kvm@vger.kernel.org Cc: Arnd Bergmann , Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Alexander Graf , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Vitaly Kuznetsov , David Woodhouse , Paul Durrant , Marc Zyngier , "A. Wilcox" , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org Date: Mon, 06 Jan 2025 19:53:11 -0500 In-Reply-To: <20241221214223.3046298-4-arnd@kernel.org> References: <20241221214223.3046298-1-arnd@kernel.org> <20241221214223.3046298-4-arnd@kernel.org> User-Agent: Evolution 3.52.4 (3.52.4-2.fc40) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: N5B7bcWLKSXaF72GL89_bE0-8YwJ8pJlmxG2Qf3MnqQ_1736211193 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250106_165503_383094_07DB6A7F X-CRM114-Status: GOOD ( 18.33 ) X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+kvm-riscv=archiver.kernel.org@lists.infradead.org On Sat, 2024-12-21 at 22:42 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > KVM on PowerPC BookE was introduced in 2008 and supported IBM 44x, > Freescale e500v2 (32-bit mpc85xx, QuorIQ P1/P2), e500mc (32bit QorIQ > P2/P3/P4), e5500 (64-bit QorIQ P5/T1) and e6500 (64-bit QorIQ T2/T4). > > Support for 44x was dropped in 2014 as it was seeing very little use, > but e500v2 and e500mc are still supported as most of the code is shared > with the 64-bit e5500/e6500 implementation. > > The last of those 32-bit chips were introduced in 2010 but not widely > adopted when the following 64-bit PowerPC and Arm variants ended up > being more successful. > > The 64-bit e5500/e6500 are still known to be used with KVM, but I could > not find any evidence of continued use of the 32-bit ones, so drop > discontinue those in order to simplify the implementation. > The changes are purely mechanical, dropping all #ifdef checks for > CONFIG_64BIT, CONFIG_KVM_E500V2, CONFIG_KVM_E500MC, CONFIG_KVM_BOOKE_HV, > CONFIG_PPC_85xx, CONFIG_PPC_FPU, CONFIG_SPE and CONFIG_SPE_POSSIBLE, > which are all known on e5500/e6500. > > Support for 64-bit hosts remains unchanged, for both 32-bit and > 64-bit guests. > > Link: https://lore.kernel.org/lkml/Z1B1phcpbiYWLgCD@google.com/ > Signed-off-by: Arnd Bergmann > --- > arch/powerpc/include/asm/kvm_book3s_32.h | 36 -- > arch/powerpc/include/asm/kvm_booke.h | 4 - > arch/powerpc/include/asm/kvm_booke_hv_asm.h | 2 - > arch/powerpc/kernel/head_85xx.S | 14 - > arch/powerpc/kernel/head_booke.h | 39 -- > arch/powerpc/kvm/Kconfig | 22 +- > arch/powerpc/kvm/Makefile | 15 - > arch/powerpc/kvm/book3s_32_mmu_host.c | 396 -------------- Why are book3s files removed by this patch? > @@ -228,23 +176,16 @@ static inline void kvmppc_save_guest_altivec(struct kvm_vcpu *vcpu) > static void kvmppc_vcpu_sync_debug(struct kvm_vcpu *vcpu) > { > /* Synchronize guest's desire to get debug interrupts into shadow MSR */ > -#ifndef CONFIG_KVM_BOOKE_HV > vcpu->arch.shadow_msr &= ~MSR_DE; > vcpu->arch.shadow_msr |= vcpu->arch.shared->msr & MSR_DE; > -#endif This is an ifndef... the contents should be removed. -Crystal -- kvm-riscv mailing list kvm-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kvm-riscv