Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1143193lqd; Thu, 25 Apr 2024 07:12:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8IljIliECnTVEmA11+2IQhUlP/npBe6h6A6FuJJKBOnMG6si6mw6JaXqJARW/BnoKZV9u5+vAP7zKz9ONdLRRS8Uebsg90gYsX90p3g== X-Google-Smtp-Source: AGHT+IGcUtzGEqvH+OOBZ4CKg7ZfnEzIaEjjk6SbbfKrYSV3twS5xKvN3qoDNEnrUjM05e1cD5L7 X-Received: by 2002:a05:620a:b92:b0:78d:5065:c5e0 with SMTP id k18-20020a05620a0b9200b0078d5065c5e0mr6094635qkh.18.1714054377952; Thu, 25 Apr 2024 07:12:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714054377; cv=pass; d=google.com; s=arc-20160816; b=e9KpYJq618mBwz8Tq6vaILMhLKjEovwNUl3lckwQi19/r7U9pMGA6szN0cSCq565B8 knzMukXqTTpBMHa7jzBty9xuXYylC1+Ya5vn1jxPrAXs0Hf5+ehqG99zE5ryoUVYhNoI 09snXZikDBOvMfwHkZqm9XvwckBJ1nVAxCVVJfXZYyD9k5cw7Kalc7ejOskuCn+W6ou/ SqR10DMJ/QlEoSar4ubpbiJsWO6bnexHnR04wcnobawqg4EsefqtvnDPGBG9FcdecmCx bBYLBbFZdP+VRi0dRP47kDTglYGKvNJgNoqYvwVia5tv1rHoD2/zsEtiyme3NYY5Oi8V gfNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zgj3m/Cw0cxG7wHpYlRihQfjnwxhhxsXHcabhCA3Erw=; fh=8581xgDpkrojgo51ayHtcNmaekmO39tXZvE9rQV68p8=; b=P81mKi/tjpee9v0wb1RhPrsINgUaiiN2XJ2eZ/KzntuF+YUFExYq9ZQ8poY+bkW5Sd wJu8X1UtY4JfIMzeFQFR41bAE/oHJS0WIpulFAtvAalCGRk08giLESgCT8NJ9HXcR0mm EvA8U363f9R9rwj0PYq850w4sOrI57omIk0SQ1Oe0UbAYsvhw7T4krmPELRQA/v0bsVG RKKjQDR6AIGhgYIJis0HKKzPkH4LWMq15I8ceYhUpPzvzKaSDepP5GRuWsizMzjRAUNT 4ZeI6UEmhuP6KKJkUsUCGi7MF4KSE8b1nbY9n4Ong0ozRMohlLDV3VFqtxpxZaPLxM1Q 0L6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qkxol9Yc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b8-20020a05620a0f8800b0078eee1e6d9bsi16708159qkn.698.2024.04.25.07.12.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qkxol9Yc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3AD7E1C20C35 for ; Thu, 25 Apr 2024 14:12:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3DDB14A0A9; Thu, 25 Apr 2024 14:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qkxol9Yc" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 4C5BC149E07 for ; Thu, 25 Apr 2024 14:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714054359; cv=none; b=k9KbhPzyJV+JQDeAm/Ol1+PUkyFywjyIO0OcEPoNAJLyzIBEWTXCdhLKiwqn/z+luSzWitHV3yDarO5Pf+7kXqLteTuGjBPfWrLj9M0quLs+qykG1doCtlA8eo4MKl+5cBcm7KzDaJWgi9wzZNsLkPjx+7O8bqLV5kzvwmZD3J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714054359; c=relaxed/simple; bh=OXlcNY8pu8S/MyjEy2GLENjCN5qdRSRqTym8qU2je0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PAoZ6etRyOdKaRfOeFX3oIkxDHO6oo+ZwwJOpAd2UbgWr3CUm4yCS2U1UHxG0Jr9OvrqHpT8HSSYA9t69ij19B5tmpvKTpP2gKbhdU0+7PVyUKmCzgB5N66JOVQ4IJUW+JaE0c/eN0QHQg5AL4uM7Rj0mELSMRvDXIIx3mT3IkM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qkxol9Yc; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d895e2c6efso15255991fa.0 for ; Thu, 25 Apr 2024 07:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714054356; x=1714659156; darn=vger.kernel.org; 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=zgj3m/Cw0cxG7wHpYlRihQfjnwxhhxsXHcabhCA3Erw=; b=qkxol9YcHy4N7TFJyEYLH7LFZlNrVSlQMe/1FAbMvE53CxVwyFKPhnJgjgr4SSRS62 ond/Iujmcy9zTgDJuDTZpPbK1wI6b0sTqyenMmvo+5VQ4nwOrLJUjv7myToPU52MULoN d+Z4X6AS/W0n9EgbNifYU/HmsVElp/3mEdUdwHw6Qg4db0dEkr20kwe6LcO2VmUNy0MD na+5YVJJChBvnTU7TQ7Hb0+aJtctizCnR0WoDgKG1cy7sG+Hu7u49n7rGCEhxtXqSZ8s /+67fViRi42PttiDXYYEjgHFJwu4hNeTEkjtw82VzqxD2Pp6ZjFE0A5cVeQ7+OsBKMZP xpAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714054356; x=1714659156; 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=zgj3m/Cw0cxG7wHpYlRihQfjnwxhhxsXHcabhCA3Erw=; b=c4Ti/NhBq0mN14NxNkCz+XcAiyaHPU5oTD6sBWII0H3pfZumuYmHRZFiqc/ihVwqeg 8j0wV9PRI/kkU/HT97GPXl8tJAGhBRXx0kx+0MsRka7y9wsR5ujBo8Gvil3OM/Wkc3px 8v2KL/L5mo5BT66ecuDvdjg9IT2MLw6Nfv06tIlykCWCmXqZ8+373xqMsVQg/C8OxQlg xXBdUHH8ClLW7tG/plxKKGdGDNrLTT/zPHn7gjAqNlvWwY5CisVUOlL9RsXZmNQqxRYE iQaV6ZTdXNt81g8QcS7vHk3yHvaY3DtZfqs/InEv2phl4v8LWZLjYhmtZch2tySDKs4w +YAw== X-Forwarded-Encrypted: i=1; AJvYcCXYfBllvTcAEUGAShTmEsoT5dt786OmBLQJ2idAcieMXiYG45/LulTFP6AGfE0Ipf227jPZgymy5AVriqCiWn7O2LeUEPVBfmk9rFRh X-Gm-Message-State: AOJu0Yy/+ZBNC7V4cjRD7g2x4Q3NqBNUtxOu8ZQe6lVyh5En4PUJRJYq 1vzHD/3YG1wDzVvE2xgPsuJkGKdxdQsjmV45FPM52KJrqrtkHAf27b54uVkbHkc= X-Received: by 2002:a2e:818a:0:b0:2de:4b8d:ee31 with SMTP id e10-20020a2e818a000000b002de4b8dee31mr3860645ljg.37.1714054356205; Thu, 25 Apr 2024 07:12:36 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id hg16-20020a05600c539000b0041aa8ad46d6sm10244618wmb.16.2024.04.25.07.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:12:35 -0700 (PDT) Date: Thu, 25 Apr 2024 17:12:31 +0300 From: Dan Carpenter To: Sean Christopherson , Shuah Khan , Greg Kroah-Hartman Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Viro , Christian Brauner , "Matthew Wilcox (Oracle)" , Andrew Morton , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiaoyao Li , Xu Yilun , Chao Peng , Fuad Tabba , Jarkko Sakkinen , Anish Moorthy , David Matlack , Yu Zhang , Isaku Yamahata , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" , Naresh Kamboju , Anders Roxell , Benjamin Copeland Subject: Re: [PATCH v13 25/35] KVM: selftests: Convert lib's mem regions to KVM_SET_USER_MEMORY_REGION2 Message-ID: <69ae0694-8ca3-402c-b864-99b500b24f5d@moroto.mountain> References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-26-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027182217.3615211-26-seanjc@google.com> On Fri, Oct 27, 2023 at 11:22:07AM -0700, Sean Christopherson wrote: > Use KVM_SET_USER_MEMORY_REGION2 throughout KVM's selftests library so that > support for guest private memory can be added without needing an entirely > separate set of helpers. > > Note, this obviously makes selftests backwards-incompatible with older KVM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > versions from this point forward. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Is there a way we could disable the tests on older kernels instead of making them fail? Check uname or something? There is probably a standard way to do this... It's these tests which fail. kvm_aarch32_id_regs kvm_access_tracking_perf_test kvm_arch_timer kvm_debug-exceptions kvm_demand_paging_test kvm_dirty_log_perf_test kvm_dirty_log_test kvm_guest_print_test kvm_hypercalls kvm_kvm_page_table_test kvm_memslot_modification_stress_test kvm_memslot_perf_test kvm_page_fault_test kvm_psci_test kvm_rseq_test kvm_smccc_filter kvm_steal_time kvm_vgic_init kvm_vgic_irq kvm_vpmu_counter_access regards, dan carpenter