From patchwork Fri Oct 8 21:24:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Mattson X-Patchwork-Id: 12546491 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50F8CC433EF for ; Fri, 8 Oct 2021 21:24:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4007760FC2 for ; Fri, 8 Oct 2021 21:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243446AbhJHV0y (ORCPT ); Fri, 8 Oct 2021 17:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243433AbhJHV0x (ORCPT ); Fri, 8 Oct 2021 17:26:53 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF42FC061570 for ; Fri, 8 Oct 2021 14:24:57 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id a16-20020a63d410000000b00268ebc7f4faso2263305pgh.17 for ; Fri, 08 Oct 2021 14:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=XgRk7jMmXWMK1ft8S8aZQlO3WgE8ydvGH5GMK1xYeFQ=; b=FOXFeik0qkoau19FOAQcWRarB0u1fhJugKXSax61e2dE5I9F3WDnv653+4tkvE3HHS Pj/OKqIdOsf/ctPOEeGU5lFOXlZ3N4k2vdoS6I0NWGpl/ShVlMVbCPL1rFrbSdMInJJj /Amrf9/bLKlibGVo5IKuzk2XDUp0FUPbgJSGZ2NXL9+Gfwbt1ovUqtpMz/qz9OepgE5e rWmYvWZV5LLruifjM3bsFyHX8qbG9HUOpWJE2whtbj8Mhu0iDN5zrrw5hskEZ+zBKMvH O1e3kudiKOY2IVk5EbV73moq0O3qCex/sv+yHeR1b3Yh/lDjLd0+nGhHh1IpZxngBrUf Ak+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XgRk7jMmXWMK1ft8S8aZQlO3WgE8ydvGH5GMK1xYeFQ=; b=M3znhr3TcfxWhOkkeZs2TXPbGonIyR/GUO1wfWodV/VExcrLaebHHBkH5DLKVrE2oo vhQrNeydfoBW52zn0ulMN0+GorQhkCMKoTqrKTBQJ5fx6HghZ406lw1NqKa33hADaI7T mfVChOs/AGYk7+JnqM0GTjw6NXikug0SFdFk48dJCwGKJ/Sl6PDj6U1RQ0QVc0YyCu0q qu4diChOh98/yIbsfKkgWNFkjOjE8XbYMSo9l6aVFoO4u1QHL1bJhyK580oGKmn3l3S5 QRiQY8y5c5CH2BS9yOslGytrVBE4C8P2CizMzLlep1AGjSewsTm80u+Vf6drh1ea+Ybu IHRA== X-Gm-Message-State: AOAM530SUo8pkFa0ECWzJkJXnwgg117ulobNG1XH+dZveAOyTJ+hX8rm d9/4DhcY9CZjwLeFELaCdmZHOaPKOGEk026XNS1teCj6lhoPtWTFVObV6LYnow2R11PT4CcDJYm YdsadbonIAiVoqH7kjCKdYlEcHlv9hAnQTrJzOnZGWqAQeDl1R6M0WDrgyPut91s= X-Google-Smtp-Source: ABdhPJxUxfU3wmyt49LXxZq3TMb9YGOq35kJ9av6LPYaOSKRSJCwK/+LCJBu2+WKlrtYDd4ZWJ0CYh1J+9zmJw== X-Received: from tortoise.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1a0d]) (user=jmattson job=sendgmr) by 2002:a63:4c1f:: with SMTP id z31mr6611249pga.50.1633728297286; Fri, 08 Oct 2021 14:24:57 -0700 (PDT) Date: Fri, 8 Oct 2021 14:24:45 -0700 In-Reply-To: <20211008212447.2055660-1-jmattson@google.com> Message-Id: <20211008212447.2055660-2-jmattson@google.com> Mime-Version: 1.0 References: <20211008212447.2055660-1-jmattson@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [kvm-unit-tests PATCH 1/3] x86: Fix operand size for lldt From: Jim Mattson To: kvm@vger.kernel.org Cc: Jim Mattson Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The lldt instruction takes an r/m16 operand. Fixes: 7d36db351752 ("Initial commit from qemu-kvm.git kvm/test/") Signed-off-by: Jim Mattson --- lib/x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index eaf24d491499..fe5add548261 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -443,7 +443,7 @@ static inline void sidt(struct descriptor_table_ptr *ptr) asm volatile ("sidt %0" : "=m"(*ptr)); } -static inline void lldt(unsigned val) +static inline void lldt(u16 val) { asm volatile ("lldt %0" : : "rm"(val)); } From patchwork Fri Oct 8 21:24:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Mattson X-Patchwork-Id: 12546493 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C9DCC433EF for ; Fri, 8 Oct 2021 21:25:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12FA360FC2 for ; Fri, 8 Oct 2021 21:25:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243456AbhJHV0z (ORCPT ); Fri, 8 Oct 2021 17:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243448AbhJHV0z (ORCPT ); Fri, 8 Oct 2021 17:26:55 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B5CC061570 for ; Fri, 8 Oct 2021 14:24:59 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id bj9-20020a170902850900b0013da209f0f3so5585395plb.6 for ; Fri, 08 Oct 2021 14:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=kHU2fv9R5YWPeUggZVPlAVwzcV4PQG5cWPQF9i4wEA4=; b=f1BGYg+VTqSt5n3ciJcoy7++b9aHVB0R9MlpEmrA2zPwIR4B1tHqZG4GYZsstvXyaV Pjn1DPZalbfq1QTS7alnR4HANTE3NlE2kiWsO/fu4DupzLo3ke5c+XHLZ4dZVGMRnMma CuHWN953fBW1M2n/1EtHZuRO8ec9sTGYrqih7i6nZlz9ufTpcShcJZibr/CN7y4lGvmM QYD2m0mVz0jwSWIegGBjdEHppKPNJ4kkAWowKf8KH+0/eA8zadTdaOT99l2aIw0LaWpN iBdrn7Q4owLoF4qhjo5B3CjoBFo4gbi7aZa4pbQkRNjpVzyJM8+tJxhRryAujsouRkBw 1S7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=kHU2fv9R5YWPeUggZVPlAVwzcV4PQG5cWPQF9i4wEA4=; b=w/nFc1qIUwqyF4m0qlJjnTtV84oUFWh3DYDDZo2W+35S3ggmyShB2tsO94CalMmwsY UjFvlNJ2Q6AKYbiwYigZlV8yrwssJaa9f2yPgpxujOO4jHKk9BfNg/rq2czWFX52MUms lmImX5uMFS1qp9GW3tBFmUMH3fOoXbUx8p97y53ZrJ+xaodJdvOHNspBHZj4f3kcuW1H 9rCsCsKoGw+i8rdFq3+7d82HtD10+v4HcnLb9A/MAR0eiMXcTP60NsVuT1gEYzMnTqch 0Kq+xTIFCXcNUfnUVuFX0p78O5UQWCpOWZMTST10Fz+OK0wfdey7XSY5j8GXbakIixI6 rEBw== X-Gm-Message-State: AOAM531HqO/SXc4/S7FBHGm42GQiOXczbWGFe+jNCTQjBQ2BdXV/7vVT 9bIBvjkRnEHw1pdkakgFhhy1Kc//BeJ8bRJ73X/vQ2tCxiuMVY6OrRRf8Qz70xT8WERLFOpCECC sBsv2cZ7ZTI0RyKvPPOrrJYpUHrA2YErsCtlMJTElHDxnrvdljmjoMGYvLl2cFCs= X-Google-Smtp-Source: ABdhPJxB2jY2FCkeAp4gCPgxMiZu0xB3j1zf0h0I/NrOxsy/fnnZMy2imhiybNQv73wnbun1IMsfCTil2Cl59A== X-Received: from tortoise.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1a0d]) (user=jmattson job=sendgmr) by 2002:a17:90b:4c8d:: with SMTP id my13mr14179253pjb.101.1633728298942; Fri, 08 Oct 2021 14:24:58 -0700 (PDT) Date: Fri, 8 Oct 2021 14:24:46 -0700 In-Reply-To: <20211008212447.2055660-1-jmattson@google.com> Message-Id: <20211008212447.2055660-3-jmattson@google.com> Mime-Version: 1.0 References: <20211008212447.2055660-1-jmattson@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [kvm-unit-tests PATCH 2/3] x86: Make set_gdt_entry usable in 64-bit mode From: Jim Mattson To: kvm@vger.kernel.org Cc: Jim Mattson Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The omission of a 64-bit implementation of set_gdt_entry was probably just an oversight, since the declaration is in scope. Signed-off-by: Jim Mattson --- lib/x86/desc.c | 41 +++++++++++++++++++++++++++++++---------- lib/x86/desc.h | 3 ++- x86/cstart64.S | 1 + 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/lib/x86/desc.c b/lib/x86/desc.c index e7378c1d372a..87e2850f46c6 100644 --- a/lib/x86/desc.c +++ b/lib/x86/desc.c @@ -279,23 +279,39 @@ bool exception_rflags_rf(void) static char intr_alt_stack[4096]; -#ifndef __x86_64__ -void set_gdt_entry(int sel, u32 base, u32 limit, u8 access, u8 gran) +static void __set_gdt_entry(int sel, uintptr_t base, u32 limit, u8 access, + u8 gran, gdt_entry_t *gdt) { int num = sel >> 3; /* Setup the descriptor base address */ - gdt32[num].base_low = (base & 0xFFFF); - gdt32[num].base_middle = (base >> 16) & 0xFF; - gdt32[num].base_high = (base >> 24) & 0xFF; + gdt[num].base_low = (base & 0xFFFF); + gdt[num].base_middle = (base >> 16) & 0xFF; + gdt[num].base_high = (base >> 24) & 0xFF; /* Setup the descriptor limits */ - gdt32[num].limit_low = (limit & 0xFFFF); - gdt32[num].granularity = ((limit >> 16) & 0x0F); + gdt[num].limit_low = (limit & 0xFFFF); + gdt[num].granularity = ((limit >> 16) & 0x0F); + + /* Penultimately, set up the granularity and access flags */ + gdt[num].granularity |= (gran & 0xF0); + gdt[num].access = access; + +#ifdef __x86_64__ + /* 64-bit system descriptors take up two slots */ + if (!(access & 0x10000)) { + u32 *p = (u32 *)&gdt[num + 1]; - /* Finally, set up the granularity and access flags */ - gdt32[num].granularity |= (gran & 0xF0); - gdt32[num].access = access; + p[0] = base >> 32; + p[1] = 0; + } +#endif +} + +#ifndef __x86_64__ +void set_gdt_entry(int sel, uintptr_t base, u32 limit, u8 access, u8 gran) +{ + __set_gdt_entry(sel, base, limit, access, gran, gdt32); } void set_gdt_task_gate(u16 sel, u16 tss_sel) @@ -366,6 +382,11 @@ void print_current_tss_info(void) tr, tr ? "interrupt" : "main", tss.prev, tss_intr.prev); } #else +void set_gdt_entry(int sel, uintptr_t base, u32 limit, u8 access, u8 gran) +{ + __set_gdt_entry(sel, base, limit, access, gran, gdt64); +} + void set_intr_alt_stack(int e, void *addr) { set_idt_entry(e, addr, 0); diff --git a/lib/x86/desc.h b/lib/x86/desc.h index a6ffb38c79a1..994f1d791130 100644 --- a/lib/x86/desc.h +++ b/lib/x86/desc.h @@ -208,6 +208,7 @@ void set_idt_task_gate(int vec, u16 sel); void set_intr_task_gate(int vec, void *fn); void setup_tss32(void); #else +extern gdt_entry_t gdt64[]; extern tss64_t tss; #endif @@ -218,7 +219,7 @@ bool exception_rflags_rf(void); void set_idt_entry(int vec, void *addr, int dpl); void set_idt_sel(int vec, u16 sel); void set_idt_dpl(int vec, u16 dpl); -void set_gdt_entry(int sel, u32 base, u32 limit, u8 access, u8 gran); +void set_gdt_entry(int sel, uintptr_t base, u32 limit, u8 access, u8 gran); void set_intr_alt_stack(int e, void *fn); void print_current_tss_info(void); handler handle_exception(u8 v, handler fn); diff --git a/x86/cstart64.S b/x86/cstart64.S index 5c6ad38543cc..62ace3512bb0 100644 --- a/x86/cstart64.S +++ b/x86/cstart64.S @@ -62,6 +62,7 @@ gdt64_desc: .word gdt64_end - gdt64 - 1 .quad gdt64 +.globl gdt64 gdt64: .quad 0 .quad 0x00af9b000000ffff // 64-bit code segment From patchwork Fri Oct 8 21:24:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Mattson X-Patchwork-Id: 12546495 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AA1EC433F5 for ; Fri, 8 Oct 2021 21:25:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FDA960FC2 for ; Fri, 8 Oct 2021 21:25:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243458AbhJHV06 (ORCPT ); Fri, 8 Oct 2021 17:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243459AbhJHV05 (ORCPT ); Fri, 8 Oct 2021 17:26:57 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62989C061570 for ; Fri, 8 Oct 2021 14:25:01 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id oj6-20020a17090b4d8600b001a0596b80b2so2324110pjb.9 for ; Fri, 08 Oct 2021 14:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=eW7SeQiMofHKuRGbbPMYPoEEDHp28bXQjINmApR3c3g=; b=EVR/c9IzFbIeaLfuP3JGsRjva5sqBYKlDOqPgYNdSCkyxNhEtI4yvZLNWIpFq06kxB B2k/bwvLdSpTbnDKsETCV2rW3k3z5rqhpGxOXX/W7EO0Bx6ePPTvBFXsXv9vkx6tn5SI yiAwuVFjRVEZu66ELUgzDRoqrwgz6BJp4cEWCnKBiKe9WY6mGCgHD3BYLiVTMoPlZwMQ 5m3wYOhPrVI0hN7YpG0ofCc9gkxR1MuhCf9RhETjfFS1TGPLiUkC8yVz2PMW+YNjLHHe ybRJbn8qBrfPyXDFW5ZQElGDwwZjaa01NgKBUqUb6XMX56emsFdSTdBFe3A0uDQRa14q ep+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=eW7SeQiMofHKuRGbbPMYPoEEDHp28bXQjINmApR3c3g=; b=VKLFLa5xa5ebeE4v/KCLtEW93XDUbwUGMiROaXp38yfA8Clcq+vjuw42VmSGFdKFaO MdaMvMh6wiyywyqqwr4l+K8+M/31xVzyMPuyfhmFD6k9X2sa2mhbpON1XcinrKK96sIu F3yPB5EZ2mWUfKAr7/5wNEnSmBX606UdUjPW82V3pYbsF9onuAjwLDQmnCzSLsVtka5E a0ZnSjyqYR7dbiC4DFdTEWHyDo+NPqAWv99B7JZMRFHNdkLr5x+ENG38l6hfB3Wj2eYN IWZG9ZLS44r2u4t2HbZ3oqXSV2iup5gl0uaQIMQTnntUbGwbZy37+0WSrhZcrK6tzQzG 3AdA== X-Gm-Message-State: AOAM530xI0Xuuk+hiT7prwN0Yx2trVXviFVHGxefmz9OLkuzOBxkvYSJ 5Mod2rVDWinz1vwwI7QgY0ZKrjaIMgA4ZZ9TSaNnsLfkAoy43cFfX951vUt+8e9KYqkBNyWIliy QpdYsQc5us8eIG5gnIc5AnsoPwAaLFhVNzORei2KzAvRH78i8lGKlpQaDsQ4EiBU= X-Google-Smtp-Source: ABdhPJygvRMm8x07Yq85OuXd8UvNjrtouIqKGtjT191Ud+FeL2+BsA/Gdv3u6GOUU5BACN2rj8IZjCwi7bHW6w== X-Received: from tortoise.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1a0d]) (user=jmattson job=sendgmr) by 2002:a05:6a00:1248:b0:44c:84cd:f795 with SMTP id u8-20020a056a00124800b0044c84cdf795mr12592898pfi.79.1633728300671; Fri, 08 Oct 2021 14:25:00 -0700 (PDT) Date: Fri, 8 Oct 2021 14:24:47 -0700 In-Reply-To: <20211008212447.2055660-1-jmattson@google.com> Message-Id: <20211008212447.2055660-4-jmattson@google.com> Mime-Version: 1.0 References: <20211008212447.2055660-1-jmattson@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [kvm-unit-tests PATCH 3/3] x86: Add a regression test for L1 LDTR persistence bug From: Jim Mattson To: kvm@vger.kernel.org Cc: Jim Mattson Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Add a regression test for Linux commit afc8de0118be ("KVM: nVMX: Set LDTR to its architecturally defined value on nested VM-Exit"). L1's LDTR should be 0 after an emulated VM-exit from L2. Signed-off-by: Jim Mattson --- x86/vmx_tests.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c index 4f712ebccc08..9aafaa786ab6 100644 --- a/x86/vmx_tests.c +++ b/x86/vmx_tests.c @@ -8369,6 +8369,44 @@ static void vmentry_movss_shadow_test(void) vmcs_write(GUEST_RFLAGS, X86_EFLAGS_FIXED); } +static void vmx_ldtr_test_guest(void) +{ + u16 ldtr = sldt(); + + report(ldtr == NP_SEL, "L2 LDTR selector is %x (actual %x)", + NP_SEL, ldtr); +} + +/* + * Ensure that the L1 LDTR is set to 0 on VM-exit. + */ +static void vmx_ldtr_test(void) +{ + const u8 ldt_ar = 0x82; /* Present LDT */ + u16 sel = FIRST_SPARE_SEL; + + /* Set up a non-zero L1 LDTR prior to VM-entry. */ + set_gdt_entry(sel, 0, 0, ldt_ar, 0); + lldt(sel); + + test_set_guest(vmx_ldtr_test_guest); + /* + * Set up a different LDTR for L2. The actual GDT contents are + * irrelevant, since we stuff the hidden descriptor state + * straight into the VMCS rather than reading it from the GDT. + */ + vmcs_write(GUEST_SEL_LDTR, NP_SEL); + vmcs_write(GUEST_AR_LDTR, ldt_ar); + enter_guest(); + + /* + * VM-exit should clear LDTR (and make it unusable, but we + * won't verify that here). + */ + sel = sldt(); + report(!sel, "L1 LDTR selector is 0 (actual %x)", sel); +} + static void vmx_single_vmcall_guest(void) { vmcall(); @@ -10730,6 +10768,7 @@ struct vmx_test vmx_tests[] = { /* VMCS Shadowing tests */ TEST(vmx_vmcs_shadow_test), /* Regression tests */ + TEST(vmx_ldtr_test), TEST(vmx_cr_load_test), TEST(vmx_cr4_osxsave_test), TEST(vmx_nm_test),