File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ volatile uint16_t up_count = 0U;
27
27
/* physical cpu active bitmap, support up to 64 cpus */
28
28
uint64_t pcpu_active_bitmap = 0UL ;
29
29
30
+ /* X2APIC mode is disabled by default. */
31
+ bool x2apic_enabled = false;
32
+
30
33
/* TODO: add more capability per requirement */
31
34
/* APICv features */
32
35
#define VAPIC_FEATURE_VIRT_ACCESS (1U << 0)
Original file line number Diff line number Diff line change 6
6
7
7
#include <hypervisor.h>
8
8
9
+ extern bool x2apic_enabled ;
10
+
9
11
static inline struct vcpuid_entry * find_vcpuid_entry (struct vcpu * vcpu ,
10
12
uint32_t leaf_arg , uint32_t subleaf )
11
13
{
Original file line number Diff line number Diff line change 8
8
#include <schedule.h>
9
9
#include <softirq.h>
10
10
11
- bool x2apic_enabled ;
12
-
13
11
static void run_vcpu_pre_work (struct vcpu * vcpu )
14
12
{
15
13
uint64_t * pending_pre_work = & vcpu -> pending_pre_work ;
Original file line number Diff line number Diff line change @@ -190,6 +190,5 @@ struct vm *get_vm_from_vmid(uint16_t vm_id);
190
190
191
191
extern struct list_head vm_list ;
192
192
extern spinlock_t vm_list_lock ;
193
- extern bool x2apic_enabled ;
194
193
195
194
#endif /* VM_H_ */
You can’t perform that action at this time.
0 commit comments