Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146514
b: refs/heads/master
c: 7d433b9
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jun 10, 2009
1 parent 2a0050f commit e63a79a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78646121e9a2fcf7977cc15966420e572a450bc3
refs/heads/master: 7d433b9f942606f66da8ef68b8baecd2915c5627
7 changes: 4 additions & 3 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ static inline int cpu_has_secondary_exec_ctrls(void)

static inline bool cpu_has_vmx_virtualize_apic_accesses(void)
{
return flexpriority_enabled
&& (vmcs_config.cpu_based_2nd_exec_ctrl &
SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES);
return flexpriority_enabled;
}

static inline int cpu_has_vmx_invept_individual_addr(void)
Expand Down Expand Up @@ -1203,6 +1201,9 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
if (!cpu_has_vmx_ept())
enable_ept = 0;

if (!(vmcs_config.cpu_based_2nd_exec_ctrl & SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES))
flexpriority_enabled = 0;

min = 0;
#ifdef CONFIG_X86_64
min |= VM_EXIT_HOST_ADDR_SPACE_SIZE;
Expand Down

0 comments on commit e63a79a

Please sign in to comment.