From patchwork Tue Feb 8 12:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 12738708 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33945C35272 for ; Tue, 8 Feb 2022 13:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350409AbiBHNQR (ORCPT ); Tue, 8 Feb 2022 08:16:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355707AbiBHMVy (ORCPT ); Tue, 8 Feb 2022 07:21:54 -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 ESMTP id EDDB6C03FECE for ; Tue, 8 Feb 2022 04:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644322913; 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; bh=v6KhURqz/ArUHvTlCRwuMaN5ev0wLM1tF/0no7z1oEA=; b=UXYd/rA4AErNqhFFscdlWZM2IdIbOWXMdgPpqFmXh947o3xLw8P31GRt9eUY/jHyGV69KM aejajGMW040ZbiNmWjeysSOdbBOAnVPbqQk2i+ejKJpnXONk+kqVT4l4fF8L11Ll2AhV9b TZjKobmN8WflSkEswG8tbeTvAeFA9d0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-246-tRCb4_ChMuy8sKRsAP41ug-1; Tue, 08 Feb 2022 07:21:51 -0500 X-MC-Unique: tRCb4_ChMuy8sKRsAP41ug-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0BACC1006AB0 for ; Tue, 8 Feb 2022 12:21:51 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.192.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1FFFF78C30; Tue, 8 Feb 2022 12:21:49 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: Maxim Levitsky Subject: [PATCH 0/7] My set of KVM unit tests + fixes Date: Tue, 8 Feb 2022 14:21:41 +0200 Message-Id: <20220208122148.912913-1-mlevitsk@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Those are few kvm unit tests tha I developed. Best regards, Maxim Levitsky Maxim Levitsky (7): pmu_lbr: few fixes svm: Fix reg_corruption test, to avoid timer interrupt firing in later tests. svm: NMI is an "exception" and not interrupt in x86 land svm: intercept shutdown in all svm tests by default svm: add SVM_BARE_VMRUN svm: add tests for LBR virtualization svm: add tests for case when L1 intercepts various hardware interrupts (an interrupt, SMI, NMI), but lets L2 control either EFLAG.IF or GIF lib/x86/processor.h | 1 + x86/pmu_lbr.c | 6 + x86/svm.c | 41 +--- x86/svm.h | 63 ++++++- x86/svm_tests.c | 447 +++++++++++++++++++++++++++++++++++++++++++- x86/unittests.cfg | 3 +- 6 files changed, 521 insertions(+), 40 deletions(-)