Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8480519rwp; Wed, 19 Jul 2023 10:20:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuQi5ay+Dj9CqFGhg493OAabRv80D38V9Qmpf3XR3K4r5VRZAX9RCTF7hN6QDWFYDiatW6 X-Received: by 2002:a17:906:da1c:b0:992:bc8:58d9 with SMTP id fi28-20020a170906da1c00b009920bc858d9mr2648414ejb.70.1689787235631; Wed, 19 Jul 2023 10:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689787235; cv=none; d=google.com; s=arc-20160816; b=a2NnGsyJe1FqRxMGnqMEj7EcoTkC8axnvwgTtu4XDi8ws6UEBxiAqwsTXOz3fLrR9P 3Fh3nZDRosgExOQjCx90Ic2QR70ixNDsXwxELqRQXb6XwkQ0nanSzoEB8xWhND6DsMUP v+IRLUdBGTLCLa3IqtqrPoYsgLHjb6wIHGQgc1K0lXKPIVjV7nP9mxC76m23l6OeLLby zRmtww+5thYaQTydsw2Ppm+8ljRKHKiusHdj2Hl/3FMc84NPJ5CNpJ9gbDazqHKNI95K Q6pcozXTqLdDCPG5holzQyXuT0O/3a8qnE9ppEF0Rd7np0MD3Yg68ZQBR+OeeGjbXVAB cdvQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zkcPX3Osb4OA2D5IidduaA2zXjGkNlWKrQ0mhSge49c=; fh=Ha0fK0q/QRDhu63ZqG+O6WFFibL7W0Vai9siCdqdoHU=; b=MBGzQp5t2XEGfXZAJJcsKtVUlDSsI8E32DVScgdX0VOBAmoz7yEiHtSO/ugJu+m+qS QMoIL6B/fyRiwIo8cUERoegdeW/dqbYVb97Z9UcHmP7mYuaTH+/vuaP7vkaf+iFiwzkB aXXGcsGDRWE8ij/Vli1WA/L8OP19ZRA/HrVw1mrimJbhaM2Hx9joyJh//jmJiL0Sc963 aQwDuKd6+Q7oT+Xt7kEo58jWMirH0EGMTDwh6vYqbKx2PmUj58Dj64x+0oPAqVfNmFZY AsdaQyxEScG9CQzst8IKvDapXnolBc4sWK5tumZFIMJEoZ6KjY9vf3pscyITgf5egsQ2 AR9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ks93h3vt; 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 t13-20020a1709063e4d00b00992feae3848si3135101eji.38.2023.07.19.10.20.11; Wed, 19 Jul 2023 10:20:35 -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=Ks93h3vt; 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 S231321AbjGSRN1 (ORCPT + 99 others); Wed, 19 Jul 2023 13:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbjGSRNO (ORCPT ); Wed, 19 Jul 2023 13:13:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFF25172D for ; Wed, 19 Jul 2023 10:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689786746; 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=zkcPX3Osb4OA2D5IidduaA2zXjGkNlWKrQ0mhSge49c=; b=Ks93h3vtqS+uYmBR9wdp94NuYQOIw10HTA1wrD0Vi8kOR603y9p9aYfS6285k6gvUUZJCJ IbExLWZmtckmvuAf3M+poNZUTwwaSjlfneAb8yT+DHQP7rGvbZqwpzHPWEazHUJMw6fgCL Lblm47gR2vFKNgHNueyaLbmH/7ORU7M= 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-623-bzrZylAQPBuevnb9Osp4Rw-1; Wed, 19 Jul 2023 13:12:24 -0400 X-MC-Unique: bzrZylAQPBuevnb9Osp4Rw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9932e8e76b9so418983266b.3 for ; Wed, 19 Jul 2023 10:12:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689786743; x=1692378743; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zkcPX3Osb4OA2D5IidduaA2zXjGkNlWKrQ0mhSge49c=; b=Zhy7c9VSZvRWhlJLwBtVigCbPEARCclfxafUSjFMAfgi3jgXw50gQDd6uuU+lC9mvJ KvT0Y+5tw7sp75viLkmvQSirwyxcvfkyfg8uZcwlW9SYDqL71cxNxSAIKV1dCkZKN5Bx uG7G5YkVwRT4WDOn1Q2r7616zfH/4XU1EW2rxfvytYEQkjakzpoLuJHmPff/MBBJizHx 2TVHzZezWPACYVeDyznmyDnfZV4cVgNhYix41ek6IIOQpyPhvCHIwYk5YrqbhxmRPW+K JoX4Vc4alA0TTQnQQojZko3qzDpEwNVSqIvgmB80f1ZhUwUjMrnjRExwuiNl4F/zCwqA uinw== X-Gm-Message-State: ABy/qLY5yGQ7sOzS0bEAVxJDTqD9mMvhDzsgx0ZHEHDfMhod6+JfRD42 3CBVBwTuDPoOYxeHvCl35ZcfFxWlG1AnYAfoKPSzXLd3O+NYqepOFt4UGU+LnngjDeklonnhBIj orQ0hWZOUT+J237rRNIEt4g1o X-Received: by 2002:a17:906:d84:b0:994:54ff:10f6 with SMTP id m4-20020a1709060d8400b0099454ff10f6mr2451597eji.30.1689786743724; Wed, 19 Jul 2023 10:12:23 -0700 (PDT) X-Received: by 2002:a17:906:d84:b0:994:54ff:10f6 with SMTP id m4-20020a1709060d8400b0099454ff10f6mr2451551eji.30.1689786743496; Wed, 19 Jul 2023 10:12:23 -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 h24-20020a1709063c1800b00989828a42e8sm2589100ejg.154.2023.07.19.10.12.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 10:12:21 -0700 (PDT) Message-ID: <095133d1-ad3a-8b5d-d000-10b0b377c7b3@redhat.com> Date: Wed, 19 Jul 2023 19:12:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH v11 02/29] KVM: Tweak kvm_hva_range and hva_handler_t to allow reusing for gfn ranges 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" 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-3-seanjc@google.com> From: Paolo Bonzini In-Reply-To: <20230718234512.1690985-3-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=ham 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 > --- > virt/kvm/kvm_main.c | 34 +++++++++++++++++++--------------- > 1 file changed, 19 insertions(+), 15 deletions(-) Reviewed-by: Paolo Bonzini