[PATCH kvm-unit-tests 14/18] x86: svm: rename get_pte function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We will make it public in vm.c with the next patch.

Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 x86/svm.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/x86/svm.c b/x86/svm.c
index 9d910ae..5cfd77d 100644
--- a/x86/svm.c
+++ b/x86/svm.c
@@ -95,7 +95,7 @@ static void setup_svm(void)
     pml4e[0] = ((u64)pdpe) | 0x27;
 }
 
-static u64 *get_pte(u64 address)
+static u64 *npt_get_pte(u64 address)
 {
     int i1, i2;
 
@@ -502,14 +502,14 @@ static void npt_nx_prepare(struct test *test)
     u64 *pte;
 
     vmcb_ident(test->vmcb);
-    pte = get_pte((u64)null_test);
+    pte = npt_get_pte((u64)null_test);
 
     *pte |= (1ULL << 63);
 }
 
 static bool npt_nx_check(struct test *test)
 {
-    u64 *pte = get_pte((u64)null_test);
+    u64 *pte = npt_get_pte((u64)null_test);
 
     *pte &= ~(1ULL << 63);
 
@@ -524,7 +524,7 @@ static void npt_us_prepare(struct test *test)
     u64 *pte;
 
     vmcb_ident(test->vmcb);
-    pte = get_pte((u64)scratch_page);
+    pte = npt_get_pte((u64)scratch_page);
 
     *pte &= ~(1ULL << 2);
 }
@@ -536,7 +536,7 @@ static void npt_us_test(struct test *test)
 
 static bool npt_us_check(struct test *test)
 {
-    u64 *pte = get_pte((u64)scratch_page);
+    u64 *pte = npt_get_pte((u64)scratch_page);
 
     *pte |= (1ULL << 2);
 
@@ -566,7 +566,7 @@ static void npt_rw_prepare(struct test *test)
     u64 *pte;
 
     vmcb_ident(test->vmcb);
-    pte = get_pte(0x80000);
+    pte = npt_get_pte(0x80000);
 
     *pte &= ~(1ULL << 1);
 }
@@ -580,7 +580,7 @@ static void npt_rw_test(struct test *test)
 
 static bool npt_rw_check(struct test *test)
 {
-    u64 *pte = get_pte(0x80000);
+    u64 *pte = npt_get_pte(0x80000);
 
     *pte |= (1ULL << 1);
 
@@ -594,14 +594,14 @@ static void npt_pfwalk_prepare(struct test *test)
     u64 *pte;
 
     vmcb_ident(test->vmcb);
-    pte = get_pte(read_cr3());
+    pte = npt_get_pte(read_cr3());
 
     *pte &= ~(1ULL << 1);
 }
 
 static bool npt_pfwalk_check(struct test *test)
 {
-    u64 *pte = get_pte(read_cr3());
+    u64 *pte = npt_get_pte(read_cr3());
 
     *pte |= (1ULL << 1);
 
-- 
1.8.3.1


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux