Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12592912rwl; Tue, 3 Jan 2023 17:26:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPQUIq8h5nw8xiXkmIJeu7ka+I1HNfWGW1KocCWsvYxymdcSXCtha0z+KLxDLNw8lrwhBu X-Received: by 2002:a17:906:cb99:b0:7c0:f5d7:cac7 with SMTP id mf25-20020a170906cb9900b007c0f5d7cac7mr47129087ejb.67.1672795618516; Tue, 03 Jan 2023 17:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672795618; cv=none; d=google.com; s=arc-20160816; b=jTfX/7emJq8MIrri2L9MJG7ublrF1YFS6nAnArB8NPF5sLZ3FnLyULpZbVeQri7cOU XGcp/VztW4WUsFTFpQxJuw8y++PQOzEER7B/bjISbHwQx42Crr9Pj8ewasYHvC8FnoEg d8EG6Y/7qj+MXJNnnsQbviFazsy5U8M4o/Qj79vpWm6qYVivnIZmulU3Zeplp5J7l90m 9teexRBRLtpMgjvgm+S7BQ0LeWnN4aKeO6dBySbKXLYLvyTGHgQV5mCsj4BPqvSSab3j k8R2XlFXrUEveEoZCtKhJ8RPbZS3dBdRHDCoNYk+kCdIxYwyn1+ppdr09cFWdKzxfcxG Cmdg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=B1SMUQWNqPdQW0vO6rH84bqxMDgoVgXICRobpbo8urw=; b=ObqwATO86az5M7eK8ul9V/hFWY0coXjbXRZtK1q4fB7vlcZanGAv7CnuiEg4tsjCiP hmQeWRvNnhOgkrdga/zx4PMuvIjbdodsKJveAg4tXUuOCE6TQ0b9XXFtCTZLVY15uqhq 9xkTdwdn21FFzQ19AcT8CtkMlYUixzeXiX5cx9W7eEp0MZqH/guRLuOjjw7MmfDYSrV8 x5YPPJaFf0txBMv83hGph5RYege8brlNvsEHJPwMIDz4+x+/74jbwweRiD7bt6kEN+CU 3udSDJSfMflParynY4LVSX1eFtxz77dj400zskWtoWAKSfb4ioxvKaQLj8hvpIdAy1Dk rcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="DRqws/vK"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020aa7d5d4000000b0045d5b83114esi26805678eds.112.2023.01.03.17.26.45; Tue, 03 Jan 2023 17:26:58 -0800 (PST) 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=@google.com header.s=20210112 header.b="DRqws/vK"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238923AbjADBBU (ORCPT + 57 others); Tue, 3 Jan 2023 20:01:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233130AbjADBBS (ORCPT ); Tue, 3 Jan 2023 20:01:18 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25676246 for ; Tue, 3 Jan 2023 17:01:18 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id c8-20020a17090a4d0800b00225c3614161so30369935pjg.5 for ; Tue, 03 Jan 2023 17:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=B1SMUQWNqPdQW0vO6rH84bqxMDgoVgXICRobpbo8urw=; b=DRqws/vK/yhWoIfP64vLyodOJO4aCujC4wtDuEc4ApqYy8FwZmg5t+EYLiXT5evOXC jcnpHczN04p7z4HPZvK1/Tm34zMcYewsweOd9ZXvrMrJQncMzmxUO5IbCa+iT/C2Qv1t jugot8Wk4KWUoeV849df+IpR59GKuNLabhlwRmnbRqv4B/EueamuxkWBYHlqr42yD45y Zl3hXc4nm1ucdN7hMhhbOTAeeQeEY3Qtb7usTkQB3GemLvrlmU+ysAMc22HonWftP6nx 6sNDRBe9XQhEryl/Rbg4G6tV41jJfOPH6jWsCYOioTC30FSFddiIoAAT0Fj8S8qLJc8U qN8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B1SMUQWNqPdQW0vO6rH84bqxMDgoVgXICRobpbo8urw=; b=yKUVCddZcMrFQtEIt8OCB03kClSOzxFfJzY2gpkaDtF9+dOnckWKhCgQFw8CrUxo96 qvYzDA3A8Ylc+qEcSohZFqqja23Inz/ZGveeiKLdcQaGMLDK4hmm2eEcESdk3rKaEjzJ eJQhMslIeXIr1vVs6ubJmgEcKPnwkiP61H4vg64uQBQqz/oylQLujkum4cpbjEUeuivD 1i6SdPZyjnYp96yrrPiJ/VKQCHihG+GpaVCtgdrA8FZSTG53W0lb846tDJnCvwRsbUU4 OYkJQ+JroHkZwBQt/rG7XkvN7GOxnpOB0Gd2SLEmNVXdViBApgsdtN59r+4i8XkU5Ccy PPEw== X-Gm-Message-State: AFqh2ko27lKFKaQpu/cT+H656Sz7EFQFXgWxQMfTT8bbI1d/2W4CJjEh w3pMx+95WcUvmzSOOqMI3S5Ztw== X-Received: by 2002:a17:902:ce90:b0:192:8a1e:9bc7 with SMTP id f16-20020a170902ce9000b001928a1e9bc7mr2235855plg.0.1672794077489; Tue, 03 Jan 2023 17:01:17 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id z11-20020a170902d54b00b0018941395c40sm22630397plf.285.2023.01.03.17.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 17:01:17 -0800 (PST) Date: Wed, 4 Jan 2023 01:01:13 +0000 From: Sean Christopherson To: Yan Zhao Cc: Paolo Bonzini , Zhenyu Wang , Zhi Wang , kvm@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ben Gardon Subject: Re: [PATCH 00/27] drm/i915/gvt: KVM: KVMGT fixes and page-track cleanups Message-ID: References: <20221223005739.1295925-1-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Dec 23, 2022, Yan Zhao wrote: > On Fri, Dec 23, 2022 at 12:57:12AM +0000, Sean Christopherson wrote: > > Fix a variety of found-by-inspection bugs in KVMGT, and overhaul KVM's > > page-track APIs to provide a leaner and cleaner interface. The motivation > > for this series is to (significantly) reduce the number of KVM APIs that > > KVMGT uses, with a long-term goal of making all kvm_host.h headers > > KVM-internal. That said, I think the cleanup itself is worthwhile, > > e.g. KVMGT really shouldn't be touching kvm->mmu_lock. > > > > Note! The KVMGT changes are compile tested only as I don't have the > > necessary hardware (AFAIK). Testing, and lots of it, on the KVMGT side > > of things is needed and any help on that front would be much appreciated. > hi Sean, > Thanks for the patch! > Could you also provide the commit id that this series is based on? The commit ID is provided in the cover letter: base-commit: 9d75a3251adfbcf444681474511b58042a364863 Though you might have a hard time finding that commit as it's from an old version of kvm/queue that's probably since been force pushed. > I applied them on top of latest master branch (6.1.0+, > 8395ae05cb5a2e31d36106e8c85efa11cda849be) in repo > https://github.com/torvalds/linux.git, yet met some conflicts and I > fixed them manually. (patch 11 and patch 25). > > A rough test shows that below mutex_init is missing. > But even with this fix, I still met guest hang during guest boots up. > Will look into it and have a detailed review next week. Thanks again for the reviews and testing! I'll get a v2 out in the next week or so (catching up from holidays) and will be more explicit in documenting the base version.