Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1926110rwb; Fri, 28 Jul 2023 18:19:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/plQXjB05H/5Q8qJB9fQeuum6VE0IboNlfY+UIkr5UUS+G4vCRehH+d6dJP21erR2FeXI X-Received: by 2002:a05:6a00:c85:b0:687:1780:aa02 with SMTP id a5-20020a056a000c8500b006871780aa02mr2609507pfv.24.1690593558391; Fri, 28 Jul 2023 18:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690593558; cv=none; d=google.com; s=arc-20160816; b=06umKdLoZiPves5dpJPwb8+SsgTT9O1DYGVxepdXCSmPRDdE6V+/UYZCNuR162ZSRR +OAfTIhpNAfbp7Mp9lEhHA+XGYvRLz5V9tXxM2VMKQ2+XFYo7YqZ6Ry8SJ39eI4UuOgn 0OYsLivlogWnkyqYTVcYfT+CGmJh3I+uCJRSMFyBDZrE7hvyNWMcMWtU+51OhNLb6LG+ yntJaKMVyZEFThzrfVspOOllGYLLyRTltjDbs0ADaPnCcoB9hl5ZrBmGdpdwfgFWxocf 7tQlHGfGVDTFnbq6xXqxKveBZYLq2z/DQbCthjnbhvd5rLrBas4ZnIzHdUhz6Fl6aynU jPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=BLQZx+pdtuh57o1wL4zXWuuQZRskZOiKVGsasrVHJ/k=; fh=Ctt0ydInMKwei8YFBFbw7rU4p8H0G/T51ZI/KkO6Md4=; b=QIvKr87JkhWzyuNkDnlQ4N+CQbJ3ghWoXj4xstvaOoeKPO+1WCxNJyvDUGOJFmSp0W 3xTdHQ4UNzkqCxzvJtOrXtlhpUJHoz7Y5H569+xSh1oPEfTg153FJiNAE0QOUl4pCi7X babT84ZCOtEH9GBaO66IJjYtkQ4RDgKah9qhHm9E0D5mOsAAP74EO21xy40dAGFDlpE7 MfSxFgv5UNcAr8zQlt3iHwDk8/jtuIsZu6j6TdjNxxLuzzHl20zcTQ+S3NFhf//4dD+F ruox5tNYqwI/0VBLsqCIi4JPs+bjLvu3/rU9lEaHaDqBTISff0lRZemVl9qatjZipzey 6xZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=nnPTjTg5; 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 n9-20020a654cc9000000b00553b02a9a18si3685942pgt.237.2023.07.28.18.19.06; Fri, 28 Jul 2023 18:19:18 -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=20221208 header.b=nnPTjTg5; 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 S236395AbjG2Ajd (ORCPT + 99 others); Fri, 28 Jul 2023 20:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236368AbjG2Aim (ORCPT ); Fri, 28 Jul 2023 20:38:42 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9142749DD for ; Fri, 28 Jul 2023 17:37:53 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id 98e67ed59e1d1-2683db1eadcso1723655a91.2 for ; Fri, 28 Jul 2023 17:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690591046; x=1691195846; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=BLQZx+pdtuh57o1wL4zXWuuQZRskZOiKVGsasrVHJ/k=; b=nnPTjTg5f/WzRDY0G2F5g9I/MpwEw80DlkwGP2Q2BChxakWYZQ2XnR8JayKvBVdnKQ CKM3viDb8jPmE5GbrYha5aGJnTTlWFTmcIwmJivT3eDJTxFD2URsQENK6Eh81rE2xWMX RZ6ITjibLuUEHo6PcwrfwHDxR4zT0ua5AfnmwXcHoZWyfmSg6BKa2ZB33/ML8XAQvrii QVgpwwc2XmC0hCNaWSi8QIWcL1JJXowfEhL7mHg+gIk9DRqso5bgtfBwOHN/w13q7zh2 P+wiqOsuQFN2OQWzT2ZZ47jXKsfPKtt9IpQyAyPKY3qGjr0jtZBF7Ch+Qk2dIeOH50IR vSMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690591046; x=1691195846; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BLQZx+pdtuh57o1wL4zXWuuQZRskZOiKVGsasrVHJ/k=; b=LRfZ5Z/i5uMFzWvcOjLET06voz0zxXjo1XUK7gGvctrjxhXMofuga+7/OZtyHspUGx wJWyNv6be/Z11LS29nzBmg8Ui4+NXVupdMcdyt8MynXfMCNbg50Wy23XeZskUUE+L9sd KUNx60S4AJTnQ6jUClc5176OHi2/OjSTXS/OuU3kt2evB84v6it7Fdx1y7ps+/OynTIv JIxRym2zz5TgEuKnUfyIy9Qu3hx9hGOiebenna5rkZFpuwNkMlKugbAA0lnKgqX4vgV8 2N/v69OXjh1HIbd4KHclWANuiddRFCHGfPcZKiZIELwnldQIFeAqVJ9ZI28MrhCZb+m5 1V7Q== X-Gm-Message-State: ABy/qLZ9VMx1UQ/K2imoA/+ZuYuITLePR1JTLVIiZZZITWM93G9nO/zy j0BKKPo5pXtTA0HCCUc4uFzNxL2k/L0= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:da83:b0:1b3:c62d:71b5 with SMTP id j3-20020a170902da8300b001b3c62d71b5mr12053plx.0.1690591046611; Fri, 28 Jul 2023 17:37:26 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 28 Jul 2023 17:36:30 -0700 In-Reply-To: <20230729003643.1053367-1-seanjc@google.com> Mime-Version: 1.0 References: <20230729003643.1053367-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230729003643.1053367-22-seanjc@google.com> Subject: [PATCH v4 21/34] KVM: selftests: Convert the Hyper-V extended hypercalls test to printf asserts From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Sean Christopherson , Thomas Huth , "=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?=" , Aaron Lewis Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_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 Convert x86's Hyper-V extended hypercalls test to use printf-based GUEST_ASSERT_EQ(). Signed-off-by: Sean Christopherson --- .../testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c b/tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c index 73af44d2167f..0107d54a1a08 100644 --- a/tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c +++ b/tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c @@ -8,6 +8,7 @@ * Copyright 2022 Google LLC * Author: Vipin Sharma */ +#define USE_GUEST_ASSERT_PRINTF 1 #include "kvm_util.h" #include "processor.h" @@ -84,7 +85,7 @@ int main(void) switch (get_ucall(vcpu, &uc)) { case UCALL_ABORT: - REPORT_GUEST_ASSERT_2(uc, "arg1 = %ld, arg2 = %ld"); + REPORT_GUEST_ASSERT(uc); break; case UCALL_DONE: break; -- 2.41.0.487.g6d72f3e995-goog