[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 02/11] hvf: x86: Remove unused definitions
From: |
Alexander Graf |
Subject: |
[PATCH v4 02/11] hvf: x86: Remove unused definitions |
Date: |
Fri, 4 Dec 2020 00:48:48 +0100 |
The hvf i386 has a few struct and cpp definitions that are never
used. Remove them.
Suggested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
---
target/i386/hvf/hvf-i386.h | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/target/i386/hvf/hvf-i386.h b/target/i386/hvf/hvf-i386.h
index e0edffd077..e31938e5ff 100644
--- a/target/i386/hvf/hvf-i386.h
+++ b/target/i386/hvf/hvf-i386.h
@@ -21,21 +21,6 @@
#include "cpu.h"
#include "x86.h"
-#define HVF_MAX_VCPU 0x10
-
-extern struct hvf_state hvf_global;
-
-struct hvf_vm {
- int id;
- struct hvf_vcpu_state *vcpus[HVF_MAX_VCPU];
-};
-
-struct hvf_state {
- uint32_t version;
- struct hvf_vm *vm;
- uint64_t mem_quota;
-};
-
/* hvf_slot flags */
#define HVF_SLOT_LOG (1 << 0)
@@ -75,7 +60,6 @@ hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t);
/* Host specific functions */
int hvf_inject_interrupt(CPUArchState *env, int vector);
-int hvf_vcpu_run(struct hvf_vcpu_state *vcpu);
#endif
#endif
--
2.24.3 (Apple Git-128)
- [PATCH v4 00/11] hvf: Implement Apple Silicon Support, Alexander Graf, 2020/12/03
- [PATCH v4 02/11] hvf: x86: Remove unused definitions,
Alexander Graf <=
- [PATCH v4 01/11] hvf: Add hypervisor entitlement to output binaries, Alexander Graf, 2020/12/03
- [PATCH v4 03/11] hvf: Move common code out, Alexander Graf, 2020/12/03
- [PATCH v4 04/11] hvf: Introduce hvf vcpu struct, Alexander Graf, 2020/12/03
- [PATCH v4 05/11] arm: Set PSCI to 0.2 for HVF, Alexander Graf, 2020/12/03
- [PATCH v4 06/11] hvf: Simplify post reset/init/loadvm hooks, Alexander Graf, 2020/12/03