thermosphere: add shadow page table hooks

note: HCR.TVM not supported by qemu yet
This commit is contained in:
TuxSH committed 2020-02-04 19:12:19 +00:00
1 parent 823b2c8a6d
commit 0b1ab362c6
5 files changed
+82 -5

No files matched your search

@@ -18,4 +18,15 @@
#include "../../types.h"
static inline u64 transformKernelAddress(u64 pa)
{
switch (pa) {
// GICv2 CPU -> vCPU interface
case 0x08010000:
return 0x08040000;
default:
return pa;
}
}
uintptr_t configureMemoryMap(u32 *addrSpaceSize);
@@ -18,4 +18,15 @@
#include "../../types.h"
static inline u64 transformKernelAddress(u64 pa)
{
switch (pa) {
// GICv2 CPU -> vCPU interface
case 0x50042000:
return 0x50046000;
default:
return pa;
}
}
uintptr_t configureMemoryMap(u32 *addrSpaceSize);