Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372991
b: refs/heads/master
c: eabeaac
h: refs/heads/master
i:
  372989: a5b7191
  372987: fd47b5a
  372983: 96852f8
  372975: c46be80
  372959: ee5f6af
  372927: 1208329
  372863: d05a1aa
  372735: 7fc7431
v: v3
  • Loading branch information
Jan Kiszka authored and Gleb Natapov committed Mar 13, 2013
1 parent 57dbe32 commit f9d1bb1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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: 66450a21f99636af4fafac2afd33f1a40631bc3a
refs/heads/master: eabeaaccfca0ed61b8e00a09b8cfa703c4f11b59
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/vmx.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
#define PIN_BASED_NMI_EXITING 0x00000008
#define PIN_BASED_VIRTUAL_NMIS 0x00000020

#define PIN_BASED_ALWAYSON_WITHOUT_TRUE_MSR 0x00000016

#define VM_EXIT_SAVE_DEBUG_CONTROLS 0x00000002
#define VM_EXIT_HOST_ADDR_SPACE_SIZE 0x00000200
#define VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL 0x00001000
Expand Down
10 changes: 6 additions & 4 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2040,14 +2040,16 @@ static __init void nested_vmx_setup_ctls_msrs(void)
*/

/* pin-based controls */
rdmsr(MSR_IA32_VMX_PINBASED_CTLS,
nested_vmx_pinbased_ctls_low, nested_vmx_pinbased_ctls_high);
/*
* According to the Intel spec, if bit 55 of VMX_BASIC is off (as it is
* in our case), bits 1, 2 and 4 (i.e., 0x16) must be 1 in this MSR.
*/
nested_vmx_pinbased_ctls_low = 0x16 ;
nested_vmx_pinbased_ctls_high = 0x16 |
PIN_BASED_EXT_INTR_MASK | PIN_BASED_NMI_EXITING |
PIN_BASED_VIRTUAL_NMIS;
nested_vmx_pinbased_ctls_low |= PIN_BASED_ALWAYSON_WITHOUT_TRUE_MSR;
nested_vmx_pinbased_ctls_high &= PIN_BASED_EXT_INTR_MASK |
PIN_BASED_NMI_EXITING | PIN_BASED_VIRTUAL_NMIS;
nested_vmx_pinbased_ctls_high |= PIN_BASED_ALWAYSON_WITHOUT_TRUE_MSR;

/*
* Exit controls
Expand Down

0 comments on commit f9d1bb1

Please sign in to comment.