Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2601080iof; Wed, 8 Jun 2022 08:16:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiie4RElGzKyfF8N8IqYlaw7Lm8oNnsLO8oRh4BRvhFxlNUN88EL5Rg1xxuHW5Ljam7Km7 X-Received: by 2002:a05:6a00:2187:b0:50c:ef4d:ef3b with SMTP id h7-20020a056a00218700b0050cef4def3bmr34502200pfi.83.1654701406845; Wed, 08 Jun 2022 08:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654701406; cv=none; d=google.com; s=arc-20160816; b=wI2m6f2Ai7rbIQCIaQnpGniqztdiCmAcKonfRNIfUt/849PORRHE/ufMU7TRsgVGHl tITP2rbsDitFTFdH6SKJLd1K345TVMs0D2BwDR9utNdrsEzW4Xoz3Piu1LiZN4ak+rio 6ES8VAKPE6O37S1OMOMZ3rR0s95yXzAPnAwktXnfV/EZFwktKNijTa3Lz7399hr8LfkM cZQECjZUBJ7FGRya0maoN3nwa+6hbLmJL1b7OYAQu/kBviIko94t3oU+jxBd1p3njBPq 7W3iSZ64xQLHmyExFcp9g44QJnkNjK+yq6wkCMUigD46eje620q1Fz4wl5RG4lzMChiM Aedw== 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=QGybRp7HyxPWXXi6lDayeeFfGFkvXV82mOa2oHNXnQ0=; b=yTCd6u7W/dudV7VtF/3PLDuS7sCpSuuJ08+zkHhUxF6dzkRxd9AFLCwHaF/9ns/Dq2 GUoj/quQGHHTuqvvSDunHqylkE9YPJujSMAeacuogyZfCpuYYWHfPWb+0zj4uqaS1S1f YVRWvADC2oebBcOBU5tOUyVOT7jOTJbax9NZmqsMk9wroefLioMqY8lOLvN5AoX/xy8t 0mCM/DgKMW8wUmcla49T54zw80SFdQGAYbH749NfZ4wIE/oVX+/uyK2yTPRJVRICUgO6 pToH8axSiFcVd0/LhauswldCxzrXO0lBnDSWIYVLuLqAR6NVIHSu0HyBy7qdbCfgGlbR dkuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XB/ArOQi"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l7-20020a17090aaa8700b001dfd2940a5asi30678353pjq.112.2022.06.08.08.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:16:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XB/ArOQi"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CF1F1D5186; Wed, 8 Jun 2022 07:46:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241809AbiFHOpX (ORCPT + 99 others); Wed, 8 Jun 2022 10:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242076AbiFHOpI (ORCPT ); Wed, 8 Jun 2022 10:45:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D76A517A88B for ; Wed, 8 Jun 2022 07:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654699417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QGybRp7HyxPWXXi6lDayeeFfGFkvXV82mOa2oHNXnQ0=; b=XB/ArOQi6s1J0ORPHBwUrXsrnSmL5PvxHm4SIf/CNnJQS1pVauHa7n1IDVV6pZls7iMPsW LHTP4XL14t2KLmCNp+89FcgrDmCbHRyL5hARNpL35kmba/saXSsA8OVgg2dt6W1PpGBCkU SkdMbNILuluZi8vi1qHn662Bsqxx3s4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-340-_NwDF7H6OcWsCofkTYoLxw-1; Wed, 08 Jun 2022 10:43:36 -0400 X-MC-Unique: _NwDF7H6OcWsCofkTYoLxw-1 Received: by mail-wr1-f69.google.com with SMTP id bv8-20020a0560001f0800b002183c5d5c26so2770743wrb.20 for ; Wed, 08 Jun 2022 07:43:35 -0700 (PDT) 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=QGybRp7HyxPWXXi6lDayeeFfGFkvXV82mOa2oHNXnQ0=; b=hpjIsvgOrPXxk1DyzSB7jcaxJxFaUfy6lX0BjWoF9moXFGrjn3wHzBAVccmQXXDW9z FTMxGK60GoCg5DrMaF+4RFdo8NkdXPeeq59RbSX98cQ8MlLFHde1Uegd2RZh5HY/0Ere G56zdKJSL0FFPHuEmJI1MLWlonwSZ2EF45hiMEiPJi4Ijm6KndZ+c6lKf9gEAxVCym9C +1KR8CWtoUfpOGvb9d3AYu9AI7zmvTNmIqkLe/7qFys6l0ZPffmrGGo+cPrWlf4Zh+Xq pVZiFBTtRwpp5kDOPJmhQxtjtZnlDXWa5nqEdpMLHMeJt2XY1JLTb5ObFRJT1xtc3ZNP FfBA== X-Gm-Message-State: AOAM5314VPUR9xlwa/sxCUI+z1JmKyoCOBLkjyL60i07bORcojPftp1W sMslyEF1WFFoCY+lQx9gzk4uiVlVWyd/N9qsmo/u+/7dKPq8YlwhSLm9xHah/BxS6dLtBLYHrr+ Jc128NaXaT95fDjIH/xlSerls X-Received: by 2002:a5d:66c7:0:b0:210:3385:1e44 with SMTP id k7-20020a5d66c7000000b0021033851e44mr34460987wrw.566.1654699414771; Wed, 08 Jun 2022 07:43:34 -0700 (PDT) X-Received: by 2002:a5d:66c7:0:b0:210:3385:1e44 with SMTP id k7-20020a5d66c7000000b0021033851e44mr34460968wrw.566.1654699414533; Wed, 08 Jun 2022 07:43:34 -0700 (PDT) Received: from gator (cst2-173-67.cust.vodafone.cz. [31.30.173.67]) by smtp.gmail.com with ESMTPSA id f12-20020a5d4dcc000000b002100316b126sm22042605wru.6.2022.06.08.07.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 07:43:34 -0700 (PDT) Date: Wed, 8 Jun 2022 16:43:32 +0200 From: Andrew Jones To: Sean Christopherson 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: <20220608144332.a5syqvj5ttb2zarw@gator> References: <20220603004331.1523888-1-seanjc@google.com> <20220603004331.1523888-42-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220603004331.1523888-42-seanjc@google.com> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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 > > pr_debug("%s: [%d] start vcpus\n", __func__, run); > for (i = 0; i < VCPU_NUM; ++i) { > -- > 2.36.1.255.ge46751e96f-goog >