Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2520136rdb; Fri, 8 Dec 2023 10:21:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfMWtAsej7XteWUQ4MNHwDbRI6wND9nQzvG7KAQtsvPA0F014EgO+E7iBECKqN0pXir7vZ X-Received: by 2002:a05:6a20:3a9a:b0:18f:20be:7103 with SMTP id d26-20020a056a203a9a00b0018f20be7103mr360243pzh.120.1702059699035; Fri, 08 Dec 2023 10:21:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059699; cv=none; d=google.com; s=arc-20160816; b=NBw/a03kkcjLptKnZTFxbv9oupmrhHLEcUDBxZ24I1OXvulMm6Xe/QVrh5UAyYW28R J5c0x0TbcGPR08Mb/0m7ZZubfDhAu4GL6Z+xbLcAh6Zt5xektE53WwEsVzg1Pk0Yo0To /Ye8nYDG9nOh9FnhhP1eB5V8ckTY02E1UxzYUVb7j5Y3ytRve+ETaMJUN+Kcx9qajkA+ S5D7sKOm1wBX3E+idAlGKGIaNkB1+M4MYbS6zl3ZW4lLf1byy5EjlVOz7jM7Mdd5GqRC ype2ssOed661jpMgKWupZ46PbviUPEutAgRPD+V0UrLqECvzGD6aYftC+2KDVVLE6RNb gqTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nLSlZUtE+vJwKxCXyAw/ZXA+/0tHeruZDXjXe1PSA+M=; fh=qaYm4b6GKYlZ0T3gtLZ7fjEfCEC8jMv5XzYe6fOhw1Y=; b=R+loBcdeq1DdPhUvtPYc/9iQSzyDOXM0SAYr0ezv8/bWfdB45lhfV/jSqbwBqzQ5aj kSGFNmM8UNTD8ot+IB8Hw0Eto1h/XulCo5bKHkcS2ktnuTsrpVEqrcLUKYGVZuRKBcX6 2ku76c+fmX6L5faQFsTDyEhVB/9Kuv5kgdSwy22YTYMplvDac3M/0l3H6gn7LSquaVnp qhcSQQVfdN0jcABxLmYC7SZfZFs9cIN2dwa92LNDjrIVqDyv8drfdM0Pdk0PqUQwkDQo MS1xf+97pltvaYrJJ9V2mNxotBluurLy96rXo2SLp7vEZ3n/4ZoJNpaui06hr33Xggs+ G8Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jp8954kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x3-20020a636303000000b005af979066c0si1885961pgb.306.2023.12.08.10.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:21:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jp8954kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D49BB819D712; Fri, 8 Dec 2023 10:21:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574566AbjLHSVU (ORCPT + 99 others); Fri, 8 Dec 2023 13:21:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjLHSVS (ORCPT ); Fri, 8 Dec 2023 13:21:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 692C584 for ; Fri, 8 Dec 2023 10:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702059683; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nLSlZUtE+vJwKxCXyAw/ZXA+/0tHeruZDXjXe1PSA+M=; b=Jp8954kYPW/iQdjoT44C7yPk/SORNe6y4rAytWRSl45PFBZUZgtWWFtOok+aWLg9R4Ptvt zXBR5yg+wCz4/Y+Uh/+/a5JoQ92dg7MLZoXzwYU6pOaprSkjW6ecfbvjK0idypz4eWz+9K 8nN4TCjlawNytMIIeQcC/qQ/yrPuqyU= Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-G_akDZTBOy-Rh6ckJcnQMw-1; Fri, 08 Dec 2023 13:21:22 -0500 X-MC-Unique: G_akDZTBOy-Rh6ckJcnQMw-1 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-1faeac8b074so4680645fac.0 for ; Fri, 08 Dec 2023 10:21:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702059681; x=1702664481; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nLSlZUtE+vJwKxCXyAw/ZXA+/0tHeruZDXjXe1PSA+M=; b=NK6tCLzDQxydNVEkABLkqeVp2+o2Rr1QjtIWJHJc/wgsZeYTToVrqrKBR1rbqSr4F5 5rN+d5wG6DgqpvfGlxoBQBz5PTxL/eZwYAsUP/pDx3ViRtCwyHpZIey6oR9x3oMuFuYe Wyq9zfXZbnPVL84FZB/mm6F1F3Mn2UwT5Jj2+2TGf+7C6IL4x3hZiikO7c9i5Bj+DVNT Kt74z4PYt9v5zlj14pMB63dDKb6+gNVqDTo/v+5kdVax1FaJTCU5DrZknV1opu+st0Pj 1tANtF/wEyMhTWBh5daIxYxhYVaPjZIIs513IBvvZOflt+8X9URvfzeW00H8+p71sAHA JLFw== X-Gm-Message-State: AOJu0YxH6jcMeSVPPEqe6YU4+zmNCY1CDC2eAom4D2C1xq6b+/nBFQ1+ djDgTcb16hHjIWLBUqOAKDWycFguz79EdimvjyOPvE2Gz/mRGWufdxhy3AudqcBwZDWpu4JRSOJ xBzBvAc6qIX3lJS1AE7EYdRN3dyjyYS3ndX4mXYiD X-Received: by 2002:a05:6870:71d6:b0:1fb:34a7:ebbd with SMTP id p22-20020a05687071d600b001fb34a7ebbdmr566702oag.1.1702059681262; Fri, 08 Dec 2023 10:21:21 -0800 (PST) X-Received: by 2002:a05:6870:71d6:b0:1fb:34a7:ebbd with SMTP id p22-20020a05687071d600b001fb34a7ebbdmr566694oag.1.1702059681015; Fri, 08 Dec 2023 10:21:21 -0800 (PST) MIME-Version: 1.0 References: <20231208021708.1707327-1-seanjc@google.com> In-Reply-To: <20231208021708.1707327-1-seanjc@google.com> From: Paolo Bonzini Date: Fri, 8 Dec 2023 19:21:08 +0100 Message-ID: Subject: Re: [GIT PULL] KVM: selftests: Fixes and cleanups for 6.7-rcN To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:21:36 -0800 (PST) On Fri, Dec 8, 2023 at 3:17=E2=80=AFAM Sean Christopherson wrote: > > Please pull selftests fixes/cleanups for 6.7. The big change is adding > __printf() annotation to the guest printf/assert helpers, which is waaay > better than me playing whack-a-mole when tests fail (I'm still laughing > at myself for not realizing what that annotation does). > > The following changes since commit e9e60c82fe391d04db55a91c733df4a017c28b= 2f: > > selftests/kvm: fix compilation on non-x86_64 platforms (2023-11-21 11:5= 8:25 -0500) This would be a 6.8 change though. I singled out "KVM: selftests: Actually print out magic token in NX hugepages skip message" and "KVM: selftests: add -MP to CFLAGS" and pulled the rest into kvm/next, which means we'll have a couple dup commits but nothing too bad. Paolo > > are available in the Git repository at: > > https://github.com/kvm-x86/linux.git tags/kvm-x86-selftests-6.7-rcN > > for you to fetch changes up to 1b2658e4c709135fe1910423d3216632f641baf9: > > KVM: selftests: Annotate guest ucall, printf, and assert helpers with _= _printf() (2023-12-01 08:15:41 -0800) > > ---------------------------------------------------------------- > KVM selftests fixes for 6.7-rcN: > > - Fix an annoying goof where the NX hugepage test prints out garbage > instead of the magic token needed to run the text. > > - Fix build errors when a header is delete/moved due to a missing flag > in the Makefile. > > - Detect if KVM bugged/killed a selftest's VM and print out a helpful > message instead of complaining that a random ioctl() failed. > > - Annotate the guest printf/assert helpers with __printf(), and fix the > various bugs that were lurking due to lack of said annotation. > > ---------------------------------------------------------------- > David Woodhouse (1): > KVM: selftests: add -MP to CFLAGS > > Sean Christopherson (7): > KVM: selftests: Drop the single-underscore ioctl() helpers > KVM: selftests: Add logic to detect if ioctl() failed because VM wa= s killed > KVM: selftests: Remove x86's so called "MMIO warning" test > KVM: selftests: Fix MWAIT error message when guest assertion fails > KVM: selftests: Fix benign %llx vs. %lx issues in guest asserts > KVM: selftests: Fix broken assert messages in Hyper-V features test > KVM: selftests: Annotate guest ucall, printf, and assert helpers wi= th __printf() > > angquan yu (1): > KVM: selftests: Actually print out magic token in NX hugepages skip= message > > tools/testing/selftests/kvm/Makefile | 3 +- > .../testing/selftests/kvm/include/kvm_util_base.h | 75 ++++++++----- > tools/testing/selftests/kvm/include/test_util.h | 2 +- > tools/testing/selftests/kvm/include/ucall_common.h | 7 +- > tools/testing/selftests/kvm/lib/kvm_util.c | 2 +- > .../testing/selftests/kvm/set_memory_region_test.c | 6 +- > .../testing/selftests/kvm/x86_64/hyperv_features.c | 10 +- > .../selftests/kvm/x86_64/mmio_warning_test.c | 121 ---------------= ------ > .../selftests/kvm/x86_64/monitor_mwait_test.c | 6 +- > .../selftests/kvm/x86_64/nx_huge_pages_test.c | 2 +- > .../kvm/x86_64/private_mem_conversions_test.c | 2 +- > .../kvm/x86_64/svm_nested_soft_inject_test.c | 4 +- > .../selftests/kvm/x86_64/vmx_pmu_caps_test.c | 2 +- > .../testing/selftests/kvm/x86_64/xcr0_cpuid_test.c | 8 +- > 14 files changed, 78 insertions(+), 172 deletions(-) > delete mode 100644 tools/testing/selftests/kvm/x86_64/mmio_warning_test.= c >