Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8512142rwp; Wed, 19 Jul 2023 10:50:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhfOcnDcQgpaH/hI8G3j/IoM/6eunoZA8RXdeq/+wdAJvLvjUGeFALIwblR/3Czc7gHLjD X-Received: by 2002:a17:906:3b0e:b0:957:2e48:5657 with SMTP id g14-20020a1709063b0e00b009572e485657mr2691064ejf.68.1689789057540; Wed, 19 Jul 2023 10:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689789057; cv=none; d=google.com; s=arc-20160816; b=NdVMvmtBffOJPclFMqhAY2/O1iWLmvGvMhxpLbijhNntQKnogjybPEi3mMN/b44a2w wnnOv0iWpvZNOmy2D4UJiKVGWeHw2P70tY6iUcD8Ceym47PV8lUqhwAkeM/jCi4cBfvo ZTFEBF4jh+uMR4S2/zTLX/ag4wm/d7NqC8581QgHqvAX5DXgwQoF85KlV5N7eL412jmS R2TPL/1/loorltuaT8WkwJHDCpOfI/8iZ/QgKVA/2R4jaGwzm8zZ6eugnyQyD5uO9MRT sxWosDSRWC55O0Q4vdHdKjEG5RDTEULy5hNwupyU0CIkZkyybf/mrz3YxTJYQCx6NsjK pkhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=FcSmUlnfPR5r9QDVWlDed1kmwKvJ4NFeMyH/cuBuG7c=; fh=QHShP4G1rqCt3k3eEpJG0ljCz5P57F/JmIECYircSao=; b=Um4LbQ4xRDJjbiMXJKsFNCByXLn/HastDYrE2N8e3VVfPRi4U5mMmCFlGFKX2Pi6Da KGDnnsP0XJ7Sbu0/MyeU9DH41AKfzr36etUwwCxfnEpvNAhTI2Uv/0FjLt2EYUcGKDyB rz2A7eNvDMS82WuJSH6rOr7C1xO8Qn4HsnqBiF2s0Kkw7l002uySkVIKmLx0DtezqF9g dD6ITnOlvKw9LzlsxFTz1vfhSn0HrXQDfqMYjXGZx/RKStM2st/12WEfyGCexWFLGcVy jz6QEsEUopCtyJAcT1HO2V7j1Ld/9xa+68Th5K7EnLsHfRCKyo5rmmxqIHdgYevsjPN/ Bpog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cvh+trag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le12-20020a170906ae0c00b00997b74a738esi2865733ejb.448.2023.07.19.10.50.32; Wed, 19 Jul 2023 10:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cvh+trag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbjGSRfH (ORCPT + 99 others); Wed, 19 Jul 2023 13:35:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjGSRfG (ORCPT ); Wed, 19 Jul 2023 13:35:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F5110CC for ; Wed, 19 Jul 2023 10:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689788068; 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=FcSmUlnfPR5r9QDVWlDed1kmwKvJ4NFeMyH/cuBuG7c=; b=Cvh+tragkf+T0rHRmvwpvoEMk9zEO8CgA4qftNJW85sfIdE39bzgvFDQSK4mZ/I4ehg103 kQxFnVQau3YdpDyzNPqMiVVCyoBj7IwXQRUaMOEL/TQQ1l4wjAGXFe6XwW8Zwhovi6e2do es0X1RSM+OPpa0IYFwUW50dcFLTOkPw= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-158-DCd15r3UMF-QobZ87-3oXg-1; Wed, 19 Jul 2023 13:34:26 -0400 X-MC-Unique: DCd15r3UMF-QobZ87-3oXg-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-987e47d2e81so420358266b.1 for ; Wed, 19 Jul 2023 10:34:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689788065; x=1692380065; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FcSmUlnfPR5r9QDVWlDed1kmwKvJ4NFeMyH/cuBuG7c=; b=UNK0xCPPFHddQm8gGiQvQJmfVUY8fMAk4e/VYZQV/z9vDsnstRtiNBsYdNjNAjlePB 7nXdLKt7t1brcDAuh3TPDDhOL8zx4DBm4uwSfjSV9Y7+IX1aPjqTPZ31f5b0o6tC/hyr 9CS5cbvAyQjAgvTxLmQ11SJkIsdYdJyTtG518hoK+gjJ/+D9trHb0EuHz8i8S++DecTQ JrCFbelZKS+6jC6BR6zIFAhuBrWDlvse4VC7os396bl5aoBDZepyS1a7RCry3J/OHN4V osPplnldZOzEqxb5eqBzUOV0SIC0n9/eMJqVE8fmJpTN62stfq8ZfPTF1J9UBgQ2mxEM d1Sw== X-Gm-Message-State: ABy/qLZP5lN3ZBQJHN7+CGVwhqmyzbyZcOKSlYZ+CgUceDHcAO3ZQvtU J2Ew7WC5nPtPF6a7euTrbk6z2Z1bbNnHb0aR7dJGzBZ+PE4GUafZ1G1jMU45imfDZgBj+4LTvkq ouXPtyXEzzGvOww+zKmx7TA3O X-Received: by 2002:a17:906:2c9:b0:987:6372:c31f with SMTP id 9-20020a17090602c900b009876372c31fmr2869607ejk.37.1689788065622; Wed, 19 Jul 2023 10:34:25 -0700 (PDT) X-Received: by 2002:a17:906:2c9:b0:987:6372:c31f with SMTP id 9-20020a17090602c900b009876372c31fmr2869597ejk.37.1689788065328; Wed, 19 Jul 2023 10:34:25 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.googlemail.com with ESMTPSA id gz18-20020a170906f2d200b00991faf3810esm2633958ejb.146.2023.07.19.10.34.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 10:34:24 -0700 (PDT) Message-ID: Date: Wed, 19 Jul 2023 19:34:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Sean Christopherson , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" , Alexander Graf , Nicholas Piggin Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" References: <20230718234512.1690985-1-seanjc@google.com> <20230718234512.1690985-5-seanjc@google.com> From: Paolo Bonzini Subject: Re: [RFC PATCH v11 04/29] KVM: PPC: Drop dead code related to KVM_ARCH_WANT_MMU_NOTIFIER In-Reply-To: <20230718234512.1690985-5-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/23 01:44, Sean Christopherson wrote: > Signed-off-by: Sean Christopherson > --- > arch/powerpc/kvm/powerpc.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c > index 7197c8256668..5cf9e5e3112a 100644 > --- a/arch/powerpc/kvm/powerpc.c > +++ b/arch/powerpc/kvm/powerpc.c > @@ -634,10 +634,11 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) > case KVM_CAP_SYNC_MMU: > #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE > r = hv_enabled; This could actually be unnecessarily conservative. Even book3s_pr.c knows how to do unmap and set_spte, so it should be able to support KVM_CAP_SYNC_MMU. Alex, Nick, do you remember any of this? This would mean moving KVM_CAP_SYNC_MMU to virt/kvm/kvm_main.c, which is nice. Paolo > -#elif defined(KVM_ARCH_WANT_MMU_NOTIFIER) > - r = 1; > #else > - r = 0; > +#ifndef KVM_ARCH_WANT_MMU_NOTIFIER > + BUILD_BUG(); > +#endif > + r = 1; > #endif > break; > #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE