From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4117C001DE for ; Wed, 26 Jul 2023 15:18:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233412AbjGZPSy (ORCPT ); Wed, 26 Jul 2023 11:18:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234824AbjGZPSi (ORCPT ); Wed, 26 Jul 2023 11:18:38 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090A910F3 for ; Wed, 26 Jul 2023 08:18:33 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-c5fc972760eso7262180276.1 for ; Wed, 26 Jul 2023 08:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690384712; x=1690989512; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/SbDOlC/PTsalgsldKN8oRk7xsGDZQfDFDqWN22Gtfc=; b=jNDsxmZ0oStRlchdDZ2vKABh73bfMOOqsM4aL53+BOIDYlwxVU6KJgL+k7cfdCRkvW 4MUBsnRv1nDNxyyhBMe8GnkqUg8je753+8tMHvZyt3Sn2mtgK+xz8R7ofO3z9DB/NbHc HnoyaG3W3d0BWBXp0InXiUlFYsKC8ExVqeQZVAlSYMsA0UR4GHnsj0ZyagXrtz+0///3 dVK034DAg+wFoZj/cFr17KVUy923RYAc13G4oI1TUrbfb5B3QGKI/BMpGsP0z/13r/mx vRuz3twPx903wtlXZUbrWQwKy8IXTH6qYmBliNx8/+wsO+Gc+Y8HiPslFpg2/gOMt5Bk ZZ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690384712; x=1690989512; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/SbDOlC/PTsalgsldKN8oRk7xsGDZQfDFDqWN22Gtfc=; b=gDkBhEnrkDMR6A6TkhTQib4q48ugRXwo7k2K+DbTPe9ytdIggeTh2kKp+4Z4E/sdxI BvgJPlWEu8HNltrBF+7aMxY7miZ/RhLL/QtfoBzMbuvEhq8Anv/KcO1yMxI6Ks7ckad8 1xUxb/LXu0ttaZgfMlLzcjgSoP2+R9jKyzja65u3GZFtSFkQeCi4B8FGP32B5ehBzRzX vKS/7FaSbFO9FhViGYmgDbt1ztI2egHC1zQ5KikAWYLQC477+fKeiCYwI9d+C+8Zdq6l 0Kh1VF8/kbUBB5L3INUYc/8xbUECDVlr3EfEV5jZYfG7ZrLkz0vuWj/DXHxnAVB+jACl dsgQ== X-Gm-Message-State: ABy/qLbnsEiI9I2i+FuxdvbXsu7r1Zg/DBcYuQ9oLvezwr2NyB3qjj4v NUUmXJmsT33TUI/W2L9cfAfUxJETqAU= X-Google-Smtp-Source: APBJJlEMDrb4UHGIfGROgVMNUXWl0cyGq0IuQE+Td6NipqfkdQ7JkcIJonCw/hGblzl/Rdrt0TJAIeGTDIw= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:1803:b0:d0b:c67:de3b with SMTP id cf3-20020a056902180300b00d0b0c67de3bmr13899ybb.13.1690384712290; Wed, 26 Jul 2023 08:18:32 -0700 (PDT) Date: Wed, 26 Jul 2023 08:17:50 -0700 In-Reply-To: <20230711230131.648752-1-seanjc@google.com> Mime-Version: 1.0 References: <20230711230131.648752-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <169023385531.113049.17747041541704393217.b4-ty@google.com> Subject: Re: [PATCH 0/7] KVM: Grab KVM references for stats fds From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zheng Zhang , Kees Cook Content-Type: text/plain; charset="utf-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Jul 2023 16:01:24 -0700, Sean Christopherson wrote: > Grab a reference to the VM when handing a userspace stats fds for VMs and > vCPUs to ensure the stats files don't outlive the VM and its vCPUs, and add > a regression testcase in selftests. > > Sean Christopherson (7): > KVM: Grab a reference to KVM for VM and vCPU stats file descriptors > KVM: selftests: Use pread() to read binary stats header > KVM: selftests: Clean up stats fd in common stats_test() helper > KVM: selftests: Explicitly free vcpus array in binary stats test > KVM: selftests: Verify userspace can create "redundant" binary stats > files > KVM: selftests: Verify stats fd can be dup()'d and read > KVM: selftests: Verify stats fd is usable after VM fd has been closed > > [...] Applied to kvm-x86 fixes, thanks! [1/7] KVM: Grab a reference to KVM for VM and vCPU stats file descriptors https://github.com/kvm-x86/linux/commit/0d6d1727a21e [2/7] KVM: selftests: Use pread() to read binary stats header https://github.com/kvm-x86/linux/commit/ba6ed5058b1e [3/7] KVM: selftests: Clean up stats fd in common stats_test() helper https://github.com/kvm-x86/linux/commit/34ffae5d4294 [4/7] KVM: selftests: Explicitly free vcpus array in binary stats test https://github.com/kvm-x86/linux/commit/0dec04897a5c [5/7] KVM: selftests: Verify userspace can create "redundant" binary stats files https://github.com/kvm-x86/linux/commit/518f3fde1f28 [6/7] KVM: selftests: Verify stats fd can be dup()'d and read https://github.com/kvm-x86/linux/commit/a4b51af2c290 [7/7] KVM: selftests: Verify stats fd is usable after VM fd has been closed https://github.com/kvm-x86/linux/commit/00b6b7e96803 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes