From patchwork Sat Jul 29 00:36:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13332813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21F82C04FE0 for ; Sat, 29 Jul 2023 00:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Vu7VYr4Oe4pvbwcgx2wfZzAvpmN0y2KC6r92HVADU+A=; b=zstzLRZ5G6822f 4kzCQB4Y0rZO1EpZvBM36tAjH/STybf/3S2H64Ni9J88I6aOR9jrPwUgy0zUtmLnGnfkgpavQPtPb nSDH52JHdB/xzruhbAxGCExdxRt1dZjm4iCjfut0aNHJL/I6pupexN56F+hDN9EuazItsc9mNg8zu cTdJZe0SzL0KXN7V5keZWc2pYCnN9zYgH5aOnzlOBZDe0jGR5LlvCcHE+DI/X/uJHG6MlQL1rrYTX eYyX9dh1yFHFtdjvwVTbBkV+ZWL/4b5iMVUYSVBICj30tv4ikSi9ebNgD6qCiCEeQgJBXXGq3KKy2 Eu+UhfHPrLmHIbBeSv/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPXyS-005dOZ-2V; Sat, 29 Jul 2023 00:38:24 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPXxX-005cuT-2i for linux-arm-kernel@lists.infradead.org; Sat, 29 Jul 2023 00:37:29 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1bb98659f3cso18212205ad.3 for ; Fri, 28 Jul 2023 17:37:27 -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=c9ZzQnm7aKpQRanHYvAlthZ944tXa6yKEL1m8SIBIyBBaZM9IJfOZAgcOYr/mIebp0 dXJmRljWkjzlbReR0yYhjTu+0OB4HDMsIBPTzrnjrh1rlpSJxPeyn6md7W/UkOPaT9lL ZLFi2+ISuAC25U6FIM1zIjMPegnA4QYzvBJ3Fq0LzehPyNAJGSrn1drHvR6vl4Dxhx5a OVTAsfUD9+3CYLOvBbHRoUMVfkcNLuOzOaLqAxRVfmzLrg7phjS11sSu9yq3uA27RcOU ZsO4DsqJVdUO0lJ73wo+A+PBh6WO/5S0G0mq3uWTvzxiOhIhHb9kIoFYHUJwZyA1BnCK GMIw== X-Gm-Message-State: ABy/qLanAevUSr41sMDCOztkgJNfj0P5tYHqJo8Ht7x1X9mQ8SSx2zb/ h3XBt0craht8TUzs7hh5PBVvo7zUJE0= X-Google-Smtp-Source: APBJJlFlrrUE1tksLhPAq+kwjI0L4IaBgwLyAp0oEOf6o8ykeMtkOh9QkcD45fcBdHtiq3t7HikG7TyuqI0= 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) 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_Mathieu-Daud=C3=A9?= " , Aaron Lewis X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230728_173727_885896_F0837F57 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sean Christopherson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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;