From patchwork Fri Jul 12 23:56:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13732244 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93D9513B28D for ; Fri, 12 Jul 2024 23:57:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720828639; cv=none; b=pZrjBE4ufu7fDGLouh0JnsS4ZpCsFR3vGvnO61W/A792NBqfVf8bDisXpBS+A6lL6T93BSofiah99In8dNrRpzxfm7p3SfWczLVxrapKMaE3sVqmye1hmRkI0LSZSnjNT2KR7almsSpVZtT6Ja8i3u4kSy3tiEvQDYpb+JxhWsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720828639; c=relaxed/simple; bh=ki5lOaFLSSEayVfBzc38mByz3+WYJAeKuMG1UUW+nkw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=m5O8dUKSYzS6dRxUzWCZYtg2JJTyo9aX196+58h8b2aYXIb4HU8nV2KLezobd5aMph90xYbwNKQYIglMFWR/H9giATedGDFvMqdlWWODsWBq+h9vXz8jV8575NPhe0QFx4RXWRubpDLYTt4wsEU8/VLwfFeeqbowm5g50Kb5v4E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=23VA+0Ys; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="23VA+0Ys" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-6716094a865so1839917a12.0 for ; Fri, 12 Jul 2024 16:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720828638; x=1721433438; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=dfUNFO7Wm8JvZKhm4x192tzOTm6Ah0nZskm2pc6F2FI=; b=23VA+0Ysz9D4JVYG7SAqPvY9X+WwvUTe+e+JZHfG8ifwd8e4Z6MjOKd7xosz+q4VcW 1+TKdDAgRi2gRhYsr/nwcdtD4lWbwuTqgjOhIMz4me5CL0LFUaNzDLHfnnWZyT7f+0lj S7A3K3BGfXIwPFd1YRA7by1KtH/buKJNdxTiko9Dk7GFiyfg97+eK1VaVrRqj7G3JirM dpJoG6iggBIaKh2o7rd/tYFZbHib7Y/vlIJ47WJHwaKzbIS3Xg3G7BGlevA7jFoZbz+D 2z9UeE+3FLucJnqL4lWfAVe+JW3364koHPXOUkcWzOs2ain1tCkdSRfs7KzB5h/060DP BX6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720828638; x=1721433438; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dfUNFO7Wm8JvZKhm4x192tzOTm6Ah0nZskm2pc6F2FI=; b=rTMCs40745B1xAS80y5uC4PmyR2j+cZnnqEZ6D1JRHHDqrhfHiZDeEyiyPMFD9ezpf K3YH/pawTJ0fm+2uDkoKg32wj/bzliV2HW++5YkE/sd5ELplcYXXbu6sjz2f+pCQTMbD 5VTtAJ3cLS2bofH8ppJhXSnLYH1RQXCJ2E2ea5pU3lHQYcUWxFRoMLb0pz0pZblmnZR/ 53dXxTY2CFEpX6XAhlf0EW9YO1whrsFBehl6ZZgVDyikF799wbyMzJoQc5kuzwBi+Cwo kGyNf+deV/gr0OpbXTqsmWQMqkoSpiy1tyQh//UBNOyXdF7vLZmnI7WY/rb/VL5twKXH lnyw== X-Gm-Message-State: AOJu0Yzm7qZ46Igy5XUVpqVb3l9GsPcgynxARtppKjSWA0wm35Pj+41j s4yw11eK0DLLKQk8B3tEU8u+th1DnMUldax2IJVRfk0/3VxwV9iXkVu9XOaLW2RMgdMJk7l04Zl CCA== X-Google-Smtp-Source: AGHT+IHwtj09J3bIEFosQkYg8mkyL91+Y/kzrOb+B4VqKA9yIHNlz9cmY9uFkqnxj6u1pWYPHn6QmBnzi00= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a63:ee12:0:b0:772:6903:ac79 with SMTP id 41be03b00d2f7-77dbefb08aamr24809a12.11.1720828637414; Fri, 12 Jul 2024 16:57:17 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 12 Jul 2024 16:56:57 -0700 In-Reply-To: <20240712235701.1458888-1-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240712235701.1458888-1-seanjc@google.com> X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240712235701.1458888-8-seanjc@google.com> Subject: [GIT PULL] KVM: Selftests changes for 6.11 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson A handful of random selftests changes. Props to Maxim for figuring out a way to fix the PMU counters test. The following changes since commit c3f38fa61af77b49866b006939479069cd451173: Linux 6.10-rc2 (2024-06-02 15:44:56 -0700) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-selftests-6.11 for you to fetch changes up to 4669de42aa6c78669975d58c92433cdedeb7c2c3: KVM: selftests: Increase robustness of LLC cache misses in PMU counters test (2024-06-28 08:44:03 -0700) ---------------------------------------------------------------- KVM selftests for 6.11 - Remove dead code in the memslot modification stress test. - Treat "branch instructions retired" as supported on all AMD Family 17h+ CPUs. - Print the guest pseudo-RNG seed only when it changes, to avoid spamming the log for tests that create lots of VMs. - Make the PMU counters test less flaky when counting LLC cache misses by doing CLFLUSH{OPT} in every loop iteration. ---------------------------------------------------------------- Dr. David Alan Gilbert (1): KVM: selftests: remove unused struct 'memslot_antagonist_args' Manali Shukla (1): KVM: selftests: Treat AMD Family 17h+ as supporting branch insns retired Maxim Levitsky (1): KVM: selftests: Increase robustness of LLC cache misses in PMU counters test Sean Christopherson (2): KVM: selftests: Print the seed for the guest pRNG iff it has changed KVM: selftests: Rework macros in PMU counters test to prep for multi-insn loop tools/testing/selftests/kvm/lib/kvm_util.c | 9 ++++- .../kvm/memslot_modification_stress_test.c | 6 --- .../selftests/kvm/x86_64/pmu_counters_test.c | 44 ++++++++++++++-------- .../selftests/kvm/x86_64/pmu_event_filter_test.c | 35 +++-------------- 4 files changed, 41 insertions(+), 53 deletions(-)