Rename hv_defeat to hv_defeat_0304.

This commit is contained in:
Andy Nguyen
2026-05-15 13:01:11 +02:00
parent a5f27e2205
commit e84dcbf281
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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())

View File

@@ -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;