File tree Expand file tree Collapse file tree 6 files changed +81
-32
lines changed Expand file tree Collapse file tree 6 files changed +81
-32
lines changed Original file line number Diff line number Diff line change 436
436
W: https://wiki.qemu.org/Features/HVF
437
437
S: Maintained
438
438
F: target/i386/hvf/
439
+
440
+ HVF
441
+ M: Cameron Esfahani <
[email protected] >
442
+ M: Roman Bolshakov <
[email protected] >
443
+ W: https://wiki.qemu.org/Features/HVF
444
+ S: Maintained
445
+ F: accel/hvf/
439
446
F: include/sysemu/hvf.h
447
+ F: include/sysemu/hvf_int.h
440
448
441
449
WHPX CPUs
442
450
M: Sunil Muthuswamy <
[email protected] >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * QEMU Hypervisor.framework support
3
+ *
4
+ * This work is licensed under the terms of the GNU GPL, version 2. See
5
+ * the COPYING file in the top-level directory.
6
+ *
7
+ * Contributions after 2012-01-13 are licensed under the terms of the
8
+ * GNU GPL, version 2 or (at your option) any later version.
9
+ */
10
+
11
+ #include "qemu/osdep.h"
12
+ #include "qemu-common.h"
13
+ #include "qemu/error-report.h"
14
+ #include "sysemu/hvf.h"
15
+ #include "sysemu/hvf_int.h"
16
+
17
+ void assert_hvf_ok (hv_return_t ret )
18
+ {
19
+ if (ret == HV_SUCCESS ) {
20
+ return ;
21
+ }
22
+
23
+ switch (ret ) {
24
+ case HV_ERROR :
25
+ error_report ("Error: HV_ERROR" );
26
+ break ;
27
+ case HV_BUSY :
28
+ error_report ("Error: HV_BUSY" );
29
+ break ;
30
+ case HV_BAD_ARGUMENT :
31
+ error_report ("Error: HV_BAD_ARGUMENT" );
32
+ break ;
33
+ case HV_NO_RESOURCES :
34
+ error_report ("Error: HV_NO_RESOURCES" );
35
+ break ;
36
+ case HV_NO_DEVICE :
37
+ error_report ("Error: HV_NO_DEVICE" );
38
+ break ;
39
+ case HV_UNSUPPORTED :
40
+ error_report ("Error: HV_UNSUPPORTED" );
41
+ break ;
42
+ default :
43
+ error_report ("Unknown Error" );
44
+ }
45
+
46
+ abort ();
47
+ }
Original file line number Diff line number Diff line change
1
+ hvf_ss = ss.source_set()
2
+ hvf_ss.add(files (
3
+ ' hvf-all.c' ,
4
+ ))
5
+
6
+ specific_ss.add_all(when : ' CONFIG_HVF' , if_true : hvf_ss)
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ specific_ss.add(files('accel-common.c'))
2
2
softmmu_ss.add(files (' accel-softmmu.c' ))
3
3
user_ss.add(files (' accel-user.c' ))
4
4
5
+ subdir (' hvf' )
5
6
subdir (' qtest' )
6
7
subdir (' kvm' )
7
8
subdir (' tcg' )
Original file line number Diff line number Diff line change
1
+ /*
2
+ * QEMU Hypervisor.framework (HVF) support
3
+ *
4
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
5
+ * See the COPYING file in the top-level directory.
6
+ *
7
+ */
8
+
9
+ /* header to be included in HVF-specific code */
10
+
11
+ #ifndef HVF_INT_H
12
+ #define HVF_INT_H
13
+
14
+ #include <Hypervisor/hv.h>
15
+
16
+ void assert_hvf_ok (hv_return_t ret );
17
+
18
+ #endif
Original file line number Diff line number Diff line change 51
51
#include "qemu/error-report.h"
52
52
53
53
#include "sysemu/hvf.h"
54
+ #include "sysemu/hvf_int.h"
54
55
#include "sysemu/runstate.h"
55
56
#include "hvf-i386.h"
56
57
#include "vmcs.h"
76
77
77
78
HVFState * hvf_state ;
78
79
79
- static void assert_hvf_ok (hv_return_t ret )
80
- {
81
- if (ret == HV_SUCCESS ) {
82
- return ;
83
- }
84
-
85
- switch (ret ) {
86
- case HV_ERROR :
87
- error_report ("Error: HV_ERROR" );
88
- break ;
89
- case HV_BUSY :
90
- error_report ("Error: HV_BUSY" );
91
- break ;
92
- case HV_BAD_ARGUMENT :
93
- error_report ("Error: HV_BAD_ARGUMENT" );
94
- break ;
95
- case HV_NO_RESOURCES :
96
- error_report ("Error: HV_NO_RESOURCES" );
97
- break ;
98
- case HV_NO_DEVICE :
99
- error_report ("Error: HV_NO_DEVICE" );
100
- break ;
101
- case HV_UNSUPPORTED :
102
- error_report ("Error: HV_UNSUPPORTED" );
103
- break ;
104
- default :
105
- error_report ("Unknown Error" );
106
- }
107
-
108
- abort ();
109
- }
110
-
111
80
/* Memory slots */
112
81
hvf_slot * hvf_find_overlap_slot (uint64_t start , uint64_t size )
113
82
{
You can’t perform that action at this time.
0 commit comments