Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp139942imn; Wed, 27 Jul 2022 17:57:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t98mk17Hj7D5niROvTQjWKmFTHOD9ldS1bEWTTZSg9mz1TavifYHWj5yXj9d4ni+DGaQb9 X-Received: by 2002:a17:906:cc13:b0:72b:31d5:a899 with SMTP id ml19-20020a170906cc1300b0072b31d5a899mr19431654ejb.184.1658969835616; Wed, 27 Jul 2022 17:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658969835; cv=none; d=google.com; s=arc-20160816; b=qpy/MpyB6YOyMaSkW+K4J8YZ2jGv1vBT4Y1Z7SKPv6Spdv7p0LbXjrl7+0CA3F+2HG MOsYHIazE6n+7k7YnHa4lrlYhxcW7i5vEHNsEqUI7QycgAj0J+VUfmHSIo1kGS2G+8Lf 5gaEv+QoYKzXESw8oB0D3won6DNmaI3R9W2fkyJC4QfIFpvHzvAUgABzflfxHNyNw9mz 48R4xmddye3OTX6RxX1SFR405CMyQtfjZKgIZGE/m40CTLNLUYQFca7BfpEXAsDNvh7a Rr9DZcxy+pjtGZK1DZd7oZY/GDYG0l1tPfr6fJWOI4+wNzxU7/vZ/ScSYy1EyWYbk8mi lF6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=jbavRN44Kcjq3d8Fdfag8rtHqWLz6yee1qgZ9zabVnE=; b=CpkQ3JYtBs1eRAXCyeBL0fXoaV+nFkM7EUIhHmcODD68ORu1wy+ToSRMOaF8PuJ2gF WZAgjE8hMzUr41+Q2bJH2OhoTG/+zKFkS+Wrvqzi/DZOOsHHmB+vmu5i5sXLQdSbLTln KrvYgRcOOz30t7BUSM2xNqklICpH/uVd8JhZpZ5DQQRJudpt3MgaJgZS0Zpv6XlfCHLK 31UqIv7Xq7s2grjbfzgbcWEfFla3+yuk+cRIAI9atpBx/u0xsRSDijY7rNq/rb8FUgF5 DHnOxb6lmwgBz/xQ4TUHyEaIDLwba3VZX3c7kY0Htv8/ObkPVLudwYImxtjUpy9rXc2X zhtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WinUQTHl; 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 ka13-20020a170907990d00b00722d5b8794dsi16368415ejc.308.2022.07.27.17.56.50; Wed, 27 Jul 2022 17:57:15 -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=WinUQTHl; 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 S236440AbiG1Asm (ORCPT + 99 others); Wed, 27 Jul 2022 20:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236337AbiG1Ask (ORCPT ); Wed, 27 Jul 2022 20:48:40 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771375A2C4; Wed, 27 Jul 2022 17:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658969319; x=1690505319; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=n0+u3qQjBHjzD5Z26a1dlESHYO+jSVVySd7JC68F2ew=; b=WinUQTHlbAtoUPMqkCmj7Y31HqyharAme/bePjRBBcHzVY9QNG+w6Ouz CwGUNjc/ZvMYzx/h4o42JkhimaSur9R3yjOSkgq6qbGwNkYwh4ceLSxwN a5r9qyCA5ptfQ0OdWP3rL/8jir03Gxp9z5WDFf3N6rHG+UAwqGJwBXnDP XWDSfXsJ1ZjLqp7aZSzyyftEmEtT8eTjkAnsgWeS7aXHT0N3MzRbjkVJm /+jxZg9ztP1Ex6OVn1yoXqPf3OcbqL7cSO2MtG5EAnfmJAd9xyq9mqPck 3iYVB3ydqG1RdXgIMmoWBdTRCgDTnG3W/4+3cmwoEykHzmbWWJq3/kVna A==; X-IronPort-AV: E=McAfee;i="6400,9594,10421"; a="314169056" X-IronPort-AV: E=Sophos;i="5.93,196,1654585200"; d="scan'208";a="314169056" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 17:48:39 -0700 X-IronPort-AV: E=Sophos;i="5.93,196,1654585200"; d="scan'208";a="633417803" Received: from lmcmurch-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.212.76.147]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 17:48:37 -0700 Message-ID: Subject: Re: [PATCH v7 037/102] KVM: x86/mmu: Track shadow MMIO value/mask on a per-VM basis From: Kai Huang To: Isaku Yamahata Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Sean Christopherson Date: Thu, 28 Jul 2022 12:48:35 +1200 In-Reply-To: <20220727232058.GB3669189@ls.amr.corp.intel.com> References: <242df8a7164b593d3702b9ba94889acd11f43cbb.1656366338.git.isaku.yamahata@intel.com> <20220719084737.GU1379820@ls.amr.corp.intel.com> <20220727232058.GB3669189@ls.amr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Wed, 2022-07-27 at 16:20 -0700, Isaku Yamahata wrote: > > KVM has a global enable_mmio_caching boolean, and I think we should hon= or it > > here (in this patch) by doing below first: > >=20 > > =C2=A0 if (enabling_mmio_caching) > > =C2=A0 mmio_value =3D 0; >=20 > This function already includes "if (!enable_mmio_caching) mmio_value =3D = 0;" in > the beginning. (But not in this hunk, though).=C2=A0 So this patch honors= the > kernel > module parameter. Yeah I missed that. Thanks. --=20 Thanks, -Kai