From patchwork Sat Feb 4 01:45:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vipin Sharma X-Patchwork-Id: 52719 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1153883wrn; Fri, 3 Feb 2023 17:50:14 -0800 (PST) X-Google-Smtp-Source: AK7set9TBQH/Zhf6Kai9Wrc2sopFT8rgOVpxjZq7B/N7B5VQ6OVsTZwkIAMnpjwN/n5KEIvtaoSm X-Received: by 2002:a17:907:2d09:b0:88d:ba89:184d with SMTP id gs9-20020a1709072d0900b0088dba89184dmr9145867ejc.30.1675475414237; Fri, 03 Feb 2023 17:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675475414; cv=none; d=google.com; s=arc-20160816; b=Lr0vZs7VcijmKZMbhxiPoO5ibCB+MlTVqeF+4Pgf6zdqE9uqcayQrlWb+x6alrREWQ NgXUNyZxboNj0tkfVJ0WQCPRiNSVcb1OQz0CMpqGIFCjqIG9dOQ0fyJpHCqHpq3+NROq Om4FX6I4KqUP8g6HMGLEK5lM4MA7QNAgl+FmckAzVXsnCVJBdMcUnM/nmiQSXY6juUSS jiGdnyFVG0VWc6YQc7pCW33EOX1pZegfe4SjJSTKHfc7dW/r/YPQHPNwQIvFWn0woWmp r2ygwWo6/XwDp2XosV9lr06Lfdlj/D8r5rEhHf+iuJISQ3oqT3pJRCKGz1ozFFRkoi3A wIxw== 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:dkim-signature; bh=qyYa8Qat+lTw3atiunoKQmFDsPCPb3UNXVzDZ2TBu3Q=; b=d0dZxQVTCOUy2qu4/khojxe54iA0iBkhOrIsItMFTWpjn0YliQIb8rTz8Kh/zUZyIQ LobRua1zDsQH+ECkkwVM/Emxy85heBcMef8I6ZiLIYs+p39J8dpF/X+We+M/7HOScHqc XslYCRfyQrRuCjBjT+H8KtJlx94fr9cBYtoR4nmW+Q8MjmR4XZJr7QyUGERK8YPXah9d JI/esZWhVYo+h8Q+44nzjoX1QxsdD1EcVV06HSlcNMYG2KI3A93WNXhQ5Y5xoIWmeYhx oqd5XLocn3kDNXDRBfIaKgeV6ctka16WSfqIB4Y8NPkHIWz488SpTm7dq5/RXjf4cl0y dbew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cuzQZ4tK; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020aa7d8ce000000b004a0ad11513esi3957704eds.587.2023.02.03.17.49.50; Fri, 03 Feb 2023 17:50:14 -0800 (PST) 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=cuzQZ4tK; 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 S231165AbjBDBqN (ORCPT + 99 others); Fri, 3 Feb 2023 20:46:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233172AbjBDBqF (ORCPT ); Fri, 3 Feb 2023 20:46:05 -0500 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 3769EA779E for ; Fri, 3 Feb 2023 17:46:02 -0800 (PST) Received: by mail-pj1-x104a.google.com with SMTP id l17-20020a17090a409100b0022c0ba4b754so5418432pjg.3 for ; Fri, 03 Feb 2023 17:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=qyYa8Qat+lTw3atiunoKQmFDsPCPb3UNXVzDZ2TBu3Q=; b=cuzQZ4tKFiA10Kddd6EOQmYsDVZzTLPRgrAaTczH/Hu7mF6xMvgj07YXc2DWpmUw3U GcfM43hkFZgOclVNSw3t9rGEyvbpuzt5AltJAKouxXUvdVDBjuwq3+Cy+G7DqrwboLF5 +NX7h9oyJzd7cjNpvXsevWWc5dnJ9RQvRrRxRN67lD/AAWVL4KuWjn/+EVHEchPJHcl3 elceONyabSV3rORU2F/XBAmyFOfTKgEVWVGuNObKjaqxrj82LqdE+AxPI4KrcpiwRu2R wS14T7XeaUP1jIXSoprF+FjJkxdS0eI99a0i615TE5d37fU1TMm5xYv1lUPr1Lv8uWCG YxJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qyYa8Qat+lTw3atiunoKQmFDsPCPb3UNXVzDZ2TBu3Q=; b=vcXz4RICFTI0bIP0aYMWVcA/PMuXchIxbcbYKV9T/LKUqZdpVwZsSRHfVQEd0x2nVA ScokrQg0KMR/4dcBt1MZ0Y05k8k7t/inDC8muXxRK4OK6f2XdSMvrh0NeVdo/M0JjC86 JAphAfRIjCYlQyPMJd0GrUq0IYOeQdr6vzBMI/2n1gA20Q813FF5vk8N1DAL1lkgHlHn O0dtezXk+UQOKMNyBxEWrcsthodPUwLw4bWLQQy6RA1P7i+QLBrvvvTPRkmVlhr/3ROI rEeKsnoOcjP7+nNRR3Ghn7laqWkWNdSDF/dY4qcR+u/1wg/YNBk8tcMji/PSVdvPJ5kE q/MQ== X-Gm-Message-State: AO0yUKVNjKMeMFUmi9S5X4xmm62WNc/7U12pjMBVJP/OWh8XkizogS14 CVXRCOdZBuULkFr81ebYFbtyvmV8Dhe5 X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:a17:902:eac4:b0:196:7664:39a with SMTP id p4-20020a170902eac400b001967664039amr2735913pld.30.1675475161680; Fri, 03 Feb 2023 17:46:01 -0800 (PST) Date: Fri, 3 Feb 2023 17:45:47 -0800 In-Reply-To: <20230204014547.583711-1-vipinsh@google.com> Mime-Version: 1.0 References: <20230204014547.583711-1-vipinsh@google.com> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog Message-ID: <20230204014547.583711-5-vipinsh@google.com> Subject: [Patch v2 4/4] KVM: selftests: Sync KVM exit reasons in selftests From: Vipin Sharma To: seanjc@google.com, pbonzini@redhat.com, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, david@redhat.com Cc: dmatlack@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vipin Sharma 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,UPPERCASE_50_75,USER_IN_DEF_DKIM_WL autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756863307921919527?= X-GMAIL-MSGID: =?utf-8?q?1756863307921919527?= Add missing KVM_EXIT_* reasons in KVM selftests from include/uapi/linux/kvm.h Signed-off-by: Vipin Sharma --- tools/testing/selftests/kvm/lib/kvm_util.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c index 2413ce511d20..704cc652849c 100644 --- a/tools/testing/selftests/kvm/lib/kvm_util.c +++ b/tools/testing/selftests/kvm/lib/kvm_util.c @@ -1842,10 +1842,24 @@ static struct exit_reason { KVM_EXIT_STRING(INTERNAL_ERROR), KVM_EXIT_STRING(OSI), KVM_EXIT_STRING(PAPR_HCALL), - KVM_EXIT_STRING(DIRTY_RING_FULL), + KVM_EXIT_STRING(S390_UCONTROL), + KVM_EXIT_STRING(WATCHDOG), + KVM_EXIT_STRING(S390_TSCH), + KVM_EXIT_STRING(EPR), + KVM_EXIT_STRING(SYSTEM_EVENT), + KVM_EXIT_STRING(S390_STSI), + KVM_EXIT_STRING(IOAPIC_EOI), + KVM_EXIT_STRING(HYPERV), + KVM_EXIT_STRING(ARM_NISV), KVM_EXIT_STRING(X86_RDMSR), KVM_EXIT_STRING(X86_WRMSR), + KVM_EXIT_STRING(DIRTY_RING_FULL), + KVM_EXIT_STRING(AP_RESET_HOLD), + KVM_EXIT_STRING(X86_BUS_LOCK), KVM_EXIT_STRING(XEN), + KVM_EXIT_STRING(RISCV_SBI), + KVM_EXIT_STRING(RISCV_CSR), + KVM_EXIT_STRING(NOTIFY), #ifdef KVM_EXIT_MEMORY_NOT_PRESENT KVM_EXIT_STRING(MEMORY_NOT_PRESENT), #endif