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=-3.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT 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 9F8FBC10F0E for ; Thu, 18 Apr 2019 22:05:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71F2C214C6 for ; Thu, 18 Apr 2019 22:05:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="XzlpdDNd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726257AbfDRWFj (ORCPT ); Thu, 18 Apr 2019 18:05:39 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:42674 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfDRWFi (ORCPT ); Thu, 18 Apr 2019 18:05:38 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3ILswrx069900; Thu, 18 Apr 2019 22:05:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=VHdZNtcPh+zH9CXdS71l5ejZhCUq/PUVtux9ZyDeFx8=; b=XzlpdDNd0OSBiJmUKut++6hQH/83GxcsaW+l9TLfK73Dd9wnN/ZTdSpMLM0vVY/rhU+e pvpbkWGLfU/yhgZDb9pWhxlbTwqTNnQpDboZs/4x1anO0dqH3lht702e9Wv3aakgUYHU 0xqGLkZ3dIExz2vOB0aVaIgUQ71hxhaNbGR9pi/NZXMJ2Y2kHmSejkOVIH/0kVnLbD8y 4mEMszeRc1TdfAIfiyGPGqyz68l1ScEo+LCOloeE5aXh3xf8rXoapezR5yEMb2IQB1nT mJphM0X6mhWu9c5PsWZwp7Bj9XRfTo3kQTt2TSMQWUztc4QSRWkw5oCwZxmuIFiBhvoV Bw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2rvwk43cm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Apr 2019 22:05:27 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3IM55lc030836; Thu, 18 Apr 2019 22:05:26 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2ru4vun5x0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Apr 2019 22:05:26 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x3IM5PvB022892; Thu, 18 Apr 2019 22:05:25 GMT Received: from ban25x6uut29.us.oracle.com (/10.153.73.29) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 18 Apr 2019 15:05:25 -0700 From: Krish Sadhukhan To: kvm@vger.kernel.org Cc: rkrcmar@redhat.com, pbonzini@redhat.com, jmattson@google.com Subject: [kvm-unit-test nVMX]: Test "load IA32_PAT" VM-entry control on vmentry of nested guests Date: Thu, 18 Apr 2019 17:39:39 -0400 Message-Id: <20190418213941.20977-1-krish.sadhukhan@oracle.com> X-Mailer: git-send-email 2.17.2 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9231 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=625 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904180128 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9231 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=669 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904180128 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This is the unit test for the "load IA32_PAT" VM-entry control. Patch# 2 builds on top of my previous patch, [PATCH 6/6 v5][kvm-unit-test nVMX]: Check "load IA32_PAT" on vmentry of L2 guests [PATCH 1/2][kvm-unit-test nVMX]: Move the functionality of enter_guest() to [PATCH 2/2][kvm-unit-test nVMX]: Check "load IA32_PAT" VM-entry control on vmentry x86/vmx.c | 27 +++++++---- x86/vmx.h | 4 ++ x86/vmx_tests.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 143 insertions(+), 28 deletions(-) Krish Sadhukhan (2): nVMX: Move the functionality of enter_guest() to __enter_guest() and make the former a wrapper of the latter nVMX: Check "load IA32_PAT" VM-entry control on vmentry of nested guests