Created
January 24, 2021 02:00
-
-
Save brynet/cb29261b3db3850559178b9680f912f6 to your computer and use it in GitHub Desktop.
vmm_clock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vmm_clock_main.c b/vmm_clock_main.c | |
index cd01897..ef9c18b 100644 | |
--- a/vmm_clock_main.c | |
+++ b/vmm_clock_main.c | |
@@ -95,7 +95,7 @@ static void vmmclock_init_mem(void) | |
unsigned long ncpus; | |
unsigned int order; | |
struct page *p; | |
- int r; | |
+ //int r; | |
pr_info("%s: starting", __func__); | |
// todo: simplify to 1 | |
@@ -117,6 +117,7 @@ static void vmmclock_init_mem(void) | |
* hvclock is shared between the guest and the hypervisor, must | |
* be mapped decrypted. | |
*/ | |
+#if 0 | |
if (sev_active()) { | |
r = set_memory_decrypted((unsigned long) hvclock_mem, | |
1UL << order); | |
@@ -128,6 +129,7 @@ static void vmmclock_init_mem(void) | |
return; | |
} | |
} | |
+#endif | |
memset(hvclock_mem, 0, PAGE_SIZE << order); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment