From patchwork Fri Aug 6 16:08:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Babu Moger X-Patchwork-Id: 12423713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1586C4338F for ; Fri, 6 Aug 2021 16:08:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E79D611BF for ; Fri, 6 Aug 2021 16:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbhHFQIw (ORCPT ); Fri, 6 Aug 2021 12:08:52 -0400 Received: from mail-bn8nam12on2089.outbound.protection.outlook.com ([40.107.237.89]:65441 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229626AbhHFQIv (ORCPT ); Fri, 6 Aug 2021 12:08:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEPEMF1PUXrxGeJhbn84rF9SaYGqNEzU5uFX/DubwWxcNDHS95lsjQR1L5hbzZEOdMwcgFerkZ7g15Jz6tGixOHBD20oDSSU1EIx8RJn02nTjSapejo0CmfGYDJkRz7bolsZknJykkxSwp+U6vYqYmH3nuoL2PnrCatWIqjjP2Si3BoQucZQknNpU09u0bbb8pamjv6utKyyEUWTzzTKxmuIlSwKRVnqrXjP5wrAHl/47QoKUrWZbJPP29pe0q492S2kjCbR2JsgB8rYGOITV9FuJPvoirz4p5/cdn/JuoeplCOprJSm8U0aA5vA1rS2GBPWcShEQB5q77OcsPQWrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZCOYBaKexwpc+b+34GEzJ7gXHiWs8OjTU7dBl61d4qE=; b=CIzwUG6QOXZaTv6dsVlS+dEyoIKaFK3BoV9eGYiAmk6yegCULQvfRLr/TsEm0EKKo0Oz5CQCKU88lGkD/DEsDq8qiU172Iotf4kSl8Vy+Nh9U1XweBqL8px7qU6g1OoZ+QIqgTJZwRPtLZDKS44m7KtRpspjy8AejtF++JiASAmP43XRF2R2iulOX0A8b52Oax59VrX5uEgteUwiswbNLzN02sCjf85srkMKlbXOkWdbkm0Fu82Jw6jYxpUMYFcUvcThR2pn4feqhdQ1f0ob4BCwAJ6CdQp3BOhXnWdo1c4lF05vyIcWtTcWV+7ft0JUanox5y51+YbKEJWROY7iTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZCOYBaKexwpc+b+34GEzJ7gXHiWs8OjTU7dBl61d4qE=; b=TTywoUFXFBtUnFQebfGGZDDLcZoWGzIXILmhhoS1uE4JsLo4/zZAxmTTeKr2Y6tHOA5FzSqL+MTi3iMIH6d/aB+Fb9V8PjNSHldpz0vqgJktprvfBISwmcaZily+vpfty/T883sg7xELGnnx37PjinbIVk77xLgClbkCOBiK99o= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by MWHPR12MB1501.namprd12.prod.outlook.com (2603:10b6:301:f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.19; Fri, 6 Aug 2021 16:08:32 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::add0:6be1:b4de:8bf7]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::add0:6be1:b4de:8bf7%7]) with mapi id 15.20.4373.026; Fri, 6 Aug 2021 16:08:32 +0000 Subject: [kvm-unit-tests PATCH 0/2] Couple of SVM fixes From: Babu Moger Cc: pbonzini@redhat.com, thuth@redhat.com, drjones@redhat.com, kvm@vger.kernel.org, babu.moger@amd.com Date: Fri, 06 Aug 2021 11:08:30 -0500 Message-ID: <162826604263.32391.7580736822527851972.stgit@bmoger-ubuntu> User-Agent: StGit/0.17.1-dirty X-ClientProxiedBy: SN7PR04CA0152.namprd04.prod.outlook.com (2603:10b6:806:125::7) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [127.0.1.1] (165.204.77.1) by SN7PR04CA0152.namprd04.prod.outlook.com (2603:10b6:806:125::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Fri, 6 Aug 2021 16:08:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 646703fa-753d-4a8b-99ca-08d958f46fd5 X-MS-TrafficTypeDiagnostic: MWHPR12MB1501: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hvrE9KXbOqwhkaFoHGHDB4yqaG683Ir2VcSKupzMroFrkuzGgi6W+ekH/EZJOTHVpwAS98NLAyLOfc1KmF1NB5Z/5HR5Or0y8EdnNsahCgXF39ZqdRib2QXJtaM70mPcj2q9i+aohDOpTWTb1aD9gzSmQ5pXOwjFNu6smJ0MzZaC53AfL38L/voVDmwEvx1+IrX2Weqrd/2icH6PglJpJ4zqCYZl3Az6i5Tmf3jwuOMAT5yIUU+mjQB6Rblkt5/f0grlZxRRuwPLMvZdV5Bw2FmBU3vewouBA3lNa+PlUe7DqJNnxvsGRGypDDW2x3kCiXWJ6pf5tTcPERGtyK4UIlI3QL9xzc4If1cnLecsmHRrB7oAKyBKGW3qD9g29R9tecZ4OlWIu7ya8/D8QevobscJIchsBR2d3uOEZX9xCGme4RV0NzVzS8ZhSb+XyUc3MpqleLta3ysWi1HgTlqrXva0+Becjqn7bukHmqA9vf6L1Vt+KwgB1cIgcDRoqa5I951QT0YH9IFnarUq1JziasDdqB/Mq9Es8ywnL+YSCf28SxrDF+LN70Bl8XruPVD33CzNSAAvHQYoJ2k47wiFMZWYQEgLyUk4D8wXfHPVWX7LnFxE5jLkQ+0DyXR2GAFQlcOfHXiG2MvEuX/bZ42DLJm9NPNfARuh8MkXBNaW2sTEnFJjp4N3pS5nQulUeP3eAAQKJ83TqwgHh9/JQwma8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(396003)(136003)(376002)(39860400002)(366004)(346002)(6486002)(52116002)(33716001)(8676002)(38350700002)(5660300002)(86362001)(38100700002)(109986005)(8936002)(478600001)(103116003)(956004)(2906002)(16576012)(316002)(66556008)(4326008)(26005)(66476007)(66946007)(44832011)(186003)(4744005)(9686003)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-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ApCYvU?= =?utf-8?q?gGPsU7tkQPtd/Iv5aCiqhOZ3vCL1NCqbSPcCXFL24BYEz9woG5QD9abf5sCv8yaJA?= =?utf-8?q?S5zRcV9jEcCDL0ohp/1IVYhsOs1bRIzZuWcyoBGB8yQv/0R+DepMRzp3FZHMfWHQR?= =?utf-8?q?PgrOPLMY6//JViSFwCF0cpua6rzRJrlDSrglw4JBrY6u1dmU4jXh1pV4r2RRfBRvj?= =?utf-8?q?0b4G+5GdN1oTJGSufHdqH04y0qDbrt27e9Ont8bybYlaaJQzIFZ9BNDxRCZ0fRte/?= =?utf-8?q?zkq+R7IRqrwB6yY9tpGIv9ovmYlOP5bHbCteXF0TMewYyITApzeMaYMedA/Zq5zXS?= =?utf-8?q?2iJW9Zc76G+Ts2QZEAAT0rT+Q2AgkcUWS9pD3w3SY4h5I8kJrqDS2rnvBJcZN2aLN?= =?utf-8?q?vTI8dIgobOpIOA4VjSQT+ssjoZm7t1uosoe2SxEs0bv5MCZN4A3y9tWKqoZI7rvDN?= =?utf-8?q?vnIwceM4F6sOvaI+?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 646703fa-753d-4a8b-99ca-08d958f46fd5 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2021 16:08:32.2235 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9xVXdGsBNyk6Z+f+GDksuT8ACmyzfspgpb0uiNKFZKJV0v2JYBBzeCQDPrO5vqCt X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1501 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This series fixes couple of unittest failures for SVM. 1. The test ./x86/access is failing with timeout. 2. The test ./x86/svm failure with infinite loop. More details in each patch. --- Babu Moger (2): x86: access: Fix timeout failure by limiting number of flag combinations nSVM: Fix NPT reserved bits test hang lib/x86/processor.h | 10 ++++++++++ x86/access.c | 4 ++-- x86/svm_tests.c | 25 +++++++++++++++++++------ 3 files changed, 31 insertions(+), 8 deletions(-) --