Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp32327rwb; Mon, 26 Sep 2022 08:57:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y0nfXKiz2lzUc7Fe4UL0ciZkXKW+2X9s8fsw3DeZnmx5ZxmVl+r4lT/ZjShS1vQnNvMbi X-Received: by 2002:a63:698a:0:b0:41c:8dfb:29cb with SMTP id e132-20020a63698a000000b0041c8dfb29cbmr20306731pgc.170.1664207878293; Mon, 26 Sep 2022 08:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207878; cv=none; d=google.com; s=arc-20160816; b=ogclHp7Sqw1YeyQnNAQl2nFOOunx8jPnEEy+TYfVBZ5rtoOXcNBYG+1/euFH9Bl9e9 OnuGwrXp/Z7W6NW8zmoj4xw0orQb39KhLyB10emEx3nw9RE3/ybFJj7qixFVdwESVrk2 gpohKhtxN4mkzxHM5p5+jtQKDkxpmU5kGiHkWaxlgscw6kZV/HL2ZTNPkOU7Rl6nNfwx Gx1ujRVk2jLKXw3q0ABNA3+Y9SAU01EmY8tVSbijn8/MGErZq74YEx3nnNTwIWv2XLvH GenfItaBUONO42cvSunWCEuVrtiFfPcmYSvk5zEVMp30xrPuY6V9euyvs7Z49jciA/Jr LSfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wqG7XdME7F7NxDb1zZpQ57tqwgbRNU/iS9Akdi+8XHI=; b=nAsC3OXL3gjPNGB57eGGZQbvTXKO67La5Ry04lqBMsn8NcLfNmDKJb8AMvVB41NUmU gN1wsq979VKhk6wSH4Sd8UyCTigrIpUlhFLXkwhPUM6OL+Wg9hQQQOwVaLzspat0qWB2 sDLLXefxU5waQf0bdLaQypuuDvp1t8EwGPhFiaABlARFa8ml3OtQJN7orGvKzemYkeWj wTSSe8ld690F8F/g3VO291nR7eNlqPSWvnFs7ux7uGOZ7X9+JltcnPQBcMoEScqNfwb2 OQRkiBT0EObZ0BAvoY2O4dE6XlgTW0P9cRc8eBtB2SaKqK1IukqqtWofzULMTbunVR9O 40lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y6LnGx9c; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a056a00130f00b0053a9a08b0c8si20931289pfu.251.2022.09.26.08.57.46; Mon, 26 Sep 2022 08:57:58 -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=@intel.com header.s=Intel header.b=Y6LnGx9c; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236620AbiIZPbQ (ORCPT + 99 others); Mon, 26 Sep 2022 11:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236526AbiIZP0j (ORCPT ); Mon, 26 Sep 2022 11:26:39 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A495F10C; Mon, 26 Sep 2022 07:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664201522; x=1695737522; h=date:from:to:cc:subject:message-id:reply-to:references: mime-version:in-reply-to; bh=3K99V46lahR/2OM+AWPRnQqkJGlMh+2oIpwQe2KYPck=; b=Y6LnGx9c7yhH6Kp5vJc7Bd4doIoXc6CqLfAopx/aEQvikW1sBo4IxWPm WeVc6choXalmBnTGqmH0yA/RYq8b/PLxGYs1fEsxVpoUE420yXNvOAWQD Rw9Ru8IQ1m3leH2qco3MXnizcjTituW5JUcmoY0O8qzF+OsMdh7JfMCYE WZ9y0bkqQLaEpdjvAw539SSgG63iVolOUFemXs57+5n4ypvx8HaaROwvy QvNSW/jEae1YRk2Qbk4LmsoNijfVCIcJofvgRp+ERCkAe1MLqZIWzoTNi hykujIAqT9a/w0Zwh/uV40pWc7h5URwCbZLbXE1uqleCty9FC6jnjUQWw w==; X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="299760274" X-IronPort-AV: E=Sophos;i="5.93,346,1654585200"; d="scan'208";a="299760274" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2022 07:12:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="651841295" X-IronPort-AV: E=Sophos;i="5.93,346,1654585200"; d="scan'208";a="651841295" Received: from chaop.bj.intel.com (HELO localhost) ([10.240.193.75]) by orsmga008.jf.intel.com with ESMTP; 26 Sep 2022 07:11:51 -0700 Date: Mon, 26 Sep 2022 22:07:15 +0800 From: Chao Peng To: Fuad Tabba Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, qemu-devel@nongnu.org, Paolo Bonzini , Jonathan Corbet , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Hugh Dickins , Jeff Layton , "J . Bruce Fields" , Andrew Morton , Shuah Khan , Mike Rapoport , Steven Price , "Maciej S . Szmigiero" , Vlastimil Babka , Vishal Annapurve , Yu Zhang , "Kirill A . Shutemov" , luto@kernel.org, jun.nakajima@intel.com, dave.hansen@intel.com, ak@linux.intel.com, david@redhat.com, aarcange@redhat.com, ddutile@redhat.com, dhildenb@redhat.com, Quentin Perret , Michael Roth , mhocko@suse.com, Muchun Song , wei.w.wang@intel.com Subject: Re: [PATCH v8 5/8] KVM: Register/unregister the guest private memory regions Message-ID: <20220926140715.GB2658254@chaop.bj.intel.com> Reply-To: Chao Peng References: <20220915142913.2213336-1-chao.p.peng@linux.intel.com> <20220915142913.2213336-6-chao.p.peng@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Mon, Sep 26, 2022 at 11:36:34AM +0100, Fuad Tabba wrote: ... > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > > index 2125b50f6345..d65690cae80b 100644 > > --- a/include/linux/kvm_host.h > > +++ b/include/linux/kvm_host.h > > @@ -260,6 +260,15 @@ bool kvm_test_age_gfn(struct kvm *kvm, struct kvm_gfn_range *range); > > bool kvm_set_spte_gfn(struct kvm *kvm, struct kvm_gfn_range *range); > > #endif > > > > +#ifdef __KVM_HAVE_ZAP_GFN_RANGE > > +void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start, gfn_t gfn_end); > > +#else > > +static inline void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start > > + gfn_t gfn_end) > > Missing a comma after gfn_start. Good catch, thanks! Chao > > Cheers, > /fuad