Linux payload implementing HV exploits to run a custom bootloader
C
Rename hv_defeat to hv_defeat_0304.
Andy Nguyene84dcbf28127
diff --git a/include/hv_defeat.h b/include/hv_defeat_0304.hsimilarity index 82%rename from include/hv_defeat.hrename to include/hv_defeat_0304.hindex a2fdeff..5cff90c 100644--- a/include/hv_defeat.h+++ b/include/hv_defeat_0304.h@@ -1,10 +1,10 @@-#ifndef HV_DEFEAT_H-#define HV_DEFEAT_H+#ifndef HV_DEFEAT_0304_H+#define HV_DEFEAT_0304_H#include "iommu.h"#include <stdint.h>-int hv_defeat(void);+int hv_defeat_0304(void);int stage1_tmr_relax(void);int stage2_find_vmcbs(void);uint64_t get_vmcb(int core);diff --git a/source/hv_defeat.c b/source/hv_defeat_0304.csimilarity index 99%rename from source/hv_defeat.crename to source/hv_defeat_0304.cindex c400cdc..15f3683 100644--- a/source/hv_defeat.c+++ b/source/hv_defeat_0304.c@@ -1,4 +1,4 @@-#include "hv_defeat.h"+#include "hv_defeat_0304.h"#include "config.h"#include "gpu.h"#include "iommu.h"@@ -13,7 +13,7 @@uint64_t vmcb_pa[16];-int hv_defeat(void) {+int hv_defeat_0304(void) {if (gpu_init())return -1;if (stage1_tmr_relax())diff --git a/source/main.c b/source/main.cindex 4613ee3..dd57ef7 100644--- a/source/main.c+++ b/source/main.c@@ -1,4 +1,4 @@-#include "hv_defeat.h"+#include "hv_defeat_0304.h"#include "loader.h"#include "prepare_resume.h"#include "utils.h"@@ -10,7 +10,7 @@ int main(void) {"is supported.");return -1;}- if (hv_defeat()) {+ if (hv_defeat_0304()) {notify("Something went wrong while defeating Hypervisor.\nPlease make sure ""your fw is supported.");return -1;