Browse Source

drop the no hvf header declarations

Zhuowei Zhang 3 years ago
parent
commit
d77c44cd55
1 changed files with 0 additions and 30 deletions
  1. 0 30
      hv.m

+ 0 - 30
hv.m

@@ -4,36 +4,6 @@
 #include <assert.h>
 #include <assert.h>
 #include "hv_kernel_structs.h"
 #include "hv_kernel_structs.h"
 
 
-#if NO_HVF_HEADER
-@protocol OS_hv_vcpu_config;
-@class NSObject;
-
-typedef kern_return_t hv_return_t;
-typedef void* hv_vm_config_t;
-typedef uint64_t hv_ipa_t;
-typedef uint64_t hv_vcpu_t;
-typedef uint64_t hv_exception_syndrome_t;
-typedef uint64_t hv_exception_address_t;
-typedef uint64_t hv_exit_reason_t;
-typedef NSObject<OS_hv_vcpu_config>* hv_vcpu_config_t;
-typedef uint64_t hv_memory_flags_t;
-#define HV_BAD_ARGUMENT 0xfae94003;
-#define HV_UNSUPPORTED 0xfae9400f;
-
-// from hv_vcpu_types.h
-
-typedef struct hv_vcpu_exit_exception {
-  hv_exception_syndrome_t syndrome;
-  hv_exception_address_t virtual_address;
-  hv_ipa_t physical_address;
-} hv_vcpu_exit_exception_t;
-
-typedef struct hv_vcpu_exit {
-  hv_exit_reason_t reason;
-  hv_vcpu_exit_exception_t exception;
-} hv_vcpu_exit_t;
-#endif  // NO_HVF_HEADER
-
 static_assert(sizeof(hv_vcpu_exit_t) == 0x20, "hv_vcpu_exit");
 static_assert(sizeof(hv_vcpu_exit_t) == 0x20, "hv_vcpu_exit");
 
 
 #define HV_CALL_VM_GET_CAPABILITIES 0
 #define HV_CALL_VM_GET_CAPABILITIES 0