From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 30FD530DEDD for ; Thu, 20 Nov 2025 23:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763682814; cv=none; b=j9dPomnWyysWEMYttz95PlXCIXA9akZOosnNsts6LIKdLT+VeuAa5ua/f3uU7+EcUpmA+xqxBNs31bghpyglE9XN0KtylNoLVapgEe0a923dp/HFbvITMkLHkntqNAcZs8ZPUGarrIcog/Hcyoy44+/nFQxq4CUHiKRaX5PGqkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763682814; c=relaxed/simple; bh=M4jRC71Wi4l4NsFh9zENY4MSBEm9elSXa4wBy84uayE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=lTHfHNduilR+Sw7BFjxRn29jkq+Szixx1rqNVZ/McxWluOavD6rbi5AJ4U2kUVTwKxVOgyq9iYd0slWap4v+iOSSQDbgTPcSTGIcLd2esf0xGXUuKUjzXf6Pc/4rH1roeZmQMScflBZ4TfRU7qE9NZoni0Mwl5dMG8T5GqyQrgg= 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=sKU0KwCd; arc=none smtp.client-ip=209.85.216.73 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="sKU0KwCd" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-34374bfbcccso1466915a91.0 for ; Thu, 20 Nov 2025 15:53:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763682812; x=1764287612; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=4NDZ1fQ+Ut8j1fVsSWL+jiZSKw4xJOxG+zZRftGIH0o=; b=sKU0KwCdo6nh3/hTLpwGelD36KpqzG5RVRwGjgZIUOgDPWjjQwb/ozjrkNW5hwP/fM DlQZXrpi6nIoH6qTOAbx1q0Mkglb4tsoZE+t4QFYun/LCdl7l/5KurXYoRMmB2TyGGD8 DFgti2RtVgy7B8bYejjZLNb5Lrfe8fcecsF3oDk7jNsATTajRsJoMgcPzEYX4X+Y5cId LX9EZ/10kF6j7fEoyek0Kvadn8gmjMoPag+AeWvvtXnsXyQvgNA/KSy6dNBadA5Nqf2o J9h2LVPLsNq8sPQSiXOTdcg8l9OV8r+Uxb7I7Vkd/0jzt8YoJtLjUrcmBeTyjzoRvLCe NUEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763682812; x=1764287612; 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=4NDZ1fQ+Ut8j1fVsSWL+jiZSKw4xJOxG+zZRftGIH0o=; b=wWlZ1d+18puiiUOChuS2ikxv6uPRXu4bd9yGeVEMAtVWggxG9qA3+K2BzKavsKKSBA cTCsy/bF4x2ICWaoYua0xsrTJypdiPjy0LLlGUo8aVbqytlwhh/cMkMhTDcSS3weh9fy Tn1YwLjcC00SDUggH9SrD1+VzouieOJVECyUHZriiFzhUVAior4CsQdol7C3fGLhX5A9 x3CFFedQeVMLcScFSF4gGP/gVyiGuxeVLWt+gfxRNn1glbrfDtW5HIY6W+oVMbDPNm3H fbTsWcdSgiMXbOZOGI4bWtyfVw+TGuaQnI6vUaFOnwU6bGPsZkm9k7DdKbnA4JVPyZty +whw== X-Forwarded-Encrypted: i=1; AJvYcCX3OyxOC9KiOgpYbju1zuBT7CIrrxO8OnCIXAxIJDrylQZnXbmaQpOFWeuPRG8xoZ/LXIdVrsQwWPN7zL0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1jGFI/sE4Hnv/UybN+RGJsIjPb5hS0RNjMNM/ma4dpAAxK1am 2EJsDotEiFuT65lvHOEeZVy7H0lMSJJRsAeLLIoeeOWqjU9IF6A7WdjV563hX9UdI3mD0SoKF9b /jwjhLQ== X-Google-Smtp-Source: AGHT+IF11hZRQdKkVFZ8ks/tbv5FO+XVDtwwnTw3i9mxGjwyShF9EdVWe0nyuj41EKYi5HcOt0fXteGZ4IA= X-Received: from pjblj2.prod.google.com ([2002:a17:90b:3442:b0:32b:58d1:a610]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3e87:b0:321:9366:5865 with SMTP id 98e67ed59e1d1-34733f517cdmr290604a91.33.1763682812551; Thu, 20 Nov 2025 15:53:32 -0800 (PST) Date: Thu, 20 Nov 2025 15:53:31 -0800 In-Reply-To: <20251021074736.1324328-4-yosry.ahmed@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251021074736.1324328-1-yosry.ahmed@linux.dev> <20251021074736.1324328-4-yosry.ahmed@linux.dev> Message-ID: Subject: Re: [PATCH v2 03/23] KVM: selftests: Extend vmx_close_while_nested_test to cover SVM From: Sean Christopherson To: Yosry Ahmed Cc: Paolo Bonzini , Jim Mattson , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Tue, Oct 21, 2025, Yosry Ahmed wrote: > Add SVM L1 code to run the nested guest, and allow the test to run with > SVM as well as VMX. > > Reviewed-by: Jim Mattson > > Signed-off-by: Yosry Ahmed > --- > tools/testing/selftests/kvm/Makefile.kvm | 2 +- > ...ested_test.c => close_while_nested_test.c} | 42 +++++++++++++++---- > 2 files changed, 35 insertions(+), 9 deletions(-) > rename tools/testing/selftests/kvm/x86/{vmx_close_while_nested_test.c => close_while_nested_test.c} (64%) > > diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm > index acfa22206e6f3..e70a844a52bdc 100644 > --- a/tools/testing/selftests/kvm/Makefile.kvm > +++ b/tools/testing/selftests/kvm/Makefile.kvm > @@ -112,7 +112,7 @@ TEST_GEN_PROGS_x86 += x86/ucna_injection_test > TEST_GEN_PROGS_x86 += x86/userspace_io_test > TEST_GEN_PROGS_x86 += x86/userspace_msr_exit_test > TEST_GEN_PROGS_x86 += x86/vmx_apic_access_test > -TEST_GEN_PROGS_x86 += x86/vmx_close_while_nested_test > +TEST_GEN_PROGS_x86 += x86/close_while_nested_test Unless someone vehemently objects, I'm going to tweak this to nested_close_kvm_test, and keep Makefile.kvm sorted. > TEST_GEN_PROGS_x86 += x86/vmx_dirty_log_test > TEST_GEN_PROGS_x86 += x86/vmx_exception_with_invalid_guest_state > TEST_GEN_PROGS_x86 += x86/vmx_msrs_test > diff --git a/tools/testing/selftests/kvm/x86/vmx_close_while_nested_test.c b/tools/testing/selftests/kvm/x86/close_while_nested_test.c > similarity index 64% > rename from tools/testing/selftests/kvm/x86/vmx_close_while_nested_test.c > rename to tools/testing/selftests/kvm/x86/close_while_nested_test.c > index dad988351493e..cf5f24c83c448 100644 > --- a/tools/testing/selftests/kvm/x86/vmx_close_while_nested_test.c > +++ b/tools/testing/selftests/kvm/x86/close_while_nested_test.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0-only > /* > - * vmx_close_while_nested > + * close_while_nested_test And of course zap this :-)