All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manali Shukla <manali.shukla@amd.com>
To: <pbonzini@redhat.com>, <seanjc@google.com>
Cc: <kvm@vger.kernel.org>
Subject: [kvm-unit-tests PATCH v5 3/8] x86: nSVM: Allow nSVM tests run with PT_USER_MASK enabled
Date: Tue, 28 Jun 2022 11:38:48 +0000	[thread overview]
Message-ID: <20220628113853.392569-4-manali.shukla@amd.com> (raw)
In-Reply-To: <20220628113853.392569-1-manali.shukla@amd.com>

Now that nNPT testcases, which need to run without USER page tables, live
in their own test, use the default setup_vm() to create the page tables with
the USER bit set so that usermode testcases can be added in the future.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Manali Shukla <manali.shukla@amd.com>
---
 x86/svm_tests.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/x86/svm_tests.c b/x86/svm_tests.c
index 37ca792..1692912 100644
--- a/x86/svm_tests.c
+++ b/x86/svm_tests.c
@@ -10,7 +10,6 @@
 #include "isr.h"
 #include "apic.h"
 #include "delay.h"
-#include "vmalloc.h"
 
 #define SVM_EXIT_MAX_DR_INTERCEPT 0x3f
 
@@ -3297,9 +3296,7 @@ static void svm_intr_intercept_mix_smi(void)
 
 int main(int ac, char **av)
 {
-    pteval_t opt_mask = 0;
-
-    __setup_vm(&opt_mask);
+    setup_vm();
     return run_svm_tests(ac, av);
 }
 
-- 
2.30.2


  parent reply	other threads:[~2022-06-28 11:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28 11:38 [kvm-unit-tests PATCH v5 0/8] Move npt test cases and NPT code improvements Manali Shukla
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 1/8] x86: nSVM: Move common functionality of the main() to helper run_svm_tests Manali Shukla
2022-07-21 18:04   ` Sean Christopherson
2022-07-21 19:13   ` Sean Christopherson
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 2/8] x86: nSVM: Move all nNPT test cases from svm_tests.c to a separate file Manali Shukla
2022-06-28 11:38 ` Manali Shukla [this message]
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 4/8] x86: Improve set_mmu_range() to implement npt Manali Shukla
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 5/8] x86: nSVM: Build up the nested page table dynamically Manali Shukla
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 6/8] x86: nSVM: Correct indentation for svm.c Manali Shukla
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 7/8] x86: nSVM: Correct indentation for svm_tests.c part-1 Manali Shukla
2022-06-28 11:38 ` [kvm-unit-tests PATCH v5 8/8] x86: nSVM: Correct indentation for svm_tests.c part-2 Manali Shukla
2022-07-12 16:35 ` [kvm-unit-tests PATCH v5 0/8] Move npt test cases and NPT code improvements Shukla, Manali
2022-07-21 19:15 ` Sean Christopherson
2022-07-22 13:00   ` Shukla, Manali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220628113853.392569-4-manali.shukla@amd.com \
    --to=manali.shukla@amd.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.