Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp26128iof; Wed, 8 Jun 2022 14:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKMAbZoDtLyFJweeItc2/aWCCMcmjz6mzW7R3GA0ICGIvtom1VJ42F5vl3uU2egx/khs4R X-Received: by 2002:a17:907:6e29:b0:6ff:4f5d:8dc7 with SMTP id sd41-20020a1709076e2900b006ff4f5d8dc7mr32438826ejc.415.1654723249466; Wed, 08 Jun 2022 14:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654723249; cv=none; d=google.com; s=arc-20160816; b=jOuPUMgCbnaSFV6VtNnAW9zin9/iXdMl7zHbbaoO4QPw2LgMz0jCWni6MgPMcARYtH xwr7TkmXCVqspfSOkXibWcSW0vnpuBUcUHa2QvRaXjUuZaNB4MnHeZFR780cV2nbOzFf ZtkoJVcJrQqWyQzF+prnlUxVTRXdAusVIKpOYORZJLVwkmvruGnBYKQEr2jy/NGakjR1 /TxumAAW7f6rtAnqqbbltMYQBjTGnHbPuQkJJ86IvkPmR12UCHnLrAiseF8E5s0doNyA NKRNuwjsMBnigxkxQfWdabTGLwWu5LK4HnHXqEvWhF5Zuj0VRPpIERG0UZIEz6W/F7GN 2DXg== 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=CrK6nuHPCK0ai5XnfNscYvGQzujrncbP+EE8Tg1jqVY=; b=loIhl/STAZMJ/tKFF3aEgkaqlXmHzb6QpamjDPPbeyZr05yvCweOperFBeZWnJn1V8 7LxiNx1iYNVq7qTJpe5EQQwDfNGZwhQZioQZg4BC5XR1QKeeuDjj5PlJ+aBbTV9AxG21 vCGPqmqZR2kdewTrehGsN9fOvnZFlXgQtIQjiPK0USV4016dPL61jWQTMXgfgyOysdXU s1tjFFZ3EO4gEHKUWEQGLiZwEuxCDoamyHZh9vFsUZ83E7FbBoqszj17zvOMonS1PGKV useI+UAE7IWQdctpRifZLW/mrNJmwQ4bz6/0Hm9EV/flhOb/5XfTGBJlKPEGPe2t0YZc uf1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=oz74sLOu; 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 hu9-20020a170907a08900b0070c7c3989fbsi1371701ejc.149.2022.06.08.14.20.23; Wed, 08 Jun 2022 14:20:49 -0700 (PDT) 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=oz74sLOu; 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 S235703AbiFHTxE (ORCPT + 99 others); Wed, 8 Jun 2022 15:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233902AbiFHTxC (ORCPT ); Wed, 8 Jun 2022 15:53:02 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21C8518A846 for ; Wed, 8 Jun 2022 12:53:01 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id l7-20020a17090aaa8700b001dd1a5b9965so19266988pjq.2 for ; Wed, 08 Jun 2022 12:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CrK6nuHPCK0ai5XnfNscYvGQzujrncbP+EE8Tg1jqVY=; b=oz74sLOu1cI/PGZ+9XsXfKfDziDDz9IGD0+aDbA7yqOAHS4MmH2vo+kv9XzWRXZ871 GmQH4SQsiuLItvHTyX7vUC/OgfoLBsXPlmyyGzoLlT/u74G1Zi3X4eD82L+JQTOVkwnd tAhTj28kDkFB/Ekzvhd96nJVKFlMHOf82w07VxVclGShdZMKQ/KmP4OSgNGf6sUn1Omy 4DxWegvKWXAfOJneXddCGZmHdJvA7Ny+ZUUbSnXnsmfGPVREqteA0+WXDHf1HWFltfvV 0eey0fM+hW+XPTWG335n987Z4eVSFB83UTTfT/4JleM4qXOdIwqpzexeDPOJrbV/F8Ww CRpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CrK6nuHPCK0ai5XnfNscYvGQzujrncbP+EE8Tg1jqVY=; b=V9It3WbpWhaNqIBCj4GQ8xNl7LMSOiz0RGdgcl0UIso3R7awsINCC79FX+h9bEdAq5 wqfFU9ZSWEXPy4qD7skpgJxtow8dA8GvESBLLh7xQieugvcBH5T7XDCjaXRWWuXXCRcj +YYzEDsENSN4lF4i9LWY3A5083xrmfVAKXuGeNll8wCD6x1MFI+s+D2vDo9i2tZRGE14 Mqt0WbwFyw5xm8apPf9oZMc6zSifZ1rD/VQssQSnOtliqsRSY7IeVm9f2mB4XT1uls7h wW2pYVNG/UEJNV577oR02ZwqIWlIC730CYegM9QjKTLkhVc7FF4EugeQzH8DSfkFl5HO Eb2w== X-Gm-Message-State: AOAM533fQ+yG3WBR6xaoaS7eCSIE50VW3n6Gd4/Kr7pLbaUv32tkvQP/ dSUmXBuG0o2cXPiUmCTWENg/StgcMU+lHg== X-Received: by 2002:a17:903:1c8:b0:167:67ff:323d with SMTP id e8-20020a17090301c800b0016767ff323dmr21867638plh.22.1654717980268; Wed, 08 Jun 2022 12:53:00 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id d9-20020a656b89000000b003fd7e217686sm7635036pgw.57.2022.06.08.12.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 12:52:59 -0700 (PDT) Date: Wed, 8 Jun 2022 19:52:55 +0000 From: Sean Christopherson To: Andrew Jones Cc: Paolo Bonzini , kvm@vger.kernel.org, Vitaly Kuznetsov , David Matlack , Ben Gardon , Oliver Upton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 041/144] KVM: selftests: Use vm_create_without_vcpus() in hardware_disable_test Message-ID: References: <20220603004331.1523888-1-seanjc@google.com> <20220603004331.1523888-42-seanjc@google.com> <20220608144332.a5syqvj5ttb2zarw@gator> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220608144332.a5syqvj5ttb2zarw@gator> 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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Wed, Jun 08, 2022, Andrew Jones wrote: > On Fri, Jun 03, 2022 at 12:41:48AM +0000, Sean Christopherson wrote: > > Use vm_create_without_vcpus() instead of open coding a rough equivalent > > in hardware_disable_test. > > > > Signed-off-by: Sean Christopherson > > --- > > tools/testing/selftests/kvm/hardware_disable_test.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/tools/testing/selftests/kvm/hardware_disable_test.c b/tools/testing/selftests/kvm/hardware_disable_test.c > > index 81ba8645772a..32837207fe4e 100644 > > --- a/tools/testing/selftests/kvm/hardware_disable_test.c > > +++ b/tools/testing/selftests/kvm/hardware_disable_test.c > > @@ -104,9 +104,7 @@ static void run_test(uint32_t run) > > for (i = 0; i < VCPU_NUM; i++) > > CPU_SET(i, &cpu_set); > > > > - vm = vm_create(DEFAULT_GUEST_PHY_PAGES); > > - kvm_vm_elf_load(vm, program_invocation_name); > > - vm_create_irqchip(vm); > > + vm = vm_create_without_vcpus(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES); > nit: ^ extra space Heh, and I managed to carry that to the end of the series. At least I'm consistent?