Skip to content

Instantly share code, notes, and snippets.

@brynet
Created January 24, 2021 02:00
Show Gist options
  • Save brynet/cb29261b3db3850559178b9680f912f6 to your computer and use it in GitHub Desktop.
Save brynet/cb29261b3db3850559178b9680f912f6 to your computer and use it in GitHub Desktop.
vmm_clock
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